Team:UESTC Life/Modeling
From 2013.igem.org
(Difference between revisions)
Line 27: | Line 27: | ||
</style> | </style> | ||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function(){ | ||
+ | |||
+ | //Hide (Collapse) the toggle containers on load | ||
+ | $(".acc_container").hide(); | ||
+ | //Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state) | ||
+ | $("h2.acc_trigger").click(function(){ | ||
+ | $(this).toggleClass("active").next().slideToggle("slow"); | ||
+ | |||
+ | return false; //Prevent the browser jump to the link anchor | ||
+ | }); | ||
+ | |||
+ | }); | ||
+ | </script> | ||
+ | <script type="text/javascript"> | ||
+ | function movetotop(){ | ||
+ | $("html, body").animate({ scrollTop: 0 }, "slow"); | ||
+ | return false; | ||
+ | } | ||
+ | $(function() { | ||
+ | var offset = $("#logo").offset(); | ||
+ | var topPadding = 15; | ||
+ | $(window).scroll(function() { | ||
+ | if ($(window).scrollTop() > offset.top) { | ||
+ | $("#logo").stop().animate({ | ||
+ | marginTop: $(window).scrollTop() - offset.top + topPadding | ||
+ | }); | ||
+ | } else { | ||
+ | $("#logo").stop().animate({ | ||
+ | marginTop: 0 | ||
+ | }); | ||
+ | }; | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
</html> | </html> | ||
<!-- *** What falls between these lines is the Alert Box! You can remove it from your pages once you have read and understood the alert *** --> | <!-- *** What falls between these lines is the Alert Box! You can remove it from your pages once you have read and understood the alert *** --> | ||
Line 33: | Line 68: | ||
|} | |} | ||
+ | <html> | ||
+ | <div style="position:absolute;right:-130px" id="logo" onclick="movetotop()" > | ||
+ | <a href="https://2013.igem.org/Team:UESTC_Life#/page/3"><img src="https://static.igem.org/mediawiki/igem.org/8/8a/Uestclifebiot_logoarrow.png" style="filter:alpha(opacity=0,finishopacity=60,style=0)"></a> | ||
+ | <!-- end #logo --></div> | ||
+ | </html> | ||
<!-- *** End of the alert box *** --> | <!-- *** End of the alert box *** --> | ||
Revision as of 06:43, 23 September 2013
Modeling |
---|
Modeling 1
Modeling 2