Team:Linkoping Sweden/popup

From 2014.igem.org

(Difference between revisions)
Line 38: Line 38:
             var maskHeight = $(document).height();
             var maskHeight = $(document).height();
             var maskWidth = $(window).width();
             var maskWidth = $(window).width();
 +
            var horizOffset = ($(window).width() - 1100) / -2;
          
          
             //Set height and width to mask to fill up the whole screen
             //Set height and width to mask to fill up the whole screen
-
             $('#mask').css({'width':maskWidth,'height':maskHeight});
+
             $('#mask').css({'width':maskWidth,'height':maskHeight,'left':horizOffset });
              
              
             //transition effect         
             //transition effect         

Revision as of 09:12, 14 October 2014