preamble.html 964 B

1234567891011121314151617181920212223242526
  1. <script type="text/javascript">
  2. var _gaq = _gaq || [];
  3. _gaq.push(['_setAccount', 'UA-7691209-1']);
  4. _gaq.push(['_trackPageview']);
  5. (function() {
  6. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  7. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  8. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  9. })();
  10. document.addEventListener('DOMContentLoaded',function() {
  11. document.getElementById("table-of-contents").onclick = function() {
  12. var elem = document.getElementById("text-table-of-contents");
  13. elem.style.display = elem.style.display == "block" ? "none" : "block";
  14. }
  15. });
  16. var url = document.location.href;
  17. var orgsource = url.substring(0, url.lastIndexOf("."))+".org.html";
  18. function show_org_source(){
  19. document.location.href = orgsource;
  20. }
  21. </script>