Difference between revisions of "Template:Toc"

From The Official Visionaire Studio: Adventure Game Engine Wiki
m
m
Line 39: Line 39:
 
var string = window.location.pathname;
 
var string = window.location.pathname;
 
string = string.replace(new RegExp(array.join("|"), "g"), "");
 
string = string.replace(new RegExp(array.join("|"), "g"), "");
$('.xxx').html({{i18n|{{BASEPAGENAME}}}});
 
  
 
});
 
});
Line 45: Line 44:
 
</script>
 
</script>
 
</html>
 
</html>
<span class="xxx">x</span>
+
{{i18n|<html><script>$('.xxx').html(string);</script></html>}}
{{i18n|{{SUBPAGENAME}}}}
 
 
<div class="ftoc"><div class="ftoc_content">__TOC__</div></div>
 
<div class="ftoc"><div class="ftoc_content">__TOC__</div></div>
 
</includeonly>
 
</includeonly>

Revision as of 21:44, 30 October 2014

Generates a floating Table of contents menu in a fixed position on the left hand side of the screen.