Compare commits
13 Commits
4ca68c6305
...
test
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
288b54df3e | ||
|
|
198f0c1f49 | ||
|
|
87b8fe37a3 | ||
|
|
d23944584d | ||
|
|
e43d31b3e1 | ||
|
|
a1d5c899f4 | ||
|
|
6c4fea36c2 | ||
|
|
9bbcc73b33 | ||
|
|
1410407272 | ||
|
|
954c8445ce | ||
|
|
bb6f1c0b18 | ||
|
|
49c7d72536 | ||
|
|
f75ead6061 |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.idea
|
||||||
31
README.md
31
README.md
@@ -6,10 +6,27 @@ Do zrobienia:
|
|||||||
|
|
||||||
|
|
||||||
- [x] wyświetlenie wszystkich żetonów dóbr istniejących w grze
|
- [x] wyświetlenie wszystkich żetonów dóbr istniejących w grze
|
||||||
- [ ] wyświetlenie bonusowych żetonów istniejących w grze (3, 4 i 5 kart)
|
- [x] wyświetlenie żetonu wielbłąda
|
||||||
- [ ] wyświetlenie żetonu wielbłąda
|
- [x] przydzielenie żetonu wielbłąda przed wyświetleniem wyniku
|
||||||
- [ ] pobieranie żetonów po kliknięciu na żetonu
|
- [ ] rozwiązywanie sprawy z remisem
|
||||||
- [ ] losowanie wartości bonusowych żetonów kart
|
- [x] przydzielanie bonusów nawet jak nie żetonów danej karty
|
||||||
- [ ] zliczanie punków
|
- [x] pobieranie żetonów po kliknięciu na żetonu
|
||||||
- [ ] informowanie o zakończeniu rundy
|
- [x] losowanie wartości bonusowych żetonów kart
|
||||||
- [ ] przydzielanie żetonu Maharadży
|
- [x] zliczanie punków
|
||||||
|
- [x] informowanie o zakończeniu rundy
|
||||||
|
- [x] przydzielanie żetonu Maharadży
|
||||||
|
- [x] nie można wybrać więcej niż 7 monet na raz
|
||||||
|
- [x] minimum dwie karty złota, srebra i diamentu, bez limitu dla innych kart
|
||||||
|
- [x] kończenie rozgrywki w przypadku braku kart
|
||||||
|
- [x] pokazanie na przycisku przydziel że dodany zostanie bonus za dane zagranie lub nie
|
||||||
|
- [x] zmiana imion graczy
|
||||||
|
- [ ] wersja landscape
|
||||||
|
- [ ] offline first
|
||||||
|
- [ ] manifest.json
|
||||||
|
- [ ] trzymanie sprzedanych kart i zdobyych bonusow w tablicy gracza w sposób pozwalający na określenie jakiego typy karty i bonusy zostały zdobyte
|
||||||
|
- [ ] tryb nocny
|
||||||
|
- [ ] refaktoring
|
||||||
|
- [x] sass
|
||||||
|
- [x] menu dolne takie jak w natywnych aplikacjach
|
||||||
|
- [ ] anulowanie ruchu
|
||||||
|
- [ ] historia ruchów
|
||||||
88
bonus3.svg
Normal file
88
bonus3.svg
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="97.414101mm"
|
||||||
|
height="100.70018mm"
|
||||||
|
viewBox="0 0 97.414101 100.70018"
|
||||||
|
version="1.1"
|
||||||
|
id="svg8"
|
||||||
|
inkscape:version="0.92.1 r15371"
|
||||||
|
sodipodi:docname="3cardbonus3.svg">
|
||||||
|
<defs
|
||||||
|
id="defs2" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="1.4"
|
||||||
|
inkscape:cx="327.84053"
|
||||||
|
inkscape:cy="170.40039"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
showgrid="true"
|
||||||
|
inkscape:window-width="1600"
|
||||||
|
inkscape:window-height="837"
|
||||||
|
inkscape:window-x="1272"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0">
|
||||||
|
<inkscape:grid
|
||||||
|
type="xygrid"
|
||||||
|
id="grid4516"
|
||||||
|
originx="-21.034165"
|
||||||
|
originy="-129.61982" />
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<metadata
|
||||||
|
id="metadata5">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(-21.034166,-66.68)">
|
||||||
|
<rect
|
||||||
|
style="opacity:1;fill:#66a5e8;fill-opacity:1;fill-rule:evenodd;stroke:#f3c9b1;stroke-width:0.26499999;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||||
|
id="rect4485"
|
||||||
|
width="29.10417"
|
||||||
|
height="47.624996"
|
||||||
|
x="21.166666"
|
||||||
|
y="66.8125" />
|
||||||
|
<rect
|
||||||
|
y="90.624992"
|
||||||
|
x="52.916664"
|
||||||
|
height="47.624996"
|
||||||
|
width="29.10417"
|
||||||
|
id="rect4520"
|
||||||
|
style="opacity:1;fill:#66a5e8;fill-opacity:1;fill-rule:evenodd;stroke:#f3c9b1;stroke-width:0.26499999;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||||
|
<rect
|
||||||
|
style="opacity:1;fill:#66a5e8;fill-opacity:1;fill-rule:evenodd;stroke:#f3c9b1;stroke-width:0.26499999;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||||
|
id="rect4522"
|
||||||
|
width="29.10417"
|
||||||
|
height="47.624996"
|
||||||
|
x="84.666664"
|
||||||
|
y="114.4375" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.9 KiB |
95
bonus4.svg
Normal file
95
bonus4.svg
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="97.414101mm"
|
||||||
|
height="100.70018mm"
|
||||||
|
viewBox="0 0 97.414101 100.70018"
|
||||||
|
version="1.1"
|
||||||
|
id="svg8"
|
||||||
|
inkscape:version="0.92.1 r15371"
|
||||||
|
sodipodi:docname="3cardbonus3.svg">
|
||||||
|
<defs
|
||||||
|
id="defs2" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="1.4"
|
||||||
|
inkscape:cx="327.84053"
|
||||||
|
inkscape:cy="170.40039"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
showgrid="true"
|
||||||
|
inkscape:window-width="1600"
|
||||||
|
inkscape:window-height="837"
|
||||||
|
inkscape:window-x="1272"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0">
|
||||||
|
<inkscape:grid
|
||||||
|
type="xygrid"
|
||||||
|
id="grid4516"
|
||||||
|
originx="-21.034165"
|
||||||
|
originy="-129.61982" />
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<metadata
|
||||||
|
id="metadata5">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(-21.034166,-66.68)">
|
||||||
|
<rect
|
||||||
|
style="opacity:1;fill:#66a5e8;fill-opacity:1;fill-rule:evenodd;stroke:#f3c9b1;stroke-width:0.26499999;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||||
|
id="rect4485"
|
||||||
|
width="29.10417"
|
||||||
|
height="47.624996"
|
||||||
|
x="34.395832"
|
||||||
|
y="66.812492" />
|
||||||
|
<rect
|
||||||
|
y="119.72916"
|
||||||
|
x="34.395832"
|
||||||
|
height="47.624996"
|
||||||
|
width="29.10417"
|
||||||
|
id="rect4520"
|
||||||
|
style="opacity:1;fill:#66a5e8;fill-opacity:1;fill-rule:evenodd;stroke:#f3c9b1;stroke-width:0.26499999;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||||
|
<rect
|
||||||
|
style="opacity:1;fill:#66a5e8;fill-opacity:1;fill-rule:evenodd;stroke:#f3c9b1;stroke-width:0.26499999;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||||
|
id="rect4522"
|
||||||
|
width="29.10417"
|
||||||
|
height="47.624996"
|
||||||
|
x="76.729164"
|
||||||
|
y="66.8125" />
|
||||||
|
<rect
|
||||||
|
y="119.72916"
|
||||||
|
x="76.729164"
|
||||||
|
height="47.624996"
|
||||||
|
width="29.10417"
|
||||||
|
id="rect4524"
|
||||||
|
style="opacity:1;fill:#66a5e8;fill-opacity:1;fill-rule:evenodd;stroke:#f3c9b1;stroke-width:0.26499999;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 3.3 KiB |
102
bonus5.svg
Normal file
102
bonus5.svg
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="97.414101mm"
|
||||||
|
height="100.70018mm"
|
||||||
|
viewBox="0 0 97.414101 100.70018"
|
||||||
|
version="1.1"
|
||||||
|
id="svg8"
|
||||||
|
inkscape:version="0.92.1 r15371"
|
||||||
|
sodipodi:docname="3cardbonus3.svg">
|
||||||
|
<defs
|
||||||
|
id="defs2" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="1.4"
|
||||||
|
inkscape:cx="327.84053"
|
||||||
|
inkscape:cy="170.40039"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
showgrid="true"
|
||||||
|
inkscape:window-width="1600"
|
||||||
|
inkscape:window-height="837"
|
||||||
|
inkscape:window-x="1272"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0">
|
||||||
|
<inkscape:grid
|
||||||
|
type="xygrid"
|
||||||
|
id="grid4516"
|
||||||
|
originx="-21.034165"
|
||||||
|
originy="-129.61982" />
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<metadata
|
||||||
|
id="metadata5">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(-21.034166,-66.68)">
|
||||||
|
<rect
|
||||||
|
style="opacity:1;fill:#66a5e8;fill-opacity:1;fill-rule:evenodd;stroke:#f3c9b1;stroke-width:0.26499999;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||||
|
id="rect4485"
|
||||||
|
width="29.10417"
|
||||||
|
height="47.624996"
|
||||||
|
x="21.166668"
|
||||||
|
y="66.8125" />
|
||||||
|
<rect
|
||||||
|
y="119.72916"
|
||||||
|
x="21.166668"
|
||||||
|
height="47.624996"
|
||||||
|
width="29.10417"
|
||||||
|
id="rect4520"
|
||||||
|
style="opacity:1;fill:#66a5e8;fill-opacity:1;fill-rule:evenodd;stroke:#f3c9b1;stroke-width:0.26499999;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||||
|
<rect
|
||||||
|
style="opacity:1;fill:#66a5e8;fill-opacity:1;fill-rule:evenodd;stroke:#f3c9b1;stroke-width:0.26499999;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||||
|
id="rect4522"
|
||||||
|
width="29.10417"
|
||||||
|
height="47.624996"
|
||||||
|
x="89.958328"
|
||||||
|
y="66.812492" />
|
||||||
|
<rect
|
||||||
|
y="119.72916"
|
||||||
|
x="89.958328"
|
||||||
|
height="47.624996"
|
||||||
|
width="29.10417"
|
||||||
|
id="rect4524"
|
||||||
|
style="opacity:1;fill:#66a5e8;fill-opacity:1;fill-rule:evenodd;stroke:#f3c9b1;stroke-width:0.26499999;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||||
|
<rect
|
||||||
|
y="93.270828"
|
||||||
|
x="55.5625"
|
||||||
|
height="47.624996"
|
||||||
|
width="29.10417"
|
||||||
|
id="rect4526"
|
||||||
|
style="opacity:1;fill:#66a5e8;fill-opacity:1;fill-rule:evenodd;stroke:#f3c9b1;stroke-width:0.26499999;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 3.6 KiB |
1
camel.svg
Normal file
1
camel.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg width="200" height="200" fill="#000000" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="52 52 96 96" enable-background="new 52 52 96 96" xml:space="preserve"><path d="M70.193,77.634l0.15-1.425c0-0.45,0.075-1.05-0.45-1.275c-0.675-0.225-1.425,0.45-1.65,1.2 c-0.225,0.226-0.075,0-0.225,0.226c-0.675-0.15-0.975-0.675-2.1-0.15c-0.675,0.225-1.05,0.675-1.875,0.825 c-0.975,0.15-1.425,0.45-2.4,0.375c-0.975-0.15-1.2-0.45-2.475-0.375c-4.95,0.675-3.225-0.15-6.075,2.85l-0.375,0.45 c-0.075,0.225-0.375,0.825-0.375,1.05c0.6,0.601,0.375,0.375,1.05,0.825c-0.375,0.375-1.2,0.45-1.275,1.05 c0.975,1.575,3.45-0.825,5.25-0.149c0.825,0.375,1.2,0.675,2.1,1.05c1.8,0.375-1.2-0.225,0,0c0.6,0.225,0.675,5.325,0.975,6 c1.05,1.575,2.55,6.75,2.85,7.05c1.65,0.675,3.15,8.475,3.375,8.1c1.2-1.274,4.8,2.851,6.9,5.625c2.025,2.851,4.5,2.176,7.425,4.051 c1.5,0.975,4.05-8.101,5.85-8.4c2.1-0.375,2.85-0.675,4.5,0.975c0.375,0.375,1.275,1.2,1.65,1.426c0.6,0.449,1.65,0.449,2.1,0.975 c0.15,0.225,0.375,1.8,0.45,2.1c0.375,2.25,1.05,3.9,2.1,5.926c0.975,1.649,2.625,6.149,2.85,7.949c0.225,1.65,0.6,2.7,1.2,4.275 c0.375,1.05,0.449,0.675,0.225,2.025l-0.375,5.024c0,0.375,0,2.4,0,2.4c-0.6,1.5-3.825,0.45-3.3,2.024 c0.075,0.375,2.1,1.2,2.475,1.351c0.601,0.075,0.675-0.15,1.2,0.075c-0.225,0.449-3.3,1.875-1.575,2.699 c1.575,0.676,2.7,0.601,4.275,0.15c1.8-0.6,2.399-0.975,1.875-2.85c-0.226-1.275-0.226-3.676-0.226-5.101 c-0.149-3.3-0.824-6.524-0.449-9.825c0.149-2.175-0.075-2.475-0.976-4.425c-0.45-1.35-0.975-3-1.05-4.274 c-0.15-1.65-0.45-3.075-0.45-4.726c-0.149-1.575-0.975-3.899,0.976-3.899c0.975,0,1.649,0.149,2.475-0.075 c1.2-0.15,1.275-0.15,2.475,0c1.575,0.225,3.301,0,4.95-0.15c2.7-0.375,6.75,0.15,9-1.575c0.976-0.6,2.25-1.649,3.226-2.1 c0.6-0.225,1.199-0.45,1.8-0.825c0.6-0.225,1.2-0.975,1.8-0.6c0.45,0.675,0.225,1.425,0.225,2.1c0,0.601,0.15,1.425,0.226,2.025 c0.45,3.3,1.649,2.7,1.875,4.875c0,0.975,0.975,3.899,1.35,5.475c0.45,3.226,0.825,4.95,0.45,8.175c-0.375,4.125,0,3.9-1.425,7.801 c-0.45,1.05-0.976,2.024-1.425,3.074c-1.426,2.851-5.25,1.2-5.775,3.45c-0.375,1.65,1.875,1.275,3,1.425 c1.2,0.15,2.475-0.375,3.3-1.199c0.45-0.375,1.05-2.476,1.425-3.226c0.825-1.875,1.65-3.825,2.4-5.7 c0.075-0.449,0.075-0.6,0.45-0.675c0,2.25-0.075,2.4-0.825,4.5c-0.15,0.375-0.15,0.675-0.225,1.05l-0.825,1.875 c-0.15,0.601,0,0.601-0.375,1.051c0,0.149-0.075,0.375-0.226,0.375l-0.225,0.449c-1.575,1.65-5.475,3.301-5.475,4.125 c0.375,0.976,1.875,0.676,2.699,0.676c1.426,0,1.65-0.226,3-0.45c1.351-0.375,1.2-1.05,1.351-2.101 c0.075-0.375,1.05-1.649,1.274-2.1c1.051-1.875,0.976-2.475,1.426-3.675c0.225-0.45,0.225-0.825,0.375-1.425 c0.449-1.275,1.05-4.051,1.8-5.101c1.05-1.575,1.649-3.225,1.35-5.1c-0.45-2.851-0.225-6.976-0.225-10.125 c0-2.476,1.05-4.125,1.05-5.775c0-0.6,0-0.975,0.075-1.575c0.149-0.6,0-1.199,0.45-1.274c0,0.6,0.149,0.825,0.149,1.425 l-0.149,1.575c0,0.6-0.375,0.675-0.375,1.274l-0.15,3.075c-0.075,0.45-0.225,0.825-0.225,1.425c0,0.45,0.6,2.025,0.975,2.325 c1.05,0.15,0.975-0.6,0.975-1.425l0.976-0.075l0.149-1.05l0.825-0.225l-0.149-1.051c1.649,1.275,3.3,0.15,2.024-0.675 c-1.649-1.05-0.825-2.1-1.35-3.899c-0.601-1.801-2.101-1.426-2.4-2.7c-0.225-0.976,0.45-3.075,0.601-4.275 c0.225-2.625,0.225-6.899-0.45-9.375c-0.45-1.8-0.825-1.875-2.025-3.075c-1.05-0.975-1.35-1.65-2.625-2.475 c-2.024-1.425-4.274-2.625-6.524-3.6c-4.051-1.875-2.625-2.101-4.95-5.175c-1.05-1.35-4.05-3.45-5.55-4.65 c-1.051-0.975-1.65-1.8-3.075-2.025c-4.275-0.675-3.3,5.101-6.15,7.875c-0.975,0.9-6.075-2.175-8.399-5.475 c-7.351-10.425-9.075,8.4-9.675,8.775c-5.1,3.225-6.525,7.725-11.55,8.775c-0.675,0.075-1.575,0.45-2.025,0.45 c-0.825,0.15-1.2-0.45-1.875-0.825c-1.875-0.975-1.35-0.6-2.625-2.4c-0.6-1.05-1.575-2.025-1.65-3.3c0-1.2-0.45-3-1.2-3.825 C72.593,81.984,72.218,78.834,70.193,77.634z"/></svg>
|
||||||
|
After Width: | Height: | Size: 3.7 KiB |
25
css/grid-template.css
Normal file
25
css/grid-template.css
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
.container {
|
||||||
|
display: grid;
|
||||||
|
grid-template-areas:
|
||||||
|
"player1container acceptcontainer player2container"
|
||||||
|
"leather leather leather"
|
||||||
|
"fabric fabric fabric"
|
||||||
|
"spice spice spice"
|
||||||
|
"silver silver silver"
|
||||||
|
"gold gold gold"
|
||||||
|
"diamond diamond diamond";
|
||||||
|
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
grid-template-rows: repeat(7, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (orientation: landscape){
|
||||||
|
/*.container {display: none; }*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.group.leather { grid-area: leather; }
|
||||||
|
.group.fabric { grid-area: fabric; }
|
||||||
|
.group.spice { grid-area: spice; }
|
||||||
|
.group.silver { grid-area: silver; }
|
||||||
|
.group.gold { grid-area: gold; }
|
||||||
|
.group.diamond { grid-area: diamond; }
|
||||||
48
css/reset.css
Normal file
48
css/reset.css
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
/* http://meyerweb.com/eric/tools/css/reset/
|
||||||
|
v2.0 | 20110126
|
||||||
|
License: none (public domain)
|
||||||
|
*/
|
||||||
|
|
||||||
|
html, body, div, span, applet, object, iframe,
|
||||||
|
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||||
|
a, abbr, acronym, address, big, cite, code,
|
||||||
|
del, dfn, em, img, ins, kbd, q, s, samp,
|
||||||
|
small, strike, strong, sub, sup, tt, var,
|
||||||
|
b, u, i, center,
|
||||||
|
dl, dt, dd, ol, ul, li,
|
||||||
|
fieldset, form, label, legend,
|
||||||
|
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||||
|
article, aside, canvas, details, embed,
|
||||||
|
figure, figcaption, footer, header, hgroup,
|
||||||
|
menu, nav, output, ruby, section, summary,
|
||||||
|
time, mark, audio, video {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
font-size: 100%;
|
||||||
|
font: inherit;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
/* HTML5 display-role reset for older browsers */
|
||||||
|
article, aside, details, figcaption, figure,
|
||||||
|
footer, header, hgroup, menu, nav, section {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
ol, ul {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
blockquote, q {
|
||||||
|
quotes: none;
|
||||||
|
}
|
||||||
|
blockquote:before, blockquote:after,
|
||||||
|
q:before, q:after {
|
||||||
|
content: '';
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
}
|
||||||
338
css/style.css
Normal file
338
css/style.css
Normal file
@@ -0,0 +1,338 @@
|
|||||||
|
|
||||||
|
.group.inactive {
|
||||||
|
opacity: 0.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group .coin:first-child {
|
||||||
|
margin: 5px 0vh 5px 0vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group .coin.blank {
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group .coin.blank.selected {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group .coin.selected:first-child {
|
||||||
|
margin: 5px 0vh 5px -4vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group .coin.selected {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group .coin {
|
||||||
|
border-radius: 90px;
|
||||||
|
display: inline-block;
|
||||||
|
height: 9vh;
|
||||||
|
width: 9vh;
|
||||||
|
text-align: center;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
margin: 5px 0vh 5px -4vh;
|
||||||
|
font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
|
||||||
|
color: #d8d8d8;
|
||||||
|
background-position: center 72%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
color: black;
|
||||||
|
cursor: pointer;
|
||||||
|
text-shadow: 0 0 2px #fff;
|
||||||
|
font-size: 3vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group .coin.leather {
|
||||||
|
border-color: saddlebrown;
|
||||||
|
background-image: url(../leather.svg);
|
||||||
|
background-color: burlywood;
|
||||||
|
background-size: 45%
|
||||||
|
}
|
||||||
|
|
||||||
|
.group .coin.spice {
|
||||||
|
border-color: forestgreen;
|
||||||
|
background-color: #dff9b6;
|
||||||
|
background-image: url(../spice.svg);
|
||||||
|
background-size: 60%
|
||||||
|
}
|
||||||
|
|
||||||
|
.group .coin.gold {
|
||||||
|
border-color: goldenrod;
|
||||||
|
background-color: #fcf4ca;
|
||||||
|
background-image: url(../gold.svg);
|
||||||
|
background-size: 40%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group .coin.diamond {
|
||||||
|
border-color: darkred;
|
||||||
|
background-color: #f66282;
|
||||||
|
background-image: url(../diamond.svg);
|
||||||
|
background-size: 48%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group .coin.fabric {
|
||||||
|
border-color: purple;
|
||||||
|
background-color: #f5d6f5;
|
||||||
|
background-image: url(../fabric.svg);
|
||||||
|
background-size: 71%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group .coin.silver {
|
||||||
|
border-color: silver;
|
||||||
|
background-color: #879fc6;
|
||||||
|
background-image: url(../silver.svg);
|
||||||
|
background-size: 44%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* PLAYERS START */
|
||||||
|
|
||||||
|
.player {
|
||||||
|
border: 2px solid dodgerblue;
|
||||||
|
padding: 0.5vh 4vh;
|
||||||
|
margin: 1.5vh auto;
|
||||||
|
width: 10vw;
|
||||||
|
color: #444;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 2px;
|
||||||
|
font-weight: bold;
|
||||||
|
font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
|
||||||
|
height: 5vh;
|
||||||
|
width: 10vw;
|
||||||
|
line-height: 5vh;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.player.selected {
|
||||||
|
background: #6f9cc9;
|
||||||
|
color: #f2eeee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.accept {
|
||||||
|
grid-area: acceptcontainer;
|
||||||
|
visibility: hidden;
|
||||||
|
border: 2px solid dodgerblue;
|
||||||
|
margin: 1.5vh auto;
|
||||||
|
max-width: 100%;
|
||||||
|
height: 5vh;
|
||||||
|
padding: 0.5vh 0vw;
|
||||||
|
font-weight: bold;
|
||||||
|
font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
|
||||||
|
background-color: #bedfff;
|
||||||
|
cursor: pointer;
|
||||||
|
line-height: 5vh;
|
||||||
|
text-align: center;
|
||||||
|
display: flex;
|
||||||
|
justify-items: center;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-around;
|
||||||
|
}
|
||||||
|
|
||||||
|
.acceptcontainer .bonus {
|
||||||
|
height: 5vh;
|
||||||
|
width: 5vh;
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1px solid dodgerblue;
|
||||||
|
background: no-repeat #fff center center / 60% 60%;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.acceptcontainer .bonus.bonus5 {
|
||||||
|
background-image: url(../bonus5.svg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.acceptcontainer .bonus.bonus4 {
|
||||||
|
background-image: url(../bonus4.svg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.acceptcontainer .bonus.bonus3 {
|
||||||
|
background-image: url(../bonus3.svg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.accept.on {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.accept.label {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.player1container {
|
||||||
|
grid-area: player1container;
|
||||||
|
}
|
||||||
|
|
||||||
|
.player2container {
|
||||||
|
grid-area: player2container;
|
||||||
|
}
|
||||||
|
|
||||||
|
.player.player1 {
|
||||||
|
}
|
||||||
|
|
||||||
|
.player.player2 {
|
||||||
|
}
|
||||||
|
|
||||||
|
.player .score {
|
||||||
|
height: 50px;
|
||||||
|
width: 23px;
|
||||||
|
display: inline-block;
|
||||||
|
background-image: none;
|
||||||
|
background-size: auto auto;
|
||||||
|
margin: 0 5px;
|
||||||
|
background-image: url(../maharaja.svg);
|
||||||
|
background-size: 100%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.player .score:first-child {
|
||||||
|
margin-left: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scoreTable {
|
||||||
|
width: 90vw;
|
||||||
|
background: #fff;
|
||||||
|
content: "";
|
||||||
|
height: 70vh;
|
||||||
|
position: absolute;
|
||||||
|
top: 15vh;
|
||||||
|
left: 5vw;
|
||||||
|
box-shadow: 0 0 207px #0000027F;
|
||||||
|
border: 3px solid #ccc;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* PLAYERS END */
|
||||||
|
|
||||||
|
/* SCORE TABLE START */
|
||||||
|
|
||||||
|
.scoreTable.visible {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scoreTable h1 {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 10vh;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.players_section, .camel_section {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
font-size: 45px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.camel_section .player1_camel, .camel_section .player2_camel {
|
||||||
|
background: url('../camel.svg') no-repeat 0 0 / 10vh 10vh;
|
||||||
|
height: 10vh;
|
||||||
|
width: 10vh;
|
||||||
|
cursor: pointer;
|
||||||
|
opacity: 0.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.camel_section .nobody {
|
||||||
|
opacity: 0.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.camel_section .player1_camel.selected, .camel_section .player2_camel.selected, .camel_section .nobody.selected {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.score_section {
|
||||||
|
display: none;
|
||||||
|
font-size: 35px;
|
||||||
|
justify-content: space-around;
|
||||||
|
}
|
||||||
|
|
||||||
|
.score_section.show {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bonus_section {
|
||||||
|
display: none;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bonus_section.show {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.player1_bonus {
|
||||||
|
text-align: right;
|
||||||
|
margin-right: 3.5vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.player1_bonus .bonus3,.player1_bonus .bonus4,.player1_bonus .bonus5 {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.player2_bonus {
|
||||||
|
margin-left: 3.5vh;
|
||||||
|
}
|
||||||
|
.bonus_section .player2_bonus, .bonus_section .player1_bonus {
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bonus_section .player1_bonus span:first-child {
|
||||||
|
margin-left: -30px ;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bonus_section span:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bonus_section span {
|
||||||
|
height: 6vh;
|
||||||
|
width: 6vh;
|
||||||
|
display: inline-block;
|
||||||
|
margin-left: -30px ;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1px solid dodgerblue;
|
||||||
|
background: no-repeat #fff center center / 60% 60%;
|
||||||
|
/*display: none;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.bonus_section .bonus3 span {
|
||||||
|
background-image: url(../bonus3.svg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bonus_section .bonus4 span {
|
||||||
|
background-image: url(../bonus4.svg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bonus_section .bonus5 span {
|
||||||
|
background-image: url(../bonus5.svg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* SCORE TABLE END */
|
||||||
|
|
||||||
|
/*.acceptcontainer .bonus {*/
|
||||||
|
/*height: 5vh;*/
|
||||||
|
/*width: 5vh;*/
|
||||||
|
/*display: inline-block;*/
|
||||||
|
/*margin: 0;*/
|
||||||
|
/*border-radius: 50%;*/
|
||||||
|
/*border: 1px solid dodgerblue;*/
|
||||||
|
/*background: no-repeat #fff center center / 60% 60%;*/
|
||||||
|
/*display: none;*/
|
||||||
|
/*}*/
|
||||||
|
|
||||||
|
/*.acceptcontainer .bonus.bonus5 {*/
|
||||||
|
/*background-image: url(../bonus5.svg);*/
|
||||||
|
/*}*/
|
||||||
|
/*.acceptcontainer .bonus.bonus4 {*/
|
||||||
|
/*background-image: url(../bonus4.svg);*/
|
||||||
|
/*}*/
|
||||||
|
/*.acceptcontainer .bonus.bonus3 {*/
|
||||||
|
/*background-image: url(../bonus3.svg);*/
|
||||||
|
/*}*/
|
||||||
|
|
||||||
160
index.html
Normal file
160
index.html
Normal file
@@ -0,0 +1,160 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="pl-PL">
|
||||||
|
<head>
|
||||||
|
<title>Jaipur score</title>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport"
|
||||||
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||||
|
|
||||||
|
<!--<link rel="stylesheet" href="css/reset.css"/>-->
|
||||||
|
<!--<link rel="stylesheet" href="css/grid-template.css"/>-->
|
||||||
|
<!--<link rel="stylesheet" href="css/style.css"/>-->
|
||||||
|
<link rel="stylesheet" href="sass-css/index.css"/>
|
||||||
|
<script src="js/script.js"></script>
|
||||||
|
<script>
|
||||||
|
window.onload = function () {
|
||||||
|
board = {'goods': {}, 'bonus': {}};
|
||||||
|
board.goods.leather = [1, 1, 1, 1, 1, 1, 2, 3, 4];
|
||||||
|
board.goods.fabric = [1, 1, 2, 2, 3, 3, 5];
|
||||||
|
board.goods.spice = [1, 1, 2, 2, 3, 3, 5];
|
||||||
|
board.goods.silver = [5, 5, 5, 5, 5];
|
||||||
|
board.goods.gold = [5, 5, 5, 6, 6];
|
||||||
|
board.goods.diamond = [5, 5, 5, 7, 7];
|
||||||
|
|
||||||
|
board.bonus.five = [8, 9, 10, 10];
|
||||||
|
board.bonus.four = [4, 4, 6, 6, 5, 5];
|
||||||
|
board.bonus.three = [1, 1, 2, 2, 2, 3, 3];
|
||||||
|
board.bonus.camel = [5];
|
||||||
|
|
||||||
|
var player1 = new player('Kicia', 1);
|
||||||
|
var player2 = new player('Cysio', 2);
|
||||||
|
jaipur = new game(player1, player2, board);
|
||||||
|
jaipur.init();
|
||||||
|
|
||||||
|
modal = new modal();
|
||||||
|
modal.init();
|
||||||
|
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="player1container">
|
||||||
|
<div class="player player1" data-player="1">Kicia</div>
|
||||||
|
</div>
|
||||||
|
<div class="acceptcontainer">
|
||||||
|
<div class="accept">
|
||||||
|
<span class="label">Przydziel</span>
|
||||||
|
<span class="bonus bonus5"></span>
|
||||||
|
<span class="bonus bonus4"></span>
|
||||||
|
<span class="bonus bonus3"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="player2container">
|
||||||
|
<div class="player player2" data-player="2">Cysio</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="group leather">
|
||||||
|
<span class="coin leather" data-group="leather">1
|
||||||
|
</span><span class="coin leather" data-group="leather">1
|
||||||
|
</span><span class="coin leather" data-group="leather">1
|
||||||
|
</span><span class="coin leather" data-group="leather">1
|
||||||
|
</span><span class="coin leather" data-group="leather">1
|
||||||
|
</span><span class="coin leather" data-group="leather">1
|
||||||
|
</span><span class="coin leather" data-group="leather">2
|
||||||
|
</span><span class="coin leather" data-group="leather">3
|
||||||
|
</span><span class="coin leather" data-group="leather">4
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="group fabric">
|
||||||
|
<span class="coin fabric" data-group="fabric">1
|
||||||
|
</span><span class="coin fabric" data-group="fabric">1
|
||||||
|
</span><span class="coin fabric" data-group="fabric">2
|
||||||
|
</span><span class="coin fabric" data-group="fabric">2
|
||||||
|
</span><span class="coin fabric" data-group="fabric">3
|
||||||
|
</span><span class="coin fabric" data-group="fabric">3
|
||||||
|
</span><span class="coin fabric" data-group="fabric">5
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="group spice"><span class="coin spice" data-group="spice">1
|
||||||
|
</span><span class="coin spice" data-group="spice">1
|
||||||
|
</span><span class="coin spice" data-group="spice">2
|
||||||
|
</span><span class="coin spice" data-group="spice">2
|
||||||
|
</span><span class="coin spice" data-group="spice">3
|
||||||
|
</span><span class="coin spice" data-group="spice">3
|
||||||
|
</span><span class="coin spice" data-group="spice">5</span>
|
||||||
|
</div>
|
||||||
|
<div class="group silver"><span class="coin silver" data-group="silver">5
|
||||||
|
</span><span class="coin silver" data-group="silver">5
|
||||||
|
</span><span class="coin silver" data-group="silver">5
|
||||||
|
</span><span class="coin silver" data-group="silver">5
|
||||||
|
</span><span class="coin silver" data-group="silver">5</span>
|
||||||
|
</div>
|
||||||
|
<div class="group gold"><span class="coin gold" data-group="gold">5
|
||||||
|
</span><span class="coin gold" data-group="gold">5
|
||||||
|
</span><span class="coin gold" data-group="gold">5
|
||||||
|
</span><span class="coin gold" data-group="gold">6
|
||||||
|
</span><span class="coin gold" data-group="gold">6</span></div>
|
||||||
|
<div class="group diamond"><span class="coin diamond" data-group="diamond">5
|
||||||
|
</span><span class="coin diamond" data-group="diamond">5
|
||||||
|
</span><span class="coin diamond" data-group="diamond">5
|
||||||
|
</span><span class="coin diamond" data-group="diamond">7
|
||||||
|
</span><span class="coin diamond" data-group="diamond">7</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="menu">
|
||||||
|
<a href="#" id="players">gracze</a>
|
||||||
|
<a href="#" id="endturn">zakończ turę</a>
|
||||||
|
<a href="#" id="restart">restart</a>
|
||||||
|
<a href="#" id="share">udostępnij</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="scoreTable">
|
||||||
|
<h1>Wynik</h1>
|
||||||
|
<div class="players_section">
|
||||||
|
<div class="player1_name">Kicia</div>
|
||||||
|
<div></div>
|
||||||
|
<div class="player2_name">Cysio</div>
|
||||||
|
</div>
|
||||||
|
<div class="camel_section">
|
||||||
|
<div class="player1_camel selected"></div>
|
||||||
|
<div class="nobody selected">remis</div>
|
||||||
|
<div class="player2_camel selected"></div>
|
||||||
|
</div>
|
||||||
|
<div class="score_section">
|
||||||
|
<div class="player1_score">0</div>
|
||||||
|
<div class="separator">:</div>
|
||||||
|
<div class="player2_score">0</div>
|
||||||
|
</div>
|
||||||
|
<div class="bonus_section">
|
||||||
|
<div class="player1_bonus">
|
||||||
|
<div class="bonus3"></div>
|
||||||
|
<div class="bonus4"></div>
|
||||||
|
<div class="bonus5"></div>
|
||||||
|
</div>
|
||||||
|
<div class="player2_bonus">
|
||||||
|
<div class="bonus3"></div>
|
||||||
|
<div class="bonus4"></div>
|
||||||
|
<div class="bonus5"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="playerNames" class="modal">
|
||||||
|
<div class="close">x</div>
|
||||||
|
<div class="modal_content">
|
||||||
|
<div>
|
||||||
|
<h1>Zmiana nazw użytkowników</h1>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<input id="player1_name" placeholder="gracz 1">
|
||||||
|
<input id="player2_name" placeholder="gracz 2">
|
||||||
|
<span id="change_name">zmień</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
448
js/script.js
Normal file
448
js/script.js
Normal file
@@ -0,0 +1,448 @@
|
|||||||
|
function coin(value, group) {
|
||||||
|
this.value = value;
|
||||||
|
this.group = group;
|
||||||
|
}
|
||||||
|
|
||||||
|
function Bonus(group, value) {
|
||||||
|
this.value = value;
|
||||||
|
this.group = group;
|
||||||
|
}
|
||||||
|
|
||||||
|
function modal() {
|
||||||
|
|
||||||
|
this.init = function () {
|
||||||
|
this.handleClose();
|
||||||
|
};
|
||||||
|
this.handleClose = function () {
|
||||||
|
document.querySelector('.modal .close').addEventListener('click', function () {
|
||||||
|
this.parentNode.classList.toggle('on');
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function player(name, id) {
|
||||||
|
this.score = 0;
|
||||||
|
this.roundsWon = 0;
|
||||||
|
this.coins = [];
|
||||||
|
this.bonus = [];
|
||||||
|
this.name = name;
|
||||||
|
this.id = id;
|
||||||
|
this.selector = '.player.player' + id;
|
||||||
|
this.scoreSelector = '.player' + id + '_name';
|
||||||
|
|
||||||
|
this.hasCamelCoin = false;
|
||||||
|
|
||||||
|
this.calculateScore = function () {
|
||||||
|
var score = 0;
|
||||||
|
for (var i in this.coins) {
|
||||||
|
score += this.coins[i];
|
||||||
|
}
|
||||||
|
for (var i in this.bonus) {
|
||||||
|
score += this.bonus[i].value;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.hasCamelCoin) {
|
||||||
|
score += 5;
|
||||||
|
}
|
||||||
|
return this.score = score;
|
||||||
|
};
|
||||||
|
|
||||||
|
this.setName = function (name) {
|
||||||
|
this.name = name;
|
||||||
|
this.updateNames();
|
||||||
|
};
|
||||||
|
|
||||||
|
this.updateNames = function () {
|
||||||
|
document.querySelector(this.selector).innerText = this.name;
|
||||||
|
document.querySelector(this.scoreSelector).innerText = this.name;
|
||||||
|
};
|
||||||
|
|
||||||
|
this.wonRound = function () {
|
||||||
|
this.roundsWon += 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
this.reset = function () {
|
||||||
|
this.roundsWon = 0;
|
||||||
|
this.score = 0;
|
||||||
|
this.coins = [];
|
||||||
|
};
|
||||||
|
|
||||||
|
this.removePoints = function () {
|
||||||
|
var playerScore = document.querySelectorAll(this.selector + ' .score');
|
||||||
|
for (var i = 0; i < playerScore.length; i++) {
|
||||||
|
playerScore[i].remove();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
this.drawPoints = function () {
|
||||||
|
this.removePoints();
|
||||||
|
var scoreDiv = document.querySelector(this.selector);
|
||||||
|
for (var i = 0; i < this.score; i++) {
|
||||||
|
var score = document.createElement("span");
|
||||||
|
score.classList.add('score');
|
||||||
|
scoreDiv.appendChild(score)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
this.addPoint = function () {
|
||||||
|
this.score++;
|
||||||
|
this.drawPoints();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function game(player1, player2, board) {
|
||||||
|
this.round = 1;
|
||||||
|
this.player1 = player1;
|
||||||
|
this.player2 = player2;
|
||||||
|
this.activePlayer = null;
|
||||||
|
this.board = board;
|
||||||
|
this.isOver = false;
|
||||||
|
this.selectedCointType = false;
|
||||||
|
|
||||||
|
this.setActivePlayer = function (playerId) {
|
||||||
|
if (playerId == 1) {
|
||||||
|
jaipur.activePlayer = this.player1;
|
||||||
|
document.querySelector('.player.player1').classList.add("selected");
|
||||||
|
document.querySelector('.player.player2').classList.remove("selected");
|
||||||
|
jaipur.showAcceptButton();
|
||||||
|
} else if (playerId == 2) {
|
||||||
|
jaipur.activePlayer = this.player2;
|
||||||
|
document.querySelector('.player.player1').classList.remove("selected");
|
||||||
|
document.querySelector('.player.player2').classList.add("selected");
|
||||||
|
jaipur.showAcceptButton();
|
||||||
|
} else {
|
||||||
|
document.querySelector('.player.player1').classList.remove("selected");
|
||||||
|
document.querySelector('.player.player2').classList.remove("selected");
|
||||||
|
jaipur.activePlayer = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.activePlayer;
|
||||||
|
};
|
||||||
|
|
||||||
|
this.init = function () {
|
||||||
|
this.initializePlayerButtons();
|
||||||
|
this.initializeAcceptButton();
|
||||||
|
this.initializeCoins();
|
||||||
|
this.initializeCamels();
|
||||||
|
this.initializeMenu();
|
||||||
|
};
|
||||||
|
|
||||||
|
this.reset = function () {
|
||||||
|
this.player1.reset();
|
||||||
|
this.player2.reset();
|
||||||
|
this.isOver = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* sprawdza czy runda jest już zakończona (jest 3 lub mniej typów dóbr)
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
this.isRoundOver = function () {
|
||||||
|
var emptyRows = 0;
|
||||||
|
for (var i in board.goods) {
|
||||||
|
emptyRows += !board.goods[i].length ? 1 : 0;
|
||||||
|
}
|
||||||
|
return emptyRows >= 3;
|
||||||
|
};
|
||||||
|
|
||||||
|
this.initializeMenu = function () {
|
||||||
|
document.querySelector('#players').addEventListener('click', function () {
|
||||||
|
jaipur.playerNamesModal();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
document.querySelector('#change_name').addEventListener('click', function () {
|
||||||
|
jaipur.player1.setName(document.querySelector('#player1_name').value);
|
||||||
|
jaipur.player2.setName(document.querySelector('#player2_name').value);
|
||||||
|
});
|
||||||
|
|
||||||
|
document.querySelector('#endturn').addEventListener('click', function () {
|
||||||
|
jaipur.endTurn();
|
||||||
|
});
|
||||||
|
document.querySelector('#restart').addEventListener('click', function () {
|
||||||
|
|
||||||
|
});
|
||||||
|
document.querySelector('#share').addEventListener('click', function () {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
this.playerNamesModal = function () {
|
||||||
|
document.querySelector('#playerNames').classList.toggle('on');
|
||||||
|
};
|
||||||
|
|
||||||
|
this.initializePlayerButtons = function () {
|
||||||
|
document.querySelector('.player.player1').addEventListener('click', function () {
|
||||||
|
jaipur.setActivePlayer(1)
|
||||||
|
});
|
||||||
|
document.querySelector('.player.player2').addEventListener('click', function () {
|
||||||
|
jaipur.setActivePlayer(2)
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
//pokazuje ikonkę bonusowej monety przy przycisku przydziel
|
||||||
|
this.showBonusCoins = function () {
|
||||||
|
var selectedCoins = document.querySelectorAll('.coin.selected').length;
|
||||||
|
jaipur.hideBonusCoins();
|
||||||
|
if (selectedCoins >= 5 && !!jaipur.board.bonus.five.length) {
|
||||||
|
document.querySelector('.bonus5').style.display = 'block';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (selectedCoins == 4 && !!jaipur.board.bonus.four.length) {
|
||||||
|
document.querySelector('.bonus4').style.display = 'block';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (selectedCoins == 3 && !!jaipur.board.bonus.three.length) {
|
||||||
|
document.querySelector('.bonus3').style.display = 'block';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
this.showAcceptButton = function () {
|
||||||
|
|
||||||
|
if (!!jaipur.activePlayer && !!document.querySelector('.coin.selected') &&
|
||||||
|
((document.querySelectorAll('.coin.selected').length >= 2 &&
|
||||||
|
['silver', 'gold', 'diamond'].indexOf(jaipur.selectedCointType) > -1
|
||||||
|
) || (
|
||||||
|
document.querySelectorAll('.coin.selected').length >= 1 &&
|
||||||
|
['fabric', 'spice', 'leather'].indexOf(jaipur.selectedCointType) > -1
|
||||||
|
)
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
document.querySelector('.accept').style.visibility = 'visible';
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
this.hideAcceptButton = function () {
|
||||||
|
document.querySelector('.accept').style.visibility = 'hidden';
|
||||||
|
jaipur.hideBonusCoins();
|
||||||
|
};
|
||||||
|
|
||||||
|
this.hideBonusCoins = function () {
|
||||||
|
document.querySelector('.bonus5').style.display = 'none';
|
||||||
|
document.querySelector('.bonus4').style.display = 'none';
|
||||||
|
document.querySelector('.bonus3').style.display = 'none';
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
this.camelClick = function (player) {
|
||||||
|
document.querySelector('.nobody').classList.remove('selected');
|
||||||
|
document.querySelector('.player1_camel').classList.remove('selected');
|
||||||
|
document.querySelector('.player2_camel').classList.remove('selected');
|
||||||
|
|
||||||
|
if (player == 1) {
|
||||||
|
document.querySelector('.player1_camel').classList.add('selected');
|
||||||
|
jaipur.player1.hasCamelCoin = true;
|
||||||
|
jaipur.player2.hasCamelCoin = false;
|
||||||
|
} else if (player == 2) {
|
||||||
|
document.querySelector('.player2_camel').classList.add('selected');
|
||||||
|
jaipur.player1.hasCamelCoin = false;
|
||||||
|
jaipur.player2.hasCamelCoin = true;
|
||||||
|
} else if (player == 0) {
|
||||||
|
document.querySelector('.nobody').classList.add('selected');
|
||||||
|
jaipur.player1.hasCamelCoin = false;
|
||||||
|
jaipur.player2.hasCamelCoin = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
jaipur.player1.calculateScore();
|
||||||
|
jaipur.player2.calculateScore();
|
||||||
|
jaipur.showScore();
|
||||||
|
jaipur.showBonus();
|
||||||
|
};
|
||||||
|
|
||||||
|
this.showBonus = function () {
|
||||||
|
document.querySelector('.bonus_section').classList.add('show');
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
this.coinClick = function () {
|
||||||
|
|
||||||
|
if (!jaipur.selectedCointType) {
|
||||||
|
jaipur.selectedCointType = this.dataset.group;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (jaipur.selectedCointType == this.dataset.group) {
|
||||||
|
|
||||||
|
//ustawienie active inactive na wszystkich grupach
|
||||||
|
var groups = document.querySelectorAll('.group');
|
||||||
|
for (var i = 0; i < groups.length; i++) {
|
||||||
|
groups[i].classList.add('inactive');
|
||||||
|
}
|
||||||
|
|
||||||
|
//usuniecie inactive na tej jednej klikniętej grupie
|
||||||
|
this.selectedCointType = this.dataset.group;
|
||||||
|
document.querySelector('.group.' + this.dataset.group).classList.remove('inactive');
|
||||||
|
|
||||||
|
if (this.classList.contains('selected')) {
|
||||||
|
//wyłaczenie selected na ostatniej wybranym żetonie
|
||||||
|
document.querySelector('.coin.selected.' + this.dataset.group).classList.remove('selected');
|
||||||
|
|
||||||
|
|
||||||
|
//usunięcie przycisku przydziel jeśli zdejmujemy żetony i jest ich mniej wybranych niż dwa
|
||||||
|
//w przypadku złota, srebra czy diamentów
|
||||||
|
if ((document.querySelectorAll('.coin.selected').length < 2 &&
|
||||||
|
['silver', 'gold', 'diamond'].indexOf(jaipur.selectedCointType) > -1 )) {
|
||||||
|
jaipur.hideAcceptButton();
|
||||||
|
}
|
||||||
|
|
||||||
|
//usunięcie blokady wybranego typu żetonu
|
||||||
|
if (document.querySelectorAll('.coin.selected.' + this.dataset.group).length == 0) {
|
||||||
|
jaipur.selectedCointType = false;
|
||||||
|
for (var i = 0; i < groups.length; i++) {
|
||||||
|
groups[i].classList.remove('inactive');
|
||||||
|
}
|
||||||
|
jaipur.hideAcceptButton();
|
||||||
|
}
|
||||||
|
jaipur.removeBlankCoin(jaipur.selectedCointType);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
//jesli jest już wybranych 7 lub więcej monet to nie można więcej bo to max
|
||||||
|
if (document.querySelectorAll('.coin.selected.' + jaipur.selectedCointType).length >= 7) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
//ustawienie selected na elemencie z kliniętej grupy
|
||||||
|
var coinsFromRow = document.querySelectorAll('.coin.' + this.dataset.group + ':not(.selected)');
|
||||||
|
[].slice.call(coinsFromRow).pop().classList.add('selected');
|
||||||
|
jaipur.showAcceptButton();
|
||||||
|
|
||||||
|
|
||||||
|
//dodanie monety o wartości zero jeśli wybrano wszystkie monety z danej grupy
|
||||||
|
if (!!document.querySelectorAll('.coin.' + this.selectedCointType + ':not(.selected)').length == 0) {
|
||||||
|
jaipur.addBlankCoin(this.selectedCointType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
jaipur.showBonusCoins();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
this.addBlankCoin = function (groupName) {
|
||||||
|
var blankCoin = document.createElement('span');
|
||||||
|
blankCoin.classList.add('coin');
|
||||||
|
blankCoin.classList.add(groupName);
|
||||||
|
blankCoin.classList.add('blank');
|
||||||
|
blankCoin.innerText = '0';
|
||||||
|
blankCoin.dataset.group = groupName;
|
||||||
|
blankCoin.addEventListener('click', jaipur.coinClick);
|
||||||
|
var firstElementInGroup = document.querySelector('.coin.' + groupName);
|
||||||
|
document.querySelector('.group.' + groupName).insertBefore(blankCoin, firstElementInGroup);
|
||||||
|
};
|
||||||
|
|
||||||
|
this.removeBlankCoin = function (groupName) {
|
||||||
|
if (!!document.querySelector('.coin.blank.' + groupName))
|
||||||
|
document.querySelector('.coin.blank.' + groupName).remove();
|
||||||
|
};
|
||||||
|
|
||||||
|
this.showScoreBoard = function () {
|
||||||
|
document.querySelector('#scoreTable').classList.add('visible');
|
||||||
|
};
|
||||||
|
|
||||||
|
this.showScore = function () {
|
||||||
|
document.querySelector('.player1_score').innerText = jaipur.player1.calculateScore();
|
||||||
|
document.querySelector('.player2_score').innerText = jaipur.player2.calculateScore();
|
||||||
|
document.querySelector('.score_section').classList.add('show');
|
||||||
|
};
|
||||||
|
|
||||||
|
this.initializeAcceptButton = function () {
|
||||||
|
document.querySelector('.accept').addEventListener('click', this.clickAcceptButton)
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
this.clickAcceptButton = function () {
|
||||||
|
|
||||||
|
var coins = document.querySelectorAll('.coin.selected');
|
||||||
|
|
||||||
|
for (var i = 0; i < coins.length; i++) {
|
||||||
|
var group = coins[i].dataset.group;
|
||||||
|
jaipur.board.goods[group].pop();
|
||||||
|
|
||||||
|
jaipur.activePlayer.coins.push(parseInt(coins[i].innerText));
|
||||||
|
coins[i].remove();
|
||||||
|
}
|
||||||
|
//przydzielanie bonusu
|
||||||
|
var bonus = false;
|
||||||
|
if (coins.length == 3) {
|
||||||
|
var bonusGroup = 'three';
|
||||||
|
bonus = new Bonus(3, jaipur.board.bonus.three.pop()); //{3: jaipur.board.bonus.three.pop()};
|
||||||
|
|
||||||
|
} else if (coins.length == 4) {
|
||||||
|
var bonusGroup = 'four';
|
||||||
|
bonus = new Bonus(4, jaipur.board.bonus.four.pop()); //{3: jaipur.board.bonus.three.pop()};
|
||||||
|
// bonus = {4: jaipur.board.bonus.four.pop()};
|
||||||
|
} else if (coins.length >= 5) {
|
||||||
|
var bonusGroup = 'five';
|
||||||
|
bonus = new Bonus(5, jaipur.board.bonus.five.pop()); //{3: jaipur.board.bonus.three.pop()};
|
||||||
|
// bonus = {5: jaipur.board.bonus.five.pop()};
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!!bonus) {
|
||||||
|
jaipur.activePlayer.bonus.push(bonus);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
var groups = document.querySelectorAll('.group');
|
||||||
|
jaipur.selectedCointType = false;
|
||||||
|
for (var i = 0; i < groups.length; i++) {
|
||||||
|
groups[i].classList.remove('inactive');
|
||||||
|
}
|
||||||
|
jaipur.hideAcceptButton();
|
||||||
|
jaipur.setActivePlayer(false);
|
||||||
|
if (jaipur.isRoundOver()) {
|
||||||
|
jaipur.endTurn();
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
this.endTurn = function () {
|
||||||
|
jaipur.showScoreBoard();
|
||||||
|
jaipur.drawBonusCoins();
|
||||||
|
};
|
||||||
|
|
||||||
|
this.drawBonusCoins = function () {
|
||||||
|
for (var i in jaipur.player1.bonus) {
|
||||||
|
var group = document.querySelector('.player1_bonus .bonus' + jaipur.player1.bonus[i].group);
|
||||||
|
var bonusCoin = document.createElement("span");
|
||||||
|
group.appendChild(bonusCoin);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
for (var i in jaipur.player2.bonus) {
|
||||||
|
var group = document.querySelector('.player2_bonus .bonus' + jaipur.player2.bonus[i].group);
|
||||||
|
var bonusCoin = document.createElement("span");
|
||||||
|
group.appendChild(bonusCoin);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
this.initializeCamels = function () {
|
||||||
|
|
||||||
|
document.querySelector('.player1_camel').addEventListener('click', function () {
|
||||||
|
jaipur.camelClick(1);
|
||||||
|
});
|
||||||
|
document.querySelector('.player2_camel').addEventListener('click', function () {
|
||||||
|
jaipur.camelClick(2);
|
||||||
|
});
|
||||||
|
document.querySelector('.nobody').addEventListener('click', function () {
|
||||||
|
jaipur.camelClick(0);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
this.initializeCoins = function () {
|
||||||
|
var coins = document.querySelectorAll('.coin');
|
||||||
|
for (var i = 0; i < coins.length; i++) {
|
||||||
|
coins[i].addEventListener('click', jaipur.coinClick);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
223
maharaja.svg
Normal file
223
maharaja.svg
Normal file
@@ -0,0 +1,223 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="59.492878mm"
|
||||||
|
height="124.09363mm"
|
||||||
|
viewBox="0 0 59.492878 124.09363"
|
||||||
|
version="1.1"
|
||||||
|
id="svg8"
|
||||||
|
inkscape:version="0.92.1 r15371"
|
||||||
|
sodipodi:docname="maharaja.svg">
|
||||||
|
<defs
|
||||||
|
id="defs2" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="0.98994949"
|
||||||
|
inkscape:cx="-110.29835"
|
||||||
|
inkscape:cy="156.28638"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
showgrid="false"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0"
|
||||||
|
inkscape:window-width="1600"
|
||||||
|
inkscape:window-height="837"
|
||||||
|
inkscape:window-x="-8"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:measure-start="0,0"
|
||||||
|
inkscape:measure-end="0,0" />
|
||||||
|
<metadata
|
||||||
|
id="metadata5">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(-59.95156,-74.377042)">
|
||||||
|
<path
|
||||||
|
style="fill:#decd87;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 66.145833,139.38392 0.966589,4.44104 c 5.991523,-5.75487 31.639437,-19.45576 46.844578,0.002 l 0.94494,-4.63022 c -23.346378,-13.7192 -33.272692,-6.48338 -48.756107,0.18718 z"
|
||||||
|
id="path4554"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="ccccc" />
|
||||||
|
<path
|
||||||
|
style="fill:#b3a6e5;fill-opacity:1;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 66.145833,139.38392 c -3.485006,-8.20796 -5.291666,-30.42708 -5.291666,-30.42708 3.664211,-48.762706 58.302533,-42.888896 57.074403,-0.37798 l -3.02381,30.61607 c -26.533132,-15.07574 -35.856243,-4.17532 -48.758927,0.18899 z"
|
||||||
|
id="path4487"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="ccccc" />
|
||||||
|
<path
|
||||||
|
style="fill:#6444da;fill-opacity:0.63809527;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 116.52951,122.20573 c -12.22135,-3.29634 -19.405179,0.71127 -27.328307,9.35443 6.389101,-12.55506 11.018707,-19.09654 28.727367,-22.9813 z"
|
||||||
|
id="path4489"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="ccc" />
|
||||||
|
<path
|
||||||
|
style="fill:#7c67d6;fill-opacity:0.63809527;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="M 114.28945,90.306161 C 92.089302,104.42558 94.935735,114.92517 89.201203,131.56016 90.381629,105.29367 91.352417,86.024717 102.3325,77.642589 c 5.39552,2.912023 9.20481,7.296981 11.95695,12.663572 z"
|
||||||
|
id="path4491"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cccc" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path4493"
|
||||||
|
d="m 62.422952,122.25298 c 9.81221,-4.72304 17.862788,2.59669 26.778251,9.30718 -9.076706,-10.76231 -12.343863,-21.89556 -28.347036,-22.60332 0.411488,4.45062 0.791682,8.90646 1.568785,13.29614 z"
|
||||||
|
style="fill:#735ace;fill-opacity:0.63809527;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
sodipodi:nodetypes="cccc" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path4495"
|
||||||
|
d="M 65.648076,90.768151 C 80.80713,96.582863 81.652951,114.32924 89.201203,131.56016 85.779742,109.83386 88.693206,88.865726 76.940216,78.173074 70.903752,81.668066 67.984688,86.127967 65.648076,90.768151 Z"
|
||||||
|
style="fill:#8a76d6;fill-opacity:0.63809527;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
sodipodi:nodetypes="cccc" />
|
||||||
|
<path
|
||||||
|
sodipodi:type="star"
|
||||||
|
style="opacity:1;fill:#cf2984;fill-opacity:1;fill-rule:nonzero;stroke:#d32c4f;stroke-width:0.56036741;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.96464646"
|
||||||
|
id="path4501"
|
||||||
|
sodipodi:sides="8"
|
||||||
|
sodipodi:cx="85.61161"
|
||||||
|
sodipodi:cy="128.75336"
|
||||||
|
sodipodi:r1="11.137993"
|
||||||
|
sodipodi:r2="10.290164"
|
||||||
|
sodipodi:arg1="1.2107911"
|
||||||
|
sodipodi:arg2="1.6034902"
|
||||||
|
inkscape:flatsided="true"
|
||||||
|
inkscape:rounded="0"
|
||||||
|
inkscape:randomized="0"
|
||||||
|
d="m 89.535293,139.17735 -8.520095,-0.27866 -5.827579,-6.22165 0.278654,-8.5201 6.221655,-5.82757 8.520095,0.27865 5.827579,6.22165 -0.278654,8.5201 z"
|
||||||
|
inkscape:transform-center-y="-4.4351609e-006"
|
||||||
|
transform="matrix(0.38115489,-0.02237902,0.0297022,0.58499447,52.863812,52.258355)" />
|
||||||
|
<path
|
||||||
|
style="fill:#f3c9b1;fill-opacity:1;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 64.917409,156.01488 c -0.770406,-2.32186 -2.253047,-5.40125 1.511905,-11.1503 8.00735,-12.994 39.942196,-15.92133 47.530506,-1.03943 0.76172,3.14831 1.59293,7.54572 0.47247,12.18973"
|
||||||
|
id="path4545"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cccc" />
|
||||||
|
<ellipse
|
||||||
|
style="opacity:1;fill:#e8f7ff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.26499999;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.96464646"
|
||||||
|
id="path4505"
|
||||||
|
cx="85.292389"
|
||||||
|
cy="139.51144"
|
||||||
|
rx="4.309721"
|
||||||
|
ry="3.9422255" />
|
||||||
|
<ellipse
|
||||||
|
ry="4.3431296"
|
||||||
|
rx="4.309721"
|
||||||
|
cy="139.04372"
|
||||||
|
cx="95.582268"
|
||||||
|
id="ellipse4524"
|
||||||
|
style="opacity:1;fill:#e3f6ff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.26499999;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.96464646" />
|
||||||
|
<ellipse
|
||||||
|
style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.26500002;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.96464646"
|
||||||
|
id="path4526"
|
||||||
|
cx="85.270966"
|
||||||
|
cy="140.12276"
|
||||||
|
rx="0.21243775"
|
||||||
|
ry="0.21041118" />
|
||||||
|
<ellipse
|
||||||
|
ry="0.21041118"
|
||||||
|
rx="0.21243775"
|
||||||
|
cy="139.63545"
|
||||||
|
cx="95.692986"
|
||||||
|
id="ellipse4537"
|
||||||
|
style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.26500002;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.96464646" />
|
||||||
|
<path
|
||||||
|
id="path4549"
|
||||||
|
style="fill:#f0f0f0;fill-opacity:1;stroke:#0c0c0c;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 89.697994,198.34821 c 6.11155,-2.49771 6.985923,-7.92595 9.387872,-9.73288 -0.133674,1.2929 -0.462755,2.93635 0.08458,3.77976 9.392914,1.24712 13.645744,-7.13427 16.661344,-14.45759 -0.0689,3.00028 0.80234,3.6369 1.60694,4.44122 2.25336,-9.05945 3.66594,-18.04845 -2.96014,-26.36384 m -24.780597,42.33333 c -6.11155,-2.49771 -6.985924,-7.92595 -9.387868,-9.73288 -0.03801,1.18665 0.387146,2.13417 -0.08457,3.77976 -9.392924,1.24712 -13.645746,-7.13427 -16.66135,-14.45759 0.06895,3.00028 -0.802346,3.6369 -1.606933,4.44122 -2.253368,-9.05945 -3.665944,-18.04845 2.960138,-26.36384 4.90648,-4.44378 14.393941,-6.05813 25.31939,-6.78431 8.452452,1.64787 18.98272,-0.13264 24.24179,6.78431"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cccccccccccccc" />
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="ccccccccccccccccc"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
d="m 89.647837,192.8536 c 6.11155,-2.49771 6.985923,-7.92595 9.387872,-9.73288 -0.133674,1.2929 -0.462755,2.93635 0.08458,3.77976 9.392921,1.24712 13.645751,-7.13427 16.661351,-14.45759 -0.0689,3.00028 0.80234,3.6369 1.60694,4.44122 0.98383,-3.24634 1.71708,-5.78409 1.71708,-5.78409 M 89.647836,192.8536 c -6.11155,-2.49771 -6.985924,-7.92595 -9.387868,-9.73288 -0.03801,1.18665 0.387146,2.13417 -0.08457,3.77976 -9.392924,1.24712 -13.645746,-7.13427 -16.66135,-14.45759 0.06895,3.00028 -0.802346,3.6369 -1.606933,4.44122 -1.618603,-3.64724 -1.694627,-5.77462 -1.694627,-5.77462 -0.03578,-1.91391 0.126611,-3.67919 0.340764,-5.40565 0.825855,-4.63251 2.792955,-6.71916 4.364158,-9.68896 6.175336,-4.82488 15.542589,-6.06119 25.31939,-6.78431 9.49064,0.96555 19.99847,1.00638 24.19549,6.78431 2.42932,3.87954 4.94119,7.65027 4.67337,15.08514"
|
||||||
|
style="fill:#fcfcfc;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
id="path4582" />
|
||||||
|
<path
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 67.346578,161.35125 c 5.252203,3.72657 11.434099,4.92969 17.926192,5.29085 l 9.921875,0.0945 c 7.668205,-0.65482 14.117555,-1.93491 19.350315,-5.53994"
|
||||||
|
id="path4552"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cccc" />
|
||||||
|
<path
|
||||||
|
style="fill:#f3c9b1;fill-opacity:1;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 114.57641,146.2648 c 2.62662,-6.88784 8.12993,6.69316 0.28348,6.99255"
|
||||||
|
id="path4558"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cc" />
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path4560"
|
||||||
|
d="m 64.800436,147.84757 c -2.62662,-6.88784 -8.53153,5.77184 -0.68508,6.07123"
|
||||||
|
style="fill:#f3c9b1;fill-opacity:1;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||||
|
<path
|
||||||
|
id="path4564"
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 116.46461,150.88047 c -0.75416,-1.65498 -0.16215,-2.56137 0.21261,-3.2128 m -1.13393,3.35453 c 1.09805,0.0656 2.05154,-0.20238 2.33873,-2.008"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path4564-1"
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 62.516407,151.80041 c 0.75416,-1.65498 0.16215,-2.56137 -0.21261,-3.2128 m 1.13393,3.35453 c -1.09805,0.0656 -2.05154,-0.20238 -2.33873,-2.008" />
|
||||||
|
<ellipse
|
||||||
|
style="opacity:1;fill:#deaa87;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.26499999;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.96464646"
|
||||||
|
id="path4543"
|
||||||
|
cx="90.478043"
|
||||||
|
cy="151.29018"
|
||||||
|
rx="12.236979"
|
||||||
|
ry="8.1264877" />
|
||||||
|
<ellipse
|
||||||
|
style="opacity:1;fill:#f3c9b1;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26499999;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.96464646"
|
||||||
|
id="path4608"
|
||||||
|
cx="90.520508"
|
||||||
|
cy="150.79645"
|
||||||
|
rx="11.793267"
|
||||||
|
ry="7.182868" />
|
||||||
|
<ellipse
|
||||||
|
ry="3.5907733"
|
||||||
|
rx="8.3154755"
|
||||||
|
cy="147.41591"
|
||||||
|
cx="90.714272"
|
||||||
|
id="ellipse4592"
|
||||||
|
style="opacity:1;fill:#f8dfd0;fill-opacity:1;fill-rule:nonzero;stroke:#f3c9b1;stroke-width:0.26499996;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||||
|
<path
|
||||||
|
style="fill:#9b9b9b;fill-opacity:1;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 91.745613,133.74038 c 3.277807,-0.0288 6.283998,-1.0082 10.016367,0.554 0.17577,-1.36002 -0.38245,-2.59772 -0.94494,-3.8347 -3.366721,0.0648 -6.19036,1.75891 -9.071427,3.2807 z"
|
||||||
|
id="path4604"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cccc" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path4606"
|
||||||
|
d="m 88.797517,134.71392 c -4.018411,-1.17976 -7.858295,-2.07387 -10.016368,-0.27709 0.01819,-1.27493 0.120109,-2.54341 0.94494,-3.75629 3.380907,0.45172 6.168711,2.38619 9.071428,4.03338 z"
|
||||||
|
style="fill:#9d9d9d;fill-opacity:1;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
sodipodi:nodetypes="cccc" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 13 KiB |
565
sass-css/index.css
Normal file
565
sass-css/index.css
Normal file
@@ -0,0 +1,565 @@
|
|||||||
|
/* http://meyerweb.com/eric/tools/css/reset/
|
||||||
|
v2.0 | 20110126
|
||||||
|
License: none (public domain)
|
||||||
|
*/
|
||||||
|
/* line 6, C:/Users/k/Desktop/jaipur-score/sass/_reset.scss */
|
||||||
|
html, body, div, span, applet, object, iframe,
|
||||||
|
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||||
|
a, abbr, acronym, address, big, cite, code,
|
||||||
|
del, dfn, em, img, ins, kbd, q, s, samp,
|
||||||
|
small, strike, strong, sub, sup, tt, var,
|
||||||
|
b, u, i, center,
|
||||||
|
dl, dt, dd, ol, ul, li,
|
||||||
|
fieldset, form, label, legend,
|
||||||
|
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||||
|
article, aside, canvas, details, embed,
|
||||||
|
figure, figcaption, footer, header, hgroup,
|
||||||
|
menu, nav, output, ruby, section, summary,
|
||||||
|
time, mark, audio, video {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
font-size: 100%;
|
||||||
|
font: inherit;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* HTML5 display-role reset for older browsers */
|
||||||
|
/* line 27, C:/Users/k/Desktop/jaipur-score/sass/_reset.scss */
|
||||||
|
article, aside, details, figcaption, figure,
|
||||||
|
footer, header, hgroup, menu, nav, section {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 31, C:/Users/k/Desktop/jaipur-score/sass/_reset.scss */
|
||||||
|
body {
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 34, C:/Users/k/Desktop/jaipur-score/sass/_reset.scss */
|
||||||
|
ol, ul {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 37, C:/Users/k/Desktop/jaipur-score/sass/_reset.scss */
|
||||||
|
blockquote, q {
|
||||||
|
quotes: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 40, C:/Users/k/Desktop/jaipur-score/sass/_reset.scss */
|
||||||
|
blockquote:before, blockquote:after,
|
||||||
|
q:before, q:after {
|
||||||
|
content: '';
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 45, C:/Users/k/Desktop/jaipur-score/sass/_reset.scss */
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 1, C:/Users/k/Desktop/jaipur-score/sass/_grid.scss */
|
||||||
|
.container {
|
||||||
|
display: grid;
|
||||||
|
grid-template-areas: "player1container acceptcontainer player2container"
|
||||||
|
"leather leather leather"
|
||||||
|
"fabric fabric fabric"
|
||||||
|
"spice spice spice"
|
||||||
|
"silver silver silver"
|
||||||
|
"gold gold gold"
|
||||||
|
"diamond diamond diamond"
|
||||||
|
"menu menu menu";
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
grid-template-rows: repeat(8, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (orientation: landscape) {
|
||||||
|
/*.container {display: none; }*/
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 21, C:/Users/k/Desktop/jaipur-score/sass/_grid.scss */
|
||||||
|
.group.leather {
|
||||||
|
grid-area: leather;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 22, C:/Users/k/Desktop/jaipur-score/sass/_grid.scss */
|
||||||
|
.group.fabric {
|
||||||
|
grid-area: fabric;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 23, C:/Users/k/Desktop/jaipur-score/sass/_grid.scss */
|
||||||
|
.group.spice {
|
||||||
|
grid-area: spice;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 24, C:/Users/k/Desktop/jaipur-score/sass/_grid.scss */
|
||||||
|
.group.silver {
|
||||||
|
grid-area: silver;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 25, C:/Users/k/Desktop/jaipur-score/sass/_grid.scss */
|
||||||
|
.group.gold {
|
||||||
|
grid-area: gold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 26, C:/Users/k/Desktop/jaipur-score/sass/_grid.scss */
|
||||||
|
.group.diamond {
|
||||||
|
grid-area: diamond;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 29, C:/Users/k/Desktop/jaipur-score/sass/_grid.scss */
|
||||||
|
.player1container {
|
||||||
|
grid-area: player1container;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 30, C:/Users/k/Desktop/jaipur-score/sass/_grid.scss */
|
||||||
|
.player2container {
|
||||||
|
grid-area: player2container;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 31, C:/Users/k/Desktop/jaipur-score/sass/_grid.scss */
|
||||||
|
#menu {
|
||||||
|
grid-area: menu;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 1, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
body {
|
||||||
|
height: 100vh;
|
||||||
|
font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 7, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#menu {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-around;
|
||||||
|
height: 100%;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 13, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#menu a {
|
||||||
|
max-width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 6vh;
|
||||||
|
color: #666;
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 1vw;
|
||||||
|
display: inline-block;
|
||||||
|
width: 25%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 450px) {
|
||||||
|
/* line 13, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#menu a {
|
||||||
|
background: #ddd;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 28, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#menu a:hover {
|
||||||
|
background-color: #eee;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* PLAYERS START */
|
||||||
|
/* line 38, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.container {
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-khtml-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 50, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.acceptcontainer .accept {
|
||||||
|
grid-area: acceptcontainer;
|
||||||
|
visibility: hidden;
|
||||||
|
border: 2px solid dodgerblue;
|
||||||
|
margin: 1.5vh auto;
|
||||||
|
max-width: 100%;
|
||||||
|
height: 5vh;
|
||||||
|
padding: 0.5vh 0vw;
|
||||||
|
font-weight: bold;
|
||||||
|
background-color: #bedfff;
|
||||||
|
cursor: pointer;
|
||||||
|
line-height: 5vh;
|
||||||
|
text-align: center;
|
||||||
|
display: flex;
|
||||||
|
justify-items: center;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-around;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 67, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.acceptcontainer .accept.on {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 72, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.acceptcontainer .bonus {
|
||||||
|
height: 5vh;
|
||||||
|
width: 5vh;
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1px solid dodgerblue;
|
||||||
|
background: no-repeat #fff center center/60% 60%;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 83, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.acceptcontainer .bonus.bonus3 {
|
||||||
|
background-image: url(../bonus3.svg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 83, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.acceptcontainer .bonus.bonus4 {
|
||||||
|
background-image: url(../bonus4.svg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 83, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.acceptcontainer .bonus.bonus5 {
|
||||||
|
background-image: url(../bonus5.svg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 90, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.player {
|
||||||
|
border: 2px solid dodgerblue;
|
||||||
|
padding: 0.5vh 0;
|
||||||
|
margin: 1.5vh 1vw;
|
||||||
|
color: #444;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 2px;
|
||||||
|
font-weight: bold;
|
||||||
|
font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
|
||||||
|
height: 5vh;
|
||||||
|
line-height: 5vh;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 103, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.player.selected {
|
||||||
|
background: #6f9cc9;
|
||||||
|
color: #f2eeee;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 108, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.player .score {
|
||||||
|
height: 50px;
|
||||||
|
width: 23px;
|
||||||
|
display: inline-block;
|
||||||
|
background-image: none;
|
||||||
|
background-size: auto auto;
|
||||||
|
margin: 0 5px;
|
||||||
|
background-image: url(../maharaja.svg);
|
||||||
|
background-size: 100%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 119, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.player .score:first-child {
|
||||||
|
margin-left: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* PLAYERS END */
|
||||||
|
/* line 127, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
* {
|
||||||
|
font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* SCORE TABLE START */
|
||||||
|
/* line 132, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable {
|
||||||
|
width: 90vw;
|
||||||
|
background: #fff;
|
||||||
|
content: "";
|
||||||
|
height: 70vh;
|
||||||
|
position: absolute;
|
||||||
|
top: 15vh;
|
||||||
|
left: 5vw;
|
||||||
|
box-shadow: 0 0 207px #000000;
|
||||||
|
border: 3px solid #ccc;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 144, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable h1 {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 10vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 148, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable.visible {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 152, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .score_section {
|
||||||
|
display: none;
|
||||||
|
font-size: 35px;
|
||||||
|
justify-content: space-around;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 157, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .score_section.show {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 162, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .bonus_section {
|
||||||
|
display: none;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 165, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .bonus_section.show {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 170, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .players_section, #scoreTable .camel_section {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
font-size: 45px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 177, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .camel_section .player1_camel, #scoreTable .camel_section .player2_camel {
|
||||||
|
background: url("../camel.svg") no-repeat 0 0/10vh 10vh;
|
||||||
|
height: 10vh;
|
||||||
|
width: 10vh;
|
||||||
|
cursor: pointer;
|
||||||
|
opacity: 0.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 185, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .camel_section .nobody {
|
||||||
|
opacity: 0.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 189, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .camel_section .player1_camel.selected, #scoreTable .camel_section .player2_camel.selected, #scoreTable .camel_section .nobody.selected {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 193, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .player1_bonus {
|
||||||
|
text-align: right;
|
||||||
|
margin-right: 3.5vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 198, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .player1_bonus .bonus3, #scoreTable .player1_bonus .bonus4, #scoreTable .player1_bonus .bonus5 {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 204, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .bonus_section span:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 207, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .bonus_section span {
|
||||||
|
height: 6vh;
|
||||||
|
width: 6vh;
|
||||||
|
display: inline-block;
|
||||||
|
margin-left: -30px;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1px solid dodgerblue;
|
||||||
|
background: no-repeat #fff center center / 60% 60%;
|
||||||
|
/*display: none;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 218, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .bonus_section .player1_bonus span:first-child {
|
||||||
|
margin-left: -30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 223, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .bonus_section .player2_bonus, #scoreTable .bonus_section .player1_bonus {
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 227, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .bonus_section .player2_bonus {
|
||||||
|
margin-left: 3.5vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 232, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .bonus_section .bonus3 span {
|
||||||
|
background-image: url(../bonus3.svg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 232, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .bonus_section .bonus4 span {
|
||||||
|
background-image: url(../bonus4.svg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 232, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
#scoreTable .bonus_section .bonus5 span {
|
||||||
|
background-image: url(../bonus5.svg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** MODAL */
|
||||||
|
/* line 242, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.modal {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
width: 75vw;
|
||||||
|
left: 12.5vw;
|
||||||
|
top: 25vh;
|
||||||
|
height: 50vh;
|
||||||
|
border: 1px solid #eee;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 253, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.modal .close {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
padding: 10px;
|
||||||
|
font-weight: bold;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 2.5vh;
|
||||||
|
color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 262, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.modal .close:hover {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 268, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.modal .modal_content {
|
||||||
|
padding: 3vw 3vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 274, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.modal .modal_content h1 {
|
||||||
|
font-size: 4vh;
|
||||||
|
margin-bottom: 5vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 278, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.modal .modal_content input {
|
||||||
|
padding: 5px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 282, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.modal .modal_content .submit {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 288, C:/Users/k/Desktop/jaipur-score/sass/_light.scss */
|
||||||
|
.modal.on {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** PLAYER NAMES MODAL */
|
||||||
|
/* line 1, C:/Users/k/Desktop/jaipur-score/sass/_coins.scss */
|
||||||
|
.group {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 3, C:/Users/k/Desktop/jaipur-score/sass/_coins.scss */
|
||||||
|
.group.inactive {
|
||||||
|
opacity: 0.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 6, C:/Users/k/Desktop/jaipur-score/sass/_coins.scss */
|
||||||
|
.group .coin {
|
||||||
|
border-radius: 90px;
|
||||||
|
display: inline-block;
|
||||||
|
height: 9vh;
|
||||||
|
width: 9vh;
|
||||||
|
text-align: center;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
margin: 5px 0vh 5px -4vh;
|
||||||
|
font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
|
||||||
|
background-position: center 72%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
color: #000;
|
||||||
|
cursor: pointer;
|
||||||
|
text-shadow: 0 0 2px #fff;
|
||||||
|
font-size: 3vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 22, C:/Users/k/Desktop/jaipur-score/sass/_coins.scss */
|
||||||
|
.group .coin:first-child {
|
||||||
|
margin: 5px 0vh 5px 0vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 25, C:/Users/k/Desktop/jaipur-score/sass/_coins.scss */
|
||||||
|
.group .coin.selected {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 29, C:/Users/k/Desktop/jaipur-score/sass/_coins.scss */
|
||||||
|
.group .coin.blank {
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 31, C:/Users/k/Desktop/jaipur-score/sass/_coins.scss */
|
||||||
|
.group .coin.blank.selected {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 33, C:/Users/k/Desktop/jaipur-score/sass/_coins.scss */
|
||||||
|
.group .coin.blank.selected:first-child {
|
||||||
|
margin: 5px 0vh 5px -4vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 45, C:/Users/k/Desktop/jaipur-score/sass/_coins.scss */
|
||||||
|
.group .coin.leather {
|
||||||
|
border-color: saddlebrown;
|
||||||
|
background-image: url(../leather.svg);
|
||||||
|
background-size: 45%;
|
||||||
|
background-color: burlywood;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 45, C:/Users/k/Desktop/jaipur-score/sass/_coins.scss */
|
||||||
|
.group .coin.fabric {
|
||||||
|
border-color: purple;
|
||||||
|
background-image: url(../fabric.svg);
|
||||||
|
background-size: 71%;
|
||||||
|
background-color: #f5d6f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 45, C:/Users/k/Desktop/jaipur-score/sass/_coins.scss */
|
||||||
|
.group .coin.spice {
|
||||||
|
border-color: forestgreen;
|
||||||
|
background-image: url(../spice.svg);
|
||||||
|
background-size: 60%;
|
||||||
|
background-color: #dff9b6;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 45, C:/Users/k/Desktop/jaipur-score/sass/_coins.scss */
|
||||||
|
.group .coin.silver {
|
||||||
|
border-color: silver;
|
||||||
|
background-image: url(../silver.svg);
|
||||||
|
background-size: 44%;
|
||||||
|
background-color: #879fc6;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 45, C:/Users/k/Desktop/jaipur-score/sass/_coins.scss */
|
||||||
|
.group .coin.gold {
|
||||||
|
border-color: goldenrod;
|
||||||
|
background-image: url(../gold.svg);
|
||||||
|
background-size: 40%;
|
||||||
|
background-color: #fcf4ca;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* line 45, C:/Users/k/Desktop/jaipur-score/sass/_coins.scss */
|
||||||
|
.group .coin.diamond {
|
||||||
24
sass-css/index.map
Normal file
24
sass-css/index.map
Normal file
File diff suppressed because one or more lines are too long
53
sass/_coins.scss
Normal file
53
sass/_coins.scss
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
.group {
|
||||||
|
clear: both;
|
||||||
|
&.inactive {
|
||||||
|
opacity: 0.4;
|
||||||
|
}
|
||||||
|
.coin {
|
||||||
|
border-radius: 90px;
|
||||||
|
display: inline-block;
|
||||||
|
height: 9vh;
|
||||||
|
width: 9vh;
|
||||||
|
text-align: center;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
margin: 5px 0vh 5px -4vh;
|
||||||
|
font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
|
||||||
|
background-position: center 72%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
color: $coin-text-color;
|
||||||
|
cursor: pointer;
|
||||||
|
text-shadow: 0 0 2px #fff;
|
||||||
|
font-size: 3vh;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
margin: 5px 0vh 5px 0vh;
|
||||||
|
}
|
||||||
|
&.selected {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.blank {
|
||||||
|
opacity: 0.7;
|
||||||
|
&.selected {
|
||||||
|
opacity: 1;
|
||||||
|
&:first-child {
|
||||||
|
margin: 5px 0vh 5px -4vh;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@each $icon, $border_color, $background_color, $background_size in (leather, saddlebrown, burlywood, 45%),
|
||||||
|
(fabric, purple, #f5d6f5, 71%),
|
||||||
|
(spice, forestgreen, #dff9b6, 60%),
|
||||||
|
(silver, silver, #879fc6, 44%),
|
||||||
|
(gold, goldenrod, #fcf4ca, 40%),
|
||||||
|
(diamond, darkred, #f66282, 48%), {
|
||||||
|
&.#{$icon} {
|
||||||
|
border-color: #{$border_color};
|
||||||
|
background-image: url(../#{$icon}.svg);
|
||||||
|
background-size: #{$background_size};
|
||||||
|
background-color: #{$background_color};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
0
sass/_dark.scss
Normal file
0
sass/_dark.scss
Normal file
32
sass/_grid.scss
Normal file
32
sass/_grid.scss
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
.container {
|
||||||
|
display: grid;
|
||||||
|
grid-template-areas:
|
||||||
|
"player1container acceptcontainer player2container"
|
||||||
|
"leather leather leather"
|
||||||
|
"fabric fabric fabric"
|
||||||
|
"spice spice spice"
|
||||||
|
"silver silver silver"
|
||||||
|
"gold gold gold"
|
||||||
|
"diamond diamond diamond"
|
||||||
|
"menu menu menu";
|
||||||
|
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
grid-template-rows: repeat(8, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (orientation: landscape){
|
||||||
|
/*.container {display: none; }*/
|
||||||
|
}
|
||||||
|
.group {
|
||||||
|
&.leather { grid-area: leather; }
|
||||||
|
&.fabric { grid-area: fabric; }
|
||||||
|
&.spice { grid-area: spice; }
|
||||||
|
&.silver { grid-area: silver; }
|
||||||
|
&.gold { grid-area: gold; }
|
||||||
|
&.diamond { grid-area: diamond; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.player1container {grid-area: player1container; }
|
||||||
|
.player2container {grid-area: player2container;}
|
||||||
|
#menu { grid-area: menu; }
|
||||||
|
|
||||||
297
sass/_light.scss
Normal file
297
sass/_light.scss
Normal file
@@ -0,0 +1,297 @@
|
|||||||
|
body {
|
||||||
|
height: 100vh;
|
||||||
|
font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#menu {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-around;
|
||||||
|
height: 100%;
|
||||||
|
align-items: center;
|
||||||
|
a {
|
||||||
|
max-width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 6vh;
|
||||||
|
color: $menu-color;
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 1vw;
|
||||||
|
display: inline-block;
|
||||||
|
width: 25%;
|
||||||
|
|
||||||
|
@media screen and (max-width: $small-break) {
|
||||||
|
background: $menu-background-color;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: $menu-background-color-hover;
|
||||||
|
color: $menu-color-hover;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* PLAYERS START */
|
||||||
|
|
||||||
|
.container {
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-khtml-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.acceptcontainer {
|
||||||
|
|
||||||
|
.accept {
|
||||||
|
grid-area: acceptcontainer;
|
||||||
|
visibility: hidden;
|
||||||
|
border: 2px solid $accept-border;
|
||||||
|
margin: 1.5vh auto;
|
||||||
|
max-width: 100%;
|
||||||
|
height: 5vh;
|
||||||
|
padding: 0.5vh 0vw;
|
||||||
|
font-weight: bold;
|
||||||
|
background-color: $accept-background-color;
|
||||||
|
cursor: pointer;
|
||||||
|
line-height: 5vh;
|
||||||
|
text-align: center;
|
||||||
|
display: flex;
|
||||||
|
justify-items: center;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-around;
|
||||||
|
&.on {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.bonus {
|
||||||
|
height: 5vh;
|
||||||
|
width: 5vh;
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1px solid $bonus-coin-border-color;
|
||||||
|
background: no-repeat $accept-bonus-coin-background-color center center / 60% 60%;
|
||||||
|
display: none;
|
||||||
|
|
||||||
|
@for $i from 3 through 5 {
|
||||||
|
&.bonus#{$i} {
|
||||||
|
background-image: url(../bonus#{$i}.svg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.player {
|
||||||
|
border: 2px solid $player-border-color;
|
||||||
|
padding: 0.5vh 0;
|
||||||
|
margin: 1.5vh 1vw;
|
||||||
|
color: #444;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 2px;
|
||||||
|
font-weight: bold;
|
||||||
|
font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
|
||||||
|
height: 5vh;
|
||||||
|
line-height: 5vh;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
&.selected {
|
||||||
|
background: $player-selected-background-color;
|
||||||
|
color: $player-selected-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.score {
|
||||||
|
height: 50px;
|
||||||
|
width: 23px;
|
||||||
|
display: inline-block;
|
||||||
|
background-image: none;
|
||||||
|
background-size: auto auto;
|
||||||
|
margin: 0 5px;
|
||||||
|
background-image: url(../maharaja.svg);
|
||||||
|
background-size: 100%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
margin-left: 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* PLAYERS END */
|
||||||
|
|
||||||
|
* {
|
||||||
|
font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* SCORE TABLE START */
|
||||||
|
#scoreTable {
|
||||||
|
width: 90vw;
|
||||||
|
background: $score-table-background;
|
||||||
|
content: "";
|
||||||
|
height: 70vh;
|
||||||
|
position: absolute;
|
||||||
|
top: 15vh;
|
||||||
|
left: 5vw;
|
||||||
|
box-shadow: 0 0 207px #000000;
|
||||||
|
border: 3px solid $score-table-border-color;
|
||||||
|
display: none;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 10vh;
|
||||||
|
}
|
||||||
|
&.visible {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.score_section {
|
||||||
|
display: none;
|
||||||
|
font-size: 35px;
|
||||||
|
justify-content: space-around;
|
||||||
|
|
||||||
|
&.show {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.bonus_section {
|
||||||
|
display: none;
|
||||||
|
justify-content: center;
|
||||||
|
&.show {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.players_section, .camel_section {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
font-size: 45px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.camel_section .player1_camel, .camel_section .player2_camel {
|
||||||
|
background: url('../camel.svg') no-repeat 0 0 / 10vh 10vh;
|
||||||
|
height: 10vh;
|
||||||
|
width: 10vh;
|
||||||
|
cursor: pointer;
|
||||||
|
opacity: 0.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.camel_section .nobody {
|
||||||
|
opacity: 0.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.camel_section .player1_camel.selected, .camel_section .player2_camel.selected, .camel_section .nobody.selected {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.player1_bonus {
|
||||||
|
text-align: right;
|
||||||
|
margin-right: 3.5vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.player1_bonus .bonus3, .player1_bonus .bonus4, .player1_bonus .bonus5 {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bonus_section {
|
||||||
|
span:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
span {
|
||||||
|
height: 6vh;
|
||||||
|
width: 6vh;
|
||||||
|
display: inline-block;
|
||||||
|
margin-left: -30px;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1px solid $bonus-coin-border-color;
|
||||||
|
background: no-repeat #fff center center / 60% 60%;
|
||||||
|
/*display: none;*/
|
||||||
|
}
|
||||||
|
.player1_bonus {
|
||||||
|
span:first-child {
|
||||||
|
margin-left: -30px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.player2_bonus, .player1_bonus {
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.player2_bonus {
|
||||||
|
margin-left: 3.5vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
@for $i from 3 through 5 {
|
||||||
|
.bonus#{$i} span {
|
||||||
|
background-image: url(../bonus#{$i}.svg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/** MODAL */
|
||||||
|
|
||||||
|
.modal {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
width: 75vw;
|
||||||
|
left: 12.5vw;
|
||||||
|
top: 25vh;
|
||||||
|
height: 50vh;
|
||||||
|
border: 1px solid $modal-border-color;
|
||||||
|
background: $modal-background-color;
|
||||||
|
border-radius: 3px;
|
||||||
|
|
||||||
|
.close{
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
padding: 10px;
|
||||||
|
font-weight: bold;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 2.5vh;
|
||||||
|
color: $modal-close-color;
|
||||||
|
&:hover {
|
||||||
|
color: $modal-close-color-hover;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal_content {
|
||||||
|
padding: 3vw 3vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 4vh;
|
||||||
|
margin-bottom: 5vh;
|
||||||
|
}
|
||||||
|
input {
|
||||||
|
padding: 5px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
&.on {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** PLAYER NAMES MODAL */
|
||||||
|
|
||||||
|
#playerNames {
|
||||||
|
|
||||||
|
}
|
||||||
48
sass/_reset.scss
Normal file
48
sass/_reset.scss
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
/* http://meyerweb.com/eric/tools/css/reset/
|
||||||
|
v2.0 | 20110126
|
||||||
|
License: none (public domain)
|
||||||
|
*/
|
||||||
|
|
||||||
|
html, body, div, span, applet, object, iframe,
|
||||||
|
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||||
|
a, abbr, acronym, address, big, cite, code,
|
||||||
|
del, dfn, em, img, ins, kbd, q, s, samp,
|
||||||
|
small, strike, strong, sub, sup, tt, var,
|
||||||
|
b, u, i, center,
|
||||||
|
dl, dt, dd, ol, ul, li,
|
||||||
|
fieldset, form, label, legend,
|
||||||
|
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||||
|
article, aside, canvas, details, embed,
|
||||||
|
figure, figcaption, footer, header, hgroup,
|
||||||
|
menu, nav, output, ruby, section, summary,
|
||||||
|
time, mark, audio, video {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
font-size: 100%;
|
||||||
|
font: inherit;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
/* HTML5 display-role reset for older browsers */
|
||||||
|
article, aside, details, figcaption, figure,
|
||||||
|
footer, header, hgroup, menu, nav, section {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
ol, ul {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
blockquote, q {
|
||||||
|
quotes: none;
|
||||||
|
}
|
||||||
|
blockquote:before, blockquote:after,
|
||||||
|
q:before, q:after {
|
||||||
|
content: '';
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
}
|
||||||
25
sass/_variables.scss
Normal file
25
sass/_variables.scss
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
$coin-text-color: #000;
|
||||||
|
|
||||||
|
$accept-border: dodgerblue;
|
||||||
|
$accept-background-color: #bedfff;
|
||||||
|
|
||||||
|
$bonus-coin-border-color: dodgerblue;
|
||||||
|
$accept-bonus-coin-background-color: #fff;
|
||||||
|
|
||||||
|
$player-border-color: dodgerblue;
|
||||||
|
$player-selected-background-color: #6f9cc9;
|
||||||
|
$player-selected-color: #f2eeee;
|
||||||
|
|
||||||
|
$score-table-background: #fff;
|
||||||
|
$score-table-border-color: #ccc;
|
||||||
|
|
||||||
|
$modal-border-color: #eee;
|
||||||
|
$modal-background-color: #fff;
|
||||||
|
$modal-close-color: #ddd;
|
||||||
|
$modal-close-color-hover: #000;
|
||||||
|
|
||||||
|
$menu-color: #666;
|
||||||
|
$menu-color-hover: #333;
|
||||||
|
$menu-background-color-hover: #eee;
|
||||||
|
$menu-background-color: #ddd;
|
||||||
|
$small-break: 450px;
|
||||||
6
sass/index.scss
Normal file
6
sass/index.scss
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
@import 'reset';
|
||||||
|
@import 'variables';
|
||||||
|
@import 'grid';
|
||||||
|
@import 'light';
|
||||||
|
@import 'coins';
|
||||||
|
@import 'dark';
|
||||||
Reference in New Issue
Block a user