arsipa-active-link
v1.0.1
Published
Add class to active link
Downloads
5
Maintainers
Readme
arsipa-active-link
Simple js script that adds "arsipa-active-link" class to the tag if the href attribute matches the current url
Usage
npm -i arsipa-active-link
Add script
<script src="node_modules/arsipa-active-link/arsipa-active-page.js"></script>
Style
.arsipa-active-page { color: red; }
Preview