reorg
| Before Width: | Height: | Size: 368 KiB After Width: | Height: | Size: 368 KiB | 
| @ -4,8 +4,8 @@ | |||||||
|         <meta charset="utf-8" /> |         <meta charset="utf-8" /> | ||||||
|         <title>Webtris</title> |         <title>Webtris</title> | ||||||
|         <link rel="icon" type="image/png" href="favicon.png"> |         <link rel="icon" type="image/png" href="favicon.png"> | ||||||
|         <link rel="stylesheet" type="text/css" href="css/style.css" /> |         <link rel="stylesheet" type="text/css" href="style.css" /> | ||||||
|         <script type="text/javascript" src="js/webtris.js"></script> |         <script type="text/javascript" src="webtris.js"></script> | ||||||
|     </head> |     </head> | ||||||
|     <body> |     <body> | ||||||
|         <header> |         <header> | ||||||
| @ -79,8 +79,8 @@ | |||||||
|                 <div></div> |                 <div></div> | ||||||
|                 <select id="themeSelect" onchange="themeChanged()"> |                 <select id="themeSelect" onchange="themeChanged()"> | ||||||
| <?php | <?php | ||||||
|     foreach(scandir("css/themes") as $theme) { |     foreach(scandir("themes") as $theme) { | ||||||
|         if (!in_array($theme,array(".",".."))) |         if (pathinfo ($theme, PATHINFO_EXTENSION) == "css") | ||||||
|             echo "                    <option>" . pathinfo($theme, PATHINFO_FILENAME) . "</option>\n"; |             echo "                    <option>" . pathinfo($theme, PATHINFO_FILENAME) . "</option>\n"; | ||||||
|     } |     } | ||||||
| ?> | ?> | ||||||
|  | |||||||
| @ -11,41 +11,40 @@ | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .mino { | .mino { | ||||||
|     border: 1px inset transparent; |     border: 1px inset rgba(128, 128, 128, 0.3); | ||||||
|     border-radius: 0; |     border-radius: 0; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .I-mino { | .I-mino { | ||||||
|     background-image: url(../images/blue_block.png); |     background-image: url(images/blue_block.png); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .J-mino { | .J-mino { | ||||||
|     background-image: url(../images/peach_block.png); |     background-image: url(images/navy_block.png); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .L-mino { | .L-mino { | ||||||
|     background-image: url(../images/yellow_block.png); |     background-image: url(images/peach_block.png); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .O-mino { | .O-mino { | ||||||
|     background-image: url(../images/peach_block.png); |     background-image: url(images/yellow_block.png); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .S-mino { | .S-mino { | ||||||
|     background-image: url(../images/green_block.png); |     background-image: url(images/green_block.png); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .T-mino { | .T-mino { | ||||||
|     background-image: url(../images/purple_block.png); |     background-image: url(images/purple_block.png); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .Z-mino { | .Z-mino { | ||||||
|     background-image: url(../images/pink_block.png); |     background-image: url(images/pink_block.png); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .locked-mino { | .locked-mino { | ||||||
|     background: white; |     background: white; | ||||||
|     background: rgba(255, 255, 255, 0.8); |  | ||||||
|     border-radius: 1px; |     border-radius: 1px; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| Before Width: | Height: | Size: 385 B After Width: | Height: | Size: 385 B | 
| Before Width: | Height: | Size: 404 B After Width: | Height: | Size: 404 B | 
| Before Width: | Height: | Size: 377 B After Width: | Height: | Size: 377 B | 
| Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 335 B | 
| Before Width: | Height: | Size: 374 B After Width: | Height: | Size: 374 B | 
| Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 387 B | 
| Before Width: | Height: | Size: 371 B After Width: | Height: | Size: 371 B | 
| @ -937,7 +937,7 @@ function loadTheme() { | |||||||
|     link.id   = "theme"; |     link.id   = "theme"; | ||||||
|     link.rel  = 'stylesheet' |     link.rel  = 'stylesheet' | ||||||
|     link.type = 'text/css' |     link.type = 'text/css' | ||||||
|     link.href = 'css/themes/' + theme+ '.css' |     link.href = 'themes/' + theme+ '.css' | ||||||
|     link.media = 'all' |     link.media = 'all' | ||||||
|     document.getElementsByTagName('head')[0].appendChild(link); |     document.getElementsByTagName('head')[0].appendChild(link); | ||||||
| } | } | ||||||