diff options
author | Denise sur Lya <sekhmet@lya> | 2021-02-18 20:05:29 +0100 |
---|---|---|
committer | Denise sur Lya <sekhmet@lya> | 2021-02-18 20:05:29 +0100 |
commit | cf0d4c8c36224ca7059e99d03c25abaf694011d7 (patch) | |
tree | 2d1642c8576ee5d07dee33b399fae6ef05022b87 /static | |
parent | a680b2f78891692be215013481e167da2fffb5d8 (diff) | |
download | oms-cf0d4c8c36224ca7059e99d03c25abaf694011d7.tar.gz oms-cf0d4c8c36224ca7059e99d03c25abaf694011d7.tar.zst oms-cf0d4c8c36224ca7059e99d03c25abaf694011d7.zip |
extrapolation des courbes et calculs associés
Diffstat (limited to 'static')
-rw-r--r-- | static/requetes.js | 15 | ||||
-rw-r--r-- | static/style.css | 11 |
2 files changed, 23 insertions, 3 deletions
diff --git a/static/requetes.js b/static/requetes.js index 57330b3..6228020 100644 --- a/static/requetes.js +++ b/static/requetes.js | |||
@@ -19,6 +19,7 @@ function appelle_image() | |||
19 | var liste_warnings = this.response.messages | 19 | var liste_warnings = this.response.messages |
20 | var texte = this.response.export_txt; | 20 | var texte = this.response.export_txt; |
21 | var nomenfant = this.response.nomenfant ; | 21 | var nomenfant = this.response.nomenfant ; |
22 | var calculextra = this.response.calculextra ; | ||
22 | 23 | ||
23 | // on affiche l'export des données | 24 | // on affiche l'export des données |
24 | document.getElementById('export').innerHTML = texte; | 25 | document.getElementById('export').innerHTML = texte; |
@@ -67,7 +68,19 @@ function appelle_image() | |||
67 | li.appendChild(document.createTextNode(liste_warnings[i])); | 68 | li.appendChild(document.createTextNode(liste_warnings[i])); |
68 | ul.appendChild(li); | 69 | ul.appendChild(li); |
69 | } | 70 | } |
70 | } | 71 | } |
72 | // S'il y a des calculs faits, à afficher ! | ||
73 | if(calculextra.length != 0) | ||
74 | { | ||
75 | var elem_extr = document.getElementById("section_extradonnees") | ||
76 | elem_extr.style.display = "block" ; | ||
77 | var ul2=elem_extr.children[1] ; | ||
78 | for(i=0; i<calculextra.length; i++) { | ||
79 | var li = document.createElement("li"); | ||
80 | li.appendChild(document.createTextNode(calculextra[i])); | ||
81 | ul2.appendChild(li); | ||
82 | } | ||
83 | } | ||
71 | } | 84 | } |
72 | else{ // si la génération de l'image a merdé | 85 | else{ // si la génération de l'image a merdé |
73 | 86 | ||
diff --git a/static/style.css b/static/style.css index 667bc01..2c2358e 100644 --- a/static/style.css +++ b/static/style.css | |||
@@ -10,6 +10,13 @@ h1 { | |||
10 | text-align: center; | 10 | text-align: center; |
11 | } | 11 | } |
12 | 12 | ||
13 | .bandeau_beta { | ||
14 | background: #F5BF62; | ||
15 | border-style: solid; | ||
16 | border-width: 3px ; | ||
17 | padding: 0px 5px ; | ||
18 | } | ||
19 | |||
13 | #warnings { | 20 | #warnings { |
14 | background: #ff8060; | 21 | background: #ff8060; |
15 | } | 22 | } |
@@ -22,7 +29,7 @@ img#courbe { | |||
22 | max-width: 100% | 29 | max-width: 100% |
23 | } | 30 | } |
24 | 31 | ||
25 | #sectioncourbe, #section_courbe_poids, #section_courbe_taille { | 32 | #sectioncourbe, #section_courbe_poids, #section_courbe_taille, #section_extradonnees { |
26 | display: none; | 33 | display: none; |
27 | } | 34 | } |
28 | 35 | ||
@@ -45,7 +52,7 @@ img#courbe { | |||
45 | display: none; | 52 | display: none; |
46 | } | 53 | } |
47 | 54 | ||
48 | #pref_graphique { | 55 | #pref_graphique, #extra { |
49 | display: none; | 56 | display: none; |
50 | } | 57 | } |
51 | 58 | ||