Template:SUSTC-Shenzhen/themeJs
From 2014.igem.org
(Difference between revisions)
Line 57: | Line 57: | ||
|| location.hostname == this.hostname) { | || location.hostname == this.hostname) { | ||
- | var target = $(this.hash. | + | var target = $('[id="'+this.hash.substring(1)+'"]'); |
target = target.length ? target : $('[name="' + this.hash.slice(1) +'"]'); | target = target.length ? target : $('[name="' + this.hash.slice(1) +'"]'); | ||
if (target.length) { | if (target.length) { |
Revision as of 12:45, 8 October 2014