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

Line 31: Line 31:
  
 
     // 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 (y > ($pageheight - 100)) {
+
     if ($window.width() < 1320) {
      // blob stays 100px above bottom
+
      if (y > ($pageheight - 100)) {
      console.log("y 100 up");
+
        // blob stays 100px above bottom
    }} else if ($window.width() > 1320) { if (y > ($pageheight - 430)){
+
        console.log("y 100 up");
      console.log("y 430 up");
+
      } else {
    }} else {
+
        console.log('y in window');
      console.log('y in window');
+
        $blob.css({"top": top });
      $blob.css({"top": top });
+
      }
 +
    } else if ($window.width() > 1320) {
 +
      if (y > ($pageheight - 430)) {
 +
        console.log("y 430 up");
 +
      } else {
 +
        console.log('y in window');
 +
        $blob.css({"top": top });
 +
      }
 
     }
 
     }
  

Revision as of 07:25, 8 September 2015