Difference between revisions of "Template:Team:Bielefeld-CeBiTec/JS"

m
(bug fix for internal links and story)
Line 156: Line 156:
 
 
 
$url = window.location.href;
 
$url = window.location.href;
 +
if ($url.indexOf("#") > -1) {
 +
$url = $url.substring(0, $url.indexOf("#"));
 +
}
 
$index = 0;
 
$index = 0;
 
for (i = 0; i < $story.length; i++) {
 
for (i = 0; i < $story.length; i++) {

Revision as of 16:25, 14 October 2017