feat: replaced the J/K navigation with good old HTML buttons
This commit is contained in:
parent
6287298e57
commit
8799edf99b
3 changed files with 11 additions and 26 deletions
|
|
@ -23,6 +23,7 @@
|
|||
h1 { font-size: 1.1rem; font-weight: 600; }
|
||||
#toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; }
|
||||
#examples { font-size: 1rem; padding: .3rem .5rem; }
|
||||
#previousExample, #nextExample { font-size: .9rem; padding: .3rem .6rem; }
|
||||
#scaleMode { font-size: 0.95rem; padding: .2rem .4rem; }
|
||||
#viewport {
|
||||
flex: 1;
|
||||
|
|
@ -46,14 +47,6 @@
|
|||
background: #000;
|
||||
}
|
||||
#status { color: #888; font-size: .85rem; margin: 0; }
|
||||
#hint { color: #888; font-size: .8rem; margin-left: .5rem; }
|
||||
#hint kbd {
|
||||
font-family: inherit;
|
||||
background: #2c2c2c;
|
||||
border: 1px solid #444;
|
||||
border-radius: 3px;
|
||||
padding: 0 .3rem;
|
||||
}
|
||||
#error {
|
||||
color: #ff6b6b;
|
||||
background: #3a1d1d;
|
||||
|
|
@ -69,13 +62,14 @@
|
|||
<div id="toolbar">
|
||||
<label for="examples">Example: </label>
|
||||
<select id="examples"><option>loading…</option></select>
|
||||
<button id="previousExample" type="button">Prev</button>
|
||||
<button id="nextExample" type="button">Next</button>
|
||||
<label for="scaleMode"> Scale: </label>
|
||||
<select id="scaleMode">
|
||||
<option value="integer">Integer</option>
|
||||
<option value="native">Native (1x)</option>
|
||||
<option value="fit">Fit</option>
|
||||
</select>
|
||||
<span id="hint"><kbd>J</kbd>/<kbd>K</kbd> next/previous example</span>
|
||||
</div>
|
||||
<div id="error" hidden>This example crashed — see the browser console for details. Select another example to continue.</div>
|
||||
<div id="viewport">
|
||||
|
|
|
|||
Loading…
Reference in a new issue