kopia lustrzana https://github.com/Michael-K-Stein/SpotiFile
Add autoscroll toggle checkbox
rodzic
f6c5bb47f5
commit
051d1b7513
|
@ -100,7 +100,7 @@ form input[type="number"] {
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
form input[type="checkbox"] {
|
input[type="checkbox"] {
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
@ -119,7 +119,7 @@ form input[type="checkbox"] {
|
||||||
place-content: center;
|
place-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
form input[type="checkbox"]::before {
|
input[type="checkbox"]::before {
|
||||||
content: "";
|
content: "";
|
||||||
width: 0.65em;
|
width: 0.65em;
|
||||||
height: 0.65em;
|
height: 0.65em;
|
||||||
|
@ -131,11 +131,11 @@ form input[type="checkbox"]::before {
|
||||||
clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
|
clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
|
||||||
}
|
}
|
||||||
|
|
||||||
form input[type="checkbox"]:checked::before {
|
input[type="checkbox"]:checked::before {
|
||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
form input[type="checkbox"]:hover {
|
input[type="checkbox"]:hover {
|
||||||
outline: max(2px, 0.15em) solid currentColor;
|
outline: max(2px, 0.15em) solid currentColor;
|
||||||
outline-offset: max(2px, 0.15em);
|
outline-offset: max(2px, 0.15em);
|
||||||
}
|
}
|
|
@ -25,7 +25,9 @@
|
||||||
document.getElementById('console-output').appendChild(log_line);
|
document.getElementById('console-output').appendChild(log_line);
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById('console-output').scrollTop = 999999999999999999999999;
|
if (document.getElementById('autoscroll').checked) {
|
||||||
|
document.getElementById('console-output').scrollTop = 999999999999999999999999;
|
||||||
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -43,6 +45,7 @@
|
||||||
</div></div>
|
</div></div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="display:inline-flex;align-items:baseline;"><label>Autoscroll: </label><input id="autoscroll" type="checkbox" checked></div>
|
||||||
<div id="console-output" class="align-bottom scrollable">
|
<div id="console-output" class="align-bottom scrollable">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue