Difference between revisions of "Team:Greece/our project"

Line 4: Line 4:
 
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
   <script> window.onload = function (){
+
   <script>  
 +
            window.onload = function (){
  
 
                         //HIDE
 
                         //HIDE
Line 13: Line 14:
 
                         void(document.getElementById('main-wraper').style.display = 'block');
 
                         void(document.getElementById('main-wraper').style.display = 'block');
 
    }
 
    }
    $(function() {
+
            // Change color of current link
        $('#list li a').click(function() {
+
            $('a[href*="' +window.location.href+'"').each(function() { $(this).css('color', '#000000'); });
          $('#list li').removeClass();
+
          $($(this).attr('href')).addClass('active');
+
        });
+
    });
+
 
   </script>
 
   </script>
  

Revision as of 13:52, 14 August 2017