Repository navigation
Expand file tree
/
Copy pathpolicy-map.html
More file actions
755 lines (710 loc) · 29.8 KB
/
Copy pathpolicy-map.html
File metadata and controls
755 lines (710 loc) · 29.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EU4DUAL Organizational Diagram</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
overflow: hidden;
}
.main-container {
position: relative;
width: 90vmin;
height: 90vmin;
max-width: 900px;
max-height: 900px;
}
.outer-circle {
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
background: conic-gradient(
#4facfe 0deg,
#4facfe 40deg,
white 60deg,
white 60deg,
#5a6d9d 80deg,
#5a6d9d 160deg,
white 180deg,
white 180deg,
#43e97b 200deg,
#43e97b 280deg,
white 300deg,
white 300deg,
#4facfe 320deg,
#4facfe 360deg
);
padding: 40px;
z-index: 0;
overflow: hidden;
}
.inner-background {
width: 100%;
height: 100%;
border-radius: 50%;
background: conic-gradient(
#e8f5ff 0deg,
#e8f5ff 40deg,
white 60deg,
#e3eaf5 80deg,
#e3eaf5 160deg,
white 180deg,
#e7fdf0 200deg,
#e7fdf0 280deg,
white 300deg,
#e8f5ff 320deg,
#e8f5ff 360deg
);
position: relative;
z-index: 1;
overflow: hidden;
}
.center-circle {
position: absolute;
width: 17%;
height: 17%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: white;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
z-index: 10;
box-shadow: 0 8px 32px rgba(0,0,0,0.3);
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
overflow: hidden;
}
.center-circle img {
width: 80%;
height: 80%;
object-fit: contain;
display: block;
}
.main-circle {
position: absolute;
width: 20%;
height: 20%;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
color: white;
font-weight: 900;
font-size: 2.4vmin;
text-align: center;
z-index: 5;
box-shadow: 0 8px 24px rgba(0,0,0,0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
}
.main-circle:hover {
transform: translateX(-50%) scale(1.05);
box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.direction {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
top: 25%;
left: 50%;
transform: translateX(-50%);
}
.results {
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
bottom: 30%;
left: 38%;
transform: translateX(-50%);
}
.execution {
background: linear-gradient(135deg, #5a6d9d 0%, #3d4d8d 100%);
bottom: 30%;
right: 18%;
transform: translateX(-50%);
}
.medium-circle {
position: absolute;
width: 18%;
height: 18%;
border-radius: 50%;
background: white;
display: flex;
justify-content: center;
align-items: center;
color: #333;
font-size: 1.9vmin;
font-weight: 600;
text-align: center;
padding: 5px;
z-index: 8;
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
line-height: 1.2;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
}
.medium-circle:hover {
transform: scale(1.1);
box-shadow: 0 6px 20px rgba(0,0,0,0.25);
border-width: 5px;
}
.small-circle {
position: absolute;
width: 12%;
height: 12%;
border-radius: 50%;
background: white;
display: none;
justify-content: center;
align-items: center;
font-size: 1.4vmin;
font-weight: 600;
text-align: center;
padding: 5px;
z-index: 9;
box-shadow: 0 4px 16px rgba(0,0,0,0.2);
line-height: 1.1;
transition: all 0.3s ease;
cursor: pointer;
opacity: 0;
border: 3px solid;
}
.small-circle.visible {
display: flex;
animation: popIn 0.3s ease forwards;
}
.small-circle:hover {
transform: scale(1.15);
box-shadow: 0 6px 24px rgba(0,0,0,0.3);
color: white !important;
}
/* HIGHLIGHTED EU4Dual Document circles */
.small-circle.highlighted {
background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
border-color: #f5a623 !important;
color: #d4850f !important;
box-shadow: 0 4px 20px rgba(245, 166, 35, 0.4);
}
.small-circle.highlighted:hover {
background: linear-gradient(135deg, #f5a623 0%, #e8940f 100%);
color: white !important;
}
/* Direction small circles - Blue theme (non-highlighted) */
.small-circle[data-parent="1.1.1"]:not(.highlighted),
.small-circle[data-parent="1.2.1"]:not(.highlighted) {
background: linear-gradient(135deg, #e8f5ff 0%, #cce7ff 100%);
border-color: #4facfe !important;
color: #2d8ada !important;
box-shadow: 0 4px 20px rgba(79, 172, 254, 0.3);
}
.small-circle[data-parent="1.1.1"]:not(.highlighted):hover,
.small-circle[data-parent="1.2.1"]:not(.highlighted):hover {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
color: white !important;
}
/* Results small circles - Emerald/Deep green shade */
.small-circle[data-parent="2.1"],
.small-circle[data-parent="2.2.1"] {
background: linear-gradient(135deg, #ecfdf5 0%, #a7f3d0 100%);
border-color: #10b981 !important;
color: #047857 !important;
box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}
.small-circle[data-parent="2.1"]:hover,
.small-circle[data-parent="2.2.1"]:hover {
background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
color: white !important;
}
/* Execution small circles - Bright royal blue shade */
.small-circle[data-parent="3.1"],
.small-circle[data-parent="3.2"],
.small-circle[data-parent="3.3"] {
background: linear-gradient(135deg, #eff6ff 0%, #bfdbfe 100%);
border-color: #3b82f6 !important;
color: #1d4ed8 !important;
box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}
.small-circle[data-parent="3.1"]:hover,
.small-circle[data-parent="3.2"]:hover,
.small-circle[data-parent="3.3"]:hover {
background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
color: white !important;
}
@keyframes popIn {
from {
opacity: 0;
transform: scale(0.5);
}
to {
opacity: 1;
transform: scale(1);
}
}
.dir-2 {top: 6%; left: 28%; border: 3px solid #4facfe; }
.dir-4 { font-size: 1.7vmin; top: 6%; right: 28%; border: 3px solid #4facfe; }
.res-1 { width: 18%; height: 18%; bottom: 34%; left: 6%; border: 3px solid #43e97b; }
.res-3 { width: 18%; height: 18%; bottom: 12%; left: 16.5%; border: 3px solid #43e97b; }
.exe-1 { width: 18%; height: 18%; bottom: 45%; right: 9%; border: 3px solid #5a6d9d; }
.exe-2 { width: 18%; height: 18%; bottom: 21.5%; right: 8.5%; border: 3px solid #5a6d9d; }
.exe-3 { font-size: 1.7vmin; width: 18%; height: 18%; bottom: 7%; right: 28.5%; border: 3px solid #5a6d9d; }
/* Small circle positions - PURPOSE, VISION & STRATEGY (1.1.1) */
.pvs-small-1 { top: 0.5%; left: 40.5%; }
.pvs-small-2 { top: 10%; left: 18%; }
.pvs-small-3 { top: 22%; left: 28%; }
/* Small circle positions - DIRECTION (Organisational Culture & Leadership 1.2.1) */
.dir-small-1 { top: 10%; right: 18%; }
.dir-small-2 { top: 22%; right: 28%; }
.dir-small-3 { top: 0.5%; right: 40.5%; }
/* Small circle positions - RESULTS (Stakeholder perceptions 2.1) */
.res-small-1 { bottom: 27%; left: 9%; }
/* Small circle positions - RESULTS (Strategic & Operational performance 2.2.1) */
.res-small-2 { bottom: 21%; left: 8%; }
.res-small-3 { bottom: 7%; left: 30%; }
/* Small circle positions - EXECUTION (Engaging stakeholders 3.1) */
.exe-small-1 { bottom: 52%; right: 25%; }
.exe-small-2 { bottom: 42%; right: 0.5%; }
/* Small circle positions - EXECUTION (Creating sustainable value 3.2) */
.exe-small-3 { bottom: 33%; right: 1.5%; }
.exe-small-4 { bottom: 12%; right: 14%; }
/* Small circle positions - EXECUTION (Driving performance & transformation 3.3) */
.exe-small-5 { bottom: 10%; right: 18%; }
.exe-small-6 { bottom: 1.5%; right: 41%; }
.exe-small-7 { bottom: 19.5%; right: 40.5%; }
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(5px);
}
.modal.active {
display: flex;
justify-content: center;
align-items: center;
animation: fadeIn 0.3s ease;
}
.modal-content {
background: white;
padding: 40px;
border-radius: 20px;
max-width: 600px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
position: relative;
animation: slideUp 0.3s ease;
}
.modal-header {
font-size: 2.5rem;
font-weight: 900;
margin-bottom: 20px;
color: #333;
}
.modal-body {
font-size: 1.1rem;
line-height: 1.8;
color: #555;
margin-bottom: 20px;
}
.modal-link {
display: inline-block;
padding: 12px 24px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
text-decoration: none;
border-radius: 8px;
font-weight: 700;
transition: transform 0.3s ease, box-shadow 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
margin-top: 10px;
}
.modal-link:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.document-item {
margin-bottom: 15px;
padding: 15px;
background: #f8f9fa;
border-radius: 8px;
border-left: 4px solid #667eea;
}
.document-name {
font-size: 1.1rem;
font-weight: 700;
color: #333;
margin-bottom: 8px;
}
.document-link {
display: inline-block;
padding: 8px 16px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
text-decoration: none;
border-radius: 6px;
font-weight: 600;
font-size: 0.9rem;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.document-link:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.modal-close {
position: absolute;
top: 15px;
right: 20px;
font-size: 2rem;
font-weight: bold;
color: #999;
cursor: pointer;
background: none;
border: none;
transition: color 0.3s ease;
}
.modal-close:hover {
color: #333;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from {
transform: translateY(50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
</style>
</head>
<body>
<div class="main-container">
<div class="outer-circle">
<div class="inner-background">
<div class="center-circle">
<img src="./eu4dual_logo.png" alt="EU4DUAL Logo" onerror="console.error('Failed to load logo:', this.src); this.style.display='none';">
</div>
<div class="main-circle direction" data-section-key="1">DIRECTION</div>
<div class="main-circle results" data-section-key="2">RESULTS</div>
<div class="main-circle execution" data-section-key="3">EXECUTION</div>
<div class="medium-circle dir-2" data-section-key="1.1.1" data-has-children="true">Purpose, Vision & Strategy</div>
<div class="medium-circle dir-4" data-section-key="1.2.1" data-has-children="true">Organisational Culture & Leadership</div>
<div class="medium-circle res-1" data-section-key="2.1" data-has-children="true">Stakeholder perceptions</div>
<div class="medium-circle res-3" data-section-key="2.2.1" data-has-children="true">Strategic & Operational performance</div>
<div class="medium-circle exe-1" data-section-key="3.1" data-has-children="true">Engaging stakeholders</div>
<div class="medium-circle exe-2" data-section-key="3.2" data-has-children="true">Creating sustainable value</div>
<div class="medium-circle exe-3" data-section-key="3.3" data-has-children="true">Driving performance & transformation </div>
<!-- Third level circles for Purpose, Vision & Strategy (1.1.1) - HIGHLIGHTED -->
<div class="small-circle pvs-small-1 highlighted" data-parent="1.1.1" data-section-key="1.1.1.1">Purpose</div>
<div class="small-circle pvs-small-2 highlighted" data-parent="1.1.1" data-section-key="1.1.1.2">Vision</div>
<div class="small-circle pvs-small-3 highlighted" data-parent="1.1.1" data-section-key="1.1.1.3">Strategy</div>
<!-- Third level circles for Organisational Culture & Leadership (1.2.1) - HIGHLIGHTED -->
<div class="small-circle dir-small-1 highlighted" data-parent="1.2.1" data-section-key="1.2.1.1">Quality Culture</div>
<div class="small-circle dir-small-2 highlighted" data-parent="1.2.1" data-section-key="1.2.1.2">Policies</div>
<div class="small-circle dir-small-3 highlighted" data-parent="1.2.1" data-section-key="1.2.1.3">Governance</div>
<!-- Third level circles for Stakeholder perceptions (2.1) -->
<div class="small-circle res-small-1" data-parent="2.1" data-section-key="2.1.1">Products</div>
<!-- Third level circles for Strategic & Operational performance (2.2.1) -->
<div class="small-circle res-small-2" data-parent="2.2.1" data-section-key="2.2.1.1">Deliverables</div>
<div class="small-circle res-small-3" data-parent="2.2.1" data-section-key="2.2.1.2">Milestones</div>
<!-- Third level circles for Engaging stakeholders (3.1) -->
<div class="small-circle exe-small-1" data-parent="3.1" data-section-key="3.1.1">RADAR</div>
<div class="small-circle exe-small-2" data-parent="3.1" data-section-key="3.1.2">Feedback-Loops</div>
<!-- Third level circles for Creating sustainable value (3.2) -->
<div class="small-circle exe-small-3" data-parent="3.2" data-section-key="3.2.1">Impact Reports</div>
<div class="small-circle exe-small-4" data-parent="3.2" data-section-key="3.2.2">Best Practices</div>
<!-- Third level circles for Driving performance & transformation (3.3) -->
<div class="small-circle exe-small-5" data-parent="3.3" data-section-key="3.3.1">Process landscape</div>
<div class="small-circle exe-small-6" data-parent="3.3" data-section-key="3.3.2">KPIs</div>
<div class="small-circle exe-small-7" data-parent="3.3" data-section-key="3.3.3">Risk management</div>
</div>
</div>
<svg viewBox="0 0 900 900" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; z-index: 15;">
<defs>
<path id="leftPath" d="M 20,475 A 410,410 0 0,0 500,870" fill="none"/>
<path id="topPath" d="M 175,130 A 410,410 0 0,1 760,170" fill="none"/>
<path id="rightPath" d="M 590,860 A 425,415 0 0,0 710,130" fill="none"/>
</defs>
<text fill="white" font-size="16" font-weight="bold" letter-spacing="3" style="text-shadow: 0 1px 3px rgba(0,0,0,0.3);">
<textPath href="#leftPath" startOffset="0%">
RELEVANCE & USABILITY | PERFORMANCE
</textPath>
</text>
<text fill="white" font-size="16" font-weight="bold" letter-spacing="3" style="text-shadow: 0 1px 3px rgba(0,0,0,0.3);">
<textPath href="#topPath" startOffset="0%">
APPROACH | DEPLOYMENT | ASSESSMENT & REFINEMENT
</textPath>
</text>
<text fill="white" font-size="16" font-weight="bold" letter-spacing="3" style="text-shadow: 0 1px 3px rgba(0,0,0,0.3);">
<textPath href="#rightPath" startOffset="0%">
APPROACH | DEPLOYMENT | ASSESSMENT & REFINEMENT
</textPath>
</text>
</svg>
<svg viewBox="0 0 900 900" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; z-index: 1;">
<line x1="395" y1="275" x2="373" y2="232" stroke="#4facfe" stroke-width="2" opacity="0.3"/>
<line x1="506" y1="275" x2="528" y2="232" stroke="#4facfe" stroke-width="2" opacity="0.3"/>
<line x1="280" y1="530" x2="237" y2="522" stroke="#43e97b" stroke-width="2" opacity="0.3"/>
<line x1="320" y1="595" x2="293" y2="630" stroke="#43e97b" stroke-width="2" opacity="0.3"/>
<line x1="615" y1="490" x2="655" y2="462" stroke="#5a6d9d" stroke-width="2" opacity="0.3"/>
<line x1="615" y1="565" x2="650" y2="580" stroke="#5a6d9d" stroke-width="2" opacity="0.3"/>
<line x1="540" y1="607" x2="542" y2="655" stroke="#5a6d9d" stroke-width="2" opacity="0.3"/>
</svg>
</div>
<div id="modal" class="modal">
<div class="modal-content">
<button class="modal-close" onclick="closeModal()">×</button>
<div class="modal-header" id="modal-title"></div>
<div class="modal-body" id="modal-body"></div>
<div id="modal-documents"></div>
</div>
</div>
<script>
// Global variable to store document data
let documentData = [];
const modalData = {
'1': {
title: 'DIRECTION',
body: 'Strategic direction and organizational guidance.'
},
'1.1': {
title: 'Purpose',
body: 'The fundamental reason for the organization\'s existence.'
},
'1.1.1': {
title: 'Purpose, Vision & Strategy',
body: 'The fundamental pillars that guide our organization\'s direction and aspirations.'
},
'1.1.1.1': {
title: 'Purpose',
body: 'The fundamental reason for the organization\'s existence and the impact it seeks to create.'
},
'1.1.1.2': {
title: 'Vision',
body: 'The aspirational future state that the organization strives to achieve.'
},
'1.1.1.3': {
title: 'Strategy',
body: 'The roadmap and key initiatives designed to achieve organizational objectives.'
},
'1.2.1': {
title: 'Organisational Culture & Leadership',
body: 'The values, beliefs, leadership approaches, and governance that shape our organization.'
},
'1.1.2': {
title: 'Quality Culture',
body: 'The values, beliefs, and behaviors that shape our organization.'
},
'1.2.2': {
title: 'Policies',
body: 'The guidelines and rules that govern our operations.'
},
'2': {
title: 'RESULTS',
body: 'Outcomes, deliverables, and project achievements.'
},
'2.1': {
title: 'Stakeholder perceptions',
body: 'How stakeholders view and evaluate our work and outputs.'
},
'2.1.1': {
title: 'Products',
body: 'Final products and services delivered to stakeholders.'
},
'2.2.1': {
title: 'Strategic & Operational performance',
body: 'Measuring success against strategic and operational goals.'
},
'2.2.1.1': {
title: 'Deliverables',
body: 'Tangible outputs and results from project activities.'
},
'2.2.1.2': {
title: 'Milestones',
body: 'Key achievements and progress markers in project timelines.'
},
'3': {
title: 'EXECUTION',
body: 'Implementation, processes, and performance metrics.'
},
'3.1': {
title: 'Engaging stakeholders',
body: 'Building and maintaining effective stakeholder relationships.'
},
'3.2': {
title: 'Creating sustainable value',
body: 'Generating long-term value for all stakeholders.'
},
'3.3': {
title: 'Driving performance & transformation',
body: 'Continuous improvement and organizational change initiatives.'
},
// Third level - DIRECTION
'1.2.1.1': {
title: 'Quality Culture',
body: 'The values, beliefs, and behaviors that shape our organization and drive quality excellence.'
},
'1.2.1.2': {
title: 'Policies',
body: 'The guidelines, rules, and standards that govern our operations and decision-making.'
},
'1.2.1.3': {
title: 'Governance',
body: 'The framework of rules, practices, and processes for organizational direction and control.'
},
// Third level - EXECUTION
'3.1.1': {
title: 'RADAR',
body: 'Results, Approach, Deployment, Assessment, and Refinement methodology.'
},
'3.1.2': {
title: 'Feedback-Loops',
body: 'Continuous feedback mechanisms for stakeholder engagement.'
},
'3.2.1': {
title: 'Impact Reports',
body: 'Comprehensive reports measuring the impact and value creation.'
},
'3.2.2': {
title: 'Best Practices',
body: 'Proven methods and approaches that drive sustainable value.'
},
'3.3.1': {
title: 'Process Landscape',
body: 'The comprehensive view of all organizational processes and workflows.'
},
'3.3.2': {
title: 'KPIs',
body: 'Key Performance Indicators that measure organizational success.'
},
'3.3.3': {
title: 'Risk Management',
body: 'Identifying, assessing, and mitigating organizational risks.'
}
};
let activeParent = null;
// Load the document configuration from a JSON file
async function loadDocumentConfig() {
try {
const response = await fetch('policy-map-config.json');
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
const config = await response.json();
documentData = config.documents;
console.log('Loaded policy map documents:', documentData);
} catch (error) {
console.error('Error loading document config:', error);
}
}
// Main and medium circles click handlers
document.querySelectorAll('.main-circle, .medium-circle').forEach(circle => {
circle.addEventListener('click', function(e) {
e.stopPropagation();
const sectionKey = this.getAttribute('data-section-key');
const hasChildren = this.getAttribute('data-has-children') === 'true';
if (hasChildren) {
showThirdLevelCircles(this, sectionKey);
} else if (sectionKey) {
openModal(sectionKey);
}
});
});
// Small circles click handlers
document.querySelectorAll('.small-circle').forEach(circle => {
circle.addEventListener('click', function(e) {
e.stopPropagation();
const sectionKey = this.getAttribute('data-section-key');
if (sectionKey) {
openModal(sectionKey);
}
});
});
function showThirdLevelCircles(parentElement, parentKey) {
document.querySelectorAll('.small-circle').forEach(sc => {
sc.classList.remove('visible');
});
if (activeParent === parentKey) {
activeParent = null;
return;
}
activeParent = parentKey;
const children = document.querySelectorAll(`.small-circle[data-parent="${parentKey}"]`);
if (children.length === 0) return;
children.forEach((child, index) => {
setTimeout(() => {
child.classList.add('visible');
}, index * 100);
});
}
document.addEventListener('click', function(e) {
if (e.target.closest('.modal') || e.target.closest('.modal-content')) {
return;
}
document.querySelectorAll('.small-circle').forEach(sc => {
sc.classList.remove('visible');
});
activeParent = null;
});
function openModal(sectionKey) {
const title = modalData[sectionKey]?.title || 'Section ' + sectionKey;
const description = modalData[sectionKey]?.body || '';
document.getElementById('modal-title').textContent = title;
document.getElementById('modal-body').textContent = description;
const documentsContainer = document.getElementById('modal-documents');
documentsContainer.innerHTML = '';
const sectionDocuments = documentData.filter(doc => doc.sectionKey === sectionKey);
if (sectionDocuments && sectionDocuments.length > 0) {
sectionDocuments.forEach((doc, index) => {
const documentItem = document.createElement('div');
documentItem.classList.add('document-item');
documentItem.innerHTML = `
<div class="document-name">${doc.fileName}</div>
<a href="${doc.fileLink}" target="_blank" class="document-link">Open Document</a>
`;
documentsContainer.appendChild(documentItem);
});
}
document.getElementById('modal').classList.add('active');
}
function closeModal() {
document.getElementById('modal').classList.remove('active');
}
document.getElementById('modal').addEventListener('click', function(e) {
e.stopPropagation();
if (e.target === this) {
closeModal();
}
});
document.addEventListener('keydown', function(e) {
if (e.key === 'Escape') {
closeModal();
}
});
document.addEventListener('DOMContentLoaded', () => {
loadDocumentConfig();
});
</script>
</body>
</html>