Compare commits
1 Commits
feature/ab
...
d2eb2b71bb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d2eb2b71bb |
@@ -7,11 +7,12 @@
|
|||||||
<link rel="stylesheet" href="custom.css">
|
<link rel="stylesheet" href="custom.css">
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
const hexToRgb = hex =>
|
function hexToRgb(value) {
|
||||||
hex.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i
|
return value.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i
|
||||||
,(m, r, g, b) => '#' + r + r + g + g + b + b)
|
,(m, r, g, b) => '#' + r + r + g + g + b + b)
|
||||||
.substring(1).match(/.{2}/g)
|
.substring(1).match(/.{2}/g)
|
||||||
.map(x => parseInt(x, 16));
|
.map(x => parseInt(x, 16));
|
||||||
|
}
|
||||||
|
|
||||||
function show_loading(visible) {
|
function show_loading(visible) {
|
||||||
document.getElementById('loading').style.visibility = visible ? 'visible' : 'hidden';
|
document.getElementById('loading').style.visibility = visible ? 'visible' : 'hidden';
|
||||||
|
|||||||
Reference in New Issue
Block a user