Team:SYSU-Software/overview1

From 2014.igem.org

(Difference between revisions)
Line 110: Line 110:
<script src="https://2014.igem.org/Team:SYSU-Software/jquery-min-1.9.1.js?action=raw&amp;ctype=text/javascript" type="text/javascript"></script>
<script src="https://2014.igem.org/Team:SYSU-Software/jquery-min-1.9.1.js?action=raw&amp;ctype=text/javascript" type="text/javascript"></script>
<script src="https://2014.igem.org/Team:SYSU-Software/jquery.mousewheel.js?action=raw&amp;ctype=text/javascript" type="text/javascript"></script>
<script src="https://2014.igem.org/Team:SYSU-Software/jquery.mousewheel.js?action=raw&amp;ctype=text/javascript" type="text/javascript"></script>
-
<script>
+
<script src="https://2014.igem.org/Team:SYSU-Software/hm-overview.js?action=raw&amp;ctype=text/javascript" type="text/javascript"></script>
-
   
+
-
    window.onload = function(){
+
-
        var count = 1,
+
-
            wheel = true;
+
-
        document.getElementById('showpics').className = 'rotate';
+
-
        document.getElementById('bodyContent').className="hm-part1";
+
-
        $(window).mousewheel(function(e, delta){
+
-
            if(wheel){
+
-
                wheel = false;
+
-
                if(count==1 '&&' delta>0){
+
-
                    count=1;
+
-
                } else if(count==4 '&&' delta<0){
+
-
                    count=4;
+
-
                } else {
+
-
                    delta > 0 ? count-- : count++;
+
-
                    count = count%4 || 4;
+
-
                }
+
-
              document.getElementById('bodyContent').className = 'hm-part'+count;
+
-
                setTimeout(function(){
+
-
                    wheel = true;
+
-
                }, 1500)
+
-
            }
+
-
           
+
-
        });
+
-
    }
+
-
</script>
 
</body>
</body>
</html>
</html>

Revision as of 15:51, 16 October 2014

Team:SYSU-Software