Commit a65b7608 authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

ajout addStat

parent 33493fab
......@@ -415,6 +415,7 @@
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
<script type="text/javascript" src="scripts/addStat.js"></script>
<script type="text/javascript" src="scripts/cartes.js"></script>
<script type="text/javascript" src="scripts/phon2api.js"></script>
<script type="text/javascript" src="scripts/syllons.js"></script>
......
async function addStat(modul, lang=lang) {
// ON EMBALLE TOUT ÇA
var colis = {
app: "phonodrop",
module: modul,
lang: lang
}
// Paramètres d'envoi
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(colis)
};
// ENVOI
await fetch('https://phonographe.alem-app.fr/addStat/', options);
}
\ No newline at end of file
......@@ -5,8 +5,6 @@
let stress1ponderator = 2
let stress2ponderator = 1.5
//////////////////////////////////////////////////////
///// IMPORT DES CARTES (autres que les tableaux svg)
for (i in puncts) {
......@@ -157,7 +155,14 @@ function sortGroup(groupX){
// - gattegno
// - pronsci
var firstPhon = true;
function recupPhon(identifiant){
if (firstPhon) {
addStat("phonodrop",lang);
firstPhon = false;
}
//console.log(identifiant)
var newDiv = document.createElement('div')
......@@ -499,7 +504,7 @@ function getHighestZIndex(){
}
// GESTION DES STRESS
// GESTION DU STRESS
let stress1 = false
let stress2 = false
function setStress(nb){
......
......@@ -27,6 +27,8 @@ function selectPanneau(p){
var svgZhJi = document.getElementById('svgZhJi'); // Panneau Mandarin Shuman Jiao
var svgZhP7 = document.getElementById('svgZhP7'); // Panneau Mandarin P7 2021
firstPhon = true; // pour addstat, actif au premier phon cliqué
if (p == 'phonoFrDo') {
famille="do_bouches"
lang="fr"
......
......@@ -25,6 +25,8 @@ body {
font-family: Palatino, Times, Calibri;
}
.logo {
display: flex;
justify-content: center;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment