Template:Templates/head

From 2014.igem.org

(Difference between revisions)
Line 27: Line 27:
                     function resizeBg(){
                     function resizeBg(){
                         var splash = $('#splash-wrapper');
                         var splash = $('#splash-wrapper');
-
                         if(splash.width <= 1040) {
+
                         if(splash.width <= 1040 || window.innerHeight > window.innerWidth) {
                             splash.height(Math.floor(splash.width() / 1.6));
                             splash.height(Math.floor(splash.width() / 1.6));
                         }
                         }

Revision as of 18:34, 17 October 2014