Skip to content

Commit 6f691cf

Browse files
authored
Update index.html
1 parent 296ae3c commit 6f691cf

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Other stuff/Tic tac toe/index.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,28 @@
1212
<h1><u>Options</u></h1>
1313
<div class="cont" id="mode">
1414
<h2 style="grid-row: 1; grid-column: 1 / 4">Mode</h2>
15-
<div style="display: grid; grid-template-columns: auto min-content auto; grid-template-rows: 1fr; align-items: center;">
16-
<svg width="50" height="75" style="float: left">
15+
<div style="display: grid; grid-template-columns: auto min-content auto; grid-template-rows: 1fr; align-items: center; justify-items: center;">
16+
<svg viewbox="0 0 50 75" style="float: left">
1717
<rect width="50" height="20" x="0" y="55" style="fill:rgb(0,0,0);"/>
1818
<circle cx="25" cy="55" r="25"/>
1919
<circle cx="25" cy="15" r="15"/>
2020
</svg>
2121
<span>v</span>
22-
<svg width="50" height="75" style="float: right">
22+
<svg viewbox="0 0 50 75" style="float: right">
2323
<rect width="40" height="5" x="5" y="70" style="fill:rgb(0,0,0);"/>
2424
<rect width="5" height="50" x="22.5" y="20" style="fill:rgb(0,0,0);"/>
2525
<rect width="50" height="40" x="0" y="15" style="fill:rgb(0,0,0);"/>
2626
</svg>
2727
</div>
2828
<label class="switch"><input type="checkbox" onclick="bob.modeSwitch(this)"><span class="slider"></span></label>
29-
<div style="display: grid; grid-template-columns: auto min-content auto; grid-template-rows: 1fr; align-items: center">
30-
<svg width="50" height="75" style="float: left">
29+
<div style="display: grid; grid-template-columns: auto min-content auto; grid-template-rows: 1fr; align-items: center; justify-items: center;">
30+
<svg viewbox="0 0 50 75" style="float: left">
3131
<rect width="50" height="25" x="0" y="55" style="fill:rgb(0,0,0);"/>
3232
<circle cx="25" cy="55" r="25"/>
3333
<circle cx="25" cy="15" r="15"/>
3434
</svg>
3535
<span>v</span>
36-
<svg width="50" height="75" style="float: right">
36+
<svg viewbox="0 0 50 75" style="float: right">
3737
<rect width="50" height="20" x="0" y="55" style="fill:rgb(0,0,0);"/>
3838
<circle cx="25" cy="55" r="25"/>
3939
<circle cx="25" cy="15" r="15"/>
@@ -44,36 +44,36 @@ <h2 style="grid-row: 1; grid-column: 1 / 4">Mode</h2>
4444
<div class="cont" id="starter">
4545
<h2 style="grid-row: 1; grid-column: 1 / 4">Starting Player</h2>
4646
<div id="startSvg1">
47-
<svg width="50" height="75" style="display: block">
47+
<svg viewbox="0 0 50 75" style="display: inline-block">
4848
<rect width="50" height="20" x="0" y="55" style="fill:rgb(0,0,0);"/>
4949
<circle cx="25" cy="55" r="25"/>
5050
<circle cx="25" cy="15" r="15"/>
5151
</svg>
52-
<svg width="50" height="75" style="display: none">
52+
<svg viewbox="0 0 50 75" style="display: none">
5353
<line x1="0" y1="0" x2="50" y2="75" style="stroke:black; stroke-width:15"></line>
5454
<line x1="50" y1="0" x2="0" y2="75" style="stroke:black; stroke-width:15"></line>
5555
</svg>
5656
</div>
5757
<label class="switch"><input type="checkbox" onclick="bob.turnSwitch(this)"><span class="slider"></span></label>
5858
<div id="startSvg2">
59-
<svg width="50" height="75" style="display: block">
59+
<svg viewbox="0 0 50 75" style="display: inline-block">
6060
<rect width="40" height="5" x="5" y="70" style="fill:rgb(0,0,0);"/>
6161
<rect width="5" height="50" x="22.5" y="20" style="fill:rgb(0,0,0);"/>
6262
<rect width="50" height="40" x="0" y="15" style="fill:rgb(0,0,0);"/>
6363
</svg>
64-
<svg width="50" height="75" style="display: none">
64+
<svg viewbox="0 0 50 75" style="display: none">
6565
<ellipse cx="25" cy="37.5" rx="17.5" ry="30" style="stroke:black; fill:none; stroke-width:15"/>
6666
</svg>
6767
</div>
6868
</div>
6969
<div id="score" class="menu">
7070
<div id="scoreSvg1">
71-
<svg width="50" height="75" style="float: left">
71+
<svg viewbox="0 0 50 75">
7272
<rect width="50" height="20" x="0" y="55" style="fill:rgb(0,0,0);"/>
7373
<circle cx="25" cy="55" r="25"/>
7474
<circle cx="25" cy="15" r="15"/>
7575
</svg>
76-
<svg width="50" height="75" style="display: none">
76+
<svg viewbox="0 0 50 75" style="display: none">
7777
<line x1="0" y1="0" x2="50" y2="75" style="stroke:black; stroke-width:15"></line>
7878
<line x1="50" y1="0" x2="0" y2="75" style="stroke:black; stroke-width:15"></line>
7979
</svg>
@@ -82,12 +82,12 @@ <h2 style="grid-row: 1; grid-column: 1 / 4">Starting Player</h2>
8282
<div>-</div>
8383
<div id="score2">0</div>
8484
<div id="scoreSvg2">
85-
<svg width="50" height="75" style="float: right">
85+
<svg viewbox="0 0 50 75">
8686
<rect width="40" height="5" x="5" y="70" style="fill:rgb(0,0,0);"/>
8787
<rect width="5" height="50" x="22.5" y="20" style="fill:rgb(0,0,0);"/>
8888
<rect width="50" height="40" x="0" y="15" style="fill:rgb(0,0,0);"/>
8989
</svg>
90-
<svg width="50" height="75" style="display: none">
90+
<svg viewbox="0 0 50 75" style="display: none">
9191
<ellipse cx="25" cy="37.5" rx="17.5" ry="30" style="stroke:black; fill:none; stroke-width:15"/>
9292
</svg>
9393
</div>
@@ -100,4 +100,4 @@ <h2 style="grid-row: 1; grid-column: 1 / 4">Starting Player</h2>
100100
<div id="thing">Please rotate your device or resize your window!</div>
101101
<script src="main.js"></script>
102102
</body>
103-
</html>
103+
</html>

0 commit comments

Comments
 (0)