Team:Heidelberg/js/frontpage
From 2014.igem.org
(Difference between revisions)
(Created page with "skrollr.init()") |
|||
Line 1: | Line 1: | ||
- | skrollr.init() | + | $(document).ready(function(){ |
+ | skrollr.init(); | ||
+ | var width = $("#img-placeholder").outerWidth(false); | ||
+ | var position = $(element).offset(); | ||
+ | $("#ring").css("width", width).css(position); | ||
+ | $("#img-placeholder").css("height", $("#ring").height()+"px"); | ||
+ | }); |
Revision as of 09:50, 22 September 2014
$(document).ready(function(){ skrollr.init(); var width = $("#img-placeholder").outerWidth(false); var position = $(element).offset(); $("#ring").css("width", width).css(position); $("#img-placeholder").css("height", $("#ring").height()+"px"); });