You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
4.2 KiB
102 lines
4.2 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Scripted</title>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css"
|
|
integrity="sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I"
|
|
crossorigin="anonymous"
|
|
/>
|
|
<script
|
|
src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
|
|
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
|
|
crossorigin="anonymous"
|
|
></script>
|
|
<script
|
|
src="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js"
|
|
integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/"
|
|
crossorigin="anonymous"
|
|
></script>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0"
|
|
/>
|
|
<link rel="stylesheet" href="./View/src/CSS/Main2.css" />
|
|
<link rel="stylesheet" href="./View/src/CSS/FirstTest.css">
|
|
</head>
|
|
<body>
|
|
<div>
|
|
<div id="imgMain" style="background: #050E15;">
|
|
<div class="grid">
|
|
<div class="row">
|
|
<h2 class="text-center mt-3 mr-5" style="color: #00CCFF; font-weight: 1000;font-style: italic;">SCRIPT</h2>
|
|
<h2 class="text-center ml-5" style="color: #D400D4; font-weight:bold ; font-size:4em;font-style: italic;">RUSH</h2>
|
|
</div>
|
|
<div class="row pt-5">
|
|
<h3 class="text-center" id="waiting">Ready ?</h3>
|
|
</div>
|
|
<!-- <div class="row d-flex ">
|
|
<div class="col d-flex flex-column align-items-center">
|
|
<div style="background-color: red; height: 75px; width: 75px;"></div>
|
|
<p class="pt-3">Player 1</p>
|
|
</div>
|
|
<div class="col d-flex flex-column align-items-center">
|
|
<div style="background-color: blue; height: 75px; width: 75px;"></div>
|
|
<p class="pt-3">Player 2</p>
|
|
</div>
|
|
<div class="col d-flex flex-column align-items-center">
|
|
<div style="background-color: yellow; height: 75px; width: 75px;"></div>
|
|
<p class="pt-3">Player 3</p>
|
|
</div>
|
|
<div class="col d-flex flex-column align-items-center">
|
|
<div style="background-color: green; height: 75px; width: 75px;"></div>
|
|
<p class="pt-3">Player 4</p>
|
|
</div>
|
|
</div> -->
|
|
<div class="row">
|
|
<div class="d-flex justify-content-center ltext-center" style="cursor: pointer; height: 20%">
|
|
<div class="m-3">
|
|
<a class="btn" href="index.php?action=addToQueue" onclick="waiting()">
|
|
<span>LANCER</span>
|
|
</a>
|
|
</div>
|
|
<div class="m-3">
|
|
<a class="btn" href="index.php?action=goToHome">
|
|
<span>RETOUR</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</body>
|
|
<script>
|
|
function displayWaiting(){
|
|
document.getElementById("waiting").innerHTML = "Waiting for Coders...";
|
|
document.getElementsByClassName("btn").style.display = "none"
|
|
}
|
|
|
|
function checkIsReady() {
|
|
var xhr = new XMLHttpRequest();
|
|
xhr.open('POST', 'http://82.165.180.114/Scripted/WEB/index.php?action=waiting', true);
|
|
xhr.responseType = 'text';
|
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
xhr.onload = function () {
|
|
if (xhr.responseText == "1") {
|
|
window.location.href = 'http://82.165.180.114/Scripted/WEB/index.php?action=goToGame&idPartie="' + <?php echo $_SESSION['idPartie'] ?> + '"&index=1"'
|
|
}
|
|
};
|
|
xhr.send(null);
|
|
}
|
|
function waiting(){
|
|
displayWaiting();
|
|
var countdownTimer = setInterval('checkIsReady()', 1000);
|
|
}
|
|
</script>
|
|
</html>
|