forked from assaf/zombie
/
_header.html
34 lines (34 loc) · 940 Bytes
/
_header.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<html>
<head>
<script>
function subst() {
var vars={};
var x=document.location.search.substring(1).split('&');
for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
for(var i in x) {
var y = document.getElementsByClassName(x[i]);
for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
</script>
<style>
body { margin: 0; padding: 0; height: 2em }
.header {
font-size: 10pt;
margin: 0;
padding: 0;
border-bottom: 1px solid #ccc;
width: 100%;
}
</style>
</head>
<body onload="subst()">
<table class="header">
<tr>
<td class="section"></td>
<td style="text-align:right"><span class="page"></span></td>
</tr>
</table>
</body>
</html>