-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Bootstrap and make more playable
- Loading branch information
Showing
8 changed files
with
91 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,14 @@ | |
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Spotify Clip Quiz</title> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> | ||
</head> | ||
<body> | ||
<button id="authorise-button">Authorise</button> | ||
<button class="btn btn-primary" id="authorise-button">Authorise</button> | ||
</body> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> | ||
|
||
<script src="js/pkce.js"></script> | ||
<script src="index.js"></script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.btn-timer { | ||
width: 80px; | ||
height: 40px; | ||
} | ||
|
||
.play-button { | ||
width: 69px; | ||
font-size: small !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,30 +5,31 @@ | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Spotify Clip Quiz</title> | ||
<script src="https://sdk.scdn.co/spotify-player.js"></script> | ||
<link href="play.css" rel="stylesheet"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> | ||
</head> | ||
<body> | ||
<span id="timer-span">00:00</span> | ||
<button id="start-timer-button" disabled>Start</button> | ||
<button id="pause-timer-button" style="width: 60px;" disabled>Pause</button> | ||
<button id="resume-timer-button" style="width: 60px; display: none;">Resume</button> | ||
<button class="btn btn-primary btn-timer" id="start-timer-button" disabled>Start</button> | ||
<button class="btn btn-primary btn-timer" id="pause-timer-button" disabled>Pause</button> | ||
<button class="btn btn-primary btn-timer" id="resume-timer-button" style="display: none;">Resume</button> | ||
<button class="btn btn-primary" id="give-up-button" disabled>Give Up</button> | ||
<br><br> | ||
<button id="play-button" disabled>Play Clips</button> | ||
<button id="stop-button" disabled>Stop</button> | ||
<button id="resume-button" disabled>Resume</button> | ||
<button id="prev-button" disabled>Previous</button> | ||
<button id="next-button" disabled>Next</button> | ||
<button class="btn btn-primary" id="stop-button" disabled>Stop</button> | ||
<button class="btn btn-primary" id="resume-button" style="display: none;">Resume</button> | ||
<span>Playing: </span><span id="clip-info">-</span> | ||
<button class="btn btn-primary" id="prev-button" disabled>Previous</button> | ||
<button class="btn btn-primary" id="next-button" disabled>Next</button> | ||
<br><br> | ||
<span id="score-span">-</span>/<span id="max-score-span">-</span> | ||
<br><br> | ||
<span id="clip-info">Clip: -</span> | ||
<br><br> | ||
<div id="song-ui-container"></div> | ||
<br> | ||
<input id="guess-input" disabled> | ||
<br> | ||
<span>Score: </span><span id="score-span">-</span>/<span id="max-score-span">-</span> | ||
<br><br> | ||
<button id="give-up-button" disabled>Give Up</button> | ||
<div id="song-ui-container"></div> | ||
</body> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> | ||
|
||
<script src="js/pkce.js"></script> | ||
<script src="js/songClips.js"></script> | ||
<script src="js/guesser.js"></script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters