mirror of
https://github.com/appen-isen/site-interpromo-2024.git
synced 2026-03-18 21:40:39 +01:00
Refactor all file using prettier
This commit is contained in:
89
.gitignore
vendored
Normal file
89
.gitignore
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
|
||||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
||||
|
||||
# User-specific stuff
|
||||
.idea/**/workspace.xml
|
||||
.idea/**/tasks.xml
|
||||
.idea/**/usage.statistics.xml
|
||||
.idea/**/dictionaries
|
||||
.idea/**/shelf
|
||||
|
||||
# AWS User-specific
|
||||
.idea/**/aws.xml
|
||||
|
||||
# Generated files
|
||||
.idea/**/contentModel.xml
|
||||
|
||||
# Sensitive or high-churn files
|
||||
.idea/**/dataSources/
|
||||
.idea/**/dataSources.ids
|
||||
.idea/**/dataSources.local.xml
|
||||
.idea/**/sqlDataSources.xml
|
||||
.idea/**/dynamic.xml
|
||||
.idea/**/uiDesigner.xml
|
||||
.idea/**/dbnavigator.xml
|
||||
|
||||
# Gradle
|
||||
.idea/**/gradle.xml
|
||||
.idea/**/libraries
|
||||
|
||||
# Gradle and Maven with auto-import
|
||||
# When using Gradle or Maven with auto-import, you should exclude module files,
|
||||
# since they will be recreated, and may cause churn. Uncomment if using
|
||||
# auto-import.
|
||||
# .idea/artifacts
|
||||
# .idea/compiler.xml
|
||||
# .idea/jarRepositories.xml
|
||||
# .idea/modules.xml
|
||||
# .idea/*.iml
|
||||
# .idea/modules
|
||||
# *.iml
|
||||
# *.ipr
|
||||
|
||||
# CMake
|
||||
cmake-build-*/
|
||||
|
||||
# Mongo Explorer plugin
|
||||
.idea/**/mongoSettings.xml
|
||||
|
||||
# File-based project format
|
||||
*.iws
|
||||
|
||||
# IntelliJ
|
||||
out/
|
||||
|
||||
# mpeltonen/sbt-idea plugin
|
||||
.idea_modules/
|
||||
|
||||
# JIRA plugin
|
||||
atlassian-ide-plugin.xml
|
||||
|
||||
# Cursive Clojure plugin
|
||||
.idea/replstate.xml
|
||||
|
||||
# Crashlytics plugin (for Android Studio and IntelliJ)
|
||||
com_crashlytics_export_strings.xml
|
||||
crashlytics.properties
|
||||
crashlytics-build.properties
|
||||
fabric.properties
|
||||
|
||||
# Editor-based Rest Client
|
||||
.idea/httpRequests
|
||||
|
||||
# Android studio 3.1+ serialized cache file
|
||||
.idea/caches/build_file_checksums.ser
|
||||
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
*.code-workspace
|
||||
|
||||
# Local History for Visual Studio Code
|
||||
.history/
|
||||
|
||||
|
||||
|
||||
|
||||
# End of https://mrkandreev.name/snippets/gitignore-generator/#WebStorm+all,VisualStudioCode,js,html,css
|
||||
@@ -5,8 +5,10 @@
|
||||
<title> Arbitrage Match </title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<link rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200"/>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
|
||||
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<!--- Ajout d'un fichier css pour les classes personalisé --->
|
||||
<link rel="stylesheet" href="style.css"/>
|
||||
<script src="js/cookie.js" defer></script>
|
||||
@@ -19,11 +21,14 @@
|
||||
<nav class="navbar navbar-dark bg-dark fixed-top">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="index.html">
|
||||
<img src="assets/appen.png" alt="Logo" width="30" height="30" class="d-inline-block align-text-top logo-appen">
|
||||
<img src="assets/appen.png" alt="Logo" width="30" height="30"
|
||||
class="d-inline-block align-text-top logo-appen">
|
||||
Interpromos 2023
|
||||
</a>
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Ouvrir la navigation">
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
|
||||
data-bs-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent"
|
||||
aria-expanded="false" aria-label="Ouvrir la navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
@@ -74,7 +79,11 @@
|
||||
<h5 class="text-center" id="textPoint2"></h5>
|
||||
<div class="text-center"><a href="" class="btn btn-primary" id="btnPoint2">But pour promo Y</a></div>
|
||||
<br>
|
||||
<form id="stopMatch"><div class="text-center"><button type="submit" class="btn btn-danger" id="btnStop">Arrêter le match</button></div></form>
|
||||
<form id="stopMatch">
|
||||
<div class="text-center">
|
||||
<button type="submit" class="btn btn-danger" id="btnStop">Arrêter le match</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -5,8 +5,10 @@
|
||||
<title> Arbitrage </title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<link rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200"/>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
|
||||
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<!--- Ajout d'un fichier css pour les classes personalisé --->
|
||||
<link rel="stylesheet" href="style.css"/>
|
||||
<script src="js/cookie.js" defer></script>
|
||||
@@ -19,11 +21,14 @@
|
||||
<nav class="navbar navbar-dark bg-dark fixed-top">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="index.html">
|
||||
<img src="assets/appen.png" alt="Logo" width="30" height="30" class="d-inline-block align-text-top logo-appen">
|
||||
<img src="assets/appen.png" alt="Logo" width="30" height="30"
|
||||
class="d-inline-block align-text-top logo-appen">
|
||||
Interpromos 2023
|
||||
</a>
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Ouvrir la navigation">
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
|
||||
data-bs-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent"
|
||||
aria-expanded="false" aria-label="Ouvrir la navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
@@ -69,9 +74,17 @@
|
||||
|
||||
<div class="container">
|
||||
<div class="col-8 offset-2 mt-6" id="cardContainer">
|
||||
<div class="text-center align-items-center"><button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modalAddMatch">Ajouter un match</button></div>
|
||||
<div class="text-center align-items-center">
|
||||
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modalAddMatch">Ajouter
|
||||
un match
|
||||
</button>
|
||||
</div>
|
||||
<br>
|
||||
<div class="text-center align-items-center"><button type="button" class="btn btn-danger" data-bs-toggle="modal" data-bs-target="#modalRemoveMatch">Supprimer un match</button></div>
|
||||
<div class="text-center align-items-center">
|
||||
<button type="button" class="btn btn-danger" data-bs-toggle="modal" data-bs-target="#modalRemoveMatch">
|
||||
Supprimer un match
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal" tabindex="-1" id="modalAddMatch">
|
||||
|
||||
</div>
|
||||
@@ -87,7 +100,9 @@
|
||||
<div class="mb-3" id="matchdelJS">
|
||||
|
||||
</div>
|
||||
<button type="submit" class="btn btn-danger">Supprimer ce match (attention cette action est irréversible)</button>
|
||||
<button type="submit" class="btn btn-danger">Supprimer ce match (attention cette action est
|
||||
irréversible)
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -98,8 +113,8 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
|
||||
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
|
||||
crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,8 +5,10 @@
|
||||
<title> Matchs en direct </title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<link rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200"/>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
|
||||
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<!--- Ajout d'un fichier css pour les classes personalisé --->
|
||||
<link rel="stylesheet" href="style.css"/>
|
||||
<script src="js/alerts.js"></script>
|
||||
@@ -19,18 +21,22 @@
|
||||
<nav class="navbar navbar-dark bg-dark fixed-top">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="index.html">
|
||||
<img src="assets/appen.png" alt="Logo" width="30" height="30" class="d-inline-block align-text-top logo-appen">
|
||||
<img src="assets/appen.png" alt="Logo" width="30" height="30"
|
||||
class="d-inline-block align-text-top logo-appen">
|
||||
Interpromos 2023
|
||||
</a>
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Ouvrir la navigation">
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
|
||||
data-bs-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent"
|
||||
aria-expanded="false" aria-label="Ouvrir la navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse text-bg-dark" id="navbarToggleExternalContent" data-bs-theme="dark">
|
||||
<ul class="navbar-nav justify-content-end flex-grow-1 pe-3">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active d-inline-flex align-items-center" aria-current="page" href="index.html">
|
||||
<a class="nav-link active d-inline-flex align-items-center" aria-current="page"
|
||||
href="index.html">
|
||||
<div class="pe-3 icons-display"></div>
|
||||
Matchs en direct
|
||||
</a>
|
||||
@@ -71,6 +77,8 @@
|
||||
</div>
|
||||
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
|
||||
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
|
||||
crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -185,8 +185,7 @@ if(currentStatus.expand.sport.name === "basketball"){
|
||||
textPoint2.innerHTML = currentStatus.point2 + 3;
|
||||
location.reload();
|
||||
});
|
||||
}
|
||||
else if(currentStatus.expand.sport.name === "volleyball" || currentStatus.expand.sport.name === "badminton"){
|
||||
} else if (currentStatus.expand.sport.name === "volleyball" || currentStatus.expand.sport.name === "badminton") {
|
||||
//Mise à jour de l'affichage des boutons
|
||||
buttonPoint1.innerHTML = "1 point pour " + currentStatus.expand.team1.name;
|
||||
buttonPoint2.innerHTML = "1 point pour " + currentStatus.expand.team2.name;
|
||||
@@ -247,9 +246,7 @@ else if(currentStatus.expand.sport.name === "volleyball" || currentStatus.expand
|
||||
|
||||
//Mise à jour du nombre de points
|
||||
const data = {
|
||||
"set1": currentStatus.set1 + 1,
|
||||
"point1": 0,
|
||||
"point2": 0,
|
||||
"set1": currentStatus.set1 + 1, "point1": 0, "point2": 0,
|
||||
};
|
||||
//Envoi de la requête
|
||||
const record = await pb.collection('match').update(idMatch, data);
|
||||
@@ -265,9 +262,7 @@ else if(currentStatus.expand.sport.name === "volleyball" || currentStatus.expand
|
||||
|
||||
//Mise à jour du nombre de points
|
||||
const data = {
|
||||
"set2": currentStatus.set2 + 1,
|
||||
"point1": 0,
|
||||
"point2": 0,
|
||||
"set2": currentStatus.set2 + 1, "point1": 0, "point2": 0,
|
||||
};
|
||||
//Envoi de la requête
|
||||
const record = await pb.collection('match').update(idMatch, data);
|
||||
|
||||
@@ -9,8 +9,7 @@ let matchList = await pb.collection('match').getFullList({
|
||||
//Check if navigator supports notifications
|
||||
if (!("Notification" in window)) {
|
||||
console.error("Ce navigateur ne supporte pas les notifications desktop");
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
//Ask for notifications permission on page load
|
||||
window.addEventListener('load', function () {
|
||||
if (Notification.permission !== "granted") {
|
||||
@@ -134,17 +133,14 @@ if(window.location.href.includes("arbitrage.html")){
|
||||
if (record.status === "waiting") {
|
||||
arbitrageButtonLink.className = "btn btn-primary mt-2";
|
||||
arbitrageButtonLink.innerHTML = "Démarrer et arbitrer ce match";
|
||||
}
|
||||
else if(record.status === "in_progress") {
|
||||
} else if (record.status === "in_progress") {
|
||||
arbitrageButtonLink.className = "btn btn-warning mt-2";
|
||||
arbitrageButtonLink.innerHTML = "Arbitrer ce match";
|
||||
}
|
||||
else if(record.status === "finished") {
|
||||
} else if (record.status === "finished") {
|
||||
arbitrageButtonLink.className = "btn btn-success mt-2";
|
||||
arbitrageButtonLink.innerHTML = "Match terminé";
|
||||
container = document.getElementById('cardContainer2');
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
arbitrageButtonLink.className = "btn btn-secondary mt-2";
|
||||
arbitrageButtonLink.innerHTML = "Erreur de statut";
|
||||
}
|
||||
@@ -312,8 +308,7 @@ if(window.location.href.includes("arbitrage.html")){
|
||||
let currentMode = "";
|
||||
if (sportID.name === "badminton") {
|
||||
currentMode = "tournoi";
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
currentMode = "poules"
|
||||
}
|
||||
const data = {
|
||||
@@ -416,14 +411,11 @@ if(window.location.href.includes("index.html") || window.location.href === "http
|
||||
cardHeader.id = "cardHeader" + match.id;
|
||||
if (match.status === "waiting") {
|
||||
cardHeader.classList.add("text-primary-emphasis");
|
||||
}
|
||||
else if(match.status === "in_progress") {
|
||||
} else if (match.status === "in_progress") {
|
||||
cardHeader.classList.add("text-warning-emphasis");
|
||||
}
|
||||
else if(match.status === "finished") {
|
||||
} else if (match.status === "finished") {
|
||||
cardHeader.classList.add("text-success-emphasis");
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
cardHeader.classList.add("text-emphasis-light");
|
||||
}
|
||||
//Affichage de l'heure de début si le match n'est pas en cours ou a une erreur de statut
|
||||
@@ -494,18 +486,15 @@ if(window.location.href.includes("index.html") || window.location.href === "http
|
||||
cardFooter.className = "card-footer bg-light-subtle text-primary-emphasis";
|
||||
cardFooter.id = "cardFooter" + match.id;
|
||||
cardFooter.innerHTML = "Match en attente";
|
||||
}
|
||||
else if(match.status === "in_progress") {
|
||||
} else if (match.status === "in_progress") {
|
||||
cardFooter.className = "card-footer bg-light-subtle text-warning-emphasis";
|
||||
cardFooter.id = "cardFooter" + match.id;
|
||||
cardFooter.innerHTML = "Match en cours";
|
||||
}
|
||||
else if(match.status === "finished") {
|
||||
} else if (match.status === "finished") {
|
||||
cardFooter.className = "card-footer bg-light-subtle text-success-emphasis";
|
||||
cardFooter.id = "cardFooter" + match.id;
|
||||
cardFooter.innerHTML = "Match terminé";
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
cardFooter.className = "card-footer bg-light-subtle text-emphasis-light";
|
||||
cardFooter.id = "cardFooter" + match.id;
|
||||
cardFooter.innerHTML = "Erreur de statut";
|
||||
@@ -527,6 +516,4 @@ if(window.location.href.includes("index.html") || window.location.href === "http
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
console.log("Backend match loaded!");
|
||||
@@ -127,9 +127,15 @@ function getSportNextMatchText(sport){
|
||||
}
|
||||
const time_start = new Date(match.heure_debut);
|
||||
if (match.team1 && match.team2) {
|
||||
return "Prochain match : " + match.expand.team1.name + " vs " + match.expand.team2.name + ' ' + time_start.toLocaleString('fr', { weekday: 'long' }) + " à " + time_start.toLocaleString('fr', { hour: 'numeric', minute: 'numeric' });
|
||||
return "Prochain match : " + match.expand.team1.name + " vs " + match.expand.team2.name + ' ' + time_start.toLocaleString('fr', {weekday: 'long'}) + " à " + time_start.toLocaleString('fr', {
|
||||
hour: 'numeric',
|
||||
minute: 'numeric'
|
||||
});
|
||||
} else {
|
||||
return "Prochain match : " + match.name + ' ' + time_start.toLocaleString('fr', { weekday: 'long' }) + " à " + time_start.toLocaleString('fr', { hour: 'numeric', minute: 'numeric' });
|
||||
return "Prochain match : " + match.name + ' ' + time_start.toLocaleString('fr', {weekday: 'long'}) + " à " + time_start.toLocaleString('fr', {
|
||||
hour: 'numeric',
|
||||
minute: 'numeric'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -153,10 +153,17 @@ function getPromoCard(promo, teamsBySport){
|
||||
if (nextMatch) {
|
||||
const time_start = new Date(nextMatch.heure_debut);
|
||||
if (nextMatch.team1 && nextMatch.team2) {
|
||||
cardHtml += `<div class="card-footer bg-light-subtle text-emphasis-light">Prochain match : <b>${nextMatch.expand.sport.name}</b> ${nextMatch.expand.team1.name} vs ${nextMatch.expand.team2.name} ${time_start.toLocaleString('fr', { weekday: 'long' })} à ${time_start.toLocaleString('fr', { hour: 'numeric', minute: 'numeric' })}</div>`
|
||||
cardHtml += `<div class="card-footer bg-light-subtle text-emphasis-light">Prochain match : <b>${nextMatch.expand.sport.name}</b> ${nextMatch.expand.team1.name} vs ${nextMatch.expand.team2.name} ${time_start.toLocaleString('fr', {weekday: 'long'})} à ${time_start.toLocaleString('fr', {
|
||||
hour: 'numeric',
|
||||
minute: 'numeric'
|
||||
})}</div>`
|
||||
} else {
|
||||
cardHtml += `<div class="card-footer bg-light-subtle text-emphasis-light">Prochain match : <b>${nextMatch.name} ${time_start.toLocaleString('fr', { weekday: 'long' })} à ${time_start.toLocaleString('fr', { hour: 'numeric', minute: 'numeric' })}</div>`
|
||||
} }
|
||||
cardHtml += `<div class="card-footer bg-light-subtle text-emphasis-light">Prochain match : <b>${nextMatch.name} ${time_start.toLocaleString('fr', {weekday: 'long'})} à ${time_start.toLocaleString('fr', {
|
||||
hour: 'numeric',
|
||||
minute: 'numeric'
|
||||
})}</div>`
|
||||
}
|
||||
}
|
||||
cardHtml += `</div>`
|
||||
return cardHtml
|
||||
}
|
||||
@@ -202,9 +209,15 @@ function getTeamCard(teamBySport){
|
||||
if (nextMatch) {
|
||||
const time_start = new Date(nextMatch.heure_debut);
|
||||
if (nextMatch.team1 && nextMatch.team2) {
|
||||
cardHtml += `<div class="card-footer bg-light-subtle text-emphasis-light">Prochain match : <b>${nextMatch.expand.sport.name}</b> ${nextMatch.expand.team1.name} vs ${nextMatch.expand.team2.name} ${time_start.toLocaleString('fr', { weekday: 'long' })} à ${time_start.toLocaleString('fr', { hour: 'numeric', minute: 'numeric' })}</div>`
|
||||
cardHtml += `<div class="card-footer bg-light-subtle text-emphasis-light">Prochain match : <b>${nextMatch.expand.sport.name}</b> ${nextMatch.expand.team1.name} vs ${nextMatch.expand.team2.name} ${time_start.toLocaleString('fr', {weekday: 'long'})} à ${time_start.toLocaleString('fr', {
|
||||
hour: 'numeric',
|
||||
minute: 'numeric'
|
||||
})}</div>`
|
||||
} else {
|
||||
cardHtml += `<div class="card-footer bg-light-subtle text-emphasis-light">Prochain match : <b>${nextMatch.name} ${time_start.toLocaleString('fr', { weekday: 'long' })} à ${time_start.toLocaleString('fr', { hour: 'numeric', minute: 'numeric' })}</div>`
|
||||
cardHtml += `<div class="card-footer bg-light-subtle text-emphasis-light">Prochain match : <b>${nextMatch.name} ${time_start.toLocaleString('fr', {weekday: 'long'})} à ${time_start.toLocaleString('fr', {
|
||||
hour: 'numeric',
|
||||
minute: 'numeric'
|
||||
})}</div>`
|
||||
}
|
||||
}
|
||||
cardHtml += `</div>`
|
||||
|
||||
@@ -27,7 +27,6 @@ let hideImage = getCookie("hideImage");
|
||||
|
||||
if (hideImage === "true") {
|
||||
document.querySelector(".logo-appen").style.display = "none";
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
document.querySelector(".logo-appen").style.display = "block";
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -5,8 +5,10 @@
|
||||
<title> Connexion </title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<link rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200"/>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
|
||||
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<!--- Ajout d'un fichier css pour les classes personalisé --->
|
||||
<link rel="stylesheet" href="style.css"/>
|
||||
<script src="js/cookie.js" defer></script>
|
||||
@@ -18,11 +20,14 @@
|
||||
<nav class="navbar navbar-dark bg-dark fixed-top">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="index.html">
|
||||
<img src="assets/appen.png" alt="Logo" width="30" height="30" class="d-inline-block align-text-top logo-appen">
|
||||
<img src="assets/appen.png" alt="Logo" width="30" height="30"
|
||||
class="d-inline-block align-text-top logo-appen">
|
||||
Interpromos 2023
|
||||
</a>
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Ouvrir la navigation">
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
|
||||
data-bs-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent"
|
||||
aria-expanded="false" aria-label="Ouvrir la navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
@@ -73,12 +78,16 @@
|
||||
<br>
|
||||
<label for="LoginPassword" class="form-label">Mot de passe</label>
|
||||
<input type="password" class="form-control" id="LoginPassword" placeholder="Mot de passe">
|
||||
<div class="text-center"><button type="submit" class="btn btn-primary btn-lg btn-block mt-4">Connexion</button></div>
|
||||
<div class="text-center">
|
||||
<button type="submit" class="btn btn-primary btn-lg btn-block mt-4">Connexion</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
|
||||
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
|
||||
crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,8 +5,10 @@
|
||||
<title> Liste des Sports </title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<link rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200"/>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
|
||||
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<!--- Ajout d'un fichier css pour les classes personalisé --->
|
||||
<link rel="stylesheet" href="style.css"/>
|
||||
<script src="js/cookie.js" defer></script>
|
||||
@@ -18,11 +20,14 @@
|
||||
<nav class="navbar navbar-dark bg-dark fixed-top">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="index.html">
|
||||
<img src="assets/appen.png" alt="Logo" width="30" height="30" class="d-inline-block align-text-top logo-appen">
|
||||
<img src="assets/appen.png" alt="Logo" width="30" height="30"
|
||||
class="d-inline-block align-text-top logo-appen">
|
||||
Interpromos 2023
|
||||
</a>
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Ouvrir la navigation">
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
|
||||
data-bs-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent"
|
||||
aria-expanded="false" aria-label="Ouvrir la navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
@@ -41,7 +46,8 @@
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active d-inline-flex align-items-center" aria-current="page" href="sports.html">
|
||||
<a class="nav-link active d-inline-flex align-items-center" aria-current="page"
|
||||
href="sports.html">
|
||||
<div class="pe-3 icons-display"></div>
|
||||
Liste des sports
|
||||
</a>
|
||||
@@ -67,6 +73,8 @@
|
||||
</div>
|
||||
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
|
||||
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
|
||||
crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,8 +5,10 @@
|
||||
<title> Classement et équipes </title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<link rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200"/>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
|
||||
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<!--- Ajout d'un fichier css pour les classes personalisé --->
|
||||
<link rel="stylesheet" href="style.css"/>
|
||||
<script src="js/cookie.js" defer></script>
|
||||
@@ -18,11 +20,14 @@
|
||||
<nav class="navbar navbar-dark bg-dark fixed-top">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="index.html">
|
||||
<img src="assets/appen.png" alt="Logo" width="30" height="30" class="d-inline-block align-text-top logo-appen">
|
||||
<img src="assets/appen.png" alt="Logo" width="30" height="30"
|
||||
class="d-inline-block align-text-top logo-appen">
|
||||
Interpromos 2023
|
||||
</a>
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Ouvrir la navigation">
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
|
||||
data-bs-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent"
|
||||
aria-expanded="false" aria-label="Ouvrir la navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
@@ -35,7 +40,8 @@
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active d-inline-flex align-items-center" aria-current="page" href="teams.html">
|
||||
<a class="nav-link active d-inline-flex align-items-center" aria-current="page"
|
||||
href="teams.html">
|
||||
<div class="pe-3 icons-display"></div>
|
||||
Classement et équipes
|
||||
</a>
|
||||
@@ -68,6 +74,8 @@
|
||||
<div class="col-8 offset-2" id="teamCardContainer"></div>
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
|
||||
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
|
||||
crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user