diff --git a/AdminOfWaves24.php b/AdminOfWaves24.php index 6041ac9..33a5bfb 100644 --- a/AdminOfWaves24.php +++ b/AdminOfWaves24.php @@ -189,7 +189,7 @@ if ($data == 0) { ?> - class="btn confer-btn"> Slot + class="btn confer-btn"> Slot @@ -246,7 +246,7 @@ if ($data == 0) { ?> - class="btn confer-btn"> Slot + class="btn confer-btn"> Slot @@ -302,7 +302,7 @@ if ($data == 0) { ?> - class="btn confer-btn"> Slot + class="btn confer-btn"> Slot @@ -360,7 +360,7 @@ if ($data == 0) { ?> - class="btn confer-btn"> Slot + class="btn confer-btn"> Slot diff --git a/allotment/groped.php b/allotment/groped.php index a7be2e6..e6010fb 100644 --- a/allotment/groped.php +++ b/allotment/groped.php @@ -36,7 +36,7 @@
diff --git a/allotment/team/boys.php b/allotment/team/boys.php index 76b25c0..a64f5f5 100644 --- a/allotment/team/boys.php +++ b/allotment/team/boys.php @@ -42,7 +42,7 @@ diff --git a/allotment/team/girls.php b/allotment/team/girls.php index 638ef04..d58bc22 100644 --- a/allotment/team/girls.php +++ b/allotment/team/girls.php @@ -42,7 +42,7 @@ diff --git a/allotment/ungroped.js b/allotment/ungroped.js deleted file mode 100644 index 3c9bf5e..0000000 --- a/allotment/ungroped.js +++ /dev/null @@ -1,111 +0,0 @@ -(function () { - "use strict"; - - var items = [ - "1", - "2", - "3", - "4" - ]; - var slot = []; - let temp; - document.querySelector(".info").textContent = items.join(" "); - - const doors = document.querySelectorAll(".door"); - document.querySelector("#spinner").addEventListener("click", spin); - document.querySelector("#reseter").addEventListener("click", init); - - async function spin() { - init(false, 1, 2); - for (const door of doors) { - const boxes = door.querySelector(".boxes"); - const duration = parseInt(boxes.style.transitionDuration); - boxes.style.transform = "translateY(0)"; - await new Promise((resolve) => setTimeout(resolve, duration * 200)); - } - } - - function init(firstInit = true, groups = 1, duration = 1) { - for (const door of doors) { - if (firstInit) { - door.dataset.spinned = "0"; - } else if (door.dataset.spinned === "1") { - return; - } - - const boxes = door.querySelector(".boxes"); - const boxesClone = boxes.cloneNode(false); - - const pool = ["?"]; - if (!firstInit) { - const arr = []; - for (let n = 0; n < (groups > 0 ? groups : 1); n++) { - arr.push(...items); - } - pool.push(...shuffle(arr)); - - boxesClone.addEventListener( - "transitionstart", - function () { - door.dataset.spinned = "1"; - this.querySelectorAll(".box").forEach((box) => { - box.style.filter = "blur(1px)"; - }); - }, - { once: true } - ); - - boxesClone.addEventListener( - "transitionend", - function () { - this.querySelectorAll(".box").forEach((box, index) => { - box.style.filter = "blur(0)"; - if (index > 0) { - this.removeChild(box); - } - }); - }, - { once: true } - ); - } - // console.log(pool); - - for (let i = pool.length - 1; i >= 0; i--) { - const box = document.createElement("div"); - box.classList.add("box"); - box.style.color = 'black'; - // box.style.width = door.clientWidth + "px"; - box.style.height = door.clientHeight + "px"; - box.textContent = pool[i]; - boxesClone.appendChild(box); - } - boxesClone.style.transitionDuration = `${duration > 0 ? duration : 1}s`; - boxesClone.style.transform = `translateY(-${ - door.clientHeight * (pool.length - 1) - }px)`; - door.replaceChild(boxesClone, boxes); - // console.log(door); - pool.forEach((element) => { - temp = element; - }); - // items.remove(temp); - var pos = items.findIndex((val) => val == temp); - if (pos != -1) { - items.splice(pos, 1); - slot.push(temp); - } - } - document.getElementById("slot").value = slot; - } - - function shuffle([...arr]) { - let m = arr.length; - while (m) { - const i = Math.floor(Math.random() * m--); - [arr[m], arr[i]] = [arr[i], arr[m]]; - } - return arr; - } - - init(); -})(); diff --git a/allotment/ungroped.php b/allotment/ungroped.php deleted file mode 100644 index fb5bbbd..0000000 --- a/allotment/ungroped.php +++ /dev/null @@ -1,270 +0,0 @@ - - - - - - - -