Difference between revisions of "Template:Wageningen UR/MainJSv2"

Line 337: Line 337:
 
                 clearTimeout(timer);
 
                 clearTimeout(timer);
 
                 delay = 200;
 
                 delay = 200;
                $("#project").css("text-decoration", "underline");
+
           
                $("#background").css("text-decoration", "none");
+
                $("#wet-lab").css("text-decoration", "none");
+
                $("#model").css("text-decoration", "none");
+
                $("#human-practices").css("text-decoration", "none");
+
                $("#application").css("text-decoration", "none");
+
                $("#notebook").css("text-decoration", "none");
+
                $("#team").css("text-decoration", "none");
+
 
+
 
                 //Switching menu button, clear everything else
 
                 //Switching menu button, clear everything else
 
                 $("#wet-lab-sub").hide();
 
                 $("#wet-lab-sub").hide();
Line 361: Line 353:
 
                 clearTimeout(timer);
 
                 clearTimeout(timer);
 
                 delay = 200;
 
                 delay = 200;
                 $("#project").css("text-decoration", "none");
+
                  
                $("#background").css("text-decoration", "underline");
+
                $("#wet-lab").css("text-decoration", "none");
+
                $("#model").css("text-decoration", "none");
+
                $("#human-practices").css("text-decoration", "none");
+
                $("#application").css("text-decoration", "none");
+
                $("#notebook").css("text-decoration", "none");
+
                $("#team").css("text-decoration", "none");
+
  
 
                 //Switching menu button, clear everything else
 
                 //Switching menu button, clear everything else
Line 386: Line 371:
 
                 delay = 600;
 
                 delay = 600;
 
                 $("#wet-lab-sub").show();
 
                 $("#wet-lab-sub").show();
                $("#project").css("text-decoration", "none");
 
                $("#background").css("text-decoration", "none");
 
                $("#wet-lab").css("text-decoration", "underline");
 
                $("#model").css("text-decoration", "none");
 
                $("#human-practices").css("text-decoration", "none");
 
                $("#application").css("text-decoration", "none");
 
                $("#notebook").css("text-decoration", "none");
 
                $("#team").css("text-decoration", "none");
 
  
 
                 //Switching menu button, clear everything else                 
 
                 //Switching menu button, clear everything else                 
Line 411: Line 388:
 
                 delay = 600;
 
                 delay = 600;
 
                 $("#model-sub").show();
 
                 $("#model-sub").show();
                $("#project").css("text-decoration", "none");
 
                $("#background").css("text-decoration", "none");
 
                $("#wet-lab").css("text-decoration", "none");
 
                $("#model").css("text-decoration", "underline");
 
                $("#human-practices").css("text-decoration", "none");
 
                $("#application").css("text-decoration", "none");
 
                $("#notebook").css("text-decoration", "none");
 
                $("#team").css("text-decoration", "none");
 
  
 
                 //Switching menu button, clear everything else                 
 
                 //Switching menu button, clear everything else                 
Line 437: Line 406:
 
                 delay = 600;
 
                 delay = 600;
 
                 $("#human-practices-sub").show();
 
                 $("#human-practices-sub").show();
                $("#project").css("text-decoration", "none");
 
                $("#background").css("text-decoration", "none");
 
                $("#wet-lab").css("text-decoration", "none");
 
                $("#model").css("text-decoration", "none");
 
                $("#human-practices").css("text-decoration", "underline")
 
                $("#application").css("text-decoration", "none");
 
                $("#notebook").css("text-decoration", "none");
 
                $("#team").css("text-decoration", "none");
 
  
 
                 //Switching menu button, clear everything else                 
 
                 //Switching menu button, clear everything else                 
Line 463: Line 424:
 
                 delay = 600;
 
                 delay = 600;
 
                 $("#application-sub").show();
 
                 $("#application-sub").show();
                $("#project").css("text-decoration", "none");
 
                $("#background").css("text-decoration", "none");
 
                $("#wet-lab").css("text-decoration", "none");
 
                $("#model").css("text-decoration", "none");
 
                $("#human-practices").css("text-decoration", "none");
 
                $("#application").css("text-decoration", "underline")
 
                $("#notebook").css("text-decoration", "none");
 
                $("#team").css("text-decoration", "none");
 
  
 
                 //Switching menu button, clear everything else
 
                 //Switching menu button, clear everything else
Line 491: Line 444:
 
                 delay = 600;
 
                 delay = 600;
 
                 $("#notebook-sub").show();
 
                 $("#notebook-sub").show();
                 $("#project").css("text-decoration", "none");
+
                  
                $("#background").css("text-decoration", "none");
+
                $("#wet-lab").css("text-decoration", "none");
+
                $("#model").css("text-decoration", "none");
+
                $("#human-practices").css("text-decoration", "none");
+
                $("#application").css("text-decoration", "none");
+
                $("#notebook").css("text-decoration", "underline")
+
                $("#team").css("text-decoration", "none");
+
 
+
 
                 //Switching menu button, clear everything else
 
                 //Switching menu button, clear everything else
  
Line 518: Line 463:
 
                 delay = 600;
 
                 delay = 600;
 
                 $("#team-sub").show();
 
                 $("#team-sub").show();
                $("#project").css("text-decoration", "none");
+
             
                $("#background").css("text-decoration", "none");
+
                $("#wet-lab").css("text-decoration", "none");
+
                $("#model").css("text-decoration", "none");
+
                $("#human-practices").css("text-decoration", "none");
+
                $("#application").css("text-decoration", "none");
+
                $("#notebook").css("text-decoration", "none");
+
                $("#team").css("text-decoration", "underline");
+
 
+
 
                 //Switching menu button, clear everything else
 
                 //Switching menu button, clear everything else
  

Revision as of 23:41, 31 October 2017