<!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.2</title>
</head>

<body>
  <div id="title">
    <h1>Nintendo Switch Payload Loader</h1>
    <p>Fusee Launcher portato a JavaScript usando WebUSB.</p>
    <div id="disclaimer">
  <p>
    Il source puo essere trovato a <a href="https://github.com/ElijahZAwesome/web-cfw-loader/">GitHub</a> (o premendo guarda source, ma non c'รจ backend!).
    Portato da <a href="https://github.com/reswitched/fusee-launcher">fusee-launcher</a>.
    Grazie tante a ktemkin e ReSwitched, e non dimentichiamoci <br><a href="https://atlas44.s3-us-west-2.amazonaws.com/web-fusee-launcher/index.html">Atlas44 e il suo sito</a> come punto di inizio per questo.
  </p>
  </div>
  </div>
  <br>
  
  <button class="btn" id="instructionsbutton" onclick="openInstructions();">Istruzioni</button>
  <button class="btn" id="infobutton" onclick="openInfo();">Info</button>

  <div id="infodiv"></div>
  
  <div>
  <h1>Carica un payload:</h1>
  <div>
    <form id="mainForm">
      <p>
        <input type="radio" name="payload" id="instaboot" value="instaboot" checked>
        <label for="instaboot">Avvia istantaneamente CFW (5.0.x)</label>
      </p>

      <p>
        <input type="radio" name="payload" id="hekate v5" value="hekate v5">
        <label for="hekate v5">Hekate per Switch su 5.0.X</label>
      </p>
      
      <p>
        <input type="radio" name="payload" id="hekate v4" value="hekate v4">
        <label for="hekate v4">Hekate per Switch su 5.0.X</label>
      </p>
      
      <p>
        <input type="radio" name="payload" id="fusee" value="fusee">
        <label for="fusee">(Re)Switched payload di test (fusee)</label>
      </p>

      <p>
        <input type="radio" name="payload" id="uploaded" value="uploaded">
        <label for="uploaded">Carica payload:<br></label>
        <input type="file" id="payloadUpload" accept=".bin">
      </p>
      
      <p>
        <input type="checkbox" name="shouldDebug" id="shouldDebug">
        <label for="shouldDebug">Ottieni byte array del payload (no exploit)</label>
      </p>
    </form>

    <button class="btn" id="goButton">Avvia Payload!</button>
  </div>
  </div>

  <h3>Log:</h3>
  <div id="output"></div><br>
    <button class="btn" id="clearlogsbutton" onclick="clearLog();">Pulisci logs</button>

  <script src="./payloads.js"></script>
  <script src="./main.js"></script>
</body>

</html
  >