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

Line 19: Line 19:
 
     // button disappears on top of the page //
 
     // button disappears on top of the page //
 
     if (y <  60) {
 
     if (y <  60) {
       console.log('lower');
+
       console.log('right in');
 
       $blob.css({"transform": "translateX(0)"}); // = 100 px outside
 
       $blob.css({"transform": "translateX(0)"}); // = 100 px outside
 
     }
 
     }
Line 25: Line 25:
 
     // button appears in the middle //
 
     // button appears in the middle //
 
     if (y > 60 ) {
 
     if (y > 60 ) {
       console.log('middle');
+
       console.log('right out');
 
       $blob.css({"transform": "translateX(-130px)"}); // = 30 px inside right
 
       $blob.css({"transform": "translateX(-130px)"}); // = 30 px inside right
 
     }
 
     }
Line 34: Line 34:
 
     // if there is no lower background image, the button just moves upwards so it doesnt touch the footer
 
     // if there is no lower background image, the button just moves upwards so it doesnt touch the footer
 
     if ($window.width() < 1320) {
 
     if ($window.width() < 1320) {
       if (y > ($pageheight - $window.height() - 100)) {
+
       if (y > ($pageheight - 100)) {
         console.log('greater small');
+
         console.log("y 100 up");
         $blob.css({"top": top });
+
         $blob.css({"top": $pageheight + $window.height() -100 });
 
       }
 
       }
 
     }
 
     }

Revision as of 07:08, 8 September 2015