<!DOCTYPE HTML>
<html lang="en">
   <head>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <meta name="description" content="Generates cheatfiles for Super Mario Sunshine speedrun practice.">
      <link rel="stylesheet" href="style/style.css">
      <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
      <title>SMS GCT Generator</title>
   </head>
   <body onload="updateChangelog()">
      <div style="width:100%;overflow:hidden;">
         <div style="width: 400px; float: left;">
            <center>
               <select id="gameID" class="selectionHeader" onchange="updateCodelist()" autocomplete="off">
                  <option selected disabled hidden>Choose Version</option>
                  <option value="GMSE01">GMSE01 (NTSC-U)</option>
                  <option value="GMSP01">GMSP01 (PAL)</option>
                  <option value="GMSJ01">GMSJ01 (NTSC-J 1.0)</option>
                  <option value="GMSJ0A">GMSJ01 (NTSC-J 1.1/A)</option>
               </select>
               <ul id="checkList">
               </ul>
               <button id="downloadButton" onclick="generateGCT()" onmouseover="setButtonDescription(this)" style="visibility:hidden;">Download .GCT</button>
               <button id="dolphinDownloadButton" onclick="generateTXT(this)" onmouseover="setButtonDescription(this)"  style="visibility:hidden;">Dolphin INI</button>
               <button id="gcmDownloadButton" onclick="generateTXT(this)" onmouseover="setButtonDescription(this)" style="visibility:hidden;">GCM TXT</button>
            </center>
         </div>
         <div style="margin-left:420px;">
            <table id="warningMessage" style="display:none">
               <tr>
                  <th><a target="_blank" href="https://www.twitch.tv/gamesdonequick"><img src="img/twitch.png" width="40" height="40" alt="Twitch" /></a></th>
                  <th style="text-align:center">Watch <a target="_blank" href="https://twitch.tv/AverageTrey">AverageTrey</a> run 120 Shines at AGDQ 2018!<br />January 11th at 01:25am UTC.</th>
                  <th><a target="_blank" href="http://gamesdonequick.com/schedule"><img src="img/gdq.png" width="40" height="40" alt="GDQ" /></a></th>
               </tr>
            </table>
            <div id="descriptionBox" class="framed">
               <h2>Mario Sunshine Cheatfile Generator</h2>
               <p style="margin:0"><i>Authors: <a target="_blank" href="https://twitter.com/psychonauter">Psy</a> &amp; <a target="_blank" href="https://twitter.com/srlmilk">Milk</a></i></p>
               <p style="margin:0"><i>Last Updated: Jan 17, 2018</i></p>
               <h4>Description:</h4>
               <p>This is a cheatfile generator for Super Mario Sunshine speedrun practice. A guide on how to use the generator and practice codes on your Wii can be found here: <a target="_blank" href="guide.html">Guide</a>. Visit the <a target="_blank" href="guide.html#3">troubleshooting section</a> if you encounter any issues.</p>
               <h4>Changelog:</h4>
               <p id="changelog"></p>
               <hr style="border-color:grey;">
               <div style="text-align:center;margin:18px 0px 7px 0px">
                  <a target="_blank" href="https://discord.gg/0SoktBcRDw8B1NJB" title="Sunshine Community Discord"><img src="img/discord_bubble.png" style="margin:0px 7px;vertical-align:middle" alt="Sunshine Community Discord" /></a>
                  <a target="_blank" href="https://speedrun.com/sms" title="Sunshine Leaderboards"><img src="img/src_bubble.png" style="margin:0px 7px;vertical-align:middle" alt="Sunshine Leaderboards" /></a>
                  <h4 style="display:inline;vertical-align:middle;margin:0px 10px">Sunshine Community</h4>
                  <a target="_blank" href="https://twitter.com/SMSCommunity" title="Sunshine Community Twitter"><img src="img/twitter_bubble.png" style="margin:0px 7px;vertical-align:middle" alt="Sunshine Community Twitter" /></a>
                  <a target="_blank" href="https://www.twitch.tv/SunshineCommunity" title="Sunshine Community Twitch"><img src="img/twitch_bubble.png" style="margin:0px 7px;vertical-align:middle" alt="Sunshine Community Twitch" /></a>
               </div>
            </div>
         </div>
      </div>
      <script language="javascript" src="gctGenerator.js"></script>
   </body>
</html>