Compare commits

...

2 Commits

Author SHA1 Message Date
Noé GARNIER 35e2258830 Mise à jour de 'View/src/pages/Multijoueur/Partie.php'
continuous-integration/drone/push Build encountered an error Details
2 years ago
Noé GARNIER eadf6e51f1 Changement dédié au servuer de test
continuous-integration/drone/push Build encountered an error Details
2 years ago

@ -1,6 +1,6 @@
// const url = "http://localhost/Scripted/index.php"; // const url = "http://localhost/Scripted/index.php";
// const url = "http://82.165.180.114/Scripted/index.php"; const url = "http://82.165.180.114/Scripted/index.php";
const url = "http://sancy.iut.uca.fr/~lafourcade/Scripted/index.php"; // const url = "http://sancy.iut.uca.fr/~lafourcade/Scripted/index.php";
function run() { function run() {
const terminal = document.getElementById("console"); const terminal = document.getElementById("console");

@ -1,6 +1,6 @@
// const url = "http://localhost/Scripted/index.php"; // const url = "http://localhost/Scripted/index.php";
// const url = "http://82.165.180.114/Scripted/index.php"; const url = "http://82.165.180.114/Scripted/index.php";
const url = "http://sancy.iut.uca.fr/~lafourcade/Scripted/index.php"; // const url = "http://sancy.iut.uca.fr/~lafourcade/Scripted/index.php";
function run() { function run() {
const terminal = document.getElementById("console"); const terminal = document.getElementById("console");

@ -175,17 +175,17 @@
<!-- Multijoueur --> <!-- Multijoueur -->
<div class="row m-0 pt-4 pb-5 d-flex justify-content-center text-center"> <div class="row m-0 pt-4 pb-5 d-flex justify-content-center text-center">
<!-- <a class="cssbuttons-io" <a class="cssbuttons-io"
<?php <?php
// if (isset($_SESSION['role']) && $_SESSION['role'] == 'user' || isset($_SESSION['role']) && $_SESSION['role'] == 'admin'){ if (isset($_SESSION['role']) && $_SESSION['role'] == 'user' || isset($_SESSION['role']) && $_SESSION['role'] == 'admin'){
// echo 'href="index.php?action=goToLobby"'; echo 'href="index.php?action=goToLobby"';
// } }
// else{ else{
// echo 'href="index.php?action=goToLogin"'; echo 'href="index.php?action=goToLogin"';
// } }
?> ?>
id="btn-2"> --> id="btn-2">
<!-- <span> <span>
<svg fill="currentColor" height="200px" width="200px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 468.493 468.493" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_iconCarrier"> <g> <svg fill="currentColor" height="200px" width="200px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 468.493 468.493" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_iconCarrier"> <g>
<path d="M138.321,161.831h-17.437v-17.437c0-3.615-2.287-6.835-5.701-8.026c-5.319-1.855-10.904-2.796-16.6-2.796 c-5.696,0-11.281,0.941-16.6,2.796c-3.414,1.191-5.701,4.411-5.701,8.026v17.437H58.847c-3.615,0-6.834,2.287-8.025,5.7 c-1.856,5.318-2.797,10.904-2.797,16.601s0.941,11.283,2.797,16.601c1.191,3.413,4.411,5.699,8.025,5.699h17.437v17.437 c0,3.615,2.287,6.834,5.7,8.025c5.318,1.856,10.904,2.797,16.601,2.797c5.697,0,11.283-0.941,16.601-2.797 c3.413-1.191,5.7-4.41,5.7-8.025v-17.437h17.437c3.615,0,6.835-2.287,8.026-5.7c1.855-5.318,2.796-10.903,2.796-16.6 c0-5.696-0.941-11.281-2.796-16.6C145.156,164.118,141.937,161.831,138.321,161.831z M131.729,189.432h-19.344 c-4.694,0-8.5,3.806-8.5,8.5v19.344c-3.481,0.553-7.12,0.552-10.601,0v-19.344c0-4.694-3.806-8.5-8.5-8.5H65.44 c-0.276-1.741-0.415-3.511-0.415-5.3s0.139-3.56,0.415-5.301h19.344c4.694,0,8.5-3.806,8.5-8.5v-19.343 c3.482-0.553,7.12-0.553,10.601,0v19.343c0,4.694,3.806,8.5,8.5,8.5h19.343c0.276,1.741,0.415,3.511,0.415,5.301 C132.143,185.921,132.004,187.692,131.729,189.432z"></path> <path d="M138.321,161.831h-17.437v-17.437c0-3.615-2.287-6.835-5.701-8.026c-5.319-1.855-10.904-2.796-16.6-2.796 c-5.696,0-11.281,0.941-16.6,2.796c-3.414,1.191-5.701,4.411-5.701,8.026v17.437H58.847c-3.615,0-6.834,2.287-8.025,5.7 c-1.856,5.318-2.797,10.904-2.797,16.601s0.941,11.283,2.797,16.601c1.191,3.413,4.411,5.699,8.025,5.699h17.437v17.437 c0,3.615,2.287,6.834,5.7,8.025c5.318,1.856,10.904,2.797,16.601,2.797c5.697,0,11.283-0.941,16.601-2.797 c3.413-1.191,5.7-4.41,5.7-8.025v-17.437h17.437c3.615,0,6.835-2.287,8.026-5.7c1.855-5.318,2.796-10.903,2.796-16.6 c0-5.696-0.941-11.281-2.796-16.6C145.156,164.118,141.937,161.831,138.321,161.831z M131.729,189.432h-19.344 c-4.694,0-8.5,3.806-8.5,8.5v19.344c-3.481,0.553-7.12,0.552-10.601,0v-19.344c0-4.694-3.806-8.5-8.5-8.5H65.44 c-0.276-1.741-0.415-3.511-0.415-5.3s0.139-3.56,0.415-5.301h19.344c4.694,0,8.5-3.806,8.5-8.5v-19.343 c3.482-0.553,7.12-0.553,10.601,0v19.343c0,4.694,3.806,8.5,8.5,8.5h19.343c0.276,1.741,0.415,3.511,0.415,5.301 C132.143,185.921,132.004,187.692,131.729,189.432z"></path>
<path d="M254.329,166.478c0.009,0,0.019,0,0.028,0c7.996-0.009,14.459-6.501,14.44-14.497c-0.02-7.987-6.501-14.449-14.497-14.439 c-7.987,0.019-14.459,6.511-14.439,14.497C239.879,160.025,246.351,166.478,254.329,166.478z"></path> <path d="M254.329,166.478c0.009,0,0.019,0,0.028,0c7.996-0.009,14.459-6.501,14.44-14.497c-0.02-7.987-6.501-14.449-14.497-14.439 c-7.987,0.019-14.459,6.511-14.439,14.497C239.879,160.025,246.351,166.478,254.329,166.478z"></path>
@ -196,7 +196,7 @@
<path d="M379.786,265.546c0.009,0,0.02,0,0.029,0c7.996-0.019,14.459-6.51,14.439-14.497c-0.019-7.996-6.511-14.459-14.497-14.439 c-7.995,0.019-14.458,6.511-14.439,14.497C365.327,259.084,371.81,265.546,379.786,265.546z"></path> </g> </g> <path d="M379.786,265.546c0.009,0,0.02,0,0.029,0c7.996-0.019,14.459-6.51,14.439-14.497c-0.019-7.996-6.511-14.459-14.497-14.439 c-7.995,0.019-14.458,6.511-14.439,14.497C365.327,259.084,371.81,265.546,379.786,265.546z"></path> </g> </g>
</svg> </svg>
ScriptRush ScriptRush
</span> --> </span>
</a> </a>
</div> </div>
</div> </div>

@ -172,9 +172,9 @@
<script src="View/src/JS/baseMulti.js"> <script src="View/src/JS/baseMulti.js">
</script> </script>
<script> <script>
// const URL = "http://localhost/Scripted/index.php"; // const url = "http://localhost/Scripted/index.php";
// const URL = "http://82.165.180.114/Scripted/index.php"; const url = "http://82.165.180.114/Scripted/index.php";
const URL = "http://sancy.iut.uca.fr/~lafourcade/Scripted/index.php"; // const url = "http://sancy.iut.uca.fr/~lafourcade/Scripted/index.php";
function saveCode(index, enigmeId) { function saveCode(index, enigmeId) {
console.log("saveCode"); console.log("saveCode");
var index = '<?php echo $index; ?>'; var index = '<?php echo $index; ?>';

Loading…
Cancel
Save