Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
PhonoDrop
Commits
a65b7608
Commit
a65b7608
authored
Aug 08, 2022
by
Sylvain Coulange
🌼
Browse files
ajout addStat
parent
33493fab
Changes
5
Hide whitespace changes
Inline
Side-by-side
public/index.html
View file @
a65b7608
...
...
@@ -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>
...
...
public/scripts/addStat.js
0 → 100644
View file @
a65b7608
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
public/scripts/phonodrop_v2.js
View file @
a65b7608
...
...
@@ -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 D
ES
STRESS
// GESTION D
U
STRESS
let
stress1
=
false
let
stress2
=
false
function
setStress
(
nb
){
...
...
public/scripts/selectPanneau.js
View file @
a65b7608
...
...
@@ -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
"
...
...
public/styles/styles.css
View file @
a65b7608
...
...
@@ -25,6 +25,8 @@ body {
font-family
:
Palatino
,
Times
,
Calibri
;
}
.logo
{
display
:
flex
;
justify-content
:
center
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment