-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
871 lines (719 loc) · 25.9 KB
/
index.html
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
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Learn Computer Courses Online for Free - HTML, CSS, JavaScript, C++, Python, and more.">
<title>Computer Course Learning</title>
<link rel="stylesheet" href="styles.css">
<script defer src="script.js"></script>
<meta name="google-adsense-account" content="ca-pub-7177604928905730">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7177604928905730" crossorigin="anonymous"></script>
</head>
<body>
<header>
<h1>Computer Course Learning</h1>
<button id="darkModeToggle">🌙</button>
<button class="button" id="toggleButton">☰ menu</button>
<div class="m">
<div id="toolbox" class="toolbo hidden">
<ul class="ul" id="navMenu">
<li class="li"><a href="index.html">Home</a></li>
<li class="li"><a href="#" onclick="navigateTo('ht.html')">HTML</a></li>
<li class="li"><a href="#" onclick="navigateTo('cs.html')">CSS</a></li>
<li class="li"><a href="#" onclick="navigateTo('js.html')">JavaScript</a></li>
<li class="li"><a href="#" onclick="navigateTo('auth.html')">Login</a></li>
</ul>
</div>
</div>
</header>
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-7177604928905730" data-ad-slot="5678901234" data-ad-format="auto"></ins>
<section class="hero">
<h2>Learn Computer Courses for Free!</h2>
<p>Start learning HTML, CSS, JavaScript, Computer History, Generation, and Upgrade Windows System. Test Your Brain.</p>
<a href="#" onclick="navigateTo('Test.html')" class="btn">Start Learning</a>
</section>
<section class="courses">
<h2>Available Courses</h2>
<div class="course-container">
<div class="course">
<h3>What is Computer</h3>
<p>Learn the Basics of the Computer.</p>
<a href="#" onclick="navigateTo('Computer.html')">Start Now</a>
</div>
<div class="course">
<h3>Input Unit</h3>
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-7177604928905730" data-ad-slot="5678901234" data-ad-format="auto"></ins>
<p>How the Input Unit sends data to the Computer System.</p>
<a href="#" onclick="navigateTo('type.html')">Start Now</a>
</div>
<div class="course">
<h3>Processing Unit</h3>
<p>Procesing Unit How To Process The Data on Computer System.</p>
<a href="#" onclick="navigateTo('pro.html')">Start Now</a>
</div>
<div class="course">
<h3>Output Unit</h3>
<p>Output Unit How Its Can Get Result on Moniter.</p>
<a href="#" onclick="navigateTo('out.html')">Start Now</a>
</div>
<div class="course">
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-7177604928905730" data-ad-slot="5678901234" data-ad-format="auto"></ins>
<h3>History </h3>
<p>Now You See History Of Computer.</p>
<a href="#" onclick="navigateTo('hi.html')">Start Now</a>
</div>
<div class="course">
<h3>Generation </h3>
<p>Now You See Genration Of Computer. in1940 to till.</p>
<a href="#" onclick="navigateTo('g.html')">Start Now</a>
</div>
<div class="course">
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-7177604928905730" data-ad-slot="5678901234" data-ad-format="auto"></ins>
<h3>Upgrade </h3>
<p>Upgrade Of Window System. in1985 to 2021.</p>
<a href="#" onclick="navigateTo('his.html')">Start Now</a>
</div>
<div class="course">
<h3>Botting </h3>
<p>Booting system is only to ony ms dos programme.</p>
<a href="#" onclick="navigateTo('boot.html')">Start Now</a>
</div>
<div class="course">
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-7177604928905730" data-ad-slot="5678901234" data-ad-format="auto"></ins>
<h3>CHARACTERS OF COMPUTER</h3>
<p>CHARACTERS OF COMPUTER</p>
<a href="#" onclick="navigateTo('chart.html')">Start Now</a>
</div>
<div class="course">
<h3>UNIT OF MEASUREMENT </h3>
<p>UNIT OF MEASUREMENT</p>
<a href="#" onclick="navigateTo('mn.html')">Start Now</a>
</div>
</div>
</section>
<!-- Google Ads -->
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-7177604928905730" data-ad-slot="5678901234" data-ad-format="auto"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
<footer>
<p class="p">© 2025 Computer Course Learning. All rights reserved.</p>
<div class="c">
<a id="toggleButton1">Privacy Policy</a>
<div id="toolbox1" class="toolbox hidden">
<div class="container">
<p>Privacy Policy</p>
<p><strong>Effective Date:</strong> <span id="date"></span></p>
<p>1. Information We Collect</p>
<p>We do not collect personal information unless you provide it voluntarily. We may collect non-personal data such as cookies or usage analytics.</p>
<p>2. How We Use Your Information</p>
<p>We use the collected data to improve our website and respond to inquiries.</p>
<p>3. Cookies & Tracking Technologies</p>
<p>We may use cookies to enhance functionality. You can disable cookies in your browser settings.</p>
<p>4. Third-Party Links</p>
<p>Our website may contain links to third-party sites. We are not responsible for their privacy policies.</p>
<p>5. Data Security</p>
<p>We take security measures, but no online transmission is 100% secure.</p>
<p>6. Changes to This Policy</p>
<p>We may update this Privacy Policy. Changes will be posted on this page.</p>
<p>7. Contact Us</p>
<p>If you have any questions, contact us at <strong>[[email protected]]</strong>.</p>
<div class="footer">
Last Updated: <span id="lastUpdated"></span>
</div>
</div>
</div>|
<a id="toggleButton2">Terms & Conditions</a>
<div id="toolbox2" class="toolbox hidden">
<div class="container">
<h2>Terms & Conditions</h2>
<p><strong>1. Purpose:</strong> This content is designed to provide basic computer knowledge for educational purposes only.</p>
<p><strong>2. Accuracy:</strong> While we strive for accuracy, we do not guarantee that all information is error-free or up-to-date.</p>
<p><strong>3. Usage:</strong> The content is for personal learning only. Do not reproduce, distribute, or use it for commercial purposes without permission.</p>
<p><strong>4. Responsibility:</strong> We are not responsible for any issues, misunderstandings, or damages resulting from the use of this content.</p>
<p><strong>5. Updates:</strong> We may update or modify the content at any time without prior notice.</p>
<p><strong>6. Acceptance:</strong> By using this content, you agree to these terms and conditions.</p>
<button class="gh" id="acceptBtn">Accept & Continue</button>
</div>
</div>|
<a id="toggleButton3">About Me.</a>
<div id="toolbox3" class="toolbox hidden">
<section id="about">
<h2>About Us</h2>
<p>We Develop This app for Learn Basics knows of Computer . Our mission is to innovate and bring value to our customers.</p>
</section>
<section id="team">
<h2>Our Team</h2>
<div class="team-member">
<p> <strong>Tikeswar</strong> </p>
<p>Founder & Creater</p>
</div>
<div class="team-member">
<p><strong>Tikeswar</strong> </p>
<p>Lead Developer</p>
</div>
</section>
<section id="contact">
<h2>Contact Us</h2>
<p>Email: <a href="mailto:[email protected]">[email protected]</a></p>
<p>Phone: +123 456 7890</p>
</section>
</div>|
<a id="toggleButton4">Contact</a>
<div id="toolbox4" class="toolbox hidden">
<div class="head">
<p class="jk">Contact Us</p>
</div>
<section id="contact-form">
<p>Get in Touch</p>
<form id="form">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="message">Message:</label>
<textarea id="message" name="message" rows="5" required></textarea>
<button type="submit">Submit</button>
</form>
</section>
<section id="contact-info">
<p >Contact Information</p>
<p>Email: <a href="mailto:[email protected]">satikeswar.com</a></p>
<p>Phone: +123 456 7890</p>
<p>Address: 123 Main Street, City, Country</p>
</section>
</div>|
<a id="toggleButton5">Sitemap</a>
<div id="toolbox5" class="toolbox hidden">
<div class="section">
<div class="section-header" onclick="toggleSection(1)">1. Introduction to Computers</div>
<div class="section-content" id="section1">
<ul class="u">
<li class="l"><a href="#">What is a Computer?</a></li>
<li class="l"><a href="#">Types of Computers</a></li>
<li class="l"><a href="#">Basic Computer Components</a></li>
</ul>
</div>
</div>
<div class="section">
<div class="section-header" onclick="toggleSection(2)">2. Operating Systems</div>
<div class="section-content" id="section2">
<ul class="u">
<li class="l"><a href="#">What is an Operating System?</a></li>
<li class="l"><a href="#">Windows Basics</a></li>
<li class="l"><a href="#">Linux Basics</a></li>
</ul>
</div>
</div>
<div class="section">
<div class="section-header" onclick="toggleSection(3)">3. Internet & Web Basics</div>
<div class="section-content" id="section3">
<ul class="u">
<li class="l"><a href="#">What is the Internet?</a></li>
<li class="l"><a href="#">Web Browsers & Search Engines</a></li>
<li class="l"><a href="#">Email & Online Safety</a></li>
</ul>
</div>
</div>
<div class="section">
<div class="section-header" onclick="toggleSection(4)">4. HTML, CSS & JavaScript</div>
<div class="section-content" id="section4">
<ul class="u">
<li class="l"><a href="#">Introduction to HTML</a></li>
<li class="l"><a href="#">Introduction to CSS</a></li>
<li class="l"><a href="#">Introduction to JavaScript</a></li>
</ul>
</div>
</div>
<div class="section">
<div class="section-header" onclick="toggleSection(5)">5. Computer Security & Privacy</div>
<div class="section-content" id="section5">
<ul class="u">
<li class="l"><a href="#">Antivirus & Firewalls</a></li>
<li class="l"><a href="#">Safe Browsing Tips</a></li>
<li class="l"><a href="#">Data Protection & Privacy</a></li>
</ul>
</div>
</div>
</div>|
</div>
</footer>
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-7177604928905730" data-ad-slot="5678901234" data-ad-format="auto"></ins>
<style>
.section {
margin-bottom: 10px;
border: 1px solid #ddd;
border-radius: 5px;
background: #f9f9f9;
}
.section-header {
padding: 10px;
cursor: pointer;
background: #007bff;
color: white;
font-weight: bold;
border-radius: 5px 5px 0 0;
}
.section-content {
display: none;
padding: 10px;
background: white;
}
.section-header:hover {
background: #0056b3;
}
.jk{
color: #f5efef;
font-size: 48px;
font-weight: bold;
}
.head{
margin-top: -50px;
background-color: #007BFF;
}
/* Form Section */
#contact-form {
background: #fff;
padding: 2rem;
margin: 1rem auto;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
width: 80%;
max-width: 600px;
}
#contact-form h2 {
margin-bottom: 1rem;
}
form label {
display: block;
color: #000;
margin-bottom: 0.5rem;
font-weight: bold;
}
form input, form textarea {
width: 100%;
padding: 0.8rem;
margin-bottom: 1rem;
border: 1px solid #ccc;
border-radius: 5px;
}
form button {
background: #007BFF;
color: #fff;
border: none;
padding: 0.8rem 1.5rem;
cursor: pointer;
border-radius: 5px;
}
form button:hover {
background: #0056b3;
}
/* Contact Info Section */
#contact-info {
text-align: center;
padding: 2rem;
background: #f4f4f4;
margin: 1rem auto;
border-radius: 5px;
width: 80%;
max-width: 600px;
}
#contact-info a {
color: #007BFF;
text-decoration: none;
}
#contact-info a:hover {
text-decoration: underline;
}
/* Footer */
footer {
text-align: center;
padding: 1rem 0;
background: #333;
color: #fff;
}
p{
color: #000;
}
.gh {
display: block;
width: 100%;
padding: 10px;
margin-top: 15px;
background: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}
.gh:hover {
background: #0056b3;
}
.button{
background-color: transparent;
color: #fdf8f8;
font-size: 28px;
border: none;
}
.m {
position: relative;
margin: 20px;
}
/* Toolbox styles */
.toolbo {
position: absolute;
top: 50px; /* Adjust to position below the button */
left: 0;
margin-left: -20px;
width: 100pxpx;
height: 300px;
padding: 15px;
background-color: #d559e0;
border: 1px solid #ddd;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, padding 0.5s ease-in-out;
overflow: hidden;
max-height: 0;
opacity: 0;
padding-top: 0;
padding-bottom: 0;
}
.toolbo.hidden {
max-height: 0;
opacity: 0;
padding-top: 0;
padding-bottom: 0;
}
.toolbo.visible {
max-height: 600px; /* Adjust based on content height */
opacity: 1;
padding-top: 15px;
padding-bottom: 15px;
}
.ul {
list-style: none;
padding: 0;
margin: 0;
text-align: center;
}
.ul .li {
display: inline;
margin: 0 10px;
}
.ul .li a {
text-decoration: none;
color: white;
font-weight: bold;
font-size: 16px;
}
.ul .li a:hover {
text-decoration: underline;
}
.ul .li {
display: block;
margin: 10px 0;
}
.c {
position: relative;
margin: 20px;
}
/* Toolbox styles */
.toolbox {
position: absolute;
top: 50px; /* Adjust to position below the button */
left: 0;
width: 380px;
height: 750px;
padding: 15px;
background-color: #ffffff;
border: 1px solid #ddd;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, padding 0.5s ease-in-out;
overflow: hidden;
max-height: 0;
opacity: 0;
padding-top: 0;
padding-bottom: 0;
}
.toolbox.hidden {
max-height: 0;
opacity: 0;
margin-left: -30px;
margin-top: -850px;
padding-top: 0;
padding-bottom: 0;
}
.toolbox.visible {
max-height: 750px; /* Adjust based on content height */
opacity: 1;
margin-left:-30px;
margin-top: -850px;
padding-top: 15px;
padding-bottom: 15px;
}
/* General Styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
transition: background 0.3s, color 0.3s;
}
/* Dark Mode */
body.dark-mode {
background-color: #222;
color: red;
}
/* Header & Navigation */
header {
background-color: #0073e6;
color: white;
padding: 15px;
text-align: center;
position: relative;
}
#darkModeToggle, #menuToggle {
position: absolute;
right: 20px;
top: 10px;
padding: 5px 10px;
background: none;
border: none;
cursor: pointer;
font-size: 20px;
}
#menuToggle {
right: 60px;
}
/* Hero Section */
.hero {
text-align: center;
padding: 40px 20px;
background: url('assets/images/hero-bg.jpg') no-repeat center center/cover;
color: transprent;
}
.hero h2 {
font-size: 24px;
}
.hero p {
font-size: 16px;
}
.hero .btn {
display: inline-block;
padding: 10px 20px;
background: #ff9800;
color: rgb(236, 227, 227);
text-decoration: none;
font-size: 16px;
border-radius: 5px;
}
.hero .btn:hover {
background: #e68900;
}
/* Courses Section */
.courses {
padding: 30px 20px;
text-align: center;
}
.course-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
/* Courses Section */
.courses {
padding: 30px 20px;
text-align: center;
max-height: 400px; /* Adjust as needed */
overflow-y: auto;
border: 2px solid #f6f7f8; /* Optional: adds a border */
}
/* Custom Scrollbar */
.courses::-webkit-scrollbar {
width: 8px;
}
.courses::-webkit-scrollbar-thumb {
background-color: #0073e6;
border-radius: 10px;
}
.courses::-webkit-scrollbar-track {
background-color: #f4f4f4;
}
.course {
background: white;
width: 250px;
margin: 10px;
padding: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
border-radius: 10px;
transition: transform 0.3s;
}
.course:hover {
transform: scale(1.05);
}
.course a {
display: block;
padding: 8px;
background: #0073e6;
color: white;
text-decoration: none;
border-radius: 5px;
}
.course a:hover {
background: #005bb5;
}
/* Footer */
footer {
text-align: center;
padding: 15px;
background: #0073e6;
}
.p{
color: white;
}
footer a {
color: #ffcc00;
text-decoration: none;
font-weight: bold;
}
footer a:hover {
text-decoration: underline;
}
</style>
<script>
// Dark Mode Toggle
document.getElementById('darkModeToggle').addEventListener('click', () => {
document.body.classList.toggle('dark-mode');
});
// Function to navigate to a specific page
function navigateTo(page) {
window.location.href = page;
}
////////////btn1
const toggleButton1 = document.getElementById('toggleButton1');
const toolbox1 = document.getElementById('toolbox1');
// Toggle toolbox visibility on button click
toggleButton1.addEventListener('click', (event) => {
event.stopPropagation(); // Prevents the document click event from closing the toolbox
toolbox1.classList.toggle('hidden');
toolbox1.classList.toggle('visible');
});
// Close toolbox if clicked outside of the button or toolbox
document.addEventListener('click', (event) => {
if (!toggleButton1.contains(event.target) && !toolbox1.contains(event.target)) {
toolbox1.classList.add('hidden');
toolbox1.classList.remove('visible');
}
});
////////////btn2
const toggleButton2 = document.getElementById('toggleButton2');
const toolbox2 = document.getElementById('toolbox2');
// Toggle toolbox visibility on button click
toggleButton2.addEventListener('click', (event) => {
event.stopPropagation(); // Prevents the document click event from closing the toolbox
toolbox2.classList.toggle('hidden');
toolbox2.classList.toggle('visible');
});
// Close toolbox if clicked outside of the button or toolbox
document.addEventListener('click', (event) => {
if (!toggleButton2.contains(event.target) && !toolbox2.contains(event.target)) {
toolbox2.classList.add('hidden');
toolbox2.classList.remove('visible');
}
});
////////////btn3
const toggleButton3 = document.getElementById('toggleButton3');
const toolbox3 = document.getElementById('toolbox3');
// Toggle toolbox visibility on button click
toggleButton3.addEventListener('click', (event) => {
event.stopPropagation(); // Prevents the document click event from closing the toolbox
toolbox3.classList.toggle('hidden');
toolbox3.classList.toggle('visible');
});
// Close toolbox if clicked outside of the button or toolbox
document.addEventListener('click', (event) => {
if (!toggleButton3.contains(event.target) && !toolbox3.contains(event.target)) {
toolbox3.classList.add('hidden');
toolbox3.classList.remove('visible');
}
});
////////////btn4
const toggleButton4 = document.getElementById('toggleButton4');
const toolbox4 = document.getElementById('toolbox4');
// Toggle toolbox visibility on button click
toggleButton4.addEventListener('click', (event) => {
event.stopPropagation(); // Prevents the document click event from closing the toolbox
toolbox4.classList.toggle('hidden');
toolbox4.classList.toggle('visible');
});
// Close toolbox if clicked outside of the button or toolbox
document.addEventListener('click', (event) => {
if (!toggleButton4.contains(event.target) && !toolbox4.contains(event.target)) {
toolbox4.classList.add('hidden');
toolbox4.classList.remove('visible');
}
});
////////////btn5
const toggleButton5 = document.getElementById('toggleButton5');
const toolbox5 = document.getElementById('toolbox5');
// Toggle toolbox visibility on button click
toggleButton5.addEventListener('click', (event) => {
event.stopPropagation(); // Prevents the document click event from closing the toolbox
toolbox5.classList.toggle('hidden');
toolbox5.classList.toggle('visible');
});
// Close toolbox if clicked outside of the button or toolbox
document.addEventListener('click', (event) => {
if (!toggleButton5.contains(event.target) && !toolbox5.contains(event.target)) {
toolbox5.classList.add('hidden');
toolbox5.classList.remove('visible');
}
});
const toggleButton = document.getElementById('toggleButton');
const toolbox = document.getElementById('toolbox');
// Toggle toolbox visibility on button click
toggleButton.addEventListener('click', (event) => {
event.stopPropagation(); // Prevents the document click event from closing the toolbox
toolbox.classList.toggle('hidden');
toolbox.classList.toggle('visible');
});
// Close toolbox if clicked outside of the button or toolbox
document.addEventListener('click', (event) => {
if (!toggleButton.contains(event.target) && !toolbox.contains(event.target)) {
toolbox.classList.add('hidden');
toolbox.classList.remove('visible');
}
});
// Set current date as effective date
document.getElementById("date").textContent = new Date().toLocaleDateString();
// Set last updated date dynamically
document.getElementById("lastUpdated").textContent = document.lastModified;
document.getElementById("acceptBtn").addEventListener("click", function() {
alert("You have accepted the Terms & Conditions.");
window.location.href = "index.html"; // Change this to your main page
});
document.addEventListener('DOMContentLoaded', () => {
const form = document.getElementById('form');
form.addEventListener('submit', (e) => {
e.preventDefault();
const name = document.getElementById('name').value;
const email = document.getElementById('email').value;
const message = document.getElementById('message').value;
if (name && email && message) {
alert(`Thank you, ${name}! Your message has been received.`);
form.reset();
} else {
alert('Please fill in all fields.');
}
});
});
function toggleSection(id) {
let section = document.getElementById('section' + id);
section.style.display = section.style.display === 'block' ? 'none' : 'block';
}
</script>
</body>
</html>