2020-09-19 16:08:07 +02:00
|
|
|
<?php
|
|
|
|
ob_start(); // Start reading html
|
2022-03-10 00:34:02 +01:00
|
|
|
require_once 'assets/map/ajax.php';
|
2022-06-10 01:41:26 +02:00
|
|
|
header('Location: construction.php');
|
2020-09-19 16:08:07 +02:00
|
|
|
?>
|
2022-02-17 00:46:05 +01:00
|
|
|
|
2022-04-18 21:26:55 +02:00
|
|
|
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
|
|
|
|
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
|
|
|
|
crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.js"></script>
|
2022-02-17 00:46:05 +01:00
|
|
|
|
2022-04-18 21:26:55 +02:00
|
|
|
<style>
|
|
|
|
.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
</style>
|
2022-02-17 00:46:05 +01:00
|
|
|
|
2022-04-18 21:26:55 +02:00
|
|
|
<script>
|
|
|
|
function enable3DMap() {
|
|
|
|
var map3d = document.querySelector('#maps #map3d');
|
|
|
|
var map = document.querySelector('#maps #map');
|
2022-02-17 00:46:05 +01:00
|
|
|
|
2022-04-18 21:26:55 +02:00
|
|
|
map3d.classList.add("hidden");
|
|
|
|
map.classList.add("hidden");
|
|
|
|
map3d.classList.remove("hidden");
|
|
|
|
}
|
2022-02-17 00:46:05 +01:00
|
|
|
|
2022-04-18 21:26:55 +02:00
|
|
|
function enable2DMap() {
|
|
|
|
var map3d = document.querySelector('#maps #map3d');
|
|
|
|
var map = document.querySelector('#maps #map');
|
|
|
|
map.classList.add("hidden");
|
|
|
|
map3d.classList.add("hidden");
|
|
|
|
map.classList.remove("hidden");
|
|
|
|
}
|
|
|
|
</script>
|
2022-02-17 00:46:05 +01:00
|
|
|
|
|
|
|
|
2022-04-18 21:26:55 +02:00
|
|
|
<main>
|
|
|
|
<div id="boxjaune">
|
|
|
|
<div id="circle_l" class="circle"></div>
|
|
|
|
<div id="circle_r" class="circle"></div>
|
|
|
|
<div id="title_in_box">Carte de l'insa</div>
|
|
|
|
<div id="circle_l" class="circle"></div>
|
|
|
|
<div id="circle_r" class="circle"></div>
|
|
|
|
</div>
|
2022-02-17 00:46:05 +01:00
|
|
|
|
2022-04-18 21:26:55 +02:00
|
|
|
<section id="map_section">
|
|
|
|
<div id="maps_button">
|
|
|
|
<button onclick="enable3DMap()" class="main-button">Map 3D</button>
|
|
|
|
<button onclick="enable2DMap()" class="main-button">Map 2D</button>
|
|
|
|
</div>
|
2022-02-17 00:46:05 +01:00
|
|
|
|
2022-04-18 21:26:55 +02:00
|
|
|
<section id="loading-screen">
|
|
|
|
<div class="loader"></div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<div id="maps" class="">
|
|
|
|
<script src="assets/map/script_map3d.js" type="module"></script>
|
2022-02-17 00:46:05 +01:00
|
|
|
|
2022-04-18 21:26:55 +02:00
|
|
|
<div id="map" class="hidden">
|
|
|
|
<?php echo file_get_contents("assets/map/map2d.svg"); ?>
|
|
|
|
<canvas id="canvasID"></canvas>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-20 01:24:29 +01:00
|
|
|
|
2022-04-18 21:26:55 +02:00
|
|
|
<script type="text/javascript" src="assets/map/script_map2d.js"></script>
|
|
|
|
</section>
|
|
|
|
|
2022-01-20 01:24:29 +01:00
|
|
|
<p>
|
|
|
|
Une petite note sur le numéro des salles : sur ton emploi du temps, le bâtiment est marqué en premier, et
|
2022-04-18 21:26:55 +02:00
|
|
|
ensuite le chiffre des centaines pour l'étage, et après à toi de trouver !
|
2022-01-20 01:24:29 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Par exemple, GM 212, c'est au GM, deuxième étage.
|
|
|
|
<br>
|
2022-04-18 21:26:55 +02:00
|
|
|
Et si t'as Amphi 108, c'est au premier étage du STPI(c'est ton département et c'est là où il y a les amphis).
|
2022-01-20 01:24:29 +01:00
|
|
|
</p>
|
2022-04-18 21:26:55 +02:00
|
|
|
|
|
|
|
<p id="hint">
|
|
|
|
Fond de carte issu du site <a href="https://www.openstreetmap.org/#map=17/43.57103/1.46591">Open Street
|
|
|
|
Map</a>.
|
2022-01-20 01:24:29 +01:00
|
|
|
</p>
|
|
|
|
</main>
|
2022-03-10 00:34:02 +01:00
|
|
|
|
2020-09-19 16:08:07 +02:00
|
|
|
<?php
|
2022-01-20 21:49:52 +01:00
|
|
|
$infopage = ["", "Plan", ob_get_clean(), "", "map"]; //relativepath, pagetitle, pagecontent, pagescript, pagename | cf structure/template.php ligne 2 à 6
|
2022-01-19 22:26:58 +01:00
|
|
|
include("structure/template.php");
|
|
|
|
?>
|