Difference between revisions of "Team:SHSBNU China/Sample"

 
(8 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
     <link id="Sec_CSS" rel="stylesheet" type="text/css" href="https://2018.igem.org/Template:SHSBNU_China/Sample_css?action=raw&ctype=text/css" />
 
     <link id="Sec_CSS" rel="stylesheet" type="text/css" href="https://2018.igem.org/Template:SHSBNU_China/Sample_css?action=raw&ctype=text/css" />
 
     <script src="https://2018.igem.org/Template:SHSBNU_China/Sample_js?action=raw&ctype=text/javascript" type="text/javascript"></script>
 
     <script src="https://2018.igem.org/Template:SHSBNU_China/Sample_js?action=raw&ctype=text/javascript" type="text/javascript"></script>
    <script>
 
 
        function getOffset(el) {
 
            var _x = 0;
 
            var _y = 0;
 
            while ( el && !isNaN( el.offsetLeft ) && !isNaN( el.offsetTop ) ) {
 
                _x += el.offsetLeft - el.scrollLeft;
 
                _y += el.offsetTop - el.scrollTop;
 
                el = el.offsetParent;
 
            };
 
            return { top: _y, left: _x };
 
        }
 
    var y_coordinate = getOffset(document.getElementById('menu_blank') ).top;
 
 
 
        function back_to_top() {
 
        window.scrollTo(0,0);
 
        }
 
 
    window.onload = function top_button() {
 
    if (y_coordinate>0){
 
    document.getElementById("menu_blank").style.visibility="hidden";
 
    }
 
    else {
 
    document.getElementById("menu_blank").style.visibility="visible";
 
    }
 
    }
 
    </script>
 
 
     <div id="main_main">
 
     <div id="main_main">
 
<section id="main">
 
<section id="main">
<div id="Top_Button">
+
<div onclick="window.scrollTo(0,0);" id="Top_Button">
<img onclick="back_to_top()" style="width:5vw;height:5vw" src=""/>
+
<img style="width:5vw;height:5vw" src="https://static.igem.org/mediawiki/2018/e/e2/T--SHSBNU_China--Back_To_Top.png"/>
 
</div>
 
</div>
 
<header id="page_header">
 
<header id="page_header">

Latest revision as of 04:37, 17 October 2018

Section Sample

Sample

I. Sample

a. Sample

This is a Picture. This is a Picture. This is a Picture. This is a Picture.

This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture.

This is a Picture. This is a Picture. This is a Picture. This is a Picture.

This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture.