Team:UCLA/sams extra css

From 2014.igem.org

(Difference between revisions)
(Created page with "<html> <script type="text/css"> <!--SLIDING SIDE BAR--> #wrapper { padding-left: 250px; transition: all 0.4s ease 0s; } #sidebar-wrapper { margin-left: -250px; left: 250...")
Line 148: Line 148:
</script>
</script>
-
<script type = "text/javascript".
 
-
    $("#menu-toggle").click(function(e) {
 
-
        e.preventDefault();
 
-
        $("#wrapper").toggleClass("active");
 
-
    });
 
-
 
-
    $('body').scrollspy({ target: '#spy', offset:80});
 
-
 
-
    $('a[href*=#]:not([href=#])').click(function() {
 
-
        if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') || location.hostname == this.hostname) {
 
-
 
-
            var target = $(this.hash);
 
-
            target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
 
-
            if (target.length) {
 
-
                $('html,body').animate({
 
-
                    scrollTop: target.offset().top
 
-
                }, 1000);
 
-
                return false;
 
-
            }
 
-
        }
 
-
    });
 
-
 
-
</script>
 
</html>
</html>

Revision as of 00:02, 7 August 2014