Difference between revisions of "Template:Freiburg/wiki content start"

Line 10: Line 10:
 
   var $blob = $("#upwards_blob"),  
 
   var $blob = $("#upwards_blob"),  
 
       $window = $(window),
 
       $window = $(window),
       $pageheight = $(document).height() - $window.height();
+
       $doc_heighttop = $(document).height() - $window.height();
  
 
     console.log('pageheight:'+$pageheight);
 
     console.log('pageheight:'+$pageheight);
Line 39: Line 39:
 
       // for pages smaller than 1143 px the button disappears by media queries (found in Freiburg/CSS)
 
       // for pages smaller than 1143 px the button disappears by media queries (found in Freiburg/CSS)
 
       if ($window.width() < 1320) {
 
       if ($window.width() < 1320) {
         if (y > ($pageheight - 100)) {
+
         if (y > ($doc_heighttop - 100)) {
 
           // blob stays 100px above bottom
 
           // blob stays 100px above bottom
 
           //console.log("y 100 up");
 
           //console.log("y 100 up");
Line 47: Line 47:
 
         }
 
         }
 
       } else if ($window.width() > 1320) {
 
       } else if ($window.width() > 1320) {
         if (y > ($pageheight - 500)) {
+
         if (y > ($doc_heighttop - 500)) {
 
           //console.log("y 500 up");
 
           //console.log("y 500 up");
 
         } else {
 
         } else {

Revision as of 07:59, 8 September 2015