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

Line 33: Line 33:
 
     console.log('pageheight:'+$pageheight);
 
     console.log('pageheight:'+$pageheight);
 
     console.log('windowwidth:'+$window.width());
 
     console.log('windowwidth:'+$window.width());
 +
    console.log('windowheight:'+$window.height());
 +
  
 
     $(window).scroll(function(event) {
 
     $(window).scroll(function(event) {
Line 41: Line 43:
 
     if (y < 0.05*$pageheight) {
 
     if (y < 0.05*$pageheight) {
 
     console.log('lower');
 
     console.log('lower');
     $blob.css({"top": y +30, "right": 30}); // = 30 px under bottom
+
     $blob.css({"top": y + $window.height() + 30, "right": 30}); // = 30 px under bottom
 
   }
 
   }
  

Revision as of 05:46, 8 September 2015