|
9 | 9 | <meta name="description" content="A customisable pressure sensitive display for your Wooting keyboard!">
|
10 | 10 | <link rel="shortcut icon" type="image/png" href="../globaldefault/pageicon.ico" />
|
11 | 11 | <meta name="viewport" content="width=device-width">
|
12 |
| - <meta name="theme-color" content="#131313"> |
| 12 | + <meta name="theme-color" content="#18171C"> |
13 | 13 |
|
14 | 14 | <!-- css stylesheets -->
|
15 | 15 | <link rel='stylesheet' type='text/css' href="../globaldefault/styles.css">
|
|
25 | 25 | <canvas id="osuCanvas"></canvas>
|
26 | 26 | <div id="zKey" class="keyIcon"></div>
|
27 | 27 | <div id="xKey" class="keyIcon"></div>
|
| 28 | + |
| 29 | + <!-- floating toolbar --> |
| 30 | + <div id="toolbar" class="mouseOver"> |
| 31 | + <!-- customisation --> |
| 32 | + <div id="settings" class="tabmenu"> |
| 33 | + <h2 data-i18n="menus.customise.title">Customise</h2> |
| 34 | + <section class="flexRows"> |
| 35 | + <div><span data-i18n="menus.customise.active">Active</span> |
| 36 | + <input type="color" id="activeColorPicker" > |
| 37 | + </div> |
| 38 | + <div><span data-i18n="menus.customise.inactive">Inactive:</span> |
| 39 | + <input type="color" id="inactiveColorPicker"> |
| 40 | + </div> |
| 41 | + <div><span data-i18n="menus.customise.accent">Accent</span> |
| 42 | + <input type="color" id="accentColorPicker"> |
| 43 | + </div> |
| 44 | + <div><span data-i18n="menus.customise.background">Background</span> |
| 45 | + <input type="color" id="backgroundColorPicker"> |
| 46 | + </div> |
| 47 | + </section> |
| 48 | + |
| 49 | + <hr> |
| 50 | + |
| 51 | + <section class="flexRows"> |
| 52 | + <div><span data-i18n="menus.customise.scrollspeed">Scroll speed</span> |
| 53 | + <input type="range" step=1 min=1 max=8 id="scrollSpeedPicker"> |
| 54 | + </div> |
| 55 | + <div><span data-i18n="menus.customise.endfade">End fade</span> |
| 56 | + <label class="switch"> |
| 57 | + <input type="checkbox" id="endFadeCheckbox"> |
| 58 | + <span class="slider round"></span> |
| 59 | + </label> |
| 60 | + </div> |
| 61 | + </section> |
| 62 | + |
| 63 | + <hr> |
| 64 | + |
| 65 | + <section class="flexRows"> |
| 66 | + <div><span data-i18n="menus.customise.smoothing">Smoothing</span> |
| 67 | + <input type="range" step=0.1 min=0.1 max=1 id="smoothingPicker"> |
| 68 | + </div> |
| 69 | + <div><span data-i18n="menus.customise.thickness">thickness</span> |
| 70 | + <input type="range" step=1 min=1 max=5 id="thicknessPicker"> |
| 71 | + </div> |
| 72 | + <!-- <div><span data-i18n="menus.customise.instanttransitions">Instant transitions</span> |
| 73 | + <label class="switch"> |
| 74 | + <input type="checkbox" id="endfadeCheckbox"> |
| 75 | + <span class="slider round"></span> |
| 76 | + </label> |
| 77 | + </div> TODO: not yet working --> |
| 78 | + <div><span data-i18n="menus.customise.inactivefadeout">Fade on inactivity</span> |
| 79 | + <label class="switch"> |
| 80 | + <input type="checkbox" id="inactiveFadeCheckbox"> |
| 81 | + <span class="slider round"></span> |
| 82 | + </label> |
| 83 | + </div> |
| 84 | + </section> |
| 85 | + |
| 86 | + <hr> |
| 87 | + |
| 88 | + <section class="flexRows"> |
| 89 | + <div><span data-i18n="menus.customise.accessiblitymode">Accessiblity mode</span> |
| 90 | + <label class="switch"> |
| 91 | + <input type="checkbox" id="inputCheckbox"> |
| 92 | + <span class="slider round"></span> |
| 93 | + </label> |
| 94 | + </div> |
| 95 | + <div><span data-i18n="menus.customise.instanttransitions">Instant Transitions</span> |
| 96 | + <label class="switch"> |
| 97 | + <input type="checkbox" id="instantTransitionsCheckbox"> |
| 98 | + <span class="slider round"></span> |
| 99 | + </label> |
| 100 | + </div> |
| 101 | + </section> |
| 102 | + |
| 103 | + <span id="reset" onclick="resetSettings()" data-i18n="menus.customise.reset">Reset</span> |
| 104 | + </div> |
| 105 | + |
| 106 | + <!-- LAN --> |
| 107 | + <div id="lanSettings" class="tabmenu"> |
| 108 | + <h2 data-i18n="menus.lanconnection.title">Lan Connection</h2> |
| 109 | + <p data-i18n="menus.lanconnection.desc">Connect to external client.<br>Press connect and wait ~3 seconds.</p> |
| 110 | + <input type="text" id="lanInput" placeholder="192.168.x.x"> |
| 111 | + <button onclick="connectToExternalLan()" data-i18n="menus.lanconnection.connect">Connect</button> |
| 112 | + </div> |
| 113 | + |
| 114 | + <!-- languages --> |
| 115 | + <div id="languages" class="tabmenu"> |
| 116 | + <h2 data-i18n="menus.language.title">Language</h2> |
| 117 | + <button data-lang="en">English</button> |
| 118 | + <button data-lang="zh">Chinese (简体字)</button> |
| 119 | + </div> |
| 120 | + |
| 121 | + <!-- icons --> |
| 122 | + <span class="toolbaritem" onclick="toggleVisiblity('settings', this)"><div class="toolbarlabel"><i class="material-symbols-outlined" style="margin-top: 0.2em;">settings</i>customise</div></span> |
| 123 | + <span class="toolbaritem" onclick="toggleVisiblity('lanSettings', this)"><div class="toolbarlabel"><i class="material-symbols-outlined">magic_tether</i>LAN</div></span> |
| 124 | + <span class="toolbaritem" onclick="toggleVisiblity('languages', this)"><div class="toolbarlabel"><i class="material-symbols-outlined">translate</i>language</div></span> |
| 125 | + </div> |
28 | 126 | </body>
|
29 | 127 |
|
30 | 128 |
|
31 | 129 | <!-- animation scripts -->
|
| 130 | +<script type="text/javascript" src="toolbarfunctions.js"></script> |
32 | 131 | <script type="text/javascript" src="osucanvas.js"></script>
|
33 | 132 | <script type="text/javascript" src="../globaldefault/js/animations.js"></script>
|
34 | 133 |
|
35 |
| -<!-- translations --> |
| 134 | +<!-- global scripts --> |
| 135 | +<script type="text/javascript" src="../globaldefault/js/mousehandlers.js"></script> |
36 | 136 | <script src="https://unpkg.com/@andreasremdt/simple-translator@latest/dist/umd/translator.min.js"></script>
|
37 | 137 | <script type="text/javascript" src="../globaldefault/data/languages.js" defer></script>
|
38 | 138 |
|
|
0 commit comments