add: add music at leaderboard and game
This commit is contained in:
parent
5699b5994f
commit
cca4a7ebbc
BIN
src/assets/music/game.mp3
Normal file
BIN
src/assets/music/game.mp3
Normal file
Binary file not shown.
@ -12,8 +12,9 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<audio id="bgm" src="/assets/music/game.mp3"></audio>
|
||||
<div class="container-first">
|
||||
<div class="content"">
|
||||
<div class="content">
|
||||
<div class="boss">
|
||||
<img id="boss" src="/assets/Design/PYTHON-BOSSFIGHTMODEFINALt.gif" alt="">
|
||||
<img id="dmg" class="dmg" src="/assets/Design/damageeffect.gif"/>
|
||||
@ -35,6 +36,13 @@
|
||||
</div>
|
||||
</div>
|
||||
<script type="module" src="/js/firstperson.js"></script>
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
const bgm = document.getElementById("bgm");
|
||||
bgm.play()
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@ -39,7 +39,7 @@ export const questions = [
|
||||
question: "What is the result of the following operation ? (print('5'+'5'))",
|
||||
answers: [
|
||||
{text: "10", correct: false},
|
||||
{text: "55*", correct: true},
|
||||
{text: "55", correct: true},
|
||||
{text: "error", correct: false},
|
||||
{text: "NaN", correct: false},
|
||||
]
|
||||
@ -117,7 +117,7 @@ export const questions = [
|
||||
]
|
||||
},
|
||||
{
|
||||
question: '3 * "A" output ?',
|
||||
question: '(3 * "A") output ?',
|
||||
answers: [
|
||||
{text: "error", correct: false},
|
||||
{text: "none", correct: false},
|
||||
|
||||
@ -42,6 +42,7 @@ if($result){
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<audio id="bgm" src="/assets/music/leaderboard.mp3"></audio>
|
||||
<div class="container-board">
|
||||
<a class="back" href="onboard.php" data-aos="fade-in" data-aos-duration="3000">✖</a>
|
||||
<div class="chara">
|
||||
@ -99,6 +100,13 @@ if($result){
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
const bgm = document.getElementById("bgm");
|
||||
bgm.play()
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user