This commit is contained in:
Adrien MALINGREY 2020-10-01 20:06:59 +02:00
parent a7a3c630e9
commit 70cfd94bc3
19 changed files with 13 additions and 14 deletions

View File

Before

Width:  |  Height:  |  Size: 368 KiB

After

Width:  |  Height:  |  Size: 368 KiB

View File

@ -4,8 +4,8 @@
<meta charset="utf-8" />
<title>Webtris</title>
<link rel="icon" type="image/png" href="favicon.png">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="js/webtris.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="webtris.js"></script>
</head>
<body>
<header>
@ -79,8 +79,8 @@
<div></div>
<select id="themeSelect" onchange="themeChanged()">
<?php
foreach(scandir("css/themes") as $theme) {
if (!in_array($theme,array(".","..")))
foreach(scandir("themes") as $theme) {
if (pathinfo ($theme, PATHINFO_EXTENSION) == "css")
echo " <option>" . pathinfo($theme, PATHINFO_FILENAME) . "</option>\n";
}
?>

View File

@ -11,41 +11,40 @@
}
.mino {
border: 1px inset transparent;
border: 1px inset rgba(128, 128, 128, 0.3);
border-radius: 0;
}
.I-mino {
background-image: url(../images/blue_block.png);
background-image: url(images/blue_block.png);
}
.J-mino {
background-image: url(../images/peach_block.png);
background-image: url(images/navy_block.png);
}
.L-mino {
background-image: url(../images/yellow_block.png);
background-image: url(images/peach_block.png);
}
.O-mino {
background-image: url(../images/peach_block.png);
background-image: url(images/yellow_block.png);
}
.S-mino {
background-image: url(../images/green_block.png);
background-image: url(images/green_block.png);
}
.T-mino {
background-image: url(../images/purple_block.png);
background-image: url(images/purple_block.png);
}
.Z-mino {
background-image: url(../images/pink_block.png);
background-image: url(images/pink_block.png);
}
.locked-mino {
background: white;
background: rgba(255, 255, 255, 0.8);
border-radius: 1px;
}

View File

Before

Width:  |  Height:  |  Size: 385 B

After

Width:  |  Height:  |  Size: 385 B

View File

Before

Width:  |  Height:  |  Size: 404 B

After

Width:  |  Height:  |  Size: 404 B

View File

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 377 B

View File

Before

Width:  |  Height:  |  Size: 335 B

After

Width:  |  Height:  |  Size: 335 B

View File

Before

Width:  |  Height:  |  Size: 374 B

After

Width:  |  Height:  |  Size: 374 B

View File

Before

Width:  |  Height:  |  Size: 387 B

After

Width:  |  Height:  |  Size: 387 B

View File

Before

Width:  |  Height:  |  Size: 371 B

After

Width:  |  Height:  |  Size: 371 B

View File

@ -937,7 +937,7 @@ function loadTheme() {
link.id = "theme";
link.rel = 'stylesheet'
link.type = 'text/css'
link.href = 'css/themes/' + theme+ '.css'
link.href = 'themes/' + theme+ '.css'
link.media = 'all'
document.getElementsByTagName('head')[0].appendChild(link);
}