summaryrefslogtreecommitdiff
path: root/template.html
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-10-31 22:10:45 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-10-31 22:10:45 -0700
commit601908591b553b87901bb1122ff4e29d1decd6b1 (patch)
treea69ad063e0e5d0db8b5d99b6389a202188a8f3de /template.html
parentb14ece9e725175f98011dda8749d046d25b2f2bb (diff)
parent45ca1bc3867a48c75a6c464cf2420e25a8ef74c6 (diff)
Merge branch 'master' into cmake
Diffstat (limited to 'template.html')
-rw-r--r--template.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/template.html b/template.html
index 0eaf299..bc5ba26 100644
--- a/template.html
+++ b/template.html
@@ -46,7 +46,20 @@ pre.html { background-color: #C9CaCE; }
pre.html span.space:after {
border: 1px solid #666;
}
+#watermark {
+ position:fixed;
+ bottom:0px;
+ left:0px;
+ padding: 1em;
+ width: 100%;
+ font-size: 120%;
+ opacity:0.7;
+ z-index:99;
+ color: white;
+}
+#watermark a { color: white; }
div.examplenum { font-size: 82%; text-align: left; }
+a.dingus { color: red; cursor: pointer; }
a.footnoteRef > sup:before {
content: "[";
}
@@ -58,6 +71,21 @@ a.footnoteRef > sup {
font-size: 100%;
}
</style>
+<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
+<script type="text/javascript">
+$$(document).ready(function() {
+ $$("div.example").each(function(e) {
+ var t = $$(this).find('pre.markdown > code').text();
+ $$(this).find('a.dingus').click(function(f) {
+ window.open('/dingus.html?text=' +
+ encodeURIComponent(t.replace(/→/g,"\t")));
+ });
+ });
+ $$("pre.markdown").dblclick(function(e) { window.open('/dingus.html?text=' +
+ encodeURIComponent($$(this).find('code').text()));
+ });
+});
+</script>
</head>
<body>
$if(title)$
@@ -72,6 +100,7 @@ $for(author)$<span class="author">$author$</span>$sep$; $endfor$
<div id="TOC">
$toc$
</div>
+<div id="watermark"></div>
$body$
</body>
</html>