There are the following attributes:
- note - sets the text of the footnote
- url - sets the URL, opened in same tab
Note: changing these attributes during runtime has no effect.
"dependencies": {
"@ewc-lib/ewc-footer-notes": "^1.0.0"
}
<!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>
</body>
</html>
import "@ewc-lib/ewc-footer-notes"