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

Line 33: Line 33:
 
         //console.log('right in');
 
         //console.log('right in');
 
         $blob.css({"transform": "translateY(130px)"}); // = 100 px outside
 
         $blob.css({"transform": "translateY(130px)"}); // = 100 px outside
       }
+
       }  
 
+
      // offset of the button on the bottom of the page depends on the background image and thus the page-width
+
      // for pages smaller than 1143 px the button disappears by media queries (found in Freiburg/CSS)
+
      if ($window.width() < 1320) {
+
        if (y > ($doc_heighttop - 100)) {
+
          //blob stays 100px above bottom
+
          console.log("blobstop");
+
        } else {
+
          //console.log('y in window');
+
          $blob.css({"top": top });
+
        }
+
      } else if ($window.width() > 1320) {
+
        if (y > ($doc_heighttop - 430)) {
+
          console.log("blobstop");
+
        } else {
+
          //console.log('y in window');
+
          $blob.css({"top": top });
+
        }
+
      }
+
 
     });
 
     });
 
   }
 
   }

Revision as of 21:28, 10 September 2015