-
Notifications
You must be signed in to change notification settings - Fork 0
/
kwiki3.html
179 lines (174 loc) · 5.54 KB
/
kwiki3.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"><html><head><title>Kingman Hall: Sandbox</title>
<link rel="stylesheet" href="style.css"></head><body>
<!-- This rainbow is an image; the title is superimposed on the image. -->
<a href="/"><div class="banner"><img src="spectrum.png">
<table cellspacing="0" cellpadding="0" border="0"><tr>
<td> </td>
<td>K</td>
<td>·</td>
<td>I</td>
<td>·</td>
<td>N</td>
<td>·</td>
<td>G</td>
<td>·</td>
<td>M</td>
<td>·</td>
<td>A</td>
<td>·</td>
<td>N</td>
<td> </td>
<td> </td>
<td> </td>
<td>H</td>
<td>·</td>
<td>A</td>
<td>·</td>
<td>L</td>
<td>·</td>
<td>L</td>
<td> </td>
</tr></table>
</div></a>
<style>
.wiki .current { font-weight: bold; }
.wiki .meta { float: right; text-align: right; }
.wiki .meta .id { font-weight: bold; }
.wiki .tags { color: #a00; }
.wiki h3 { margin: 2em 0 0; }
.wiki h1.title { margin-bottom: 0; }
.wiki div.tags { margin: 0.5em 0 1.5em; padding: 0; }
.wiki div.tags div.text { margin: 0; padding: 0; }
.wiki div.tags .form { margin: -3px -4px; padding: 0; visibility: hidden; }
.wiki div.tags .form input { margin: 0; }
.wiki table.tag-menubar { margin-top: 3px; }
.wiki .tag-menubar td { padding: 0; color: #a00; }
table.tag-menubar td.arrow { text-align: center; font-size: 7px; color: #fcc;
cursor: pointer; padding-bottom: 5px; }
table.tag-menubar td.arrow:hover { color: #a00; }
.wiki table.tags td { padding: 0 0 0 5px; }
.wiki table.tags td.field { width: 99%; padding-left: 0; padding-right: 5px; }
.wiki input.title { font-size: 2em; font-weight: normal; }
.wiki .label { margin: 1em 0 2px; }
.wiki .body { font-family: "Lucida Grande", Verdana, sans-serif; }
.wiki .actions { margin: 1em 0; }
.wiki form { margin-right: 5px; }
.wiki textarea, .wiki input.text { width: 100%; }
.wiki th { text-align: left; font-weight: bold; }
.wiki th, .wiki td { padding-top: 2px; }
.wiki .number, .wiki .version, .wiki .datedesc { padding-right: 1em; }
.wiki .number, .wiki .version, .wiki .date { text-align: right; }
.wiki th.datedesc { text-align; left; }
.wiki td.datedesc { text-align: right; }
.datedesc { color: #669; }
.wiki table.pages .title { padding-left: 1em;
font-size: 100%; font-weight: bold; }
.wiki div.history { float: right; }
.wiki .history .current { font-weight: bold; }
.wiki .history .add-count { color: #0a0; }
.wiki .history .remove-count { color: #a00; }
.wiki .history .words { text-align: right; padding-right: 1em; }
.wiki .history .delta { color: #aaa; }
.wiki .history .tag { color: #c88; }
.wiki .history .edit { color: #88c; }
.wiki .history .title { font-size: 100%; font-weight: bold; color: #00f; }
a.wiki:hover { text-decoration: none; border-bottom: 1px dotted #00f; }
a.missing { color: #060; }
a.missing:hover { text-decoration: none; border-bottom: 1px dotted #060; }
</style>
<script>
var tags_editing = 0, just_cancelled = 0;
var tags, tags_form, tags_field, tags_original;
var tags_submit, tags_cancel;
function $(id) {
return document.getElementById(id);
}
function show_tag_form(event) {
if (just_cancelled) {
just_cancelled = 0;
} else {
tags_form.style.visibility = 'visible';
}
}
function hide_tag_form(event) {
if (tags_field.value == tags_original.value) {
tags_editing = 0;
}
if (!tags_editing) {
tags_form.style.visibility = 'hidden';
}
}
function focus_tag_form() {
tags_editing = 1;
show_tag_form();
}
function cancel_tag_form() {
tags_field.value = tags_original.value;
tags_editing = 0;
just_cancelled = 1;
hide_tag_form();
}
function show_menu(tag) {
alert(tag);
}
</script>
<div class="wiki" id="wiki">
<div class="meta" id="meta">
<a href=".">index</a> ·
<span class="current">view</span> ·
<a href="./__id__:edit">edit</a> ·
<a href="./__id__:history">history</a><br>
version __version__ (__date__)
</div>
<h1 class="title">__title__</h1>
<div style="position: relative">
<div class="text" style="position: absolute; top: 0; left: 0">
<table class="tag-menubar" cellspacing=0 cellpadding=0 border=0>
<tr><td>home</td><td>, </td><td>policy</td></tr>
<tr><td class="arrow" onclick="show_menu('home')">▼</td><td></td>
<td class="arrow" onclick="show_menu('policy')">▼</td></tr>
</table>
<!--
<tr style="font-size: 8px">
<td align=center>v</td><td></td>
<td align=center>v</td></tr></table>
-->
</div>
<div class="tags" id="tags"
onmouseover="show_tag_form(event)" onmouseout="hide_tag_form(event)">
<div class="form" id="tags-form">
<form method=post action="./__id__:save">
<table cellpadding=0 cellspacing=0 class="tags"><tr><td class="field">
<input type=hidden name=tags-original id="tags-original" value="home, policy">
<input class="tags text" id="tags-field" type=text name=tags size=50
value="home, policy" onfocus="focus_tag_form()">
</td><td>
<input type=submit name=submit id="tags-submit" value="save tags">
</td><td>
<input type=button id="tags-cancel" value="cancel" onclick="cancel_tag_form()">
</td></tr></table>
</form></div>
</div>
</div>
<!--
<table cellspacing=0 cellpadding=0 border=0>
<tr><td>kng</td><td>, </td>
<td>official</td><td>, </td><td>policy</td></tr>
<tr style="font-size: 6px">
<td align=center>v</td><td></td>
<td align=center>v</td><td></td>
<td align=center>v</td>
</tr>
</table>
-->
__body__
</div>
<script>
tags = $('tags');
tags_form = $('tags-form');
tags_field = $('tags-field');
tags_submit = $('tags-submit');
tags_cancel = $('tags-cancel');
tags_original = $('tags-original');
</script>