-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
833 lines (737 loc) · 31.6 KB
/
Copy pathindex.html
File metadata and controls
833 lines (737 loc) · 31.6 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
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Colleges of Education Past Questions | SCode Studio | PEKICOE SRC </title>
<!-- ================================
🔵 ORIGINAL SEO (UNCHANGED)
================================ -->
<meta name="description" content="Free Colleges of Education past questions for all universities in Ghana. Filter by level, semester, and program. Official platform of SCode Studio and SCode COE. Created by Atubra Abraham.">
<meta name="keywords" content="scode coe pasco, scode-coepasco.online, Colleges of Education past questions, SCode Studio, Atubra Abraham, SCode Groups, Peki College of Education, COE pasco, pasco Ghana, past questions 2025, teacher trainees Ghana">
<meta name="author" content="Atubra Abraham — SCode Studio">
<link rel="canonical" href="https://scode-coepasco.online/">
<meta property="og:title" content="Colleges of Education Past Questions | SCode Studio | PEKICOE SRC">
<meta property="og:description" content="Built by SCode Studio and PEKICOE SRC. Download past questions for Colleges of Education in Ghana.">
<meta property="og:image" content="https://raw.githubusercontent.com/SCodeGit/trial/main/favicon%20scode.jpg">
<meta property="og:url" content="https://scode-coepasco.online/">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Colleges of Education Past Questions | SCode COE">
<meta name="twitter:description" content="Access all past questions for Ghana Colleges of Education.">
<meta name="twitter:image" content="https://raw.githubusercontent.com/SCodeGit/trial/main/favicon%20scode.jpg">
<link rel="icon" type="image/jpeg" href="https://raw.githubusercontent.com/SCodeGit/trial/main/favicon%20scode.jpg">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "https://scodegit.github.io/scode.git.io/#organization",
"name": "SCode",
"url": "https://scodegit.github.io/scode.git.io/",
"logo": "https://raw.githubusercontent.com/SCodeGit/scode.git.io/main/images/scode.jpg",
"sameAs": [
"https://scodegit.github.io/SCodeOS/",
"https://scode-coepasco.online/",
"https://bowiritraditionalarea23.com/"
],
"founder": {
"@id": "https://scodegit.github.io/scode.git.io/#person"
}
},
{
"@type": "Person",
"@id": "https://scodegit.github.io/scode.git.io/#person",
"name": "Atubra Abraham",
"alternateName": "SCode",
"image": "https://raw.githubusercontent.com/SCodeGit/SCode-Foundation/a4c12e5b92c858efe2882d28a84fbecbc5b670e4/SCode.jpeg",
"jobTitle": "Web Developer, Software Engineer, System Builder",
"url": "https://scodegit.github.io/scode.git.io/",
"sameAs": [
"https://scodegit.github.io/SCodeOS/",
"https://scode-coepasco.online/",
"https://bowiritraditionalarea23.com/"
],
"worksFor": {
"@id": "https://scodegit.github.io/scode.git.io/#organization"
}
}
]
}
</script>
<!-- ======================================================
🔥🔥 NEW SEO BOOSTERS ADDED BELOW (DO NOT TOUCH ABOVE)
====================================================== -->
<!-- Better Google Search Visibility -->
<meta name="google-site-verification" content="google-site-verification=TUBcu4HWoDjB10T69XlN2XV_BiidAho9mIUmCJsBTiA">
<!-- Improve index priority -->
<meta name="robots" content="index, follow">
<meta name="rating" content="General">
<meta name="coverage" content="Worldwide">
<!-- Additional Keywords (no duplicates from original) -->
<meta name="keywords" content="
Ghana teacher trainees,
education past questions Ghana,
Tertiary past papers,
University of Education pasco,
CoE exam papers,
training college past questions,
scode groups Ghana,
scode studio education,
Ghana e-learning,
African college past papers,
teacher training resources
">
<!-- Add SCode Studio Identity Keyword Reinforcement -->
<meta name="application-name" content="SCode Studio">
<meta name="organization" content="SCode Groups, PEKICOE SRC">
<meta name="theme-color" content="#0a1f44">
<!-- ===========================
JSON-LD SCHEMA (Google)
============================ -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "EducationalOrganization",
"name": "SCode Studio | SCode COE Pasco",
"url": "https://scode-coepasco.online/",
"logo": "https://raw.githubusercontent.com/SCodeGit/trial/main/favicon%20scode.jpg",
"description": "Colleges of Education Past Questions for all Universities in Ghana. Created by SCode Studio and PEKICOE SRC.",
"founder": {
"@type": "Person",
"name": "Atubra Abraham"
},
"sameAs": [
"https://facebook.com",
"https://tiktok.com",
"https://instagram.com"
],
"address": {
"@type": "PostalAddress",
"addressCountry": "GH"
}
}
</script>
<!-- ===========================
WebSite Search Schema
=========================== -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "https://scode-coepasco.online",
"potentialAction": {
"@type": "SearchAction",
"target": "https://scode-coepasco.online/?q={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
<!-- ===========================
Breadcrumb Schema
=========================== -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://scode-coepasco.online/"
},
{
"@type": "ListItem",
"position": 2,
"name": "Past Questions",
"item": "https://scode-coepasco.online/pastquestions"
}
]
}
</script>
<!-- ===========================
Open Search (SEO Booster)
=========================== -->
<link rel="search" type="application/opensearchdescription+xml" title="SCode COE Pasco Search" href="/opensearch.xml">
<!-- Security Hardening -->
<meta http-equiv="X-Content-Type-Options" content="nosniff">
<meta http-equiv="X-Frame-Options" content="DENY">
<meta http-equiv="Referrer-Policy" content="no-referrer">
<meta http-equiv="Permissions-Policy" content="geolocation=(), microphone=(), camera=()">
<!-- Performance Hints -->
<link rel="preconnect" href="https://raw.githubusercontent.com">
<link rel="dns-prefetch" href="https://raw.githubusercontent.com">
<link rel="preload" as="image" href="https://raw.githubusercontent.com/SCodeGit/trial/724991e37c16e87e1f9d68e7111efa15c2386ab7/favicon%20scode.jpg">
<link rel="preload" as="font" href="https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700&display=swap" crossorigin>
<!-- Structured Data: Educational Organization -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "EducationalOrganization",
"name": "SCode Studio",
"url": "https://scode-coepasco.online/",
"logo": "https://raw.githubusercontent.com/SCodeGit/trial/724991e37c16e87e1f9d68e7111efa15c2386ab7/favicon%20scode.jpg",
"sameAs": [
"https://www.facebook.com/scodestudio",
"https://twitter.com/scodestudio",
"https://www.linkedin.com/company/scodestudio"
],
"description": "Free Colleges of Education past questions for all universities in Ghana."
}
</script>
<!-- Structured Data: WebSite with Search -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "SCode Groups Abraham Atubra COE",
"url": "https://scode-coepasco.online/",
"potentialAction": {
"@type": "SearchAction",
"target": "https://scode-coepasco.online/?q={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
<!-- Lazy Loading for Images -->
<script>
document.addEventListener("DOMContentLoaded", () => {
document.querySelectorAll("img").forEach(img => {
if(!img.hasAttribute("loading")) img.setAttribute("loading", "lazy");
});
});
</script>
</div>
<link rel="icon" type="image/jpeg" href="https://raw.githubusercontent.com/SCodeGit/trial/main/favicon%20scode.jpg">
<style>
/* ===========================
FULL DARK MODE TEXT FIX
=========================== */
body[data-theme="dark"] {
color: #ffffff !important;
}
/* Headings and paragraphs */
body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4,
body[data-theme="dark"] h5,
body[data-theme="dark"] h6,
body[data-theme="dark"] p,
body[data-theme="dark"] span,
body[data-theme="dark"] label {
color: #ffffff !important;
}
/* Top bar */
body[data-theme="dark"] .top-bar {
color: #ffffff !important;
}
body[data-theme="dark"] #theme-toggle {
color: #ffffff !important;
}
/* Tagline */
body[data-theme="dark"] .tagline {
color: #d4e7ff !important;
}
/* Links */
body[data-theme="dark"] a {
color: #9ec9ff !important;
}
body[data-theme="dark"] a:hover {
color: #ffffff !important;
}
/* PDF list */
body[data-theme="dark"] .pdf-list a {
color: #ffffff !important;
border-color: rgba(255,255,255,0.2) !important;
}
body[data-theme="dark"] .pdf-list a:hover {
background: #1e3a8a !important;
}
/* Inputs & selects */
body[data-theme="dark"] select,
body[data-theme="dark"] input,
body[data-theme="dark"] button {
color: #ffffff !important;
background: #0b1a33 !important;
border-color: rgba(255,255,255,0.15) !important;
}
/* SC Tools Hub Box */
body[data-theme="dark"] #scContent {
background: #0c162b !important;
color: #ffffff !important;
}
body[data-theme="dark"] #scContent button {
background: #1e3a8a !important;
color: #ffffff !important;
}
/* Footer */
body[data-theme="dark"] footer {
color: #d0e0f5 !important;
}
:root{
--navy: #0a1f44;
--white: #ffffff;
--accent: #1e3a8a;
--soft-accent: #0f335f;
--muted: #f3f6fb;
--shadow: rgba(10,31,68,0.12);
--hover-shadow: rgba(30,58,138,0.2);
}
*{box-sizing:border-box;margin:0;padding:0;transition: all 0.25s ease-in-out;}
body{
font-family:'Segoe UI', Arial, sans-serif;
background: var(--muted);
color: var(--navy);
padding:18px;
line-height:1.6;
font-size:1rem;
}
/* Frame & headings */
.frame{
max-width:980px;
margin:18px auto;
background: var(--white);
border-radius:16px;
border:4px solid var(--navy);
box-shadow:0 14px 30px var(--shadow);
overflow:hidden;
animation: frameFadeIn 0.8s ease both;
}
@keyframes frameFadeIn{
0% {opacity:0; transform: translateY(15px);}
100%{opacity:1; transform: translateY(0);}
}
.frame-inner{padding:28px;}
h1{text-align:center;margin-top:10px;color:var(--navy);font-size:1.7rem;font-weight:700;text-shadow:1px 1px 4px rgba(0,0,0,0.1);}
.tagline{text-align:center;color:var(--soft-accent);margin:10px 0 20px;font-style:italic;transition: color 0.3s ease;}
.tagline:hover{color:var(--accent);}
/* Top bar */
.top-bar{display:flex;align-items:center;gap:18px;max-width:1100px;margin:0 auto 18px;padding:10px 12px;transition: all 0.3s ease;}
.top-bar:hover{box-shadow:0 8px 25px var(--hover-shadow);}
.top-logos{display:flex;gap:14px;justify-content:center;align-items:center;flex:1 1 auto;}
.top-logos img{
width:60px;height:60px;border-radius:50%;object-fit:cover;border:2px solid var(--navy);background: var(--white);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.top-logos img:hover{transform: scale(1.12) rotate(2deg);box-shadow:0 8px 25px var(--hover-shadow);}
#theme-toggle{
background:transparent;border:none;font-size:1.3rem;color: var(--navy);cursor:pointer;padding:6px 8px;margin-left:12px;transition: transform 0.3s ease, color 0.3s ease;
}
#theme-toggle:hover{transform: scale(1.2) rotate(15deg);color: var(--accent);}
/* Controls */
.controls{display:block;width:100%;max-width:760px;margin:0 auto;gap:12px;}
.controls > *{display:block;width:100%;margin:10px 0;}
select,input[type="text"],button{
padding:12px 14px;border-radius:12px;border:1px solid #cbd9f0;font-size:1rem;background:#fff;color: var(--navy);transition: all 0.3s ease;
}
select:hover,input[type="text"]:hover,button:hover{box-shadow:0 6px 25px var(--hover-shadow);transform: translateY(-2px) scale(1.02);border-color: var(--accent);}
button{background: var(--accent);color: var(--white);cursor:pointer;font-weight:600;}
button:hover{background: var(--soft-accent);transform: translateY(-3px) scale(1.03);box-shadow:0 12px 30px var(--hover-shadow);}
/* PDF List */
.pdf-list a{
display:block;color: var(--navy);text-decoration:none;padding:10px 14px;border-radius:10px;border:1px solid #cbd9f0;margin:6px 0;transition: all 0.3s ease;
}
.pdf-list a:hover{background: var(--accent);color: var(--white);transform: translateX(4px) scale(1.02);box-shadow:0 6px 25px var(--hover-shadow);}
/* Instructions */
.instructions-container{text-align:center;margin:40px auto;max-width:700px;}
.instructions-toggle{
background:transparent;color:#00b3ff;border:1px solid #00b3ff;border-radius:8px;padding:10px 22px;cursor:pointer;font-size:17px;transition: all 0.4s ease;
}
.instructions-toggle:hover{background:#00b3ff;color:#fff;box-shadow:0 0 20px rgba(0,179,255,0.5);}
.instructions-content{display:none;margin-top:15px;background: rgba(0,10,30,0.9);color:#d6f1ff;border-radius:12px;padding:22px;animation: fadeIn 0.5s ease forwards;}
@keyframes fadeIn{from{opacity:0; transform: translateY(-10px);}to{opacity:1; transform:translateY(0);}}
/* Footer */
footer{margin-top:28px;text-align:center;color:#374761;font-size:0.95rem;opacity:0.85;transition: all 0.3s ease;}
footer:hover{opacity:1;color:var(--accent);}
/* SC Tools Hub */
#scToolsHub {
position: fixed;
bottom: 20px;
right: 20px;
width: 250px;
z-index: 9999;
font-family: sans-serif;
cursor: move;
transition: all 0.3s ease;
}
#scToggle {
background: #1e3a8a;
color: #fff;
width: 50px;
height: 50px;
border-radius: 50%;
text-align: center;
line-height: 50px;
font-weight: bold;
font-size: 18px;
box-shadow: 0 4px 12px rgba(0,0,0,0.25);
transition: all 0.3s ease;
}
#scToggle:hover {
transform: scale(1.15) rotate(5deg);
box-shadow: 0 10px 28px rgba(30,58,138,0.3);
}
#scContent {
display: none;
background: #fff;
border-radius: 12px;
box-shadow: 0 6px 25px rgba(0,0,0,0.25);
padding: 12px;
margin-top: 10px;
transition: all 0.4s ease;
}
#scContent select,
#scContent input,
#scContent button {
width: 100%;
margin-bottom: 8px;
padding: 10px;
border-radius: 8px;
border: 1px solid #ccc;
transition: all 0.3s ease;
}
#scContent button {
background: #1e3a8a;
color: #fff;
cursor: pointer;
}
#scContent button:hover {
background: #0a1f44;
transform: translateY(-2px) scale(1.03);
box-shadow: 0 12px 28px rgba(30,58,138,0.4);
}
.sc-instructions {
background: rgba(30,58,138,0.1);
padding: 8px;
border-radius: 8px;
font-size: 0.88rem;
margin-bottom: 10px;
}
/* ===========================
MOBILE FIX FOR SC TOOLS
=========================== */
@media (max-width: 600px) {
#scToolsHub {
position: fixed !important;
bottom: 20px !important;
right: 20px !important;
width: 250px !important;
}
#scToggle {
position: fixed !important;
bottom: 20px !important;
right: 20px !important;
width: 50px !important;
height: 50px !important;
line-height: 50px !important;
font-size: 18px !important;
}
}
/* Dark theme */
body[data-theme="dark"]{
background:#071427;color:#e9eef6;
}
body[data-theme="dark"] .frame{background: rgba(8,18,36,0.92); border-color:#072043; box-shadow:0 14px 30px rgba(0,0,0,0.5);}
body[data-theme="dark"] select,body[data-theme="dark"] input,body[data-theme="dark"] button{background:#071427;color:#e9eef6;border:1px solid rgba(255,255,255,0.06);}
</style>
</head>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TS3P82SX');</script>
<!-- End Google Tag Manager -->
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-J4VM02GJBB"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-J4VM02GJBB');
</script>
<script src="iphone-ads.js"></script>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TS3P82SX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<h1>Colleges of Education Past Questions</h1>
<div class="top-bar">
<div class="top-logos">
<img src="https://raw.githubusercontent.com/SCodeGit/trial/main/WhatsApp%20Image%202025-10-29%20at%2021.29.26_b1bcd9d3.jpg">
<img src="https://raw.githubusercontent.com/SCodeGit/trial/main/WhatsApp%20Image%202025-10-29%20at%2021.28.30_968e228b.jpg">
<img src="https://raw.githubusercontent.com/SCodeGit/trial/main/WhatsApp%20Image%202025-10-29%20at%2021.31.34_5c11e8e8.jpg">
</div>
<button id="theme-toggle" title="Toggle theme">☀️</button>
</div>
<p class="tagline"> Learning Through Past Questions</p>
<div class="instructions-container">
<button class="instructions-toggle" onclick="toggleInstructions()"> View Instructions For Trainees</button>
<div class="instructions-content" id="instructionsBox">
<p><strong>Welcome Trainees!</strong> Please select your University, Level, Semester, and Program to view PDFs.</p>
</div>
</div>
<div class="frame">
<div class="frame-inner">
<div class="controls">
<select id="university"><option value="">Select University</option></select>
<select id="level" disabled><option value="">Select Level</option></select>
<select id="semester" disabled><option value="">Select Semester</option></select>
<select id="program" disabled><option value="">Select Program</option></select>
<button id="searchBtn">Search PDFs</button>
</div>
<div id="pdf-list" class="pdf-list"></div>
</div>
</div>
</div>
<!-- ==========================
GOVERNMENT-GRADE FOOTER
=========================== -->
<footer class="gov-footer">
<div class="footer-inner">
<p class="footer-text">
<strong>© <span id="year"></span> SCode Studio | PEKICOE SRC. All Rights Reserved.</strong>
</p>
<div class="footer-links">
<strong>
<a href="#" onclick="openModal('privacyModal')">Privacy Policy</a>
<span>|</span>
<a href="#" onclick="openModal('termsModal')">Terms of Use</a>
</strong>
</div>
</div>
</footer>
<!-- ==========================
PRIVACY MODAL
=========================== -->
<div class="modal" id="privacyModal">
<div class="modal-content">
<h2>Privacy Policy</h2>
<p>
<strong>SCode Studio and PEKICOE SRC</strong> are committed to protecting the privacy of all users in accordance with
the <strong>Data Protection Act, 2012 (Act 843)</strong> of Ghana.
Personal data collected through this website will be used solely for educational, administrative, and informational purposes.
</p>
<p>
Information will not be shared with third parties without explicit consent, except as required by law.
We implement strong technical and organizational measures to ensure the security and integrity of all user data.
</p>
<button onclick="closeModal('privacyModal')">Close</button>
</div>
</div>
<!-- ==========================
TERMS MODAL
=========================== -->
<div class="modal" id="termsModal">
<div class="modal-content">
<h2>Terms of Use</h2>
<p>
Access to the SCode Studio platform is provided exclusively for educational purposes to teacher trainees,
Colleges of Education, and affiliated institutions in Ghana. Users agree to comply with all applicable laws
and responsibly use the website resources.
</p>
<p>
Reproduction, modification, or redistribution of website content without prior written permission is strictly prohibited.
The organization reserves the right to update these terms at any time without notice.
</p>
<button onclick="closeModal('termsModal')">Close</button>
</div>
</div>
<!-- ==========================
STYLES
=========================== -->
<style>
/* FOOTER */
.gov-footer {
background: #041f66; /* deeper, authoritative blue */
color: #ffffff;
padding: 30px 10px;
font-family: "Poppins", sans-serif;
text-align: center;
font-weight: 700; /* bold text */
text-transform: uppercase; /* strong presence */
letter-spacing: 0.5px;
}
.footer-inner {
max-width: 1100px;
margin: auto;
}
.footer-text {
font-size: 16px;
margin-bottom: 12px;
}
.footer-links {
font-size: 15px;
}
.footer-links a {
color: #ffd700; /* gold accent for emphasis */
text-decoration: none;
margin: 0 6px;
}
.footer-links a:hover {
text-decoration: underline;
}
/* MODAL */
.modal {
display: none;
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.75);
}
.modal-content {
background: #f0f0f0;
color: #000;
max-width: 650px;
margin: 10% auto;
padding: 30px;
border-radius: 8px;
text-align: left;
font-family: "Poppins", sans-serif;
font-weight: 600;
}
.modal-content h2 {
margin-top: 0;
color: #041f66;
font-weight: 800;
}
.modal-content p {
font-size: 15px;
line-height: 1.6;
}
.modal-content button {
margin-top: 20px;
padding: 10px 20px;
background: #041f66;
color: #ffffff;
border: none;
cursor: pointer;
font-weight: 700;
border-radius: 5px;
}
</style>
<!-- ==========================
SCRIPT
=========================== -->
<script>
document.getElementById("year").textContent = new Date().getFullYear();
function openModal(id) {
document.getElementById(id).style.display = "block";
}
function closeModal(id) {
document.getElementById(id).style.display = "none";
}
</script>
<!-- SC Tools Hub -->
<div id="scToolsHub">
<div id="scToggle">SC</div>
<div id="scContent">
<h4>SC Tools Hub</h4>
<div class="sc-instructions">
<p><strong>Instructions:</strong></p>
<ul>
<li>Select AI or PDF to open in a new tab.</li>
</ul>
</div>
<label>Select AI:</label>
<select id="scAI">
<option value="">--Choose AI--</option>
<option value="chatgpt">ChatGPT</option>
<option value="copilot">Copilot</option>
<option value="deepseek">DeepSeek</option>
<option value="questionai">Question AI</option>
</select>
<button id="scOpenAI">Go</button>
<label>Site PDFs:</label>
<select id="scPDF">
<option value="">--Site PDFs--</option>
</select>
<input type="file" id="scPDFInput" accept=".pdf">
<button id="scOpenPDF">View PDF</button>
</div>
</div>
<script>
/* ---------------- Theme toggle using system */
const body=document.body,themeBtn=document.getElementById("theme-toggle");
const systemPrefersDark=window.matchMedia("(prefers-color-scheme: dark)").matches;
if(localStorage.getItem("theme")==="dark" || (!localStorage.getItem("theme") && systemPrefersDark)){body.setAttribute("data-theme","dark");themeBtn.textContent='🌙';}
else{body.removeAttribute("data-theme");themeBtn.textContent='☀️';}
themeBtn.addEventListener("click",()=>{
if(body.getAttribute("data-theme")==="dark"){body.removeAttribute("data-theme");themeBtn.textContent='☀️';localStorage.setItem("theme","light");}
else{body.setAttribute("data-theme","dark");themeBtn.textContent='🌙';localStorage.setItem("theme","dark");}
});
/* ---------------- Instructions toggle */
function toggleInstructions(){ const box=document.getElementById("instructionsBox"); box.style.display=box.style.display==="block"?"none":"block"; }
/* ---------------- SC Tools Hub draggable - MOBILE SAFE */
const hub = document.getElementById("scToolsHub"),
toggle = document.getElementById("scToggle"),
content = document.getElementById("scContent");
toggle.addEventListener("click", () => {
content.style.display = content.style.display === "block" ? "none" : "block";
});
let isDragging = false, offsetX = 0, offsetY = 0;
// Desktop dragging only
hub.addEventListener("mousedown", (e) => {
if (window.innerWidth > 600 && e.target === toggle) {
isDragging = true;
offsetX = e.clientX - hub.offsetLeft;
offsetY = e.clientY - hub.offsetTop;
}
});
document.addEventListener("mousemove", (e) => {
if (isDragging) {
hub.style.left = (e.clientX - offsetX) + "px";
hub.style.top = (e.clientY - offsetY) + "px";
}
});
document.addEventListener("mouseup", () => { isDragging = false; });
// MOBILE FIX: enforce bottom-right on small screens
function fixMobileSC() {
if (window.innerWidth <= 600) {
hub.style.left = "auto";
hub.style.top = "auto";
hub.style.right = "20px";
hub.style.bottom = "20px";
}
}
// Run on load and on resize
window.addEventListener("load", fixMobileSC);
window.addEventListener("resize", fixMobileSC);
/* ---------------- GitHub PDFs */
const config={mode:"single",singleRepo:{owner:"SCodeGit",repo:"trial",branch:"main"}};
const uni=document.getElementById("university"),lvl=document.getElementById("level"),sem=document.getElementById("semester"),prog=document.getElementById("program"),pdfList=document.getElementById("pdf-list"),recentPanel=document.getElementById("recentPanel"),recentList=document.getElementById("recentList"),scPDF=document.getElementById("scPDF");
let loadedPDFs=[],cachedFolders={},recentOpened=[];
function updateRecentUI(){if(!recentOpened.length){recentPanel.style.display="none";return;}recentPanel.style.display="block";recentList.innerHTML = recentOpened.map(n=>`<li>${n}</li>`).join("");}
function showMessage(msg){ pdfList.innerHTML=`<div>${msg}</div>`; }
function populateDropdown(dropdown,items){dropdown.innerHTML=`<option value="">Select ${dropdown.id.charAt(0).toUpperCase()+dropdown.id.slice(1)}</option>`;items.forEach(i=>{ if(i.type==="dir"){ const opt=document.createElement("option"); opt.value=i.path; opt.textContent=i.name; dropdown.appendChild(opt); } }); dropdown.disabled=false; }
function resetDropdowns(...dropdowns){ dropdowns.forEach(d=>{ d.innerHTML=`<option value="">Select ${d.id.charAt(0).toUpperCase()+d.id.slice(1)}</option>`; d.disabled=true;}); pdfList.innerHTML=""; loadedPDFs=[]; scPDF.innerHTML=`<option value="">--No PDFs loaded--</option>`;}
async function fetchFolder(url,branch=config.singleRepo.branch){ const fullUrl = url.includes("?")?url:`${url}?ref=${branch}`; if(cachedFolders[fullUrl]) return cachedFolders[fullUrl]; try{ const res = await fetch(fullUrl); if(!res.ok) return []; const data=await res.json(); cachedFolders[fullUrl]=data; return data; } catch(e){console.error(e); return [];} }
async function loadPDFsForProgram(){ if(!prog.value) return []; const files=await fetchFolder(`https://api.github.com/repos/${config.singleRepo.owner}/${config.singleRepo.repo}/contents/${prog.value}`); return files.filter(f=>f.name.toLowerCase().endsWith(".pdf")); }
function displayPDFs(pdfs){
if(!pdfs.length){showMessage("No PDF files found."); scPDF.innerHTML=`<option value="">--No PDFs loaded--</option>`; return;}
pdfList.innerHTML=""; const adLink="https://idealistic-revenue.com/b/3oV.0zPh3NptvfbYm_VOJrZDDv0j2lNgzmEsxkNVjdgt4lLUT/YY3zM/TtEI2/OLDokH"; loadedPDFs=pdfs;
pdfs.forEach(f=>{ const rawURL=`https://raw.githubusercontent.com/${config.singleRepo.owner}/${config.singleRepo.repo}/${config.singleRepo.branch}/${f.path}`; const div=document.createElement("div"); div.innerHTML=`<a href="${rawURL}" download data-path="${f.path}">${f.name}</a>`; pdfList.appendChild(div); });
document.querySelectorAll("#pdf-list a").forEach(link=>{ if(link.dataset.initialized) return; link.dataset.initialized="1"; link.addEventListener("click",()=>{ window.open(adLink,"_blank"); const name=link.textContent; if(!recentOpened.includes(name)) recentOpened.unshift(name); if(recentOpened.length>10) recentOpened.pop(); updateRecentUI(); populateSCSiteSelector(loadedPDFs); }); });
populateSCSiteSelector(pdfs);
}
function populateSCSiteSelector(pdfs){ scPDF.innerHTML=`<option value="">--Site PDFs--</option>`; if(!pdfs.length){ scPDF.innerHTML=`<option value="">--No PDFs loaded--</option>`; return;} pdfs.forEach(f=>{ const rawURL=`https://raw.githubusercontent.com/${config.singleRepo.owner}/${config.singleRepo.repo}/${config.singleRepo.branch}/${f.path}`; const opt=document.createElement("option"); opt.value=rawURL; opt.textContent=f.name; scPDF.appendChild(opt); }); }
/* Load universities on page load */
(async()=>{ const baseURL=`https://api.github.com/repos/${config.singleRepo.owner}/${config.singleRepo.repo}/contents/`; const universities=await fetchFolder(baseURL); populateDropdown(uni,universities); })();
/* Dropdown events */
uni.addEventListener("change",async()=>{ resetDropdowns(lvl,sem,prog); if(!uni.value) return; const levels=await fetchFolder(`https://api.github.com/repos/${config.singleRepo.owner}/${config.singleRepo.repo}/contents/${uni.value}`); populateDropdown(lvl,levels); });
lvl.addEventListener("change",async()=>{ resetDropdowns(sem,prog); if(!lvl.value) return; const sems=await fetchFolder(`https://api.github.com/repos/${config.singleRepo.owner}/${config.singleRepo.repo}/contents/${lvl.value}`); populateDropdown(sem,sems); });
sem.addEventListener("change",async()=>{ resetDropdowns(prog); if(!sem.value) return; const programs=await fetchFolder(`https://api.github.com/repos/${config.singleRepo.owner}/${config.singleRepo.repo}/contents/${sem.value}`); populateDropdown(prog,programs); });
document.getElementById("searchBtn").addEventListener("click",async()=>{ if(!prog.value){showMessage("Please select a program first."); return;} const files=await loadPDFsForProgram(); displayPDFs(files); });
/* SC Tools */
document.getElementById("scOpenAI").addEventListener("click",()=>{ const ai=document.getElementById("scAI").value; if(!ai){ alert("Select AI"); return;} let url=""; switch(ai){ case "chatgpt": url="https://chat.openai.com/"; break; case "copilot": url="https://copilot.microsoft.com/"; break; case "deepseek": url="https://deepseek.ai/"; break; case "questionai": url="https://questionai.com/"; break;} window.open(url,"_blank"); });
document.getElementById("scOpenPDF").addEventListener("click",()=>{ const sel=scPDF.value; const up=document.getElementById("scPDFInput").files[0]; if(up){ const url=URL.createObjectURL(up); window.open(url,"_blank"); if(!recentOpened.includes(up.name)) recentOpened.unshift(up.name); if(recentOpened.length>10) recentOpened.pop(); updateRecentUI(); return;} if(sel){ window.open(sel,"_blank"); if(!recentOpened.includes(sel)) recentOpened.unshift(sel); if(recentOpened.length>10) recentOpened.pop(); updateRecentUI(); return;} alert("Select PDF or upload one!"); });
</script>
</html>