Difference between revisions of "Template:Team:Freiburg/wiki content start bubble"
Line 80: | Line 80: | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</style> | </style> | ||
Line 109: | Line 94: | ||
var $el = $('#bubble_wrapper>div'); | var $el = $('#bubble_wrapper>div'); | ||
var $window = $(window); | var $window = $(window); | ||
+ | |||
+ | |||
+ | |||
$window.bind("scroll resize", function() { | $window.bind("scroll resize", function() { | ||
Line 115: | Line 103: | ||
var scrollTop = $window.scrollTop() | var scrollTop = $window.scrollTop() | ||
− | if(scrollTop | + | if (scrollTop > $document.height() - $window.height() -370){ |
− | + | ||
$el.css({ | $el.css({ | ||
− | + | top: (172 - scrollTop) + "px", | |
− | + | bottom: "auto" | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
}); | }); | ||
} | } | ||
}); | }); | ||
}); | }); | ||
− | + | }); | |
</script> | </script> |
Revision as of 13:44, 18 September 2015