-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.php
53 lines (50 loc) · 2.13 KB
/
game.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php session_start(); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Game</title>
<?php include './assets/include/framework.php'; ?>
<link rel="stylesheet" href="./assets/css/style.css">
</head>
<body onload="Notification()">
<?php include './assets/include/header.php'; ?>
<?php include './assets/include/check.php'; ?>
<main style="background-color: purple;">
<div class="container rounded bg-dark bg-gradient mt-3 mb-3">
<div class="ratio ratio-16x9">
<iframe id="gameFrame" allowfullscreen="true" scrolling="no" sandbox="allow-same-origin allow-scripts" src=""></iframe>
</div>
</div>
<div class="d-flex container rounded bg-info bg-gradient justify-content-center">
<button class="btn btn-success m-3" onclick="gameFrame.src='./MiniCrystal/www/'; gameFrame.focus();" type="button">Chơi game</button>
<button class="btn btn-danger m-3" onclick="gameFrame.src='';" type="button">Dừng</button>
</div>
<?php include './assets/include/footer.php'; ?>
<?php include './assets/include/music-kit.php'; ?>
</main>
<!-- Thông báo khi vào trang -->
<div class="position-fixed end-0 p-3" style="z-index: 11; bottom: 5rem">
<div id="liveToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header">
<strong class="me-auto">KingSoundTrackMP3</strong>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body text-white bg-success">
Đây là bạn chơi 1 trò chơi nhỏ và lưu trữ kỉ lục của bạn vào trang kỷ lục nếu bạn đăng nhập
</div>
</div>
</div>
</div>
<script>
var toastLive = document.getElementById('liveToast')
function Notification() {
var toast = new bootstrap.Toast(toastLive)
toast.show()
}
</script>
<!-- Thông báo khi vào trang -->
</body>
</html>