-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgames_directory_top.html
More file actions
355 lines (315 loc) · 9.02 KB
/
games_directory_top.html
File metadata and controls
355 lines (315 loc) · 9.02 KB
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
<!DOCTYPE html>
<html>
<head>
<title>FreeBSD Games Directory</title>
<style>
.footer a { color: initial; text-decoration: none; border-bottom:1.5px solid blue;}
.footer a:hover { color: blue; text-decoration: underline; border-bottom: none; }
#myInput,
html,
body {
font-family: "Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville,
"Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow",
"New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif;
}
body {
width: max-content;
border: none!important;
}
table {
/* table-layout: fixed; */
display: block;
margin: 0.5vh 0.5vw;
border-collapse: collapse;
font-size: calc(0.8em + .1vw);
width: calc(100% - .2vw);
}
th {
text-align: center;
border:1.5px solid black;
background-color: beige;
}
tr {
border:1.5px solid black;
}
th, td {padding: 3px;
border:1.5px solid black;
}
table, th, td, tr {
border-collapse: collapse;
font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter",
"DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
font-weight: normal;
font-style: normal;
line-height: initial;
overflow-wrap: break-word;
text-align: left;
word-wrap: break-word;
white-space: pre-wrap;
}
tr:nth-child(2n){background-color:#eee;}
tr:nth-child(2n):hover{background-color: #efef99;}
tr:nth-child(2n+1){background-color:#ddd;}
tr:nth-child(2n+1):hover{background-color: #dfdf99;}
#myInput {
width: 22em;
font-size:calc(.8em + .2vw);
padding: 0.4px 3px;
border: 1px solid #ddd;
margin: 0.25px 1px;
}
/* individual checkboxes */
div.hidecol {
font-size:calc(.8em + .2vw);
border:1px solid black;
margin: 0.25px 1px;
max-width: max-content;
padding: 0.4px 3px;
display: inline-block; /* seems this needs to be here along with screwy continuous line of divs to display as desired */
}
th.banner,
tr.banner:hover,
tr.banner{
background-color: rgb(150, 150, 150);
overflow-wrap: normal;
text-align: left;
word-wrap: initial;
white-space: initial;
}
#overlay {
position: fixed;
display: none;
width: 40%;
height: 26%;
top: 25%;
left: 30%;
right: 25%;
bottom:25%;
background-color: rgba(10,10,10,0.95);
border: .45em solid red;
box-shadow: 3px 3px 7px 5px rgba(0,0,0,0.75);
z-index: 2;
cursor: pointer;
}
#text{
position: absolute;
top: 52%;
left: 50%;
font-size: calc(0.75em + .6vw);
color: white;
width: 90%;
transform: translate(-52%,-54%);
}
div.table,
div.footer {
display: block;
}
div.footer {
position: relative;
bottom: 0px;
left: 0.5vw;
right: 0.5vw;
padding-top: 0.15vh;
padding-bottom: 0.15vh;
margin-bottom: 8px;
height: calc(max-content + 0.3vh);
display: block;
}
span.comment {
max-height: max-content;
width: max-content;
font-style: italic;
font-size: 1.05em;
font-size:calc(.9em + .2vw);
top: 30px;
display: block;
}
span.maint a {
text-decoration: underline;
}
span.maint {
color: purple;
background-color: #40FF40;
padding-left: .195em;
padding-right: .195em;
padding-top: .13em;
}
span.formlabel {
font-weight: 600;
font-style: italic;
font-size: calc(.8em + .2vw);
}
hr.break {
width:78%;
margin-top: .6em;
margin-bottom: .3em;
}
/* game name */
th.column0,
td.column0{
display: table-cell;
}
/* port name */
th.column1,
td.column1 {
display: table-cell;
}
/* executables */
th.column2,
td.column2 {
width: calc(4.5em + .4vw);
word-wrap: normal;
display: table-cell;
}
/* pkg name */
th.column3,
td.column3 {
display: table-cell;
}
/* type */
th.column4,
td.column4 {
display: table-cell;
}
/* subtype */
th.column5,
td.column5 {
width: max-content;
word-wrap: normal;
overflow-wrap: break-word!important;
display: table-cell;
}
/* comment -- combined with long desc */
/* long desc */
th.column6,
td.column6 {
overflow-x: auto;
overflow-y: auto;
width: calc(25.5em + .4vw);
display: table-cell;
}
/* supplemental */
th.column7,
td.column7 {
overflow-x: auto;
overflow-y: auto;
display: table-cell;
}
/* help */
th.column8,
td.column8 {
overflow-x: auto;
overflow-y: auto;
width: calc(25.5em + .4vw);
display: table-cell;
}
/* anim */
th.column9,
td.column9 {
width: calc(11.5em + .4vw);
display: table-cell;
}
td.column9 img{
width: calc(11.5em + .4vw);
}
/* shot */
th.column10,
td.column10 {
width: calc(11.5em + .4vw);
display: table-cell;
}
td.column10 img{
width: calc(11.5em + .4vw);
}
p.maint {
word-wrap: normal;
width: 100%;
}
</style>
<script>
function hide_show_table(col_name)
{
var checkbox_val=document.getElementById(col_name).value;
if(checkbox_val=="hide")
{
var all_col=document.getElementsByClassName(col_name);
for(var i=0;i<all_col.length;i++)
{
all_col[i].style.display="none";
}
document.getElementById(col_name+"_head").style.display="none";
document.getElementById(col_name).value="show";
}
else
{
var all_col=document.getElementsByClassName(col_name);
for(var i=0;i<all_col.length;i++)
{
all_col[i].style.display="table-cell";
}
document.getElementById(col_name+"_head").style.display="table-cell";
document.getElementById(col_name).value="hide";
}
}
</script>
<script>
function on() {
document.getElementById("overlay").style.display = "block";
}
function off() {
document.getElementById("overlay").style.display = "none";
}
</script>
</head>
<body>
<div id="overlay" onclick="off()">
<div id="text">
<p class="maint">
This port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:
<a href="https://bugs.freebsd.org/bugzilla">https://bugs.freebsd.org/bugzilla</a>
More information about port maintainership is available at:
<a href="https://docs.freebsd.org/en/articles/contributing/#ports-contributing">https://docs.freebsd.org/en/articles/contributing/#ports-contributing</a>
</p>
</div>
</div>
<table id="myTable">
<tr class="banner">
<th class="banner" colspan="11">
<span class="comment">A bit more detail in an easy form for those things we have in ports..</span>
<h1>FreeBSD Games Directory</h1>
<div class="hideform">
<form id="config"> <!-- screwy div formatting below so it parses as one continuous line and renders as such -->
<span class="formlabel">Toggle Columns: </span>
<div class="hidecol"><label for="game">Game name</label><input type="checkbox" id="column0" onchange="hide_show_table(this.id);" value="hide" Checked></div><div
class="hidecol"><label for="port">Port name</label><input type="checkbox" id="column1" onchange="hide_show_table(this.id);" value="hide" Checked></div><div
class="hidecol"><label for="exec">Executable</label><input type="checkbox" id="column2" onchange="hide_show_table(this.id);" value="hide" Checked></div><div
class="hidecol"><label for="pkgn">Pkg name</label><input type="checkbox" id="column3" onchange="hide_show_table(this.id);" value="hide" Checked></div><div
class="hidecol"><label for="type">Type</label><input type="checkbox" id="column4" onchange="hide_show_table(this.id);" value="hide" Checked></div><div
class="hidecol"><label for="subt">Sub-type</label><input type="checkbox" id="column5" onchange="hide_show_table(this.id);" value="hide" Checked></div><div
class="hidecol"><label for="long">Long description</label><input type="checkbox" id="column6" onchange="hide_show_table(this.id);" value="hide" Checked></div><div
class="hidecol"><label for="help">Help Output</label><input type="checkbox" id="column7" onchange="hide_show_table(this.id);" value="hide" Checked></div><div
class="hidecol"><label for="supp">Supplemental Info</label><input type="checkbox" id="column8" onchange="hide_show_table(this.id);" value="hide" Checked></div><div
class="hidecol"><label for="shot">Screenshot</label><input type="checkbox" id="column9" onchange="hide_show_table(this.id);" value="hide" Checked></div><div
class="hidecol"><label for="anim">Animation</label><input type="checkbox" id="column10" onchange="hide_show_table(this.id);" value="hide" Checked></div>
<!-- <input type="text" id="myInput" oninput="w3.advancedFilterHTML('#myTable', '.item', this.value)" class="w3-input" placeholder="Filter for text.."> -->
</form>
</div>
</th>
</tr>
<tr class="header">
<th id="column0_head" onclick="sortTable(0)" >Game name</th>
<th id="column1_head" onclick="sortTable(1)" >Port name</th>
<th id="column2_head" onclick="sortTable(2)" >Executable(s)</th>
<th id="column3_head" onclick="sortTable(3)" >Pkg name</th>
<th id="column4_head" onclick="sortTable(4)" >Type</th>
<th id="column5_head" onclick="sortTable(5)" >Sub-type(s)</th>
<th id="column6_head" onclick="sortTable(6)" >Port: Makefile Comment, Long Description</th>
<th id="column7_head" onclick="sortTable(7)" >Help Output</th>
<th id="column8_head" onclick="sortTable(8)" >Supplemental information</th>
<th id="column9_head" onclick="sortTable(9)" >Screenshot</th>
<th id="column10_head" onclick="sortTable(10)" >Animation</th>
</tr>
<!-- </div> --> <!-- header -->
<!-- Generated html -->