web-cfw-loader/index.html

75 lines
2.3 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="style.css" />
<link href="favicon.png" rel="icon" type="image/x-icon" />
<title>Switch Payload Loader v1.1</title>
</head>
<body>
<div id="title">
<h1>Nintendo Switch Payload Loader</h1>
<p>Fusee Launcher ported to JavaScript using WebUSB.</p>
<div id="disclaimer">
<p>
Source can be found on <a href="https://github.com/ElijahZAwesome/web-cfw-loader/">GitHub</a> (or by hitting view source, there is no backend!).
Ported from <a href="https://github.com/reswitched/fusee-launcher">fusee-launcher</a>.
Thanks to ktemkin and ReSwitched for Fusée Gelée and a ton of other things!
</p>
</div>
</div>
<button class="btn" id="instructionsbutton" onclick="openInstructions();">Instructions</button>
<button class="btn" id="infobutton" onclick="openInfo();">Info</button>
<div id="infodiv">
</div>
<div>
<h1>Load a Payload:</h1>
<div>
<form id="mainForm">
<p>
<input type="radio" name="payload" id="hekate v5" value="hekate v5" checked>
<label for="hekate v5">Hekate for 5.0.x Switches</label>
</p>
<p>
<input type="radio" name="payload" id="hekate v4" value="hekate v4">
<label for="hekate v4">Hekate for 4.x Switches</label>
</p>
<p>
<input type="radio" name="payload" id="fusee" value="fusee">
<label for="fusee">(Re)Switched test payload (fusee)</label>
</p>
<p>
<input type="radio" name="payload" id="uploaded" value="uploaded">
<label for="uploaded">Upload payload:<br></label>
<input type="file" id="payloadUpload" accept=".bin">
</p>
<p>
<input type="checkbox" name="shouldDebug" id="shouldDebug">
<label for="shouldDebug">Just output payload byte array</label>
</p>
</form>
<button class="btn" id="goButton">Run Payload!</button>
</div>
</div>
<h3>Logs:</h3>
<textarea cols="100" rows="15" id="output" readonly></textarea><br>
<button class="btn" id="clearlogsbutton" onclick="clearLog();">Clear Logs</button>
<script src="./fusee.bin.js"></script>
<script src="./main.js"></script>
</body>
</html>