Difference between revisions of "Template:SJTU-software"

Line 1: Line 1:
 
<html>
 
<html>
 
+
    <script type="text/javascript" src="https://raw.githubusercontent.com/sjtusoftware2018/2018iGEM_wiki/master/js/jquery.min.js"></script>
 +
    <script>
 +
        /*-----------------------------------------------------------------------------------*/
 +
        /* Scroll to top
 +
        /*-----------------------------------------------------------------------------------*/       
 +
        $('.widget-cols .scroll').click(function(){
 +
            $("html, body").animate({ scrollTop: 0 }, 600);
 +
            return false;
 +
        });
 +
        /*-----------------------------------------------------------------------------------*/
 +
    </script>
 
<style type="text/css">
 
<style type="text/css">
 
     body {
 
     body {
Line 504: Line 514:
 
     </div>
 
     </div>
  
    <script type="text/javascript" src="https://raw.githubusercontent.com/sjtusoftware2018/2018iGEM_wiki/master/js/jquery.min.js"></script>
+
 
    <script>
+
        /*-----------------------------------------------------------------------------------*/
+
        /* Scroll to top
+
        /*-----------------------------------------------------------------------------------*/       
+
        $('.widget-cols .scroll').click(function(){
+
            $("html, body").animate({ scrollTop: 0 }, 600);
+
            return false;
+
        });
+
        /*-----------------------------------------------------------------------------------*/
+
    </script>
+
 
    
 
    
 
</body>
 
</body>
 
</html>
 
</html>

Revision as of 13:22, 26 September 2018