Difference between revisions of "Template:Main2019"

Line 1,098: Line 1,098:
 
.highlight.post_item  > .details > .date {clear: both; float:left;}
 
.highlight.post_item  > .details > .date {clear: both; float:left;}
  
.igem_menu{  width: 30%; float: right; position: absolute; margin-top: 47px;  max-width: 100%;}
+
.igem_menu{  width: 65%; float: right; position: absolute; margin-top: 47px;  max-width: 100%;}
  
}
 
 
 
/* 800px  */
 
/************************************************/
 
@media only screen and (max-width: 800px) {
 
.igem_menu{  width: 50%; }
 
}
 
 
 
/* 600px  */
 
/************************************************/
 
@media only screen and (max-width: 600px) {
 
.igem_menu{  width: 65%; }
 
}
 
  
  
Line 1,133: Line 1,118:
 
}
 
}
 
 
 
+
//if image_slider exists, activate the automatic rotation slider and functionality
 +
if ($("#image_carrousel").length){
 +
image_slider_rotation();
 +
}
  
 
$( "#load_menu_here" ).load( "https://2019.igem.org/HQ:Menu #load_menu_content" , function() {
 
$( "#load_menu_here" ).load( "https://2019.igem.org/HQ:Menu #load_menu_content" , function() {
Line 1,140: Line 1,128:
 
});
 
});
  
 
//if image_slider exists, activate the automatic rotation slider and functionality
 
if ($("#image_carrousel").length){
 
image_slider_rotation();
 
}
 
  
 
$(".collapsible_accordion_access").click(function(){
 
$(".collapsible_accordion_access").click(function(){
Line 1,151: Line 1,134:
 
});
 
});
  
 
+
 
+
if($(".igem_mobile_menu_bar").is(":visible")){
+
var container = $(".igem_menu");
+
if (!container.is(e.target) && container.has(e.target).length === 0) {
+
        container.hide();
+
}
+
}
+
 
});
 
});
 
 

Revision as of 21:51, 31 January 2019

Loading...