mirror of
https://github.com/zeldaret/website.git
synced 2026-09-28 14:49:50 -04:00
add progress page
This commit is contained in:
+37
-34
@@ -1,34 +1,37 @@
|
||||
<!doctype html>
|
||||
<html lang=en>
|
||||
<head>
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="css.css" />
|
||||
<title>Z64</title>
|
||||
</head>
|
||||
<body class="bg-dark">
|
||||
<div class="jumbotron vertical-center bg-dark">
|
||||
<div class="container text-center">
|
||||
<img src="img/logo.png" style="width: 200px; height: 200px" />
|
||||
</div>
|
||||
<div class="container my-5 py-2" style="background-color: #fffaaa">
|
||||
<h1 class="text-center">Zelda 64 Reverse Engineering</h1>
|
||||
<h3>Join the discussion!</h3>
|
||||
<p>Discord: <a href="https://discord.zelda64.dev">discord.zelda64.dev</a></p>
|
||||
|
||||
<h3>Development</h3>
|
||||
<p>Github: <a href="https://github.com/zeldaret/">github.com/zeldaret</a></p>
|
||||
<p>OOT Trello: <a href="https://trello.com/b/qUqnUkWY/ocarina-of-time-decompilation">trello.com/b/qUqnUkWY/ocarina-of-time-decompilation</a></p>
|
||||
<p>MM Trello: <a href="https://trello.com/b/ruxw9n6m/majoras-mask-decompilation">https://trello.com/b/ruxw9n6m/majoras-mask-decompilation</a></p>
|
||||
|
||||
<h3>Resources</h3>
|
||||
<p><a href="https://www.h-schmidt.net/FloatConverter/IEEE754.html">Hex to float converter</a></p>
|
||||
<p><a href="https://hackmd.io/m3E7g2YaSxiwUv9QKBLYyA">Gfx Decompilation Guide</a></p>
|
||||
<p><a href="https://docs.google.com/spreadsheets/d/1hiP0JH_rEcq-s8vOnnoNPy2ooXhxl8qas4HItn30-Oc">OoT Debug Source Code Structure</a></p>
|
||||
<a href="https://wiki.cloudmodding.com/">CloudModding Wiki</a>
|
||||
<ul>
|
||||
<li><a href="https://wiki.cloudmodding.com/oot/Actor_List_(Variables)">Actor List</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<!doctype html>
|
||||
<html lang=en>
|
||||
|
||||
<head>
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="css.css" />
|
||||
<title>Z64</title>
|
||||
</head>
|
||||
|
||||
<body class="bg-dark">
|
||||
<div class="jumbotron vertical-center bg-dark">
|
||||
<div class="container text-center">
|
||||
<img src="img/logo.png" style="width: 200px; height: 200px" />
|
||||
</div>
|
||||
<div class="container my-5 py-2" style="background-color: #fffaaa">
|
||||
<h1 class="text-center">Zelda 64 Reverse Engineering</h1>
|
||||
<h3>Join the discussion!</h3>
|
||||
<p>Discord: <a href="https://discord.zelda64.dev">discord.zelda64.dev</a></p>
|
||||
|
||||
<h3>Development</h3>
|
||||
<p>Github: <a href="https://github.com/zeldaret/">github.com/zeldaret</a></p>
|
||||
<p>OOT Trello: <a href="https://trello.com/b/qUqnUkWY/ocarina-of-time-decompilation">trello.com/b/qUqnUkWY/ocarina-of-time-decompilation</a></p>
|
||||
<p>MM Trello: <a href="https://trello.com/b/ruxw9n6m/majoras-mask-decompilation">https://trello.com/b/ruxw9n6m/majoras-mask-decompilation</a></p>
|
||||
|
||||
<h3>Resources</h3>
|
||||
<p><a href="https://www.h-schmidt.net/FloatConverter/IEEE754.html">Hex to float converter</a></p>
|
||||
<p><a href="https://hackmd.io/m3E7g2YaSxiwUv9QKBLYyA">Gfx Decompilation Guide</a></p>
|
||||
<p><a href="https://docs.google.com/spreadsheets/d/1hiP0JH_rEcq-s8vOnnoNPy2ooXhxl8qas4HItn30-Oc">OoT Debug Source Code Structure</a></p>
|
||||
<a href="https://wiki.cloudmodding.com/">CloudModding Wiki</a>
|
||||
<ul>
|
||||
<li><a href="https://wiki.cloudmodding.com/oot/Actor_List_(Variables)">Actor List</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,28 @@
|
||||
<!doctype html>
|
||||
<html lang=en>
|
||||
|
||||
<head>
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="progress.css" />
|
||||
<script type="text/javascript" src="progress.js"></script>
|
||||
<title>Z64</title>
|
||||
</head>
|
||||
|
||||
<body class="bg-dark">
|
||||
<div class="jumbotron vertical-center bg-dark">
|
||||
<div class="container text-center">
|
||||
<img src="img/logo.png" style="width: 200px; height: 200px" />
|
||||
</div>
|
||||
<div class="container my-5 py-2" style="background-color: #fffaaa">
|
||||
<h1 class="text-center">Current Progress</h1>
|
||||
<p>Last Change: <span class="last_change"></span></p>
|
||||
<br>
|
||||
<p>Total: <span class = total_percent></span></p>
|
||||
<p>Boot: <span class="boot_percent"></span></p>
|
||||
<p>Code: <span class="code_percent"></span></p>
|
||||
<p>Overlays: <span class="overlay_percent"></span></p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
var url = "https://zelda64.dev/reports/progress.json";
|
||||
|
||||
function getJSON(file, callback) {
|
||||
var req = new XMLHttpRequest();
|
||||
req.overrideMimeType("application/json");
|
||||
req.open("GET", file, true);
|
||||
req.onreadystatechange = function() {
|
||||
if (req.readyState === 4 && req.status == "200") {
|
||||
callback(req.responseText);
|
||||
}
|
||||
}
|
||||
req.send(null);
|
||||
}
|
||||
|
||||
function setText(classname, value)
|
||||
{
|
||||
var elem = document.getElementsByClassName(classname);
|
||||
if (elem.length == 1)
|
||||
{
|
||||
console.log(value);
|
||||
elem[0].innerText = value;
|
||||
}
|
||||
}
|
||||
|
||||
window.onload = function() {
|
||||
|
||||
getJSON(url, function(text){
|
||||
var json = JSON.parse(text);
|
||||
var progress = JSON.parse(json);
|
||||
var timestamp = Object.keys(progress.reports)[0];
|
||||
var date = new Date(timestamp.split(".")[0] *1000);
|
||||
setText("last_change", date);
|
||||
|
||||
var keys = Object.keys(progress.reports[timestamp]);
|
||||
keys.forEach(e => {
|
||||
setText(e, progress.reports[timestamp][e] + "%");
|
||||
});
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user