Merge branch 'master' of https://codefirst.iut.uca.fr/git/nathan.boileau/Scripted
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
commit
89bb5e8c24
@ -1,113 +1,106 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<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="m-3">
|
|
||||||
<a class="btn" href="index.php?action=quitQueue">
|
|
||||||
<span>Quitter</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<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">Waiting for Coders...</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" id="player1">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" id="player2">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" id="player3">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" id="player4">Player 4</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<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 id="imgMain" style="background: #050E15;">
|
||||||
|
<div class="container-fluid">
|
||||||
|
|
||||||
|
<div class="row p-3">
|
||||||
|
<a class="btn" href="index.php?action=quitQueue">
|
||||||
|
<span>Quitter</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row m-0">
|
||||||
|
<h2 class="text-center mt-3 pr-5" style="color: #00CCFF; font-weight: 1000;font-style: italic;">SCRIPT</h2>
|
||||||
|
<h2 class="text-center pl-5" style="color: #D400D4; font-weight:bold ; font-size:4em;font-style: italic;">RUSH</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="row py-5 m-0">
|
||||||
|
<h3 class="text-center" id="waiting">Waiting for Coders...</h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row py-5 d-flex m-0">
|
||||||
|
<div class="col d-flex flex-column align-items-center">
|
||||||
|
<div style="background-color: red; height: 75px; width: 75px;"></div>
|
||||||
|
<p class="pt-3" id="player1">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" id="player2">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" id="player3">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" id="player4">Player 4</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
|
||||||
<script>
|
</div>
|
||||||
function checkIsReady() {
|
</body>
|
||||||
console.log("checkIsReady");
|
|
||||||
var xhr = new XMLHttpRequest();
|
<script>
|
||||||
xhr.open('POST', 'http://82.165.180.114/Scripted/index.php?action=waiting', true);
|
function checkIsReady() {
|
||||||
xhr.responseType = 'text';
|
console.log("checkIsReady");
|
||||||
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.onload = function () {
|
xhr.open('POST', 'http://82.165.180.114/Scripted/index.php?action=waiting', true);
|
||||||
console.log(xhr.responseText);
|
xhr.responseType = 'text';
|
||||||
if (xhr.responseText == "1") {
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||||
window.location.href = 'http://82.165.180.114/Scripted/index.php?action=goToGame&idPartie=' + <?php echo $_SESSION['idPartie'] ?> + '&index=1'
|
xhr.onload = function() {
|
||||||
}
|
console.log(xhr.responseText);
|
||||||
};
|
if (xhr.responseText == "1") {
|
||||||
xhr.send(null);
|
window.location.href = 'http://82.165.180.114/Scripted/index.php?action=goToGame&idPartie=' + <?php echo $_SESSION['idPartie'] ?> + '&index=1'
|
||||||
}
|
}
|
||||||
function getPlayer() {
|
};
|
||||||
console.log("getPlayer");
|
xhr.send(null);
|
||||||
var xhr = new XMLHttpRequest();
|
}
|
||||||
xhr.open('POST', 'http://82.165.180.114/Scripted/index.php?action=getPlayersPseudo', true);
|
|
||||||
xhr.responseType = 'text';
|
function getPlayer() {
|
||||||
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
console.log("getPlayer");
|
||||||
xhr.onload = function () {
|
var xhr = new XMLHttpRequest();
|
||||||
var players = JSON.parse(xhr.responseText);
|
xhr.open('POST', 'http://82.165.180.114/Scripted/index.php?action=getPlayersPseudo', true);
|
||||||
if (players[0] != null) {
|
xhr.responseType = 'text';
|
||||||
document.getElementById("player1").innerHTML = players[0];
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||||
}
|
xhr.onload = function() {
|
||||||
if (players[1] != null) {
|
var players = JSON.parse(xhr.responseText);
|
||||||
document.getElementById("player2").innerHTML = players[1];
|
if (players[0] != null) {
|
||||||
}
|
document.getElementById("player1").innerHTML = players[0];
|
||||||
if (players[2] != null) {
|
}
|
||||||
document.getElementById("player3").innerHTML = players[2];
|
if (players[1] != null) {
|
||||||
}
|
document.getElementById("player2").innerHTML = players[1];
|
||||||
if (players[3] != null) {
|
}
|
||||||
document.getElementById("player4").innerHTML = players[3];
|
if (players[2] != null) {
|
||||||
}
|
document.getElementById("player3").innerHTML = players[2];
|
||||||
};
|
}
|
||||||
xhr.send(null);
|
if (players[3] != null) {
|
||||||
}
|
document.getElementById("player4").innerHTML = players[3];
|
||||||
window.addEventListener("load", waiting);
|
}
|
||||||
function waiting(){
|
};
|
||||||
var countdownTimer = setInterval('checkIsReady()', 1000);
|
xhr.send(null);
|
||||||
setInterval('getPlayer()', 500);
|
}
|
||||||
}
|
window.addEventListener("load", waiting);
|
||||||
</script>
|
|
||||||
|
function waiting() {
|
||||||
|
var countdownTimer = setInterval('checkIsReady()', 1000);
|
||||||
|
setInterval('getPlayer()', 500);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
</html>
|
</html>
|
@ -1,67 +1,52 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
<head>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta charset="UTF-8" />
|
||||||
<title>Scripted</title>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<link
|
<title>Scripted</title>
|
||||||
rel="stylesheet"
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css" integrity="sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I" crossorigin="anonymous" />
|
||||||
href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css"
|
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
|
||||||
integrity="sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I"
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js" integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/" crossorigin="anonymous"></script>
|
||||||
crossorigin="anonymous"
|
<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" />
|
||||||
<script
|
<link rel="stylesheet" href="./View/src/CSS/FirstTest.css">
|
||||||
src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
|
</head>
|
||||||
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
|
|
||||||
crossorigin="anonymous"
|
<body>
|
||||||
></script>
|
<div id="imgMain" style="background: #050E15;">
|
||||||
<script
|
<div class="container-fluid">
|
||||||
src="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js"
|
<div class="row m-0">
|
||||||
integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/"
|
<h2 class="text-center mt-3 pr-5" style="color: #00CCFF; font-weight: 1000; font-style: italic;">SCRIPT</h2>
|
||||||
crossorigin="anonymous"
|
<h2 class="text-center pl-5" style="color: #D400D4; font-weight:bold; font-size:4em; font-style: italic;">RUSH</h2>
|
||||||
></script>
|
</div>
|
||||||
<link
|
<div class="row pt-5 px-3 m-0">
|
||||||
rel="stylesheet"
|
<p class="text-center">Bienvenue dans le mode <b>ScriptRush</b> ! Tu es ici dans le mode multijoueur de <b>Scripted</b>.
|
||||||
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0"
|
Dans ce mode, tu vas pouvoir affronter d'autres joueurs et tenter de gagner le plus de points possible.
|
||||||
/>
|
Pour cela, tu vas devoir résoudre le plus d'énigme de possible en un temps imparti.
|
||||||
<link rel="stylesheet" href="./View/src/CSS/Main2.css" />
|
Si c'est ta première venue, je te conseille de jeter un œil au mode <b>CodeQuest</b> avant d'aller plus loin.
|
||||||
<link rel="stylesheet" href="./View/src/CSS/FirstTest.css">
|
Pour les plus téméraires, je vous laisse cliquer sur <b>Lancer</b> pour trouver des adversaires.
|
||||||
</head>
|
Bonne chance et que le meilleur gagne !</p>
|
||||||
<body>
|
</div>
|
||||||
<div>
|
<div class="row pt-5 m-0">
|
||||||
<div id="imgMain" style="background: #050E15;">
|
<h3 class="text-center" id="waiting">Ready ?</h3>
|
||||||
<div class="grid">
|
</div>
|
||||||
<div class="row">
|
<div class="row m-0">
|
||||||
<h2 class="text-center mt-3 mr-5" style="color: #00CCFF; font-weight: 1000;font-style: italic;">SCRIPT</h2>
|
<div class="d-flex justify-content-center ltext-center" style="cursor: pointer; height: 20%">
|
||||||
<h2 class="text-center ml-5" style="color: #D400D4; font-weight:bold ; font-size:4em;font-style: italic;">RUSH</h2>
|
<div class="m-3">
|
||||||
</div>
|
<a class="btn" href="index.php?action=addToQueue">
|
||||||
<div class="row pt-5">
|
<span>LANCER</span>
|
||||||
<p class="text-center">Bienvenue dans le mode <b>ScriptRush</b> ! Tu es ici dans le mode multijoeur de <b>Scripted</b>.
|
</a>
|
||||||
Dans ce mode tu vas pouvoir affronter d'autres joueur et tenter de gagner le plus de points possible. Pour cela tu vas devoir
|
</div>
|
||||||
résoudre le plus d'énigme de possible en un temps imparti.
|
<div class="m-3">
|
||||||
Si c'est ta première venue je te conseile de jeter un oeil au mode <b>CodeQuest</b> avant d'aller plus loin.
|
<a class="btn" href="index.php?action=goToHome">
|
||||||
Pour les plus témaire je vous laisse cliquer sur <b>Lancer</b> pour trouver des adversaire.
|
<span>RETOUR</span>
|
||||||
Bonne chance et que le meilleur gagne !</p>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="row pt-5">
|
|
||||||
<h3 class="text-center" id="waiting">Ready ?</h3>
|
|
||||||
</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">
|
|
||||||
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</div>
|
||||||
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
Reference in new issue