MAPG-28 adapt cssFiles and jsFiles to the new handler

This commit is contained in:
bence committed 2020-06-12 20:00:45 +02:00
1 parent 08d4aec48e
commit b3caf1fb38
4 files changed
+33 -10

No files matched your search

+9 -3
View File
@@ -1,4 +1,12 @@
<?php $cssFiles = ['/static/css/game.css']; ?>
<?php
$cssFiles = [
'css/game.css'
];
$jsFiles = [
'https://maps.googleapis.com/maps/api/js?key=' . $_ENV['GOOGLE_MAPS_JS_API_KEY'],
'js/game.js',
];
?>
<?php require ROOT . '/views/templates/main_header.php'; ?>
<div class="header small">
<div class="grid">
@@ -53,6 +61,4 @@
var mapId = <?= $mapId ?>;
var mapBounds = <?= json_encode($bounds) ?>;
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=<?= $_ENV['GOOGLE_MAPS_JS_API_KEY'] ?>"></script>
<script src="/static/js/game.js"></script>
<?php require ROOT . '/views/templates/main_footer.php'; ?>