Skip to content
GitLab
Menu
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
b0e8b277
Commit
b0e8b277
authored
Mar 21, 2021
by
Sylvain Coulange
Browse files
version1 par défaut pour l'instant
parent
5bdc6dd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/scripts/script.js
View file @
b0e8b277
...
...
@@ -10,24 +10,25 @@ function logg(texte) {
var
version2
=
true
function
switchv2
(){
version2
=
!
version2
if
(
version2
){
console
.
log
(
"
Affichage version 2
"
)
document
.
getElementById
(
'
switchv2
'
).
checked
=
true
document
.
getElementById
(
'
ecritoire
'
).
style
.
display
=
"
none
"
document
.
getElementById
(
'
panier
'
).
style
.
display
=
"
none
"
document
.
querySelectorAll
(
'
.param-v1
'
).
forEach
(
div
=>
{
div
.
style
.
display
=
"
none
"
})
document
.
getElementById
(
'
eraseAll
'
).
style
.
display
=
"
none
"
document
.
getElementById
(
'
multidraggable
'
).
style
.
display
=
"
block
"
document
.
getElementById
(
'
panierv2
'
).
style
.
display
=
"
block
"
version2
=
!
version2
}
else
{
console
.
log
(
"
Affichage version 1
"
)
document
.
getElementById
(
'
switchv2
'
).
checked
=
false
document
.
getElementById
(
'
ecritoire
'
).
style
.
display
=
"
block
"
document
.
getElementById
(
'
panier
'
).
style
.
display
=
"
block
"
document
.
querySelectorAll
(
'
.param-v1
'
).
forEach
(
div
=>
{
div
.
style
.
display
=
"
block
"
})
document
.
getElementById
(
'
eraseAll
'
).
style
.
display
=
"
block
"
document
.
getElementById
(
'
multidraggable
'
).
style
.
display
=
"
none
"
document
.
getElementById
(
'
panierv2
'
).
style
.
display
=
"
none
"
version2
=
!
version2
}
}
// Passer à la v2 par défaut
...
...
@@ -55,7 +56,7 @@ let repCases = {};
var
pageId
=
thisURL
.
match
(
/id-
\w
+/
);
if
(
pageId
)
{
logg
(
"
Page ID :
"
+
pageId
);
switchv2
()
//
switchv2()
}
else
{
logg
(
"
Page vierge
"
);
pageId
=
'
0
'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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