yxw 2023-12-07 10:27:05 +08:00
parent f28bc21d7b
commit 5c2a05eb83
1 changed files with 21 additions and 8 deletions

View File

@ -49,9 +49,12 @@
</svg> </svg>
</button> </button>
<button class="btn btn-dark border-black ms-2" id="logout"> <button class="btn btn-dark border-black ms-2" id="logout">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-box-arrow-right" viewBox="0 0 16 16"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
<path fill-rule="evenodd" d="M10 12.5a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5v2a.5.5 0 0 0 1 0v-2A1.5 1.5 0 0 0 9.5 2h-8A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h8a1.5 1.5 0 0 0 1.5-1.5v-2a.5.5 0 0 0-1 0z"/> class="bi bi-box-arrow-right" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M15.854 8.354a.5.5 0 0 0 0-.708l-3-3a.5.5 0 0 0-.708.708L14.293 7.5H5.5a.5.5 0 0 0 0 1h8.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3z"/> <path fill-rule="evenodd"
d="M10 12.5a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5v2a.5.5 0 0 0 1 0v-2A1.5 1.5 0 0 0 9.5 2h-8A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h8a1.5 1.5 0 0 0 1.5-1.5v-2a.5.5 0 0 0-1 0z" />
<path fill-rule="evenodd"
d="M15.854 8.354a.5.5 0 0 0 0-.708l-3-3a.5.5 0 0 0-.708.708L14.293 7.5H5.5a.5.5 0 0 0 0 1h8.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3z" />
</svg> </svg>
</button> </button>
</div> </div>
@ -1687,17 +1690,20 @@
function updateBars(element, number) { function updateBars(element, number) {
let row = (number + 72) / 3; let row = (number + 72) / 3;
let red = (-6 + 72) / 3; let red = (-6 + 72) / 3;
let yellow = (-18 + 72) / 3; let yellow = (-18 + 72) / 3;
let spans = element[0].getElementsByTagName('span'); let spans = element[0].getElementsByTagName('span');
for (let i = 0; i < spans.length; i++) { for (let i = 0; i < spans.length; i++) {
if (row > i) { if (row >= i) {
if (row > red && i > red) { if (row >= red && i >= red) {
spans[i].style.opacity = "1" spans[i].style.opacity = "1"
spans[i].style.backgroundColor = "#ff0000" spans[i].style.backgroundColor = "#ff0000"
} }
else if (row > yellow + 1 && i <= red && i > yellow + 1) { else if (row >= yellow && i < red && i >= yellow) {
spans[i].style.opacity = "1" spans[i].style.opacity = "1"
spans[i].style.backgroundColor = "#ff6600" spans[i].style.backgroundColor = "#ff6600"
} }
@ -1724,8 +1730,15 @@
let num2 = getRandomIntInclusive(0, 72) let num2 = getRandomIntInclusive(0, 72)
let num3 = getRandomIntInclusive(0, 72) let num3 = getRandomIntInclusive(0, 72)
let num5 = getRandomIntInclusive(0, 72) let num5 = getRandomIntInclusive(0, 72)
let num7 = getRandomIntInclusive(0, 72) let num7 = getRandomIntInclusive(0, 70)
let num8 = getRandomIntInclusive(0, 72) let num8 = getRandomIntInclusive(0, 72)
num = 53
num2 = 54
num3 = 55
num5 = 56
num7 = 65
num8 = 66
LineInputLeftRandomBar(num - 72) LineInputLeftRandomBar(num - 72)
LineInputRightRandomBar(num2 - 72) LineInputRightRandomBar(num2 - 72)
Microphone1LeftRandomBar(num3 - 72) Microphone1LeftRandomBar(num3 - 72)