mirror of
https://gitlab.kit.edu/uskyk/kv.git
synced 2024-11-08 10:20:40 +00:00
50 lines
1.3 KiB
HTML
50 lines
1.3 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
|
||
|
<title>KV diagram calculator</title>
|
||
|
<link data-trunk rel="rust" data-bin="svg-wasm"/>
|
||
|
<style>
|
||
|
textarea {
|
||
|
resize: none;
|
||
|
font-size: 32px;
|
||
|
line-height: 64px;
|
||
|
width: 64px;
|
||
|
height: 64px;
|
||
|
padding-left: 24px;
|
||
|
box-sizing: border-box;
|
||
|
overflow-y: hidden;
|
||
|
}
|
||
|
#input-container {
|
||
|
transform: translate(0px, 0px); /* new absolute context */
|
||
|
padding-bottom: 1em;
|
||
|
}
|
||
|
.solution {
|
||
|
display: inline-block;
|
||
|
}
|
||
|
.solution span {
|
||
|
display: block;
|
||
|
width: 100%;
|
||
|
text-align: center;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="main">
|
||
|
<div id="settings">
|
||
|
<label>Number of variables: <input type="number" value="3" id="variables"></label><button id="apply-variables">Apply</button>
|
||
|
</div>
|
||
|
<p id="hints">
|
||
|
Change cells by scrolling (up => 1, down => 0), typing (=> 1, 0) or deleting (=> -).
|
||
|
</p>
|
||
|
<p id="examples">
|
||
|
Load <a href="#--111100">example 1</a>, <a href="#-1111000-1-01---">example 2</a>, <a href="#11101111111111111111101111111101">example 3</a>.
|
||
|
</p>
|
||
|
<div id="input-container"></div>
|
||
|
<button id="calculate">Run</button>
|
||
|
<div id="output-help"></div>
|
||
|
<div id="output-container"></div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|