OscarSierra (Talk | contribs) |
OscarSierra (Talk | contribs) |
||
Line 392: | Line 392: | ||
// Make social-links div draggable | // Make social-links div draggable | ||
− | switch (window.location.pathname){ | + | |
+ | $(document).ready(function(){ | ||
+ | switch (window.location.pathname){ | ||
case "/Team:TecMonterrey_GDL/Description": | case "/Team:TecMonterrey_GDL/Description": | ||
document.getElementById('project').classList.add('active') | document.getElementById('project').classList.add('active') | ||
Line 482: | Line 484: | ||
document.getElementById('home').classList.add('active') | document.getElementById('home').classList.add('active') | ||
break; | break; | ||
− | } | + | } |
− | + | ||
/*$(".dropdown-item").on("click", (event)=>{ | /*$(".dropdown-item").on("click", (event)=>{ |
Revision as of 16:12, 3 September 2018