diff options
author | sanine-a <sanine.not@pm.me> | 2021-04-12 17:40:33 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2021-04-12 17:40:33 -0500 |
commit | bc594a2d3839d1d0a3cc76eed23ec8535c72f6bf (patch) | |
tree | e63cc0faf2d756f5c0d92a14e2ddca59e3a52d39 /index.html | |
parent | 82573dc615710c13d988ef27823d24839df100ab (diff) |
begin refactor to use Inferno
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 50 |
1 files changed, 15 insertions, 35 deletions
@@ -1,43 +1,23 @@ <!doctype html> <html> <head> - <title>Learn Chinese Characters</title> <meta charset="utf-8"> - <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> - <script src="characters.js"></script> - <script src="index.js"></script> - <link rel="stylesheet" href="style.css" /> - </head> - <body> - <div id="content"> - <h2 id="score">100.00%</h2> - <h2 id="level">Level 1</h2> - <h1 id="current-character"></h1> + <title>学汉字</title> - <span style="width: 300px; display: block;"> - <input id="pinyin-input" type="text"> - </span> - - <span id="hint-span"> - <button id="hint-button">Hint</button> - <span id="hint">?</span> - </span> - <br> - <button id="reset-button">Reset</button> - <br> - - <label>Level</label> - <select id="level-select"> - </select> - <br> + <!-- inferno scripts --> + <script src="https://unpkg.com/inferno@7.4.8/dist/inferno.min.js"></script> + <script src="https://unpkg.com/inferno-hyperscript@7.4.8/dist/inferno-hyperscript.min.js"></script> - <label>Mode</label> - <select id="mode-select"> - <option value="newchars">Level Characters Only</option> - <option value="allchars">All Characters Up To Level</option> - </select> - <p> <b>Tips:</b> This game uses numbered pinyin, so for instance you would write '你' as 'ni3'. Additionally, 'ü' is written with as 'v'.</p> - </div> + <!-- local scripts --> + <script src="./characters.js"></script> + <script src="./App.js"></script> + <script src="./main.js"></script> + </head> + + <body> + <noscript> + <h1>You need JavaScript enabled to view this site.</h1> + </noscript> + <div id="root"></div> </body> </html> - |