Skip to content

Commit 39bf1ea

Browse files
committed
more minifig codes
1 parent 18120f1 commit 39bf1ea

File tree

3 files changed

+36
-40
lines changed

3 files changed

+36
-40
lines changed

minifig/app.js

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,39 @@ const figtable = [
1313
["The Lady of Pain", 6502844, 6506745],
1414
["Szass Tam", 6502847, 6506748],
1515
["Tasha the Witch Queen", 6502846, 6506747],
16+
17+
// Spider man
18+
["Miles Morales / Spider-Man", 6568959, 6568947, 6564838],
19+
["Miguel O'Hara / Spider-Man 2099", 6568960, 6568948, 6564839],
20+
["Charlotte Webber / Sun-Spider", 6568961, 6568949, 6564840],
21+
["Gwen Stacy / Spider-Gwen", 6568962, 6568950, 6564841],
22+
["Miles G. Morales / Prowler", 6568963, 6568951, 6564842],
23+
["Hobie Brown / Spider-Punk", 6568964, 6568952, 6564843],
24+
["Pavitr Prabhakar / Spider-Man India", 6568965, 6568953, 6564844],
25+
[
26+
"Peter B. Parker / Spider-Man & May 'Mayday' Parker",
27+
6568966,
28+
6568954,
29+
6564845,
30+
],
31+
["Margo Kess / Spider-Byte", 6568967, 6568955, 6564846],
32+
["Petra Parker / Cyborg Spider-Woman", 6568968, 6568956, 6564847],
33+
["Patrick O'Hara / Web-Slinger", 6568969, 6568957, 6564848],
34+
["Peter Parker / Werewolf Spider-Man", 6568970, 6568958, 6564849],
35+
36+
// Series 28 Animals
37+
["Parrot Costume", 6584374, 6576496],
38+
["Lion Costume", 6584375, 6576497],
39+
["Crocodile Costume", 6584376, 6576498],
40+
["Frog Costume", 6584377, 6576499],
41+
["Dalmation Costume", 6584378, 6576500],
42+
["Goldfish Costume", 6584379, 6576501],
43+
["Cute Bunny Costume", 6584380, 6576502],
44+
["Peacock Costume", 6584381, 6576503],
45+
["Fluffy Cat Costume", 6584382, 6576504],
46+
["Koala Costume", 6584383, 6576505],
47+
["Dolphin Costume", 6584384, 6576506],
48+
["Monkey Costume", 6584385, 6576507],
1649
];
1750

1851
document.getElementById("fig-table").innerHTML += `
@@ -84,7 +117,7 @@ function success(result) {
84117
// find code in any of the arrays in figtable array
85118

86119
const figIndex = figtable.findIndex((fig) =>
87-
fig.includes(parseInt(code, 10))
120+
fig.includes(parseInt(code, 10)),
88121
);
89122
const fig = figtable[figIndex];
90123
const output = `${code}\t${fig[0]}`;

minifig/index.html

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@
1212
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
1313
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
1414
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
15-
<meta name="apple-mobile-web-app-capable" content="yes">
16-
<meta name="apple-mobile-web-app-status-bar-style" content="black">
17-
<meta name="apple-mobile-web-app-title" content="My Web App">
18-
<link rel="apple-touch-icon" href="/android-chrome-192x192.png">
19-
<link rel="manifest" href="/manifest.json">
15+
<link rel="manifest" href="/site.webmanifest">
2016
</head>
2117

2218
<body>
@@ -43,17 +39,4 @@ <h1>Series 25 Lego Mini-Figure Decoder</h1>
4339
</script>
4440
</body>
4541

46-
<script>
47-
if ('serviceWorker' in navigator) {
48-
window.addEventListener('load', () => {
49-
navigator.serviceWorker.register('/service-worker.js')
50-
.then((registration) => {
51-
console.log('Service Worker registered with scope:', registration.scope);
52-
}, (err) => {
53-
console.log('Service Worker registration failed:', err);
54-
});
55-
});
56-
}
57-
</script>
58-
5942
</html>

minifig/site.webmanifest

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1 @@
1-
{
2-
"name": "My Web App",
3-
"short_name": "WebApp",
4-
"description": "An example of a Progressive Web App",
5-
"start_url": "/index.html",
6-
"display": "standalone",
7-
"background_color": "#ffffff",
8-
"theme_color": "#000000",
9-
"icons": [
10-
{
11-
"src": "/android-chrome-192x192.png",
12-
"sizes": "192x192",
13-
"type": "image/png"
14-
},
15-
{
16-
"src": "/android-chrome-512x512.png",
17-
"sizes": "512x512",
18-
"type": "image/png"
19-
}
20-
]
21-
}
1+
{"name":"LEGO Mini-Figure Decoder","short_name":"LMD","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}

0 commit comments

Comments
 (0)