forked from La_Bureautique/zeg1jeux
Oui, la Bureautique peut casser des briques
This commit is contained in:
parent
937c6e3394
commit
34ebb3dd79
|
@ -0,0 +1,19 @@
|
|||
var places = document.querySelectorAll('.place a');
|
||||
|
||||
for (places in place) {
|
||||
|
||||
place.addEventListener('click', function (e) {
|
||||
|
||||
e.stopPropagation();
|
||||
|
||||
console.log(e.target);
|
||||
|
||||
console.log("current Target : ");
|
||||
|
||||
console.log(e.currentTarget);
|
||||
|
||||
console.log(e.target.getAttribute('href'));
|
||||
|
||||
e.target.preventDefault();
|
||||
});
|
||||
}
|
|
@ -5,6 +5,8 @@
|
|||
</footer>
|
||||
|
||||
<?php
|
||||
if (isset($_SESSION['gameId']) and isset($bodyIds) and strpos($bodyIds, 'startpage') === false) {
|
||||
|
||||
$themeJSDir = 'themes/'. $_SESSION['gameId'] . '/js';
|
||||
$files = scandir($themeJSDir);
|
||||
$files = array_slice($files, 2);
|
||||
|
@ -15,7 +17,10 @@
|
|||
<script type="text/javascript" src="'. $themeJSDir . '/' . $f .'"></script>
|
||||
';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<script type="text/javascript" src="assets/js/places.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -8,6 +8,8 @@ $webpageTitle = isset($webpageTitle) ? $webpageTitle : DEFAULT_WEBPAGE_TITLE;
|
|||
<title><?php echo $webpageTitle; ?></title>
|
||||
|
||||
<?php
|
||||
if (isset($_SESSION['gameId']) and isset($bodyIds) and strpos($bodyIds, 'startpage') === false) {
|
||||
|
||||
$themeCSSDir = 'themes/'. $_SESSION['gameId'] . '/css';
|
||||
$files = scandir($themeCSSDir);
|
||||
$files = array_slice($files, 2);
|
||||
|
@ -17,6 +19,7 @@ $webpageTitle = isset($webpageTitle) ? $webpageTitle : DEFAULT_WEBPAGE_TITLE;
|
|||
echo '
|
||||
<link rel="stylesheet" type="text/css" href="'. $themeCSSDir . '/' . $f .'" title="'. $games[$_SESSION['gameId']]['title'] .'" />';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="themes/layout.css" />
|
||||
|
|
2
map.php
2
map.php
|
@ -110,7 +110,7 @@ echo '
|
|||
>';
|
||||
|
||||
echo '
|
||||
<a href="?place='. $place->_id .'">';
|
||||
<a href="#?place='. $place->_id .'">';
|
||||
|
||||
if (isset($place->_source->avatar->_content) and !empty($place->_source->avatar->_content)) {
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
../../spationaute/js/layout.js
|
|
@ -1 +0,0 @@
|
|||
../spationaute/layout.js
|
Loading…
Reference in New Issue