summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2025-04-21 20:36:10 +0200
committerpolo <ordipolo@gmx.fr>2025-04-21 20:36:10 +0200
commiteb3e1eb8c8365d3b3d1d39f24314ba420255afc2 (patch)
tree5e3d747b0e4d5e747052e9afed76f3a0f0986379 /public
parentca3949aca0c7c1af476c8eec93b4920d5aff21ec (diff)
downloadcms-eb3e1eb8c8365d3b3d1d39f24314ba420255afc2.zip
page menu et chemin, partie1
Diffstat (limited to 'public')
-rw-r--r--public/assets/arrow-down.svg11
-rw-r--r--public/assets/arrow-left-nb.svg36
-rw-r--r--public/assets/arrow-left.svg37
-rw-r--r--public/assets/arrow-right-nb.svg36
-rw-r--r--public/assets/arrow-right.svg37
-rw-r--r--public/assets/arrow-up.svg15
-rw-r--r--public/assets/book-open.svg9
-rw-r--r--public/assets/calendar.svg13
-rw-r--r--public/assets/delete-bin.svg11
-rw-r--r--public/assets/edit.svg11
-rw-r--r--public/assets/share.svg11
-rw-r--r--public/css/foot.css22
-rw-r--r--public/css/head.css2
-rw-r--r--public/css/menu.css72
-rw-r--r--public/js/main.js105
15 files changed, 375 insertions, 53 deletions
diff --git a/public/assets/arrow-down.svg b/public/assets/arrow-down.svg
index bd7d579..6e5be60 100644
--- a/public/assets/arrow-down.svg
+++ b/public/assets/arrow-down.svg
@@ -5,7 +5,7 @@
5 version="1.1" 5 version="1.1"
6 id="svg1" 6 id="svg1"
7 sodipodi:docname="arrow-down.svg" 7 sodipodi:docname="arrow-down.svg"
8 inkscape:version="1.4 (e7c3feb100, 2024-10-09)" 8 inkscape:version="1.4.1 (93de688d07, 2025-03-30)"
9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" 9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11 xmlns="http://www.w3.org/2000/svg" 11 xmlns="http://www.w3.org/2000/svg"
@@ -22,18 +22,15 @@
22 inkscape:pagecheckerboard="0" 22 inkscape:pagecheckerboard="0"
23 inkscape:deskcolor="#d1d1d1" 23 inkscape:deskcolor="#d1d1d1"
24 inkscape:zoom="14.75" 24 inkscape:zoom="14.75"
25 inkscape:cx="12" 25 inkscape:cx="12.033898"
26 inkscape:cy="12.033898" 26 inkscape:cy="12.033898"
27 inkscape:window-width="1261" 27 inkscape:window-width="956"
28 inkscape:window-height="1032" 28 inkscape:window-height="1032"
29 inkscape:window-x="655" 29 inkscape:window-x="960"
30 inkscape:window-y="0" 30 inkscape:window-y="0"
31 inkscape:window-maximized="1" 31 inkscape:window-maximized="1"
32 inkscape:current-layer="svg1" /> 32 inkscape:current-layer="svg1" />
33 <path 33 <path
34 d="M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z"
35 id="path1" />
36 <path
37 style="fill:#dd3333;stroke:#dd3333;stroke-width:0.256239" 34 style="fill:#dd3333;stroke:#dd3333;stroke-width:0.256239"
38 d="M 8.1361932,16.102295 4.2726833,12.238339 4.9491052,11.559369 5.6255269,10.8804 8.2707084,13.524946 c 1.4548498,1.4545 2.6679196,2.644546 2.6957116,2.644546 0.02779,0 0.05053,-2.730509 0.05053,-6.067797 V 4.0338983 H 12 12.983051 v 6.0677967 c 0,3.337288 0.02274,6.067797 0.05053,6.067797 0.02779,0 1.240862,-1.190046 2.695712,-2.644546 l 2.645181,-2.644546 0.676496,0.679044 0.676496,0.679044 -3.863881,3.863881 -3.863881,3.863882 z" 35 d="M 8.1361932,16.102295 4.2726833,12.238339 4.9491052,11.559369 5.6255269,10.8804 8.2707084,13.524946 c 1.4548498,1.4545 2.6679196,2.644546 2.6957116,2.644546 0.02779,0 0.05053,-2.730509 0.05053,-6.067797 V 4.0338983 H 12 12.983051 v 6.0677967 c 0,3.337288 0.02274,6.067797 0.05053,6.067797 0.02779,0 1.240862,-1.190046 2.695712,-2.644546 l 2.645181,-2.644546 0.676496,0.679044 0.676496,0.679044 -3.863881,3.863881 -3.863881,3.863882 z"
39 id="path2" /> 36 id="path2" />
diff --git a/public/assets/arrow-left-nb.svg b/public/assets/arrow-left-nb.svg
new file mode 100644
index 0000000..3f6a76f
--- /dev/null
+++ b/public/assets/arrow-left-nb.svg
@@ -0,0 +1,36 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<svg
3 viewBox="0 0 24 24"
4 fill="currentColor"
5 version="1.1"
6 id="svg1"
7 sodipodi:docname="arrow-left-nb.svg"
8 inkscape:version="1.4.1 (93de688d07, 2025-03-30)"
9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11 xmlns="http://www.w3.org/2000/svg"
12 xmlns:svg="http://www.w3.org/2000/svg">
13 <defs
14 id="defs1" />
15 <sodipodi:namedview
16 id="namedview1"
17 pagecolor="#ffffff"
18 bordercolor="#000000"
19 borderopacity="0.25"
20 inkscape:showpageshadow="2"
21 inkscape:pageopacity="0.0"
22 inkscape:pagecheckerboard="0"
23 inkscape:deskcolor="#d1d1d1"
24 inkscape:zoom="29.5"
25 inkscape:cx="12.525424"
26 inkscape:cy="11.745763"
27 inkscape:window-width="1916"
28 inkscape:window-height="1032"
29 inkscape:window-x="0"
30 inkscape:window-y="0"
31 inkscape:window-maximized="1"
32 inkscape:current-layer="svg1" />
33 <path
34 d="m 7.82851,12.99999 5.364,5.364 -1.4142,1.4142 -7.7782,-7.7782 7.7782,-7.77818 1.4142,1.41422 -5.364,5.36396 h 12.1716 v 2 z"
35 id="path1" />
36</svg>
diff --git a/public/assets/arrow-left.svg b/public/assets/arrow-left.svg
new file mode 100644
index 0000000..191aaf3
--- /dev/null
+++ b/public/assets/arrow-left.svg
@@ -0,0 +1,37 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<svg
3 viewBox="0 0 24 24"
4 fill="currentColor"
5 version="1.1"
6 id="svg1"
7 sodipodi:docname="arrow-left.svg"
8 inkscape:version="1.4.1 (93de688d07, 2025-03-30)"
9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11 xmlns="http://www.w3.org/2000/svg"
12 xmlns:svg="http://www.w3.org/2000/svg">
13 <defs
14 id="defs1" />
15 <sodipodi:namedview
16 id="namedview1"
17 pagecolor="#ffffff"
18 bordercolor="#000000"
19 borderopacity="0.25"
20 inkscape:showpageshadow="2"
21 inkscape:pageopacity="0.0"
22 inkscape:pagecheckerboard="0"
23 inkscape:deskcolor="#d1d1d1"
24 inkscape:zoom="31.112698"
25 inkscape:cx="15.443855"
26 inkscape:cy="9.9155655"
27 inkscape:window-width="1916"
28 inkscape:window-height="1032"
29 inkscape:window-x="0"
30 inkscape:window-y="0"
31 inkscape:window-maximized="1"
32 inkscape:current-layer="svg1" />
33 <path
34 style="fill:#dd3333;stroke:#dd3333;stroke-width:0.485914"
35 d="M 13.840048,12.935842 H 7.7022235 l 2.6973745,2.699672 2.697375,2.699671 -0.674256,0.674256 L 11.74846,19.683698 7.9248226,15.86006 4.1011848,12.036422 7.956427,8.1795725 l 3.855242,-3.856848 0.642652,0.642652 0.642652,0.642652 -2.697375,2.69967 -2.6973745,2.6996705 h 6.1378245 6.137824 v 0.964237 0.964236 z"
36 id="path2" />
37</svg>
diff --git a/public/assets/arrow-right-nb.svg b/public/assets/arrow-right-nb.svg
new file mode 100644
index 0000000..0b76c4e
--- /dev/null
+++ b/public/assets/arrow-right-nb.svg
@@ -0,0 +1,36 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<svg
3 viewBox="0 0 24 24"
4 fill="currentColor"
5 version="1.1"
6 id="svg1"
7 sodipodi:docname="arrow-right-nb.svg"
8 inkscape:version="1.4.1 (93de688d07, 2025-03-30)"
9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11 xmlns="http://www.w3.org/2000/svg"
12 xmlns:svg="http://www.w3.org/2000/svg">
13 <defs
14 id="defs1" />
15 <sodipodi:namedview
16 id="namedview1"
17 pagecolor="#ffffff"
18 bordercolor="#000000"
19 borderopacity="0.25"
20 inkscape:showpageshadow="2"
21 inkscape:pageopacity="0.0"
22 inkscape:pagecheckerboard="0"
23 inkscape:deskcolor="#d1d1d1"
24 inkscape:zoom="29.5"
25 inkscape:cx="12.525424"
26 inkscape:cy="11.745763"
27 inkscape:window-width="1916"
28 inkscape:window-height="1032"
29 inkscape:window-x="0"
30 inkscape:window-y="0"
31 inkscape:window-maximized="1"
32 inkscape:current-layer="svg1" />
33 <path
34 d="m 16.17171,11.00001 -5.364,-5.364 1.4142,-1.4142 7.7782,7.7782 -7.7782,7.77818 -1.4142,-1.41422 5.364,-5.36396 H 4.00011 v -2 z"
35 id="path1" />
36</svg>
diff --git a/public/assets/arrow-right.svg b/public/assets/arrow-right.svg
new file mode 100644
index 0000000..976bfa4
--- /dev/null
+++ b/public/assets/arrow-right.svg
@@ -0,0 +1,37 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<svg
3 viewBox="0 0 24 24"
4 fill="currentColor"
5 version="1.1"
6 id="svg1"
7 sodipodi:docname="arrow-right.svg"
8 inkscape:version="1.4.1 (93de688d07, 2025-03-30)"
9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11 xmlns="http://www.w3.org/2000/svg"
12 xmlns:svg="http://www.w3.org/2000/svg">
13 <defs
14 id="defs1" />
15 <sodipodi:namedview
16 id="namedview1"
17 pagecolor="#ffffff"
18 bordercolor="#000000"
19 borderopacity="0.25"
20 inkscape:showpageshadow="2"
21 inkscape:pageopacity="0.0"
22 inkscape:pagecheckerboard="0"
23 inkscape:deskcolor="#d1d1d1"
24 inkscape:zoom="31.112698"
25 inkscape:cx="15.443855"
26 inkscape:cy="9.9155655"
27 inkscape:window-width="1916"
28 inkscape:window-height="1032"
29 inkscape:window-x="0"
30 inkscape:window-y="0"
31 inkscape:window-maximized="1"
32 inkscape:current-layer="svg1" />
33 <path
34 style="fill:#dd3333;stroke:#dd3333;stroke-width:0.485914"
35 d="m 10.138408,11.070544 h 6.137825 l -2.697375,-2.6996714 -2.697375,-2.6996709 0.674256,-0.6742566 0.674257,-0.6742565 3.823638,3.8236378 3.823638,3.8236376 -3.855242,3.85685 -3.855243,3.856848 -0.642652,-0.642652 -0.642652,-0.642652 2.697375,-2.69967 2.697375,-2.699671 H 10.138408 4.0005845 V 12.03478 11.070544 Z"
36 id="path2" />
37</svg>
diff --git a/public/assets/arrow-up.svg b/public/assets/arrow-up.svg
index c88794d..bbacb0d 100644
--- a/public/assets/arrow-up.svg
+++ b/public/assets/arrow-up.svg
@@ -5,7 +5,7 @@
5 version="1.1" 5 version="1.1"
6 id="svg1" 6 id="svg1"
7 sodipodi:docname="arrow-up.svg" 7 sodipodi:docname="arrow-up.svg"
8 inkscape:version="1.4 (e7c3feb100, 2024-10-09)" 8 inkscape:version="1.4.1 (93de688d07, 2025-03-30)"
9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" 9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11 xmlns="http://www.w3.org/2000/svg" 11 xmlns="http://www.w3.org/2000/svg"
@@ -21,19 +21,16 @@
21 inkscape:pageopacity="0.0" 21 inkscape:pageopacity="0.0"
22 inkscape:pagecheckerboard="0" 22 inkscape:pagecheckerboard="0"
23 inkscape:deskcolor="#d1d1d1" 23 inkscape:deskcolor="#d1d1d1"
24 inkscape:zoom="7.7781746" 24 inkscape:zoom="31.112698"
25 inkscape:cx="19.734707" 25 inkscape:cx="15.443855"
26 inkscape:cy="19.220448" 26 inkscape:cy="9.9155655"
27 inkscape:window-width="956" 27 inkscape:window-width="1916"
28 inkscape:window-height="1032" 28 inkscape:window-height="1032"
29 inkscape:window-x="960" 29 inkscape:window-x="0"
30 inkscape:window-y="0" 30 inkscape:window-y="0"
31 inkscape:window-maximized="1" 31 inkscape:window-maximized="1"
32 inkscape:current-layer="svg1" /> 32 inkscape:current-layer="svg1" />
33 <path 33 <path
34 d="M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z"
35 id="path1" />
36 <path
37 style="fill:#dd3333;stroke:#dd3333;stroke-width:0.485914" 34 style="fill:#dd3333;stroke:#dd3333;stroke-width:0.485914"
38 d="M 11.056579,13.854013 V 7.7161883 L 8.3569078,10.413563 5.6572369,13.110938 4.9829803,12.436682 4.3087238,11.762425 8.1323616,7.9387874 11.955999,4.1151496 l 3.85685,3.8552422 3.856848,3.8552422 -0.642652,0.642652 -0.642652,0.642652 -2.69967,-2.697375 -2.699671,-2.6973747 v 6.1378247 6.137824 h -0.964237 -0.964236 z" 35 d="M 11.056579,13.854013 V 7.7161883 L 8.3569078,10.413563 5.6572369,13.110938 4.9829803,12.436682 4.3087238,11.762425 8.1323616,7.9387874 11.955999,4.1151496 l 3.85685,3.8552422 3.856848,3.8552422 -0.642652,0.642652 -0.642652,0.642652 -2.69967,-2.697375 -2.699671,-2.6973747 v 6.1378247 6.137824 h -0.964237 -0.964236 z"
39 id="path2" /> 36 id="path2" />
diff --git a/public/assets/book-open.svg b/public/assets/book-open.svg
index 383bc6d..1d24a52 100644
--- a/public/assets/book-open.svg
+++ b/public/assets/book-open.svg
@@ -5,7 +5,7 @@
5 version="1.1" 5 version="1.1"
6 id="svg1" 6 id="svg1"
7 sodipodi:docname="book-open.svg" 7 sodipodi:docname="book-open.svg"
8 inkscape:version="1.4 (e7c3feb100, 2024-10-09)" 8 inkscape:version="1.4.1 (93de688d07, 2025-03-30)"
9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" 9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11 xmlns="http://www.w3.org/2000/svg" 11 xmlns="http://www.w3.org/2000/svg"
@@ -24,16 +24,13 @@
24 inkscape:zoom="16.333333" 24 inkscape:zoom="16.333333"
25 inkscape:cx="13.714286" 25 inkscape:cx="13.714286"
26 inkscape:cy="10.010204" 26 inkscape:cy="10.010204"
27 inkscape:window-width="1367" 27 inkscape:window-width="1916"
28 inkscape:window-height="1032" 28 inkscape:window-height="1032"
29 inkscape:window-x="549" 29 inkscape:window-x="0"
30 inkscape:window-y="0" 30 inkscape:window-y="0"
31 inkscape:window-maximized="1" 31 inkscape:window-maximized="1"
32 inkscape:current-layer="svg1" /> 32 inkscape:current-layer="svg1" />
33 <path 33 <path
34 d="M13 21V23H11V21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H9C10.1947 3 11.2671 3.52375 12 4.35418C12.7329 3.52375 13.8053 3 15 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H13ZM20 19V5H15C13.8954 5 13 5.89543 13 7V19H20ZM11 19V7C11 5.89543 10.1046 5 9 5H4V19H11Z"
35 id="path1" />
36 <path
37 style="fill:#dd3333;stroke:#dd3333;stroke-width:0.462799" 34 style="fill:#dd3333;stroke:#dd3333;stroke-width:0.462799"
38 d="m 11.020408,21.985643 v -0.97354 L 6.8668354,20.975439 2.7132626,20.938776 2.3974476,20.641921 2.0816327,20.345066 V 12 3.6549341 l 0.3162118,-0.2968548 0.3162119,-0.2968548 3.5103187,0.00234 c 3.2760872,0.00218 3.5522704,0.01942 4.1390279,0.2583701 0.34579,0.1408189 0.852538,0.4359086 1.126107,0.655755 l 0.497399,0.3997205 0.605683,-0.4446121 c 1.1434,-0.8393329 1.270609,-0.8605967 5.183033,-0.8663802 l 3.510319,-0.00519 0.316211,0.2968548 0.316212,0.2968548 V 12 20.345066 l -0.315815,0.296855 -0.315814,0.296855 -4.153574,0.03666 -4.153572,0.03666 v 0.97354 0.973541 H 12 11.020408 Z m 0,-9.294065 V 6.3423387 L 10.744898,5.9375303 C 10.12681,5.0293713 10.107047,5.0245329 6.8484856,4.9836104 L 3.9183674,4.9468125 v 7.0470025 7.047001 h 3.5510204 3.5510202 z m 9.061225,-0.697763 V 4.9468125 l -2.930119,0.036798 c -3.258561,0.040922 -3.278324,0.045761 -3.896412,0.9539199 l -0.27551,0.4048084 v 6.3492392 6.349238 h 3.55102 3.551021 z" 35 d="m 11.020408,21.985643 v -0.97354 L 6.8668354,20.975439 2.7132626,20.938776 2.3974476,20.641921 2.0816327,20.345066 V 12 3.6549341 l 0.3162118,-0.2968548 0.3162119,-0.2968548 3.5103187,0.00234 c 3.2760872,0.00218 3.5522704,0.01942 4.1390279,0.2583701 0.34579,0.1408189 0.852538,0.4359086 1.126107,0.655755 l 0.497399,0.3997205 0.605683,-0.4446121 c 1.1434,-0.8393329 1.270609,-0.8605967 5.183033,-0.8663802 l 3.510319,-0.00519 0.316211,0.2968548 0.316212,0.2968548 V 12 20.345066 l -0.315815,0.296855 -0.315814,0.296855 -4.153574,0.03666 -4.153572,0.03666 v 0.97354 0.973541 H 12 11.020408 Z m 0,-9.294065 V 6.3423387 L 10.744898,5.9375303 C 10.12681,5.0293713 10.107047,5.0245329 6.8484856,4.9836104 L 3.9183674,4.9468125 v 7.0470025 7.047001 h 3.5510204 3.5510202 z m 9.061225,-0.697763 V 4.9468125 l -2.930119,0.036798 c -3.258561,0.040922 -3.278324,0.045761 -3.896412,0.9539199 l -0.27551,0.4048084 v 6.3492392 6.349238 h 3.55102 3.551021 z"
39 id="path2" /> 36 id="path2" />
diff --git a/public/assets/calendar.svg b/public/assets/calendar.svg
index d8a0862..2a1100d 100644
--- a/public/assets/calendar.svg
+++ b/public/assets/calendar.svg
@@ -5,7 +5,7 @@
5 version="1.1" 5 version="1.1"
6 id="svg1" 6 id="svg1"
7 sodipodi:docname="calendar.svg" 7 sodipodi:docname="calendar.svg"
8 inkscape:version="1.4 (e7c3feb100, 2024-10-09)" 8 inkscape:version="1.4.1 (93de688d07, 2025-03-30)"
9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" 9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11 xmlns="http://www.w3.org/2000/svg" 11 xmlns="http://www.w3.org/2000/svg"
@@ -22,18 +22,15 @@
22 inkscape:pagecheckerboard="0" 22 inkscape:pagecheckerboard="0"
23 inkscape:deskcolor="#d1d1d1" 23 inkscape:deskcolor="#d1d1d1"
24 inkscape:zoom="16.333333" 24 inkscape:zoom="16.333333"
25 inkscape:cx="10.867347" 25 inkscape:cx="10.836735"
26 inkscape:cy="7.0714286" 26 inkscape:cy="7.0714287"
27 inkscape:window-width="1378" 27 inkscape:window-width="1916"
28 inkscape:window-height="1032" 28 inkscape:window-height="1032"
29 inkscape:window-x="538" 29 inkscape:window-x="0"
30 inkscape:window-y="0" 30 inkscape:window-y="0"
31 inkscape:window-maximized="1" 31 inkscape:window-maximized="1"
32 inkscape:current-layer="svg1" /> 32 inkscape:current-layer="svg1" />
33 <path 33 <path
34 d="M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z"
35 id="path1" />
36 <path
37 style="fill:#dd3333;stroke-width:0.2314;fill-opacity:1" 34 style="fill:#dd3333;stroke-width:0.2314;fill-opacity:1"
38 d="M 2.6632967,20.900914 C 2.5791303,20.867183 2.4456452,20.779249 2.3666632,20.705506 2.0328996,20.393883 2.0510204,20.894721 2.0510204,11.981482 V 3.7221898 L 2.1887755,3.5197856 C 2.2645408,3.4084632 2.4042737,3.2597461 2.4992931,3.1893029 2.6658093,3.0658553 2.7504798,3.0605903 4.8411299,3.0436855 L 7.0102041,3.0261465 V 2.0181753 1.0102041 h 0.9795918 0.9795919 v 1.0102041 1.010204 H 12 15.030612 V 2.0204082 1.0102041 h 0.979592 0.979592 v 1.0079712 1.0079712 l 2.169074,0.017539 c 2.09065,0.016905 2.175321,0.02217 2.341837,0.1456174 0.09502,0.070443 0.234752,0.2191603 0.310518,0.3304827 L 21.94898,3.7221898 V 12 20.27781 l -0.137755,0.202405 c -0.07577,0.111322 -0.215538,0.260039 -0.310605,0.330482 l -0.17285,0.128079 -9.255722,0.01173 c -6.0661846,0.0077 -9.3084558,-0.0094 -9.4087513,-0.0496 z M 20.05102,15 V 10.989796 H 12 3.9489796 V 15 19.010204 H 12 20.05102 Z m 0,-7.9897959 V 4.9897959 H 18.520408 16.989796 V 5.9693878 6.9489796 H 16.010204 15.030612 V 5.9693878 4.9897959 H 12 8.9693878 V 5.9693878 6.9489796 H 7.9897959 7.0102041 V 5.9693878 4.9897959 H 5.4795918 3.9489796 V 7.0102041 9.0306123 H 12 20.05102 Z" 35 d="M 2.6632967,20.900914 C 2.5791303,20.867183 2.4456452,20.779249 2.3666632,20.705506 2.0328996,20.393883 2.0510204,20.894721 2.0510204,11.981482 V 3.7221898 L 2.1887755,3.5197856 C 2.2645408,3.4084632 2.4042737,3.2597461 2.4992931,3.1893029 2.6658093,3.0658553 2.7504798,3.0605903 4.8411299,3.0436855 L 7.0102041,3.0261465 V 2.0181753 1.0102041 h 0.9795918 0.9795919 v 1.0102041 1.010204 H 12 15.030612 V 2.0204082 1.0102041 h 0.979592 0.979592 v 1.0079712 1.0079712 l 2.169074,0.017539 c 2.09065,0.016905 2.175321,0.02217 2.341837,0.1456174 0.09502,0.070443 0.234752,0.2191603 0.310518,0.3304827 L 21.94898,3.7221898 V 12 20.27781 l -0.137755,0.202405 c -0.07577,0.111322 -0.215538,0.260039 -0.310605,0.330482 l -0.17285,0.128079 -9.255722,0.01173 c -6.0661846,0.0077 -9.3084558,-0.0094 -9.4087513,-0.0496 z M 20.05102,15 V 10.989796 H 12 3.9489796 V 15 19.010204 H 12 20.05102 Z m 0,-7.9897959 V 4.9897959 H 18.520408 16.989796 V 5.9693878 6.9489796 H 16.010204 15.030612 V 5.9693878 4.9897959 H 12 8.9693878 V 5.9693878 6.9489796 H 7.9897959 7.0102041 V 5.9693878 4.9897959 H 5.4795918 3.9489796 V 7.0102041 9.0306123 H 12 20.05102 Z"
39 id="path2" /> 36 id="path2" />
diff --git a/public/assets/delete-bin.svg b/public/assets/delete-bin.svg
index d534c53..69f9f03 100644
--- a/public/assets/delete-bin.svg
+++ b/public/assets/delete-bin.svg
@@ -5,7 +5,7 @@
5 version="1.1" 5 version="1.1"
6 id="svg1" 6 id="svg1"
7 sodipodi:docname="delete-bin.svg" 7 sodipodi:docname="delete-bin.svg"
8 inkscape:version="1.4 (e7c3feb100, 2024-10-09)" 8 inkscape:version="1.4.1 (93de688d07, 2025-03-30)"
9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" 9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11 xmlns="http://www.w3.org/2000/svg" 11 xmlns="http://www.w3.org/2000/svg"
@@ -22,18 +22,15 @@
22 inkscape:pagecheckerboard="0" 22 inkscape:pagecheckerboard="0"
23 inkscape:deskcolor="#d1d1d1" 23 inkscape:deskcolor="#d1d1d1"
24 inkscape:zoom="5.7747054" 24 inkscape:zoom="5.7747054"
25 inkscape:cx="8.0523589" 25 inkscape:cx="8.0523588"
26 inkscape:cy="13.940105" 26 inkscape:cy="13.940105"
27 inkscape:window-width="956" 27 inkscape:window-width="636"
28 inkscape:window-height="1032" 28 inkscape:window-height="1032"
29 inkscape:window-x="960" 29 inkscape:window-x="640"
30 inkscape:window-y="0" 30 inkscape:window-y="0"
31 inkscape:window-maximized="1" 31 inkscape:window-maximized="1"
32 inkscape:current-layer="svg1" /> 32 inkscape:current-layer="svg1" />
33 <path 33 <path
34 d="M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z"
35 id="path1" />
36 <path
37 style="fill:#dd3333;stroke:#dd3333;stroke-width:0.654497" 34 style="fill:#dd3333;stroke:#dd3333;stroke-width:0.654497"
38 d="M 4.428179,21.633757 C 4.1901151,21.395692 4.1560562,20.517904 4.1560562,14.620412 V 7.8791899 H 3.1170421 2.0780281 V 7.0133448 6.1474998 H 4.5889787 7.0999293 V 4.4910099 c 0,-0.9110696 0.080668,-1.8072192 0.1792618,-1.9914437 0.1701493,-0.317927 0.4073212,-0.3349536 4.6657439,-0.3349536 5.369132,0 5.025628,-0.1624223 5.025628,2.3763127 v 1.6065745 h 2.51095 2.510951 v 0.865845 0.8658451 H 20.95345 19.914436 v 6.7267521 c 0,6.296846 -0.02024,6.745069 -0.316681,7.013345 -0.28412,0.257124 -1.066299,0.286592 -7.607067,0.286592 -6.396732,0 -7.3237431,-0.03336 -7.562509,-0.272122 z M 18.009577,13.940105 V 7.8791899 H 11.948662 5.8877463 v 6.0609151 6.060915 h 6.0609157 6.060915 z M 15.065704,5.0219012 V 3.8963027 H 11.948662 8.8316194 v 1.0101525 c 0,0.555584 0.051951,1.0621033 0.1154461,1.1255985 0.063495,0.063495 1.4661645,0.1154461 3.1170425,0.1154461 h 3.001596 z" 35 d="M 4.428179,21.633757 C 4.1901151,21.395692 4.1560562,20.517904 4.1560562,14.620412 V 7.8791899 H 3.1170421 2.0780281 V 7.0133448 6.1474998 H 4.5889787 7.0999293 V 4.4910099 c 0,-0.9110696 0.080668,-1.8072192 0.1792618,-1.9914437 0.1701493,-0.317927 0.4073212,-0.3349536 4.6657439,-0.3349536 5.369132,0 5.025628,-0.1624223 5.025628,2.3763127 v 1.6065745 h 2.51095 2.510951 v 0.865845 0.8658451 H 20.95345 19.914436 v 6.7267521 c 0,6.296846 -0.02024,6.745069 -0.316681,7.013345 -0.28412,0.257124 -1.066299,0.286592 -7.607067,0.286592 -6.396732,0 -7.3237431,-0.03336 -7.562509,-0.272122 z M 18.009577,13.940105 V 7.8791899 H 11.948662 5.8877463 v 6.0609151 6.060915 h 6.0609157 6.060915 z M 15.065704,5.0219012 V 3.8963027 H 11.948662 8.8316194 v 1.0101525 c 0,0.555584 0.051951,1.0621033 0.1154461,1.1255985 0.063495,0.063495 1.4661645,0.1154461 3.1170425,0.1154461 h 3.001596 z"
39 id="path2" /> 36 id="path2" />
diff --git a/public/assets/edit.svg b/public/assets/edit.svg
index 2c1fd10..17b2dec 100644
--- a/public/assets/edit.svg
+++ b/public/assets/edit.svg
@@ -5,7 +5,7 @@
5 version="1.1" 5 version="1.1"
6 id="svg1" 6 id="svg1"
7 sodipodi:docname="edit.svg" 7 sodipodi:docname="edit.svg"
8 inkscape:version="1.4 (e7c3feb100, 2024-10-09)" 8 inkscape:version="1.4.1 (93de688d07, 2025-03-30)"
9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" 9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11 xmlns="http://www.w3.org/2000/svg" 11 xmlns="http://www.w3.org/2000/svg"
@@ -22,18 +22,15 @@
22 inkscape:pagecheckerboard="0" 22 inkscape:pagecheckerboard="0"
23 inkscape:deskcolor="#d1d1d1" 23 inkscape:deskcolor="#d1d1d1"
24 inkscape:zoom="8.1666667" 24 inkscape:zoom="8.1666667"
25 inkscape:cx="18.979592" 25 inkscape:cx="19.040816"
26 inkscape:cy="21.734694" 26 inkscape:cy="21.734694"
27 inkscape:window-width="1347" 27 inkscape:window-width="636"
28 inkscape:window-height="1032" 28 inkscape:window-height="1032"
29 inkscape:window-x="569" 29 inkscape:window-x="640"
30 inkscape:window-y="0" 30 inkscape:window-y="0"
31 inkscape:window-maximized="1" 31 inkscape:window-maximized="1"
32 inkscape:current-layer="svg1" /> 32 inkscape:current-layer="svg1" />
33 <path 33 <path
34 d="M6.41421 15.89L16.5563 5.74785L15.1421 4.33363L5 14.4758V15.89H6.41421ZM7.24264 17.89H3V13.6473L14.435 2.21231C14.8256 1.82179 15.4587 1.82179 15.8492 2.21231L18.6777 5.04074C19.0682 5.43126 19.0682 6.06443 18.6777 6.45495L7.24264 17.89ZM3 19.89H21V21.89H3V19.89Z"
35 id="path1" />
36 <path
37 style="fill:#dd3333;stroke:#dd3333;stroke-width:0.462799" 34 style="fill:#dd3333;stroke:#dd3333;stroke-width:0.462799"
38 d="M 3.0612245,20.877551 V 19.897959 H 12 20.938776 v 0.979592 0.979592 H 12 3.0612245 Z" 35 d="M 3.0612245,20.877551 V 19.897959 H 12 20.938776 v 0.979592 0.979592 H 12 3.0612245 Z"
39 id="path2" /> 36 id="path2" />
diff --git a/public/assets/share.svg b/public/assets/share.svg
index e053051..eb47002 100644
--- a/public/assets/share.svg
+++ b/public/assets/share.svg
@@ -4,8 +4,8 @@
4 fill="currentColor" 4 fill="currentColor"
5 version="1.1" 5 version="1.1"
6 id="svg1" 6 id="svg1"
7 sodipodi:docname="share-forward.svg" 7 sodipodi:docname="share.svg"
8 inkscape:version="1.4 (e7c3feb100, 2024-10-09)" 8 inkscape:version="1.4.1 (93de688d07, 2025-03-30)"
9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" 9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11 xmlns="http://www.w3.org/2000/svg" 11 xmlns="http://www.w3.org/2000/svg"
@@ -24,16 +24,13 @@
24 inkscape:zoom="5.3333333" 24 inkscape:zoom="5.3333333"
25 inkscape:cx="18.46875" 25 inkscape:cx="18.46875"
26 inkscape:cy="16.03125" 26 inkscape:cy="16.03125"
27 inkscape:window-width="956" 27 inkscape:window-width="636"
28 inkscape:window-height="1032" 28 inkscape:window-height="1032"
29 inkscape:window-x="960" 29 inkscape:window-x="640"
30 inkscape:window-y="0" 30 inkscape:window-y="0"
31 inkscape:window-maximized="1" 31 inkscape:window-maximized="1"
32 inkscape:current-layer="svg1" /> 32 inkscape:current-layer="svg1" />
33 <path 33 <path
34 d="M13 14H11C7.54202 14 4.53953 15.9502 3.03239 18.8107C3.01093 18.5433 3 18.2729 3 18C3 12.4772 7.47715 8 13 8V2.5L23.5 11L13 19.5V14ZM11 12H15V15.3078L20.3214 11L15 6.69224V10H13C10.5795 10 8.41011 11.0749 6.94312 12.7735C8.20873 12.2714 9.58041 12 11 12Z"
35 id="path1" />
36 <path
37 style="fill:#dd3333;stroke:#dd3333;stroke-width:0.708661" 34 style="fill:#dd3333;stroke:#dd3333;stroke-width:0.708661"
38 d="m 13.125,16.62281 v -2.65406 l -1.734375,0.0046 c -3.1289994,0.0083 -4.7715187,0.662267 -6.84375,2.72496 L 3.1875,18.051411 3.1920836,17.275706 C 3.2079642,14.588168 5.033385,11.457683 7.5641723,9.7778419 8.8054939,8.9538996 11.118995,8.15625 12.267434,8.15625 H 13.125 V 5.5156251 c 0,-1.4523438 0.07229,-2.6125001 0.160633,-2.5781251 0.344223,0.1339326 9.936632,7.944961 9.904618,8.065257 -0.0187,0.07027 -2.143376,1.831888 -4.721501,3.914713 -2.578125,2.082826 -4.835156,3.915756 -5.015625,4.073178 C 13.142599,19.261519 13.125,19.134524 13.125,16.62281 Z m 7.253039,-5.611275 c 0.01886,-0.07509 -1.162391,-1.0943592 -2.625,-2.2650333 L 15.09375,6.6180036 15.039575,8.2308767 14.9854,9.84375 13.914575,9.844836 c -1.658785,0.00168 -3.170519,0.311395 -4.4246483,0.906488 -1.150183,0.545771 -2.7354857,1.775452 -2.5436777,1.97307 0.056375,0.05808 0.520437,-0.02888 1.03125,-0.193243 0.6245522,-0.200964 1.9267104,-0.328748 3.975626,-0.390138 L 15,12.049721 v 1.702541 1.70254 l 2.671875,-2.153366 c 1.469531,-1.184352 2.687305,-2.214808 2.706164,-2.289901 z" 35 d="m 13.125,16.62281 v -2.65406 l -1.734375,0.0046 c -3.1289994,0.0083 -4.7715187,0.662267 -6.84375,2.72496 L 3.1875,18.051411 3.1920836,17.275706 C 3.2079642,14.588168 5.033385,11.457683 7.5641723,9.7778419 8.8054939,8.9538996 11.118995,8.15625 12.267434,8.15625 H 13.125 V 5.5156251 c 0,-1.4523438 0.07229,-2.6125001 0.160633,-2.5781251 0.344223,0.1339326 9.936632,7.944961 9.904618,8.065257 -0.0187,0.07027 -2.143376,1.831888 -4.721501,3.914713 -2.578125,2.082826 -4.835156,3.915756 -5.015625,4.073178 C 13.142599,19.261519 13.125,19.134524 13.125,16.62281 Z m 7.253039,-5.611275 c 0.01886,-0.07509 -1.162391,-1.0943592 -2.625,-2.2650333 L 15.09375,6.6180036 15.039575,8.2308767 14.9854,9.84375 13.914575,9.844836 c -1.658785,0.00168 -3.170519,0.311395 -4.4246483,0.906488 -1.150183,0.545771 -2.7354857,1.775452 -2.5436777,1.97307 0.056375,0.05808 0.520437,-0.02888 1.03125,-0.193243 0.6245522,-0.200964 1.9267104,-0.328748 3.975626,-0.390138 L 15,12.049721 v 1.702541 1.70254 l 2.671875,-2.153366 c 1.469531,-1.184352 2.687305,-2.214808 2.706164,-2.289901 z"
39 id="path2" /> 36 id="path2" />
diff --git a/public/css/foot.css b/public/css/foot.css
index 0e454ac..91f67ab 100644
--- a/public/css/foot.css
+++ b/public/css/foot.css
@@ -124,3 +124,25 @@ footer > div
124 background-color: #ffff00; 124 background-color: #ffff00;
125 border-radius: 4px; 125 border-radius: 4px;
126} 126}
127
128.toast {
129 visibility: hidden;
130 /*max-width: 50%;*/
131 margin: auto;
132 background-color: #333;
133 color: #fff;
134 text-align: center;
135 border-radius: 5px;
136 padding: 16px;
137 position: fixed;
138 z-index: 1;
139 left: 50%;
140 bottom: 30px;
141 transform: translateX(-50%);
142 /*opacity: 0;*/
143 transition: opacity 0.5s, visibility 0.5s;
144}
145.toast.show {
146 visibility: visible;
147 opacity: 1;
148} \ No newline at end of file
diff --git a/public/css/head.css b/public/css/head.css
index a718a45..4872275 100644
--- a/public/css/head.css
+++ b/public/css/head.css
@@ -6,7 +6,7 @@ header
6 background-image: url('../assets/fond-piscine.jpg'); 6 background-image: url('../assets/fond-piscine.jpg');
7 background-size: cover; /* largeur du bloc_page */ 7 background-size: cover; /* largeur du bloc_page */
8} 8}
9.empty_nav_zone 9#nav_zone
10{ 10{
11 /*margin: auto;*/ 11 /*margin: auto;*/
12 /*max-width: 1200px;*/ 12 /*max-width: 1200px;*/
diff --git a/public/css/menu.css b/public/css/menu.css
new file mode 100644
index 0000000..cce1d43
--- /dev/null
+++ b/public/css/menu.css
@@ -0,0 +1,72 @@
1/* page "Menu et chemins" uniquement */
2
3.menu
4{
5 padding: 0 20px;
6}
7.menu img
8{
9 width: 20px;
10 vertical-align: middle;
11}
12
13/* explications pour l'utiisateur */
14.menu aside
15{
16 display: flex;
17 flex-wrap: wrap;
18 background-color: white;
19 padding: 10px;
20}
21.menu aside p
22{
23 margin: 5px;
24 font-size: smaller;
25}
26.menu aside input
27{
28 pointer-events: none; /* case non clicable, sauf action au clavier... */
29}
30
31.menu button
32{
33 margin: 5px;
34}
35input
36{
37 vertical-align: middle;
38}
39.menu_entry_checkbox
40{
41 margin-left: 2px;
42}
43.move_entry_icon
44{
45 width: 20px;
46 vertical-align: middle;
47 border: 2px #e3f3ff solid;
48}
49.move_entry_icon:hover
50{
51 background-color: #ffff00;
52 border-radius: 4px;
53 border: lightgrey 2px outset;
54 cursor: pointer;
55}
56
57.menu .new_entry_buttons
58{
59 background-color: white;
60 padding: 10px;
61}
62.menu .new_entry_buttons p
63{
64 margin: 5px;
65}
66
67@media screen and (min-width: 80rem) {
68 i
69 {
70 /*display: none;*/
71 }
72} \ No newline at end of file
diff --git a/public/js/main.js b/public/js/main.js
index cb76ea8..fadcfa9 100644
--- a/public/js/main.js
+++ b/public/js/main.js
@@ -29,10 +29,17 @@ function copyInClipBoard(link){
29 alert('Cette adresse a été copiée dans le presse-papier:\n\n' + link); 29 alert('Cette adresse a été copiée dans le presse-papier:\n\n' + link);
30} 30}
31 31
32function toastNotify(message) {
33 var toast = document.getElementById('toast');
34 toast.textContent = message;
35 toast.className = 'toast show';
36 setTimeout(function(){ toast.className = toast.className.replace('show', ''); }, 3000);
37}
38
32// complète les fonctions dans tinymce.js 39// complète les fonctions dans tinymce.js
33function switchPositions(article_id, direction) 40function switchPositions(article_id, direction)
34{ 41{
35 const current_article = findParent(document.getElementById(article_id), 'article'); 42 const current_article = findParent(document.getElementById(article_id), 'article'); // l'id n'est pas sur la bonne balise
36 var other_article; 43 var other_article;
37 44
38 if(direction == 'down'){ 45 if(direction == 'down'){
@@ -195,4 +202,100 @@ function findParent(element, tag_name){
195 element = element.parentElement; 202 element = element.parentElement;
196 } 203 }
197 return null; 204 return null;
205}
206
207/* page Menu et chemins */
208function moveOneLevelUp(){}
209function moveOneLevelDown(){}
210
211function switchMenuPositions(page_id, direction)
212{
213 const nav_zone = document.getElementById("nav_zone"); // parent de <nav>
214 const clicked_menu_entry = document.getElementById(page_id); // div parente du bouton
215 var other_entry = null;
216
217 // pas bon
218 if(direction == 'down'){
219 other_entry = clicked_menu_entry.nextElementSibling;
220 }
221 else if(direction == 'up'){
222 other_entry = clicked_menu_entry.previousElementSibling;
223 }
224
225 if(other_entry == null){
226 console.log('Inversion impossible');
227 return;
228 }
229
230 fetch('index.php?menu_edit=switch_positions', {
231 method: 'POST',
232 headers: {
233 'Content-Type': 'application/json'
234 },
235 body: JSON.stringify({ id1: clicked_menu_entry.id, id2: other_entry.id })
236 })
237 .then(response => response.json())
238 .then(data => {
239 if(data.success)
240 {
241 if(direction == 'down'){
242 clicked_menu_entry.parentElement.insertBefore(other_entry, clicked_menu_entry);
243 console.log('Inversion réussie');
244 }
245 else if(direction == 'up'){
246 other_entry.parentElement.insertBefore(clicked_menu_entry, other_entry);
247 console.log('Inversion réussie');
248 }
249 else{
250 console.error('Échec de l\'inversion');
251 }
252
253 // remplacement du menu
254 nav_zone.innerHTML = '';
255 nav_zone.insertAdjacentHTML('afterbegin', data.nav);
256 }
257 else {
258
259 console.error('Échec de l\'inversion');
260 }
261 })
262 .catch(error => {
263 console.error('Erreur:', error);
264 });
265}
266
267function checkMenuEntry(page_id){
268 const clicked_menu_entry = document.getElementById(page_id); // div parente du bouton
269 const checkbox = clicked_menu_entry.querySelector("input");
270
271 let color;
272 if(checkbox.checked){
273 color = "#ff1d04";
274 checked = true;
275 }
276 else{
277 color = "grey";
278 checked = false;
279 }
280
281 // contrôle check impossible si le parent le plus ancien est unchecked
282 //
283
284 // sur l'élément concerné
285 clicked_menu_entry.querySelector("button").style.color = color;
286
287 // même chose sur les enfants
288 /*try{
289 const level_markup = clicked_menu_entry.querySelector('.level');
290 //const other_buttons = .querySelectorAll("button");
291 level_markup.querySelectorAll("input").forEach(input => {
292 input.checked = checked;
293 });
294 level_markup.querySelectorAll("button").forEach(button => {
295 button.style.color = color;
296 });
297 }
298 catch(error){
299 console.log("pas d'enfant");
300 }*/
198} \ No newline at end of file 301} \ No newline at end of file