Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ewc-lib/ewc-footer-notes

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ewc-lib/ewc-footer-notes

![Screenshot](./screenshot.png)

  • 1.1.2-alpha
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Screenshot

Screenshot

A simple footnote with 2 lines: 1st line is a note, 2nd line is a fixed text ("Source: Eurostat - ") and a link (access to dataset).

API

There are the following attributes:

  • note - sets the text of the footnote (the first line).
    • If text is omitted, line is omitted as well.
    • Can be changed during runtime.
  • url - sets the URL for the link (2nd line).
    • Opens link in the same tab.
    • Can be changed during runtime.

Usage with WebPack

package.json

"dependencies": {
  "@ewc-lib/ewc-footer-notes": "latest"
}

index.html

<!DOCTYPE html>
<html>

  <head>
    <style>
      body{
          font-family: 'Arial', sans-serif;
          margin: 0;
        }
    </style>
  </head>

  <body>
      <script src="bundle.js"></script>

      <ewc-footer-notes 
        note="This is a demonstration of a footer note."
        url="https://ec.europa.eu/eurostat/">
      </ewc-footer-notes>

      <script>
        document.getElementsByTagName("ewc-footer-notes")[0].setAttribute("note","Footnote and URL changed!")
        document.getElementsByTagName("ewc-footer-notes")[0].setAttribute("url","https://duckduckgo.com")
      </script>
  </body>

</html>

index.js

import "@ewc-lib/ewc-footer-notes"

FAQs

Package last updated on 07 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc