Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Bacon_Space authored Nov 29, 2023
1 parent a8785aa commit 5015d76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ <h1>Would You Rather?</h1>
let userScore = localStorage.getItem('userScore') || 0;
let questions;

// Fetch questions from questions.json
fetch('questions.json') // assuming questions.json is in the same directory as your HTML file
// Fetch questions from the specified URL
fetch('https://polyextended.github.io/files/questions.json')
.then(response => response.json())
.then(data => {
questions = data;
Expand Down Expand Up @@ -72,7 +72,7 @@ <h1>Would You Rather?</h1>

document.getElementById('userScore').innerText = userScore;
</script>
<script src="https://polyextended.github.io/meta.js"></script>

<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
</body>
Expand Down

0 comments on commit 5015d76

Please sign in to comment.