Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. import * as $ from 'jquery'
  2.  
  3. $(document).ready(function() {
  4. $('a[href="'+ location.pathname +'"]').addClass('active');
  5. console.log(location.pathname)
  6. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement