1
0
Fork 0

mise à jour

This commit is contained in:
p1905074 2020-11-23 21:24:43 +01:00
parent 0b55a1b002
commit 9703f42d32
4 changed files with 41 additions and 24 deletions

View file

@ -0,0 +1,11 @@
function setVisible(targetId) {
document.getElementById("notvisible").id = "visible";
}
function setNotVisible(targetId) {
document.getElementById(targetId).id = "notvisible";
}
function marksformChange(targetId) {
document.getElementById("marksform").style.display = "block";
}

View file

@ -488,3 +488,8 @@ div#visible + div
display: block
margin: auto
cursor: pointer
#notvisible
display: none
#marksform
display: none

View file

@ -2,7 +2,7 @@ extends ../template/navbar
block content
if student === true
div(class="marksdetails" id="visibl")
div(class="marksdetails" id="notvisible" onclick="setNotVisible(this.getAttribute('id'))")
table
tr
th(colspan="2") Details
@ -22,24 +22,24 @@ block content
th(colspan="2") Maths
tbody
tr
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 1
p 18/20
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 2
p 16/20
tr
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 1
p 18/20
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 2
p 16/20
tr
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 1
p 18/20
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 2
p 16/20
@ -50,17 +50,17 @@ block content
th(colspan="2") TP SE
tbody
tr
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 1
p 18/20
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 2
p 16/20
tr
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 1
p 18/20
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 2
p 16/20
@ -71,17 +71,17 @@ block content
th(colspan="2") PHP
tbody
tr
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 1
p 18/20
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 2
p 16/20
tr
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 1
p 18/20
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 2
p 16/20
@ -92,17 +92,17 @@ block content
th(colspan="2") Anglais
tbody
tr
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 1
p 18/20
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 2
p 16/20
tr
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 1
p 18/20
td
td(onclick="setVisible(this.getAttribute('id'))")
p DS 2
p 16/20
@ -111,11 +111,11 @@ block content
div(class="col s12 m10 offset-m1 marksgroup")
h3 Select a group
div(id="flexgroup")
p G1S1
p G2S2
p G3S3
p(onclick="marksformChange(this.getAttribute('id'))") G1S1
p(onclick="marksformChange(this.getAttribute('id'))") G2S2
p(onclick="marksformChange(this.getAttribute('id'))") G3S3
form
form(id="marksform")
table(id="markstable")
thead
tr

View file

@ -16,4 +16,5 @@ html
div(class="col s10" id="main")
block content
script(src="/javascripts/main.js")
script(src="/javascripts/marks.js")
script(src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js")