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();
|
||||||
|
});
|
||||||
|
}
|
19
footer.php
19
footer.php
|
@ -5,17 +5,22 @@
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$themeJSDir = 'themes/'. $_SESSION['gameId'] . '/js';
|
if (isset($_SESSION['gameId']) and isset($bodyIds) and strpos($bodyIds, 'startpage') === false) {
|
||||||
$files = scandir($themeJSDir);
|
|
||||||
$files = array_slice($files, 2);
|
|
||||||
|
|
||||||
foreach ($files as $f) {
|
$themeJSDir = 'themes/'. $_SESSION['gameId'] . '/js';
|
||||||
|
$files = scandir($themeJSDir);
|
||||||
|
$files = array_slice($files, 2);
|
||||||
|
|
||||||
echo '
|
foreach ($files as $f) {
|
||||||
<script type="text/javascript" src="'. $themeJSDir . '/' . $f .'"></script>
|
|
||||||
';
|
echo '
|
||||||
|
<script type="text/javascript" src="'. $themeJSDir . '/' . $f .'"></script>
|
||||||
|
';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="assets/js/places.js"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
15
header.php
15
header.php
|
@ -8,14 +8,17 @@ $webpageTitle = isset($webpageTitle) ? $webpageTitle : DEFAULT_WEBPAGE_TITLE;
|
||||||
<title><?php echo $webpageTitle; ?></title>
|
<title><?php echo $webpageTitle; ?></title>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$themeCSSDir = 'themes/'. $_SESSION['gameId'] . '/css';
|
if (isset($_SESSION['gameId']) and isset($bodyIds) and strpos($bodyIds, 'startpage') === false) {
|
||||||
$files = scandir($themeCSSDir);
|
|
||||||
$files = array_slice($files, 2);
|
|
||||||
|
|
||||||
foreach ($files as $f) {
|
$themeCSSDir = 'themes/'. $_SESSION['gameId'] . '/css';
|
||||||
|
$files = scandir($themeCSSDir);
|
||||||
|
$files = array_slice($files, 2);
|
||||||
|
|
||||||
echo '
|
foreach ($files as $f) {
|
||||||
<link rel="stylesheet" type="text/css" href="'. $themeCSSDir . '/' . $f .'" title="'. $games[$_SESSION['gameId']]['title'] .'" />';
|
|
||||||
|
echo '
|
||||||
|
<link rel="stylesheet" type="text/css" href="'. $themeCSSDir . '/' . $f .'" title="'. $games[$_SESSION['gameId']]['title'] .'" />';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
2
map.php
2
map.php
|
@ -110,7 +110,7 @@ echo '
|
||||||
>';
|
>';
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<a href="?place='. $place->_id .'">';
|
<a href="#?place='. $place->_id .'">';
|
||||||
|
|
||||||
if (isset($place->_source->avatar->_content) and !empty($place->_source->avatar->_content)) {
|
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