<!DOCTYPE HTML>
<html lang="en">

<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="style/style.css">
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <title>SMS GCT Generator</title>
    <script language="javascript" src="gctGenerator.js"></script>
</head>

<body onload="updateChangelog()">
    <div style="width: 100%; overflow: hidden;">
        <div style="width: 510px; float: left;">
            <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="GMSJ01">GMSJ01 (NTSC-J 1.0)</option>
                <option value="GMSP01">GMSP01 (PAL)</option>
            </select>
            <ul id="checkList">
            </ul>
            <button id="downloadButton" onclick="generateGCT()" style="visibility:hidden;">Download</button>
        </div>
        <div style="margin-left: 530px;">
            <div id="descriptionBox" class="framed">
                <p>
                    <h2>Mario Sunshine Cheatfile Generator</h2>
                </p>
                <p><i>Authors: <a href="https://twitter.com/psychonauter">Psy</a> & <a href="https://twitter.com/srlmilk">Milk</a><br />
				      Last Updated: Oct 18, 2017</i></p>
                <p>Description:<br /> This is a cheatfile generator for SMS Speedrun practice. A guide on how to use the generator and cheatfiles on your Wii can be found here: <a href="guide.html">Guide</a>
                </p>
                <h4>Changelog:</h4>
                <p id="changelog"></p>
            </div>
        </div>
    </div>
</body>
<script language="javascript">
    document.getElementById("checkList").addEventListener("click", function(ev) {
        if (ev.target && ev.target.nodeName == "LI") {
            ev.target.classList.toggle("checked");
        }
    });
</script>

</html>