Update script name in preparation of working on issue #1
This commit is contained in:
parent
124b6a2d61
commit
76aaeab840
@ -1,4 +1,4 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Christmas Lights Bingo Card</title>
|
<title>Christmas Lights Bingo Card</title>
|
||||||
<link href="style.css" rel="stylesheet">
|
<link href="style.css" rel="stylesheet">
|
||||||
@ -89,6 +89,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="script.js"></script>
|
<script src="phrases.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -1,11 +1,4 @@
|
|||||||
let phrases = [
|
// fischer yates shuffle
|
||||||
{phrase:'test',multiple:false},
|
|
||||||
{phrase:'what', multiple: true}
|
|
||||||
];
|
|
||||||
|
|
||||||
//15/6/3 -> list -> randomize
|
|
||||||
|
|
||||||
// fischer yates shuffle
|
|
||||||
function shuffle(array) {
|
function shuffle(array) {
|
||||||
for (let i = array.length - 1; i > 0; i--) {
|
for (let i = array.length - 1; i > 0; i--) {
|
||||||
let j = Math.floor(Math.random() * (i + 1));
|
let j = Math.floor(Math.random() * (i + 1));
|
Loading…
Reference in New Issue
Block a user