-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
24 lines (24 loc) · 834 Bytes
/
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
<html>
<head><style>
@import url('https://fonts.googleapis.com/css?family=Inconsolata');
body {
font-family: 'Inconsolata', sans-serif;
font-size: 14px;
}
</style></head>
<body>
<div id='content'></div>
<script>
var content = "";
fetch("/rern/chip.json")
.then(res => res.json())
.then(chipData => {
for (chip in chipData) {
content += `<img src="chip/${chip.replace('+','')}.png"> ${chip}<br>${chipData[chip].desc}<br>Type: ${chipData[chip].type}<br>Trader Rank: ${chipData[chip].rank}<br><br>`;
console.log(`${chip} loaded`);
}
document.querySelector('#content').innerHTML += content;
});
</script>
</body>
</html>