Difference between revisions of "Template:Team:DTU-Denmark/header.html"

Line 477: Line 477:
 
     });
 
     });
  
 
+
      if ( $(window).width() < 900 ){
    $(document).ready(function()
+
      $(document).ready(function()
    {
+
        {
      $("ul#sidebar").on("click","li", function(){
+
        $("ul#sidebar").on("click","li", function(){
        console.log("hi2")
+
            console.log("hi2")
        $("#scrollspy").css("display","none")
+
            $("#scrollspy").css("display","none")
            scrole_open = false
+
              scrole_open = false
      });
+
        });
    });
+
      });
   
+
      }
  
 
       if ( $(window).width() > 650 ){
 
       if ( $(window).width() > 650 ){

Revision as of 22:56, 19 October 2016

New HTML template for the wiki