1.0.1 • Published 2 years ago
arsipa-active-link v1.0.1
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