css
This commit is contained in:
parent
dd3f9f41ce
commit
7c62e1a316
@ -42,7 +42,10 @@ button {
|
|||||||
|
|
||||||
.play {
|
.play {
|
||||||
grid-column: 2 / 4;
|
grid-column: 2 / 4;
|
||||||
justify-self: center;
|
text-align: center;
|
||||||
|
text-decoration: none;
|
||||||
|
text-shadow: 2px 1px rgb(153, 145, 175);
|
||||||
|
font-size: 1.5em;
|
||||||
width: 70%;
|
width: 70%;
|
||||||
margin: 40px;
|
margin: 40px;
|
||||||
}
|
}
|
||||||
|
@ -53,12 +53,11 @@ canvas {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin: 5% 2%;
|
margin: 5% 2%;
|
||||||
height: 400px;
|
height: 400px;
|
||||||
|
width: 150px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hold {
|
.hold {
|
||||||
width: 120px;
|
width: 120px;
|
||||||
flex-grow: 0;
|
|
||||||
justify-content: right;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.stats {
|
.stats {
|
||||||
|
@ -8,11 +8,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>WEBTRIS</h1>
|
<h1>WEBTRIS</h1>
|
||||||
<form action="webtris.html" method="post">
|
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<script>loadButtons()</script>
|
<script>loadButtons()</script>
|
||||||
<button type="submit" class="play">PLAY</button>
|
<a href="webtris.html" class="play"><b>JOUER</b></a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -80,6 +80,7 @@ const actionsDefaultKeys = {
|
|||||||
hold: "c",
|
hold: "c",
|
||||||
pause: "Escape",
|
pause: "Escape",
|
||||||
}
|
}
|
||||||
|
var actions = {}
|
||||||
|
|
||||||
|
|
||||||
class Scheduler {
|
class Scheduler {
|
||||||
@ -756,8 +757,6 @@ function getKey(action) {
|
|||||||
return localStorage.getItem(action) || actionsDefaultKeys[action]
|
return localStorage.getItem(action) || actionsDefaultKeys[action]
|
||||||
}
|
}
|
||||||
|
|
||||||
var actions = {}
|
|
||||||
|
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
tempTexts = []
|
tempTexts = []
|
||||||
|
|
||||||
|
@ -30,7 +30,9 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<canvas id="matrix" class="matrix" width="200" height="400">Votre navigateur ne supporte pas HTML5, veuillez le mettre à jour pour jouer.</canvas>
|
<canvas id="matrix" class="matrix" width="200" height="400">Votre navigateur ne supporte pas HTML5, veuillez le mettre à jour pour jouer.</canvas>
|
||||||
|
<div class="flex-rows">
|
||||||
<canvas id="next" class="next" width="120" height="400"></canvas>
|
<canvas id="next" class="next" width="120" height="400"></canvas>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Reference in New Issue
Block a user