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

Line 9: Line 9:
 
$(document).ready(function(){
 
$(document).ready(function(){
 
   var $blob = $("#upwards_blob"),  
 
   var $blob = $("#upwards_blob"),  
       $window = $(window);
+
       $window = $(window),
       //$pageheight = $(document).height()-$window.height();
+
       $pageheight = $(document).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 > ($window.height() - 100)) {
+
         if (y > ($pageheight - 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 > ($window.height() - 500)) {
+
         if (y > ($pageheight - 500)) {
 
           //console.log("y 500 up");
 
           //console.log("y 500 up");
 
         } else {
 
         } else {

Revision as of 07:47, 8 September 2015