-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
177 lines (173 loc) · 12.3 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<link rel="stylesheet" href="style.css">
<title>Nintendo Gameboy Game List</title>
<meta name="description" content="An interactive database of Nintendo™ Game Boy™ games.">
<link rel="canonical" href="https://catskull.net/gb-rom-database">
<meta name="robots" content="index, follow">
<meta property="og:title" content="Nintendo Gameboy Game List">
<meta property="og:description" content="An interactive database of Nintendo™ Game Boy™ games.">
<meta property="og:url" content="https://catskull.net/gb-rom-database">
<link rel="preload" as="fetch" href="https://catskull.net/gb-rom-database/games.min.json" type="application/json" crossorigin>
</head>
<body>
<div
x-data="{
search: '',
items: [],
fuse: {search: () => {return []}},
resultsCount: 0,
sortColumn: 'File Name',
sortDirection: 'ascending',
init() {
console.log('you are loved')
fetch('https://catskull.net/gb-rom-database/games.min.json')
.then(response => response.json())
.then(data => {
this.fuse = new window.Fuse(data, {
keys: ['name']
})
this.items = data
})
.catch(error => console.error('Error loading the items:', error))
},
get filteredItems() {
const items = this.search.length ? this.fuse.search(this.search).map(i => i.item) : this.items
this.resultsCount = items.length
return items.slice(0, 100)
}
}"
>
<header>
<div class="input-icon">
<input @keydown.window="$el.focus()" autofocus autocomplete="off" type="text" x-model.debounce.50ms="search" placeholder="Start typing..." class="search-input">
</div>
<small id="header-title">
GB ROM DB
</small>
<div id="file-stats" x-text="(resultsCount > 0 ? `${resultsCount}/` : '') + `${items.length} games`"></div>
</header>
<content>
<table>
<thead>
<tr>
<th class="left">
▼ File Name
</th>
<th class="left">ROM Name</th>
<th>ROM</th>
<th>RAM</th>
<th>Mapper</th>
<th>Region</th>
</tr>
</thead>
<tbody>
<template x-if="filteredItems.length > 0">
<template x-for="(item, index) in filteredItems" :key="Object.values(item).join('-') + '-' + index">
<tr>
<td class="left" x-text="item['name']" style="max-width:40vw;overflow-x:auto;white-space:nowrap;"></td>
<td class="left" x-text="item['title']"></td>
<td x-text="item['rom']"></td>
<td x-text="item['ram']"></td>
<td class="center-flex" style="cursor:help;" :title="item['mapper']">
<template x-if="/MBC[0-9]/.test(item['mapper'])">
<svg width="35" height="30" xmlns="http://www.w3.org/2000/svg">
<rect x="0" y="5" width="35" height="18" style="fill:none;stroke:black;stroke-width:2px" />
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" style="fill:black;font-size:12;font-weight:bold;font-style:italic;" x-text="item['mapper'].match(/MBC[0-9]/)[0]">
</text>
<line x1="2.5" y1="0" x2="2.5" y2="5" style="stroke:black;stroke-width:1px"/>
<line x1="7.5" y1="0" x2="7.5" y2="5" style="stroke:black;stroke-width:1px"/>
<line x1="12.5" y1="0" x2="12.5" y2="5" style="stroke:black;stroke-width:1px"/>
<line x1="17.5" y1="0" x2="17.5" y2="5" style="stroke:black;stroke-width:1px"/>
<line x1="22.5" y1="0" x2="22.5" y2="5" style="stroke:black;stroke-width:1px"/>
<line x1="27.5" y1="0" x2="27.5" y2="5" style="stroke:black;stroke-width:1px"/>
<line x1="32.5" y1="0" x2="32.5" y2="5" style="stroke:black;stroke-width:1px"/>
<line x1="2.5" y1="28" x2="2.5" y2="23" style="stroke:black;stroke-width:1px"/>
<line x1="7.5" y1="28" x2="7.5" y2="23" style="stroke:black;stroke-width:1px"/>
<line x1="12.5" y1="28" x2="12.5" y2="23" style="stroke:black;stroke-width:1px"/>
<line x1="17.5" y1="28" x2="17.5" y2="23" style="stroke:black;stroke-width:1px"/>
<line x1="22.5" y1="28" x2="22.5" y2="23" style="stroke:black;stroke-width:1px"/>
<line x1="27.5" y1="28" x2="27.5" y2="23" style="stroke:black;stroke-width:1px"/>
<line x1="32.5" y1="28" x2="32.5" y2="23" style="stroke:black;stroke-width:1px"/>
<g>
<line x1="5" y1="0" x2="5" y2="5" style="stroke:black;stroke-width:1px"/>
<line x1="10" y1="0" x2="10" y2="5" style="stroke:black;stroke-width:1px"/>
<line x1="15" y1="0" x2="15" y2="5" style="stroke:black;stroke-width:1px"/>
<line x1="20" y1="0" x2="20" y2="5" style="stroke:black;stroke-width:1px"/>
<line x1="25" y1="0" x2="25" y2="5" style="stroke:black;stroke-width:1px"/>
<line x1="30" y1="0" x2="30" y2="5" style="stroke:black;stroke-width:1px"/>
<line x1="5" y1="28" x2="5" y2="23" style="stroke:black;stroke-width:1px"/>
<line x1="10" y1="28" x2="10" y2="23" style="stroke:black;stroke-width:1px"/>
<line x1="15" y1="28" x2="15" y2="23" style="stroke:black;stroke-width:1px"/>
<line x1="20" y1="28" x2="20" y2="23" style="stroke:black;stroke-width:1px"/>
<line x1="25" y1="28" x2="25" y2="23" style="stroke:black;stroke-width:1px"/>
<line x1="30" y1="28" x2="30" y2="23" style="stroke:black;stroke-width:1px"/>
</g>
</svg>
</template>
<template x-if="item['mapper'].includes('ROM ONLY')">
<span>ROM Only</span>
</template>
<template x-if="item['mapper'].includes('MBC7')">
<span style="font-size:1.5rem;">↭</span>
</template>
<template x-if="item['mapper'].includes('SENSOR')">
<span style="font-size:1.5rem;">↻</span>
</template>
<template x-if="item['mapper'].includes('HuC')">
<span style="font-size:1.5rem;">🐝</span>
</template>
<template x-if="item['mapper'].includes('CAMERA')">
<span style="font-size:1.5rem;">📷</span>
</template>
<template x-if="item['mapper'].includes('MMM01')">
<span style="font-size:1.5rem;">🔠</span>
</template>
<template x-if="item['mapper'].includes('BANDAI')">
<img height="25" src="data:image/jpeg;base64,/9j/4QDWRXhpZgAATU0AKgAAAAgABwEGAAMAAAABAAIAAAESAAMAAAABAAEAAAEaAAUAAAABAAAAYgEbAAUAAAABAAAAagEoAAMAAAABAAIAAAITAAMAAAABAAEAAIdpAAQAAAABAAAAcgAAAAAAAABIAAAAAQAAAEgAAAABAAeQAAAHAAAABDAyMjGRAQAHAAAABAECAwCgAAAHAAAABDAxMDCgAQADAAAAAQABAACgAgAEAAAAAQAAAI2gAwAEAAAAAQAAAI6kBgADAAAAAQAAAAAAAAAAAAD/2wCEAAEBAQEBAQIBAQIDAgICAwQDAwMDBAYEBAQEBAYHBgYGBgYGBwcHBwcHBwcICAgICAgJCQkJCQsLCwsLCwsLCwsBAgICAwMDBQMDBQsIBggLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLC//dAAQAA//AABEIACgAKAMBIgACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RF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ydOLb5opPdN7aemh+zGvf8ABdH9vPX/ABVoXi248Q2CXOgyXDw+XpMKIwuIjEyyLvIdcEEDjDAHtivn340/8FNv2lPjl8Fbr4C+LrrTU8O3esy669vZ6ZFan7ZNcyXbuGVjjdPIzlcck1+dNFZ1M7x9RSjOtJp6PV+X+S+47sD4XcJYOpSq4XK6MJU2nFxpwXK4tuLVlo05St2uzO1a/stK0u41LUpVgt4I2eSRzhVVRkknsAK8Y/4XX8JP+hj0/wD7/LXUfGz/AJJB4m/7Blz/AOizX4X1eX4KFWm5S7/5HLxdxPisuxkKFCMWnFPVPu10a7H/2Q==">
</template>
<template x-if="item['mapper'].includes('RUMBLE')">
<span style="font-size:1.5rem;">📳</span>
</template>
<template x-if="item['mapper'].includes('BATTERY')">
<span style="font-size:1.5rem;">🔘</span>
</template>
<template x-if="item['mapper'].includes('TIMER')">
<span style="font-size:1.5rem;">⏲️</span>
</template>
</td>
<td>
<template x-if="item['destination'] === 'World'">
<span style="cursor:help;" title="World">🌎</span>
</template>
<template x-if="item['destination'] === 'Japan'">
<span style="cursor:help;" title="Japan">🇯🇵</span>
</template>
</td>
</tr>
</template>
</template>
</tbody>
</table>
</content>
<footer>
<img style="cursor:pointer;height:30px;"
referrerpolicy="no-referrer-when-downgrade"
src="https://likes.catskull.net?t=0"
onclick="fetch('https://likes.catskull.net',{method:'POST',referrerPolicy:'no-referrer-when-downgrade'}).then(()=>this.src='https://likes.catskull.net'.split('?')[0]+'?t='+Date.now())"
onmouseover="this.src='data:image/svg+xml;base64,CiAgCQkJPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHdpZHRoPSI2NCI+CiAgICAgICAgICA8cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ3aGl0ZSI+PC9yZWN0PgogIAkJCSAgPHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJzYW5zLXNlcmlmIiBkb21pbmFudC1iYXNlbGluZT0ibWlkZGxlIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIj7wn5GNIExpa2UhPC90ZXh0PgogIAkJCTwvc3ZnPgogIAkJ'"
onmouseout="this.src='https://likes.catskull.net?t=0'"
>
<div style="padding-right:0.5rem;right:0;" class="footer-link">
<small><a href="https://github.com/catskull/gb-rom-database" target="_blank" alt="source code link">source↗</a></small>
<small><a href="https://catskull.net" target="_blank" alt="homepage link">catskull.net</a></small>
</div>
</footer>
</div>
</body>
</html>