Team:Paris/Sandbox
From 2008.igem.org
(Difference between revisions)
Line 113: | Line 113: | ||
</ul> | </ul> | ||
</div> | </div> | ||
+ | <script> | ||
+ | function showTocToggle() { | ||
+ | if (document.createTextNode) { | ||
+ | var linkHolder = document.getElementById("toctitle"); | ||
+ | if (!linkHolder) { | ||
+ | return; | ||
+ | } | ||
+ | var outerSpan = document.createElement("span"); | ||
+ | outerSpan.className = "toctoggle"; | ||
+ | var toggleLink = document.createElement("a"); | ||
+ | toggleLink.id = "togglelink"; | ||
+ | toggleLink.className = "internal"; | ||
+ | toggleLink.href = "javascript:toggleToc()"; | ||
+ | toggleLink.appendChild(document.createTextNode(tocHideText)); | ||
+ | outerSpan.appendChild(document.createTextNode("[")); | ||
+ | outerSpan.appendChild(toggleLink); | ||
+ | outerSpan.appendChild(document.createTextNode("]")); | ||
+ | linkHolder.appendChild(document.createTextNode(" ")); | ||
+ | linkHolder.appendChild(outerSpan); | ||
+ | var cookiePos = document.cookie.indexOf("hidetoc="); | ||
+ | <!--if (cookiePos > -1 && document.cookie.charAt(cookiePos + 8) == 1) { | ||
+ | toggleToc(); | ||
+ | }--> | ||
+ | } | ||
+ | } | ||
</html> | </html> | ||
Revision as of 07:25, 30 October 2008
AAaAbBCDDaDbDb1Db2Db3E |