Template:SUSTC-Shenzhen/themeJs

From 2014.igem.org

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

Revision as of 16:33, 31 August 2014