permit arenas having their own css
This commit is contained in:
parent
97efbf5901
commit
ed7138de00
|
@ -69,6 +69,12 @@ if($currentArena == ""){
|
|||
@import url(/style.css);
|
||||
</style>
|
||||
<?php
|
||||
//arena specific css script (if needed)
|
||||
if(isset($currentArenaArr['cssFile'])){
|
||||
echo '<style type="text/css"><!--'."\n";
|
||||
echo file_get_contents("../src/arenas/".$currentArena."/".$currentArenaArr['cssFile']);
|
||||
echo "\n--></style>";
|
||||
}
|
||||
//arena specific script js (if needed)
|
||||
if(isset($currentArenaArr['jsFile'])){
|
||||
echo '<script type="text/javascript"><!--'."\n";
|
||||
|
|
0
src/arenas/tictactoe/style.css
Normal file
0
src/arenas/tictactoe/style.css
Normal file
|
@ -4,7 +4,8 @@ $arenas=array(
|
|||
'id' => "tictactoe",
|
||||
'url' => "/tictactoe",
|
||||
'title' => "Tic Tac Toe",
|
||||
'jsFile'=> "js.js"
|
||||
'jsFile'=> "js.js",
|
||||
'cssFile'=> "style.css"
|
||||
),
|
||||
array(
|
||||
'id' => "Battleship",
|
||||
|
|
Loading…
Reference in New Issue
Block a user