Team:UESTC Life/Notebook
From 2013.igem.org
(Difference between revisions)
Line 23: | Line 23: | ||
{ | { | ||
background:url(https://static.igem.org/mediawiki/2013/e/e8/Uestclifeback1.jpg); | background:url(https://static.igem.org/mediawiki/2013/e/e8/Uestclifeback1.jpg); | ||
- | background-size:cover; | + | background-size:cover;background-attachment:fixed; |
} | } | ||
</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="javascript:;"onClick="javascript :history.back(-1);"><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 *** --> | ||
== '''1 ''' == | == '''1 ''' == | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
Revision as of 12:17, 25 September 2013
Notebook |
---|
1