put the selection of numbers in its own file
This commit is contained in:
parent
75f58402a8
commit
cb60aeea54
4
group_numbers.js
Normal file
4
group_numbers.js
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
const display = [6,7,8,9]
|
||||||
|
const not_pickable = [
|
||||||
|
6,
|
||||||
|
]
|
|
@ -24,9 +24,10 @@
|
||||||
<button id="spin_btn">Spin</button>
|
<button id="spin_btn">Spin</button>
|
||||||
<i class="fa-solid fa-location-arrow"></i>
|
<i class="fa-solid fa-location-arrow"></i>
|
||||||
</div>
|
</div>
|
||||||
<div id="text"><p> </p></div>
|
<div id="text"><p>Tryk Spin for at rulle hjulet!</p></div>
|
||||||
</div>
|
</div>
|
||||||
<!--------------- SCRIPT --------------------->
|
<!--------------- SCRIPT --------------------->
|
||||||
|
<script src="group_numbers.js"></script>
|
||||||
<script src="script.js"></script>
|
<script src="script.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -3,11 +3,6 @@ const spinWheel = document.getElementById("spinWheel");
|
||||||
const spinBtn = document.getElementById("spin_btn");
|
const spinBtn = document.getElementById("spin_btn");
|
||||||
const text = document.getElementById("text");
|
const text = document.getElementById("text");
|
||||||
|
|
||||||
const display = [1,2,3,4]
|
|
||||||
const not_pickable = [
|
|
||||||
2,3,4
|
|
||||||
]
|
|
||||||
|
|
||||||
let spinValues_func = (display) => {
|
let spinValues_func = (display) => {
|
||||||
let return_values = [];
|
let return_values = [];
|
||||||
let idx = 0;
|
let idx = 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user