Template:Team:Marburg/Template:HeaderMenu
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
- | <html><style> | + | <html> |
+ | <script> | ||
+ | $(window).load(function(){ | ||
+ | /* test for @media-query support */ | ||
+ | $('body').append($('<div id="test-media-query">').css({visibility: 'hidden', position: 'absolute'})); | ||
+ | $('head').prepend('<style type="text/css" media="only all" id="test-media-query-style">'); | ||
+ | styleSht = document.styleSheets[0]; | ||
+ | if (styleSht.cssRules || styleSht.rules) { | ||
+ | if (styleSht.insertRule) {styleSht.insertRule('#test-media-query {display:none !important;}', styleSht.cssRules.length); | ||
+ | } else if (styleSht.addRule) {styleSht.addRule('#test-media-query', 'display:none');} | ||
+ | } | ||
+ | mediaQuery = $('#test-media-query').css('display') === 'none'; | ||
+ | $('#test-media-query, #test-media-query-style').remove(); | ||
+ | /* if (!mediaQuery) { | ||
+ | $(window).on("resize", function () { | ||
+ | widthDoc = $(window).width(); | ||
+ | if (!$('link[href="responsive-single/size880.css"]').length && widthDoc<=1024){$("<link>").appendTo($('head')).attr({type:'text/css',rel:'stylesheet',href:'https://2014.igem.org/Template:Team:Marburg/Template:Header:ResponsiveCSS?action=render'});} | ||
+ | if (widthDoc>1024) {$('link[href="https://2014.igem.org/Template:Team:Marburg/Template:Header:ResponsiveCSS?action=render"]').remove();} | ||
+ | }).resize(); | ||
+ | } */ | ||
+ | }); | ||
+ | </script> | ||
+ | <style> | ||
#slider2_container { | #slider2_container { | ||
position: relative; | position: relative; |
Revision as of 14:21, 7 October 2014