Template:SUSTC-Shenzhen/themeJs

From 2014.igem.org

(Difference between revisions)
Line 52: Line 52:
   </script>
   </script>
   <script>
   <script>
-
   $('a[href*=#]:not([href=#])').click(function() {
+
   $('a[href*=#]:not([href=#])').not(".carousel-control").click(function() {
     console.log(this.hash);
     console.log(this.hash);
     if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')  
     if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')  

Revision as of 16:43, 31 August 2014