From a873427885eee996ff99abaee39d84a49a374333 Mon Sep 17 00:00:00 2001 From: readhame Date: Thu, 2 Jul 2020 16:43:21 +0200 Subject: [PATCH] correctio --- HyperSet/.idea/workspace.xml | 5 ++-- HyperSet/set.php | 2 +- HyperSet/vues/css/style.css | 53 +++++++++++++++++++++--------------- HyperSet/vues/homePage.html | 26 +++++++++++++----- HyperSet/vues/js/Settings.js | 15 ++++++++++ HyperSet/vues/js/set.js | 8 +++++- 6 files changed, 76 insertions(+), 33 deletions(-) diff --git a/HyperSet/.idea/workspace.xml b/HyperSet/.idea/workspace.xml index 5396f0d..a1276c9 100644 --- a/HyperSet/.idea/workspace.xml +++ b/HyperSet/.idea/workspace.xml @@ -107,6 +107,7 @@ + @@ -158,10 +159,10 @@ - + - + diff --git a/HyperSet/set.php b/HyperSet/set.php index dd40a5c..2490f26 100644 --- a/HyperSet/set.php +++ b/HyperSet/set.php @@ -25,7 +25,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'deal') { $_SESSION['deck2'] = new Deck($_GET['action']); $_SESSION['game2'] = new Game($_SESSION['deck2']); $game = $_SESSION['game2']; - echo json_encode($game->start(20)); + echo json_encode($game->start(36)); } else if (isset($_GET['action']) && $_GET['action'] == 'deal3') { $_SESSION['deck3'] = new Deck($_GET['action']); diff --git a/HyperSet/vues/css/style.css b/HyperSet/vues/css/style.css index 8903ddf..b1500b4 100644 --- a/HyperSet/vues/css/style.css +++ b/HyperSet/vues/css/style.css @@ -47,12 +47,21 @@ h1 { background: lightgrey; } -.game-board { - margin-top: 18%; +.game-board44 { + margin-top: -16%; height: auto; width: auto; transform: rotate(90deg); +} + +.game-board { + margin-top: 1%; + margin-left: 13%; + height: 700px; + width: 800px; + transform: rotate(90deg); + } .game-board0 { margin-top: 30%; @@ -98,8 +107,8 @@ h1 { .diamond.lightblue.stripped { transform: rotate(-67deg) skewX(-45deg) scaleY( 0.40); width: 38px; - background: repeating-linear-gradient(25deg, lightblue, lightblue 8px, white 8px, white 15px); - border: 2px solid lightblue; + background: repeating-linear-gradient(25deg, #6495ED, #6495ED 8px, white 8px, white 15px); + border: 2px solid #6495ED; } .diamond.yellow.stripped { transform: rotate(-67deg) skewX(-45deg) scaleY( 0.40); @@ -136,7 +145,7 @@ h1 { .diamond.lightblue.stripped.rond{ transform: rotate(-67deg) skewX(-45deg) scaleY( 0.40); width: 38px; - background: repeating-linear-gradient(25deg, lightblue, lightblue 6px, white 7px, white 14px); + background: repeating-linear-gradient(25deg, #6495ED, #6495ED 6px, white 7px, white 14px); border: 7px dotted black; } @@ -184,7 +193,7 @@ h1 { .diamond.lightblue.stripped.point{ transform: rotate(-67deg) skewX(-45deg) scaleY( 0.40); width: 38px; - background: repeating-linear-gradient(25deg, lightblue, lightblue 6px, white 7px, white 14px); + background: repeating-linear-gradient(25deg, #6495ED, #6495ED 6px, white 7px, white 14px); border: 4px dashed black; } @@ -231,7 +240,7 @@ h1 { } .diamond.solid.lightblue.point{ border-style: dashed; - border-color: lightblue; + border-color: #6495ED; } .diamond.solid.purple.point{ border-style: dashed; @@ -273,13 +282,13 @@ h1 { } .diamond.lightblue.quadrillage{ - background-color: lightblue; + background-color: #6495ED; background-image: linear-gradient(-35deg, white 25%, transparent 25%, transparent 75%, white 75%), linear-gradient(-35deg, white 25%, transparent 25%, transparent 75%, white 75%); background-size: 20px 19px; background-position: 0 0, 10px 10px; - border: 2px solid lightblue; + border: 2px solid #6495ED; } .diamond.purple.quadrillage{ background-color: purple; @@ -394,12 +403,12 @@ radial-gradient(#fafafa 10%, transparent 10%); border: 2px solid saddlebrown; } .lightblue.pointille{ - background-image: radial-gradient(lightblue 40%, #F5F5F5 40%), - radial-gradient(lightblue 20%, #F5F5F5 20%), + background-image: radial-gradient(#6495ED 40%, #F5F5F5 40%), + radial-gradient(#6495ED 20%, #F5F5F5 20%), radial-gradient(#fafafa 10%, transparent 10%); background-position: 0 0, 1px 1px; background-size: 15px 15px; - border: 2px solid lightblue; + border: 2px solid #6495ED; } @@ -449,13 +458,13 @@ radial-gradient(#fafafa 10%, transparent 10%); } .lightblue.quadrillage{ - background-color: lightblue; + background-color: #6495ED; background-image: linear-gradient(45deg, white 25%, transparent 25%, transparent 75%, white 75%), linear-gradient(45deg, white 25%, transparent 25%, transparent 75%, white 75%); background-size: 15px 15px; background-position: 0 0, 8px 8px; - border: 2px solid lightblue; + border: 2px solid #6495ED; } .purple.quadrillage{ background-color: purple; @@ -482,7 +491,7 @@ radial-gradient(#fafafa 10%, transparent 10%); } .lightblue.rond.open { border-style: dotted; - border-color: lightblue; + border-color: #6495ED; border-width: 7px; } @@ -523,7 +532,7 @@ radial-gradient(#fafafa 10%, transparent 10%); } .lightblue.point.open{ border-style: dashed; - border-color: lightblue; + border-color: #6495ED; } .purple.point.open{ border-style: dashed; @@ -550,7 +559,7 @@ radial-gradient(#fafafa 10%, transparent 10%); .lightblue.solid { - background: lightblue; + background: #6495ED; } .red.solid { @@ -644,7 +653,7 @@ radial-gradient(#fafafa 10%, transparent 10%); } .lightblue.open { - border: 2px solid lightblue; + border: 2px solid #6495ED; } .yellow.open { @@ -666,8 +675,8 @@ radial-gradient(#fafafa 10%, transparent 10%); } .lightblue.stripped{ - background: repeating-linear-gradient(-45deg, lightblue, lightblue 5px, white 5px, white 10px); - border: 2px solid lightblue; + background: repeating-linear-gradient(-45deg, #6495ED, #6495ED 5px, white 5px, white 10px); + border: 2px solid #6495ED; } @@ -706,7 +715,7 @@ radial-gradient(#fafafa 10%, transparent 10%); } .lightblue.stripped.rond{ - background: repeating-linear-gradient(-45deg, lightblue, lightblue 5px, white 5px, white 10px); + background: repeating-linear-gradient(-45deg, #6495ED, #6495ED 5px, white 5px, white 10px); border: 7px dotted black; } @@ -744,7 +753,7 @@ radial-gradient(#fafafa 10%, transparent 10%); } .lightblue.stripped.point{ - background: repeating-linear-gradient(-45deg, lightblue, lightblue 5px, white 5px, white 10px); + background: repeating-linear-gradient(-45deg, #6495ED, #6495ED 5px, white 5px, white 10px); border: 2px dashed black; } diff --git a/HyperSet/vues/homePage.html b/HyperSet/vues/homePage.html index e0e9a9d..fc5cfc0 100644 --- a/HyperSet/vues/homePage.html +++ b/HyperSet/vues/homePage.html @@ -56,16 +56,28 @@
- - - - - - + + + + + +
+ +