put the selection of numbers in its own file

This commit is contained in:
Alexander Munch-Hansen 2023-03-03 12:39:15 +01:00
parent 75f58402a8
commit cb60aeea54
3 changed files with 8 additions and 8 deletions

4
group_numbers.js Normal file
View File

@ -0,0 +1,4 @@
const display = [6,7,8,9]
const not_pickable = [
6,
]

View File

@ -24,9 +24,10 @@
<button id="spin_btn">Spin</button>
<i class="fa-solid fa-location-arrow"></i>
</div>
<div id="text"><p> </p></div>
<div id="text"><p>Tryk Spin for at rulle hjulet!</p></div>
</div>
<!--------------- SCRIPT --------------------->
<script src="group_numbers.js"></script>
<script src="script.js"></script>
</body>
</html>

View File

@ -3,11 +3,6 @@ const spinWheel = document.getElementById("spinWheel");
const spinBtn = document.getElementById("spin_btn");
const text = document.getElementById("text");
const display = [1,2,3,4]
const not_pickable = [
2,3,4
]
let spinValues_func = (display) => {
let return_values = [];
let idx = 0;