rm old index.js

This commit is contained in:
Alex Bates 2021-02-21 02:31:19 +00:00
parent 2369ce48c2
commit d3f2b40a58
No known key found for this signature in database
GPG Key ID: 7531C5E1D6B1CA9A

View File

@ -1,14 +0,0 @@
import moment from "moment"
import("./progress.js").then(async ({ fetchData, functionsChart }) => {
const data = await fetchData()
functionsChart(data, document.getElementById("progress-chart"))
const first = data[0]
const latest = data[data.length - 1]
document.getElementById("matched-rom-percent").innerText = Math.round((latest.matchingBytes / latest.totalBytes) * 10000) / 100 + "% matched" // TODO: include data
document.getElementById("functions-ratio").innerText = latest.matchingFuncs + "/" + latest.totalFuncs
document.getElementById("play-time").innerText = moment(latest.timestamp).from(first.timestamp, true)
}).catch(console.error)