From b4528646ed11a33f6bea87334f2b5f774a046d6e Mon Sep 17 00:00:00 2001
From: Keplyx
Date: Fri, 25 May 2018 21:33:08 +0200
Subject: [PATCH] Map now fully works
---
assets/css/style.css | 4 +-
assets/images/map.svg | 299 +++++++++++++------------
assets/scripts/map.js | 33 ++-
includes/map_descriptions/amicale.html | 1 +
includes/map_descriptions/clubs.html | 1 +
includes/map_descriptions/exam.html | 1 +
includes/map_descriptions/gc.html | 1 +
includes/map_descriptions/gei.html | 1 +
includes/map_descriptions/gm.html | 1 +
includes/map_descriptions/gmm.html | 1 +
includes/map_descriptions/gp.html | 1 +
includes/map_descriptions/gpe.html | 1 +
includes/map_descriptions/gymnase.html | 1 +
includes/map_descriptions/laverie.html | 1 +
includes/map_descriptions/loge.html | 1 +
includes/map_descriptions/pk.html | 1 +
includes/map_descriptions/r1.html | 1 +
includes/map_descriptions/r2.html | 1 +
includes/map_descriptions/r3.html | 1 +
includes/map_descriptions/r4.html | 1 +
includes/map_descriptions/r5-6.html | 1 +
includes/map_descriptions/ru.html | 1 +
includes/map_descriptions/stpi.html | 1 +
includes/map_descriptions/tp.html | 1 +
map.php | 5 +-
25 files changed, 203 insertions(+), 159 deletions(-)
create mode 100644 includes/map_descriptions/amicale.html
create mode 100644 includes/map_descriptions/clubs.html
create mode 100644 includes/map_descriptions/exam.html
create mode 100644 includes/map_descriptions/gc.html
create mode 100644 includes/map_descriptions/gei.html
create mode 100644 includes/map_descriptions/gm.html
create mode 100644 includes/map_descriptions/gmm.html
create mode 100644 includes/map_descriptions/gp.html
create mode 100644 includes/map_descriptions/gpe.html
create mode 100644 includes/map_descriptions/gymnase.html
create mode 100644 includes/map_descriptions/laverie.html
create mode 100644 includes/map_descriptions/loge.html
create mode 100644 includes/map_descriptions/pk.html
create mode 100644 includes/map_descriptions/r1.html
create mode 100644 includes/map_descriptions/r2.html
create mode 100644 includes/map_descriptions/r3.html
create mode 100644 includes/map_descriptions/r4.html
create mode 100644 includes/map_descriptions/r5-6.html
create mode 100644 includes/map_descriptions/ru.html
create mode 100644 includes/map_descriptions/stpi.html
create mode 100644 includes/map_descriptions/tp.html
diff --git a/assets/css/style.css b/assets/css/style.css
index aac2f3d..18fa83e 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -442,8 +442,8 @@ Full-Width Styles
list-style: square;
}
-#map {
- height: 600px;
+#map svg path{
+ transition: 0.3s;
}
/*******************************************************************************
diff --git a/assets/images/map.svg b/assets/images/map.svg
index 6bdc920..e506e16 100644
--- a/assets/images/map.svg
+++ b/assets/images/map.svg
@@ -40,9 +40,9 @@
inkscape:window-height="835"
id="namedview10784"
showgrid="false"
- inkscape:zoom="0.64000001"
- inkscape:cx="136.54676"
- inkscape:cy="512.75217"
+ inkscape:zoom="1.28"
+ inkscape:cx="389.68427"
+ inkscape:cy="162.65721"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
@@ -5544,7 +5544,7 @@
id="path1692"
inkscape:connector-curvature="0" />
@@ -5553,26 +5553,11 @@
d="m 475.14627,768.59953 32.04878,48.84469 2.97036,-1.97367 -32.71571,-48.52723 z m 0,0"
id="path1740"
inkscape:connector-curvature="0" />
-
-
-
+ id="map-gm"
+ inkscape:connector-curvature="0"
+ inkscape:label="#path1802"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
+ id="map-stpi"
+ inkscape:connector-curvature="0"
+ inkscape:label="#path1808"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
+ id="map-r5-6"
+ inkscape:connector-curvature="0"
+ inkscape:label="#path1816"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
+ id="map-ru"
+ inkscape:connector-curvature="0"
+ inkscape:label="#path1820"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
+ id="map-gymnase"
+ inkscape:connector-curvature="0"
+ inkscape:label="#path1822"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
+ id="map-gmm"
+ inkscape:connector-curvature="0"
+ inkscape:label="#path1832"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
-
+ id="map-gpe"
+ inkscape:connector-curvature="0"
+ inkscape:label="#path1840"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
+ id="map-gei"
+ inkscape:connector-curvature="0"
+ inkscape:label="#path1842"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
+ id="map-gp"
+ inkscape:connector-curvature="0"
+ inkscape:label="#path1844"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
+ inkscape:label="#path1852"
+ onmouseout="hover_out(this)"
+ onmouseover="hover_in(this)"
+ onclick="clicked(this)" />
+ inkscape:label="#path1854"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
+ id="map-gc"
+ inkscape:connector-curvature="0"
+ inkscape:label="#path1858"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
+ inkscape:label="#path1864"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
+ inkscape:label="#path1874"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
+ id="map-pk"
+ inkscape:connector-curvature="0"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)"
+ inkscape:label="#path1878" />
-
+ id="map-tp"
+ inkscape:connector-curvature="0"
+ inkscape:label="#path1910"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
-
+ d="m 395.75854,831.66457 -3.02202,2.2173 1.73283,1.45337 2.79816,-2.04994 39.24639,55.45892 13.08503,-9.68858 -25.54426,-35.38371 9.08937,-6.70423 -19.80207,-28.27125 -7.87469,5.35905 -4.9972,-7.39039 -14.70199,10.58906 z"
+ id="map-exam"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="ccccccccccccc"
+ inkscape:label="#path1928"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
+ id="map-amicale"
+ inkscape:connector-curvature="0"
+ inkscape:label="#path1938"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
+ id="map-clubs"
+ inkscape:connector-curvature="0"
+ inkscape:label="#path1940"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
+ id="map-loge"
+ inkscape:connector-curvature="0"
+ inkscape:label="#path1944"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
+ id="map-laverie"
+ inkscape:connector-curvature="0"
+ inkscape:label="#path1946"
+ onclick="clicked(this)"
+ onmouseover="hover_in(this)"
+ onmouseout="hover_out(this)" />
-
-
-
-
-
-
-
-
-
-
L'Amicale
\ No newline at end of file
diff --git a/includes/map_descriptions/clubs.html b/includes/map_descriptions/clubs.html
new file mode 100644
index 0000000..07ac68f
--- /dev/null
+++ b/includes/map_descriptions/clubs.html
@@ -0,0 +1 @@
+Le bâtiment des clubs
\ No newline at end of file
diff --git a/includes/map_descriptions/exam.html b/includes/map_descriptions/exam.html
new file mode 100644
index 0000000..3b01bd6
--- /dev/null
+++ b/includes/map_descriptions/exam.html
@@ -0,0 +1 @@
+Le bâtiment des exams
\ No newline at end of file
diff --git a/includes/map_descriptions/gc.html b/includes/map_descriptions/gc.html
new file mode 100644
index 0000000..3a612ce
--- /dev/null
+++ b/includes/map_descriptions/gc.html
@@ -0,0 +1 @@
+Le GC
\ No newline at end of file
diff --git a/includes/map_descriptions/gei.html b/includes/map_descriptions/gei.html
new file mode 100644
index 0000000..e89ffc3
--- /dev/null
+++ b/includes/map_descriptions/gei.html
@@ -0,0 +1 @@
+Le GEI
\ No newline at end of file
diff --git a/includes/map_descriptions/gm.html b/includes/map_descriptions/gm.html
new file mode 100644
index 0000000..3424967
--- /dev/null
+++ b/includes/map_descriptions/gm.html
@@ -0,0 +1 @@
+Le GM
\ No newline at end of file
diff --git a/includes/map_descriptions/gmm.html b/includes/map_descriptions/gmm.html
new file mode 100644
index 0000000..1577a53
--- /dev/null
+++ b/includes/map_descriptions/gmm.html
@@ -0,0 +1 @@
+Le GMM
\ No newline at end of file
diff --git a/includes/map_descriptions/gp.html b/includes/map_descriptions/gp.html
new file mode 100644
index 0000000..c7baeb7
--- /dev/null
+++ b/includes/map_descriptions/gp.html
@@ -0,0 +1 @@
+Le GP
\ No newline at end of file
diff --git a/includes/map_descriptions/gpe.html b/includes/map_descriptions/gpe.html
new file mode 100644
index 0000000..65a1886
--- /dev/null
+++ b/includes/map_descriptions/gpe.html
@@ -0,0 +1 @@
+Le GPE
\ No newline at end of file
diff --git a/includes/map_descriptions/gymnase.html b/includes/map_descriptions/gymnase.html
new file mode 100644
index 0000000..e17b0a6
--- /dev/null
+++ b/includes/map_descriptions/gymnase.html
@@ -0,0 +1 @@
+Le Gymnase
\ No newline at end of file
diff --git a/includes/map_descriptions/laverie.html b/includes/map_descriptions/laverie.html
new file mode 100644
index 0000000..943c687
--- /dev/null
+++ b/includes/map_descriptions/laverie.html
@@ -0,0 +1 @@
+La laverie
\ No newline at end of file
diff --git a/includes/map_descriptions/loge.html b/includes/map_descriptions/loge.html
new file mode 100644
index 0000000..280b2a4
--- /dev/null
+++ b/includes/map_descriptions/loge.html
@@ -0,0 +1 @@
+La Loge
\ No newline at end of file
diff --git a/includes/map_descriptions/pk.html b/includes/map_descriptions/pk.html
new file mode 100644
index 0000000..81c3e97
--- /dev/null
+++ b/includes/map_descriptions/pk.html
@@ -0,0 +1 @@
+Le PK
\ No newline at end of file
diff --git a/includes/map_descriptions/r1.html b/includes/map_descriptions/r1.html
new file mode 100644
index 0000000..eeb80aa
--- /dev/null
+++ b/includes/map_descriptions/r1.html
@@ -0,0 +1 @@
+Le R1
\ No newline at end of file
diff --git a/includes/map_descriptions/r2.html b/includes/map_descriptions/r2.html
new file mode 100644
index 0000000..8635892
--- /dev/null
+++ b/includes/map_descriptions/r2.html
@@ -0,0 +1 @@
+Le R2
\ No newline at end of file
diff --git a/includes/map_descriptions/r3.html b/includes/map_descriptions/r3.html
new file mode 100644
index 0000000..1f4d9ae
--- /dev/null
+++ b/includes/map_descriptions/r3.html
@@ -0,0 +1 @@
+Le R3
\ No newline at end of file
diff --git a/includes/map_descriptions/r4.html b/includes/map_descriptions/r4.html
new file mode 100644
index 0000000..1636f8b
--- /dev/null
+++ b/includes/map_descriptions/r4.html
@@ -0,0 +1 @@
+Le R4
\ No newline at end of file
diff --git a/includes/map_descriptions/r5-6.html b/includes/map_descriptions/r5-6.html
new file mode 100644
index 0000000..31a116f
--- /dev/null
+++ b/includes/map_descriptions/r5-6.html
@@ -0,0 +1 @@
+Les R5 et R6
\ No newline at end of file
diff --git a/includes/map_descriptions/ru.html b/includes/map_descriptions/ru.html
new file mode 100644
index 0000000..606c56c
--- /dev/null
+++ b/includes/map_descriptions/ru.html
@@ -0,0 +1 @@
+Le RU et la Bib
\ No newline at end of file
diff --git a/includes/map_descriptions/stpi.html b/includes/map_descriptions/stpi.html
new file mode 100644
index 0000000..418cbad
--- /dev/null
+++ b/includes/map_descriptions/stpi.html
@@ -0,0 +1 @@
+Le STPI
\ No newline at end of file
diff --git a/includes/map_descriptions/tp.html b/includes/map_descriptions/tp.html
new file mode 100644
index 0000000..344d06d
--- /dev/null
+++ b/includes/map_descriptions/tp.html
@@ -0,0 +1 @@
+Le bâtiment des TPs
\ No newline at end of file
diff --git a/map.php b/map.php
index ed8e5e4..9916e28 100644
--- a/map.php
+++ b/map.php
@@ -7,7 +7,10 @@ ob_start(); // Start reading html
Open Street Map
-
+
+
+
+
Informations