From 3768eb49947bd801adb11d82f954e29f8b225379 Mon Sep 17 00:00:00 2001 From: pisouvigne Date: Thu, 18 Jun 2020 18:09:14 +0200 Subject: [PATCH] =?UTF-8?q?nouveau=20syst=C3=A8me=20de=20liens?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/test/js/createElement.js | 3 +- site/vue/css/style.css | 203 ++++++++---- site/vue/index.html | 106 ++++-- site/vue/js/const.js | 4 +- site/vue/js/createElement.js | 590 +++++++++++++++++++--------------- site/vue/js/func.js | 13 +- site/vue/js/init.js | 31 +- site/vue/js/lang.js | 20 +- site/vue/js/logique.js | 10 +- site/vue/js/main.js | 137 ++++---- site/vue/js/progress.js | 14 + site/vue/js/timer.js | 26 +- site/vue/todo.todo | 21 +- 13 files changed, 710 insertions(+), 468 deletions(-) create mode 100644 site/vue/js/progress.js diff --git a/site/test/js/createElement.js b/site/test/js/createElement.js index 7d31536..ad9bf2e 100644 --- a/site/test/js/createElement.js +++ b/site/test/js/createElement.js @@ -127,6 +127,7 @@ function createLink(entre, sortie) { } break; default: + console.log("id2222222222222222222"); endLines.push(lineId); createLine([entre.x + imageWidth, entre.y + imageHeight / 2, sortie.x, sortie.y + (imageHeight / end.position)*end.let], "line" + lineId); setLine(entre, "id3", "line" + lineId); @@ -238,9 +239,7 @@ function createLinkSwitch(){ else { switchsInfoCopy.forEach(function(element){ if(stage.findOne("#"+element.id).id3 == null){ - console.log("le switch " + element.id); if(Math.abs(logique.y - element.y) < distanceSwitch){ - console.log("ai"); distanceSwitch = Math.abs(logique.y - element.y); switchs = element; } diff --git a/site/vue/css/style.css b/site/vue/css/style.css index 18f0cb6..9594076 100644 --- a/site/vue/css/style.css +++ b/site/vue/css/style.css @@ -2,20 +2,26 @@ font-family: main; src: url(../font/main.TTF); } + @font-face { font-family: dys; src: url(../font/dys.otf); } -*{ + +* { transition: .01s; } -body{ +body { font-family: main; + background-color: #D7CCC8; + height: 91%; } -body { - background-color: #D7CCC8; +html { + height: 100%; + margin: 0; + padding: 0; } .title { @@ -24,7 +30,7 @@ body { font-size: 8vh; } -#play_container{ +#play_container { display: flex; height: 100%; } @@ -84,6 +90,7 @@ body { .fa-cog:hover { font-size: 6vh; } + .fa-trophy { font-size: 5vh; position: absolute; @@ -96,6 +103,7 @@ body { .fa-trophy:hover { font-size: 6vh; } + .fa-users { font-size: 5vh; position: absolute; @@ -121,11 +129,12 @@ body { .fa-info:hover { font-size: 6vh; } + .fa-arrow-left { font-size: 5vh; position: absolute; left: 0; - margin: 4vh; + margin: 2vh; transition: .5s; } @@ -147,7 +156,7 @@ i:hover { width: 100%; height: 100%; overflow: auto; - + background-color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0.4); } @@ -163,33 +172,38 @@ i:hover { -webkit-animation-duration: 0.4s; animation-name: animatetop; animation-duration: 0.4s -} -.modal-body{ +} + +.modal-body { height: 100%; - border:5px solid #D3D3CE; + border: 5px solid #D3D3CE; border-radius: 15px; } -.score-content{ + +.score-content { height: 90%; } -.scoreOne{ + +.scoreOne { position: absolute; width: 40%; bottom: 1.5%; - top:15%; - left:5%; - border:5px solid #D3D3CE; + top: 15%; + left: 5%; + border: 5px solid #D3D3CE; border-radius: 15px; } -.scoreTwo{ + +.scoreTwo { position: absolute; width: 40%; bottom: 1.5%; - top:15%; - right:5%; - border:5px solid #D3D3CE; + top: 15%; + right: 5%; + border: 5px solid #D3D3CE; border-radius: 15px; } + @-webkit-keyframes animatetop { from { top: -200px; @@ -224,98 +238,175 @@ img:hover { cursor: pointer; } -hr{ - border : 3px solid #D3D3CE; +hr { + border: 3px solid #D3D3CE; } -.img_france{ - margin-right:50px; + +.img_france { + margin-right: 50px; } -.setting_play{ +.setting_play { height: 30vh; width: 90%; } -.close{ + +.close { position: absolute; - right:33px; - top:10px; + right: 33px; + top: 10px; font-size: 50px; } -#modeDeJeu{ - font-size: 25px;; + +#modeDeJeu { + font-size: 25px; + ; } -.close:hover{ - color:red; + +.close:hover { + color: red; cursor: pointer; } -.margin-right{ +.margin-right { margin-right: 5%; } -.margin-global{ - margin-left: 2%; + +.margin-global { + margin-left: 2f%; margin-right: 2%; } -.veriteTable{ + +.veriteTable { border-collapse: collapse; border-radius: 15px; overflow: hidden; text-align: center; width: 30%; } -.veriteTable th{ + +.veriteTable th { height: 3em; } -.veriteTable td{ + +.veriteTable td { height: 2em; } -#playPage{ +#playPage { display: none; flex-direction: column; - height: 50%; + height: 95%; + margin: 0; + padding: 0; } -.border{ + +.border { border-radius: 15px; } -.secret{ + +.secret { cursor: pointer; - color:#fe8a71; + color: #fe8a71; } -#niveauGameOver{ - color:#fe8a71; + +#niveauGameOver { + color: #fe8a71; } -#scoreTotGameOver{ - color:#fe8a71; + +#scoreTotGameOver { + color: #fe8a71; } -#TempsTotGameOver{ - color:#fe8a71; + +#TempsTotGameOver { + color: #fe8a71; } -.timer_bar{ + +.timer_bar { height: 15px; max-width: 95%; - margin:2%; + margin: 2%; transition: 1.5s; } -.fa-star{ + +.fa-star { font-size: 10vh; cursor: default; } -@media screen and (max-width:900px){ +@media screen and (max-width:900px) { .fa { font-size: 1em; } - #titleGame{ + + #titleGame { font-size: 2em; - margin-top:35%; + margin-top: 35%; } + .far { - font-size:5em; + font-size: 5em; margin: 0; } - #setting_int{ + + #setting_int { font-size: 0.6em; } +} + +.timer_show { + font-size: 5vh; + position: absolute; + right: 10vh; + top: 3vh; + height: 10vh; + width: 10vh; + border-radius: 50%; + margin: 0; + text-align: center; +} + +.timer_txt { + transition: 0.2s; +} + +.info_check { + margin-right: 2%; +} + +#cache_reinit { + background-color: red; + color: #D7CCC8; + border: none; +} + +#cache_reinit:hover { + background-color: lightcoral; + cursor: pointer; +} +.input-color-container { + position: relative; + overflow: hidden; + width: 40px; + height: 40px; + border: solid 2px #ddd; + border-radius: 40px; +} +input[type=color]{ + position: absolute; + right: -8px; + top: -8px; + width: 56px; + height: 56px; + border: none; +} + +.input_line{ + display: flex; + justify-content: center; +} +.colomn_line_input{ + margin-right:25px; + margin-left:25px; } \ No newline at end of file diff --git a/site/vue/index.html b/site/vue/index.html index 30cf93c..ef4edfa 100644 --- a/site/vue/index.html +++ b/site/vue/index.html @@ -49,6 +49,7 @@



+

Ne plus afficher les aides

@@ -89,18 +90,44 @@



+

Ne plus afficher les aides

+ + + +
@@ -117,9 +144,9 @@