X7ROOT File Manager
Current Path:
/home/u126090504/domains/saiadarshainternationalschool.org.in/public_html
home
/
u126090504
/
domains
/
saiadarshainternationalschool.org.in
/
public_html
/
📁
..
📄
.htaccess
(0 B)
📄
Antiraging-Cell.php
(2.73 KB)
📄
SVM-INT (1) (1).zip
(117.51 MB)
📄
about-us.php
(5.86 KB)
📄
academic-calendar.php
(2.73 KB)
📄
achievements.php
(9.56 KB)
📄
achievers.php
(15.19 KB)
📁
admin
📄
admission-process.php
(6.85 KB)
📄
admission.php
(12.93 KB)
📄
admission_submit.php
(3.38 KB)
📄
album.php
(890 B)
📄
assessment-policy.php
(6.8 KB)
📄
cbse-curriculum-summary.php
(5.99 KB)
📄
computer-courses.php
(22.83 KB)
📄
config.php
(1.27 KB)
📄
contact-us.php
(14.63 KB)
📄
contactdb.php
(796 B)
📄
courses.php
(10.44 KB)
📁
css
📄
director's-message.php
(6.54 KB)
📄
downloads.php
(2.9 KB)
📄
error.log
(14.6 KB)
📄
facilities.php
(6.04 KB)
📄
faculty.php
(10.27 KB)
📄
fee-structure.php
(7.97 KB)
📁
fonts
📄
footer.php
(23.95 KB)
📄
franchise.php
(2.09 KB)
📄
gallery.php
(3.05 KB)
📄
google929b505e9f42f894.html
(53 B)
📄
grievance-form.php
(16.52 KB)
📄
header.php
(19.69 KB)
📄
homework.php
(9.64 KB)
📁
images
📄
index.php
(39.38 KB)
📄
infrastructure-details.php
(5.39 KB)
📁
js
📁
lib
📄
managing-committee.php
(3.34 KB)
📄
media-corner.php
(2.48 KB)
📄
non-academic-achievers.php
(14.65 KB)
📄
payment.php
(21.85 KB)
📄
payment_submit.php
(15.1 KB)
📄
payment_verify.php
(2.31 KB)
📄
placement.php
(8.33 KB)
📄
principal's-message.php
(6.65 KB)
📄
public-disclosure.php
(3.38 KB)
📁
qrcodes
📁
revolution
📁
sai
📄
scope.php
(14.14 KB)
📄
search_videos.php
(1.76 KB)
📄
sitemap.xml
(4.69 KB)
📄
subjects-offered.php
(6 KB)
📄
submit-grievance.php
(3.88 KB)
📁
svm
📄
thank-you.php
(1.28 KB)
📄
u126090504_svmint.sql
(40.87 KB)
📁
uploads
📄
videos.php
(6.87 KB)
Editing: footer.php
<?php // footer.php — KIPS (Modern Red/Black + Full-Section Particles) ?> <!-- ====== FOOTER (Modern Particle Theme) ====== --> <!-- 🔴 Black & Red Sticky Top Bar (Mobile Only) --> <div class="mobile-sticky-top"> <a href="payment.php"> <i class="fa fa-indian-rupee-sign"></i> <span>Pay Online</span> </a> <a href="homework.php"> <i class="fa fa-book"></i> <span>Home Work</span> </a> </div> <script> jQuery(function ($) { function bindMobileSubmenus() { // Remove any old handlers then bind fresh (prevents double-binding) $('#menu .has-submenu > a').off('click.mobile').on('click.mobile', function (e) { if (window.matchMedia('(max-width: 991px)').matches) { var $link = $(this); var $li = $link.parent(); var $sub = $li.children('.mega-submenu'); // Toggle open/close e.preventDefault(); // stop navigation for toggling if (!$li.hasClass('open')) { // Close siblings $li.siblings('.has-submenu.open').removeClass('open') .children('.mega-submenu').stop(true, true).slideUp(200) .prev('a.mega-menu-link').attr('aria-expanded','false'); $li.addClass('open'); $sub.stop(true, true).slideDown(200); $link.attr('aria-expanded', 'true'); } else { $li.removeClass('open'); $sub.stop(true, true).slideUp(200); $link.attr('aria-expanded', 'false'); } } }); } bindMobileSubmenus(); // When resizing back to desktop, reset styles/classes $(window).on('resize', function () { if (!window.matchMedia('(max-width: 991px)').matches) { $('#menu .has-submenu').removeClass('open') .children('.mega-submenu').removeAttr('style'); $('#menu .has-submenu > a').attr('aria-expanded','false'); } }); }); </script> <style> :root{ --footer-bg: #880f0f; /* black */ --accent: #eae500; /* red */ --text: #FFFFFF; --muted: #D9D9D9; /* 🔽 adjust these to change FB box height */ --fb-height-desktop: 420px; --fb-height-mobile: 460px; /* map height */ --map-height-desktop: 410px; --map-height-mobile: 300px; } .footer.kips-footer{ position: relative; color: var(--text); background: radial-gradient(1200px 600px at 15% 0%, rgba(234,0,0,0.10) 0%, rgba(0,0,0,0) 55%), radial-gradient(800px 400px at 85% 20%, rgba(234,0,0,0.10) 0%, rgba(0,0,0,0) 60%), linear-gradient(180deg, #0a0a0a 0%, #880f0f 45%, #060606 100%); border-top: 3px solid var(--accent); border-bottom: 3px solid var(--accent); box-shadow: inset 0 1px 0 rgba(234,0,0,0.25), 0 0 30px rgba(234,0,0,0.10); overflow: hidden; /* ensures particles stay clipped to footer edges */ isolation: isolate; } /* sweeping sheen */ .footer.kips-footer::before{ content:""; position:absolute; inset:-20% -50% auto -50%; height: 140%; background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%); transform: rotate(8deg) translateX(-110%); animation: kipsSweep 9s linear infinite; pointer-events:none; } @keyframes kipsSweep{ 0% { transform: rotate(8deg) translateX(-110%); opacity:.6; } 50% { opacity:.35; } 100% { transform: rotate(8deg) translateX(110%); opacity:.6; } } /* particles canvas: full footer cover */ .kips-particles{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; filter: blur(0.3px); } .footer .second-footer{ position: relative; z-index:1; } .footer .widget-area{ margin-bottom:32px; } .footer .widget{ background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)); border: 1px solid rgba(234,0,0,0.30); border-radius: 14px; box-shadow: inset 0 1px 10px rgba(234,0,0,0.10), 0 10px 28px rgba(0,0,0,.45), 0 0 0 2px rgba(234,0,0,.06); padding: 18px 16px; backdrop-filter: blur(2px); } .footer .widget-title{ font-weight: 800; letter-spacing:.2px; margin-bottom: 18px; display:inline-flex; align-items:center; gap:10px; text-transform: uppercase; color:#fff; filter: drop-shadow(0 2px 6px rgba(234,0,0,.35)); } .footer .widget-title::before{ content:""; width:10px; height:10px; border-radius:50%; background: var(--accent); box-shadow: 0 0 12px rgba(234,0,0,.9), 0 0 2px rgba(234,0,0,1); } .footer .widget-title::after{ content:""; display:block; height:3px; width:38px; background: linear-gradient(90deg, var(--accent), rgba(234,0,0,0)); border-radius: 999px; } .footer .textwidget{ color: var(--muted); line-height:1.75; text-align: justify; } .footer a{ color:#ffb3b3; text-decoration:none; transition: all .25s ease; } .footer a:hover{ color:#ffffff; text-shadow: 0 0 10px rgba(234,0,0,.9), 0 0 2px rgba(234,0,0,1); } /* list links styling */ #menu-footer-quick-links{ list-style:none; padding-left:0; margin:0; display:flex; flex-direction:column; gap:10px; } #menu-footer-quick-links li a{ display:inline-flex; align-items:flex-start; gap:8px; padding:6px 0; border-bottom: 1px dashed rgba(234,0,0,.35); } #menu-footer-quick-links li:last-child a{ border-bottom:none; } /* FB & Map boxes with fixed, tunable heights */ .fb-box, .map-box{ width:100%; border-radius:12px; overflow:hidden; border:1px solid rgba(234,0,0,.45); box-shadow: 0 0 0 2px rgba(234,0,0,.08), 0 10px 24px rgba(0,0,0,.45); background: #0a0a0a; } .fb-box{ height: var(--fb-height-desktop); } .map-box{ height: var(--map-height-desktop); } .fb-box iframe, .map-box iframe{ width:100%; height:100%; border:0; } /* bottom bar */ .bottom-footer-text{ position:relative; z-index:1; border-top: 2px solid rgba(234,0,0,.45); background: linear-gradient(180deg, rgba(234,0,0,0.10), rgba(0,0,0,0) 30%); } .bottom-footer-text .credit{ color:#ffb3b3; padding:16px 0; } .bottom-footer-text .credit a{ color:#ffffff; text-decoration: underline dotted; } /* subtle ambient glow at edges */ .footer.kips-footer .glow-border{ position:absolute; inset:0; pointer-events:none; z-index:0; background: radial-gradient(600px 120px at 20% 100%, rgba(234,0,0,.25), transparent 60%), radial-gradient(420px 120px at 80% 100%, rgba(234,0,0,.18), transparent 60%); mix-blend-mode: screen; } /* responsive */ @media (max-width: 991.98px){ .fb-box{ height: var(--fb-height-mobile); } .map-box{ height: var(--map-height-mobile); } } /* accessibility: reduce motion */ @media (prefers-reduced-motion: reduce){ .footer.kips-footer::before{ animation: none !important; } } </style> <footer class="footer ttm-bgcolor-darkgrey ttm-textcolor-white clearfix kips-footer" data-aos="fade-up"> <!-- particles layer covering FULL footer --> <canvas id="kipsParticles" class="kips-particles" aria-hidden="true"></canvas> <span class="glow-border" aria-hidden="true"></span> <div class="second-footer"> <div class="container"> <div class="row gx-24"> <!-- About --> <div class="col-xs-12 col-sm-6 col-md-6 col-lg-4 widget-area"> <div class="widget widget_text clearfix"> <h3 class="widget-title">About Us</h3> <div class="textwidget widget-text"> Sai Adarsha International School is a leading CBSE school in Baripada, Mayurbhanj, dedicated to nurturing young minds through quality education, strong values, and holistic development. We provide CBSE curriculum education from Nursery to Class VIII, focusing on academic excellence along with character building.<br/>At Sai Adarsha International School, we follow a child-centric and activity-based learning approach. Our experienced teachers use modern teaching methods, smart classrooms, and practical learning techniques to make education engaging and effective. </div> </div> </div> <!-- Facebook --> <div class="col-xs-12 col-sm-6 col-md-6 col-lg-4 widget-area"> <div class="widget widget_nav_menu clearfix"> <h3 class="widget-title">Instagram</h3> <ul id="menu-footer-quick-links"> <blockquote class="instagram-media" data-instgrm-permalink="https://www.instagram.com/saiadarshaint.school/?utm_source=ig_embed&utm_campaign=loading" data-instgrm-version="14" style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:658px; min-width:326px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);"><div style="padding:16px;"> <a href="https://www.instagram.com/saiadarshaint.school/?utm_source=ig_embed&utm_campaign=loading" style=" background:#FFFFFF; line-height:0; padding:0 0; text-align:center; text-decoration:none; width:100%;" target="_blank"> <div style=" display: flex; flex-direction: row; align-items: center;"> <div style="background-color: #F4F4F4; border-radius: 50%; flex-grow: 0; height: 40px; margin-right: 14px; width: 40px;"></div> <div style="display: flex; flex-direction: column; flex-grow: 1; justify-content: center;"> <div style=" background-color: #F4F4F4; border-radius: 4px; flex-grow: 0; height: 14px; margin-bottom: 6px; width: 100px;"></div> <div style=" background-color: #F4F4F4; border-radius: 4px; flex-grow: 0; height: 14px; width: 60px;"></div></div></div><div style="padding: 19% 0;"></div> <div style="display:block; height:50px; margin:0 auto 12px; width:50px;"><svg width="50px" height="50px" viewBox="0 0 60 60" version="1.1" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-511.000000, -20.000000)" fill="#000000"><g><path d="M556.869,30.41 C554.814,30.41 553.148,32.076 553.148,34.131 C553.148,36.186 554.814,37.852 556.869,37.852 C558.924,37.852 560.59,36.186 560.59,34.131 C560.59,32.076 558.924,30.41 556.869,30.41 M541,60.657 C535.114,60.657 530.342,55.887 530.342,50 C530.342,44.114 535.114,39.342 541,39.342 C546.887,39.342 551.658,44.114 551.658,50 C551.658,55.887 546.887,60.657 541,60.657 M541,33.886 C532.1,33.886 524.886,41.1 524.886,50 C524.886,58.899 532.1,66.113 541,66.113 C549.9,66.113 557.115,58.899 557.115,50 C557.115,41.1 549.9,33.886 541,33.886 M565.378,62.101 C565.244,65.022 564.756,66.606 564.346,67.663 C563.803,69.06 563.154,70.057 562.106,71.106 C561.058,72.155 560.06,72.803 558.662,73.347 C557.607,73.757 556.021,74.244 553.102,74.378 C549.944,74.521 548.997,74.552 541,74.552 C533.003,74.552 532.056,74.521 528.898,74.378 C525.979,74.244 524.393,73.757 523.338,73.347 C521.94,72.803 520.942,72.155 519.894,71.106 C518.846,70.057 518.197,69.06 517.654,67.663 C517.244,66.606 516.755,65.022 516.623,62.101 C516.479,58.943 516.448,57.996 516.448,50 C516.448,42.003 516.479,41.056 516.623,37.899 C516.755,34.978 517.244,33.391 517.654,32.338 C518.197,30.938 518.846,29.942 519.894,28.894 C520.942,27.846 521.94,27.196 523.338,26.654 C524.393,26.244 525.979,25.756 528.898,25.623 C532.057,25.479 533.004,25.448 541,25.448 C548.997,25.448 549.943,25.479 553.102,25.623 C556.021,25.756 557.607,26.244 558.662,26.654 C560.06,27.196 561.058,27.846 562.106,28.894 C563.154,29.942 563.803,30.938 564.346,32.338 C564.756,33.391 565.244,34.978 565.378,37.899 C565.522,41.056 565.552,42.003 565.552,50 C565.552,57.996 565.522,58.943 565.378,62.101 M570.82,37.631 C570.674,34.438 570.167,32.258 569.425,30.349 C568.659,28.377 567.633,26.702 565.965,25.035 C564.297,23.368 562.623,22.342 560.652,21.575 C558.743,20.834 556.562,20.326 553.369,20.18 C550.169,20.033 549.148,20 541,20 C532.853,20 531.831,20.033 528.631,20.18 C525.438,20.326 523.257,20.834 521.349,21.575 C519.376,22.342 517.703,23.368 516.035,25.035 C514.368,26.702 513.342,28.377 512.574,30.349 C511.834,32.258 511.326,34.438 511.181,37.631 C511.035,40.831 511,41.851 511,50 C511,58.147 511.035,59.17 511.181,62.369 C511.326,65.562 511.834,67.743 512.574,69.651 C513.342,71.625 514.368,73.296 516.035,74.965 C517.703,76.634 519.376,77.658 521.349,78.425 C523.257,79.167 525.438,79.673 528.631,79.82 C531.831,79.965 532.853,80.001 541,80.001 C549.148,80.001 550.169,79.965 553.369,79.82 C556.562,79.673 558.743,79.167 560.652,78.425 C562.623,77.658 564.297,76.634 565.965,74.965 C567.633,73.296 568.659,71.625 569.425,69.651 C570.167,67.743 570.674,65.562 570.82,62.369 C570.966,59.17 571,58.147 571,50 C571,41.851 570.966,40.831 570.82,37.631"></path></g></g></g></svg></div><div style="padding-top: 8px;"> <div style=" color:#3897f0; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:550; line-height:18px;">View this profile on Instagram</div></div><div style="padding: 12.5% 0;"></div> <div style="display: flex; flex-direction: row; margin-bottom: 14px; align-items: center;"><div> <div style="background-color: #F4F4F4; border-radius: 50%; height: 12.5px; width: 12.5px; transform: translateX(0px) translateY(7px);"></div> <div style="background-color: #F4F4F4; height: 12.5px; transform: rotate(-45deg) translateX(3px) translateY(1px); width: 12.5px; flex-grow: 0; margin-right: 14px; margin-left: 2px;"></div> <div style="background-color: #F4F4F4; border-radius: 50%; height: 12.5px; width: 12.5px; transform: translateX(9px) translateY(-18px);"></div></div><div style="margin-left: 8px;"> <div style=" background-color: #F4F4F4; border-radius: 50%; flex-grow: 0; height: 20px; width: 20px;"></div> <div style=" width: 0; height: 0; border-top: 2px solid transparent; border-left: 6px solid #f4f4f4; border-bottom: 2px solid transparent; transform: translateX(16px) translateY(-4px) rotate(30deg)"></div></div><div style="margin-left: auto;"> <div style=" width: 0px; border-top: 8px solid #F4F4F4; border-right: 8px solid transparent; transform: translateY(16px);"></div> <div style=" background-color: #F4F4F4; flex-grow: 0; height: 12px; width: 16px; transform: translateY(-4px);"></div> <div style=" width: 0; height: 0; border-top: 8px solid #F4F4F4; border-left: 8px solid transparent; transform: translateY(-4px) translateX(8px);"></div></div></div> <div style="display: flex; flex-direction: column; flex-grow: 1; justify-content: center; margin-bottom: 24px;"> <div style=" background-color: #F4F4F4; border-radius: 4px; flex-grow: 0; height: 14px; margin-bottom: 6px; width: 224px;"></div> <div style=" background-color: #F4F4F4; border-radius: 4px; flex-grow: 0; height: 14px; width: 144px;"></div></div></a></div></blockquote> <script async src="//platform.instagram.com/en_US/embeds.js"></script> </ul> </div> </div> <!-- Address --> <div class="col-xs-12 col-sm-6 col-md-6 col-lg-4 widget-area"> <div class="widget style2 widget-out-link clearfix"> <h3 class="widget-title">Address</h3> <ul id="menu-footer-quick-links"> <li><a href="#">Indopahi, Raghunathpur, Baripada, Mayurbhanj, Odisha</a></li> <li><a href="#">9438860699 | 7537036060 | 7008656776 | 9337125014 </a></li> <li><a href="#">saiadarshainternationalschool@gmail.com </a></li> </ul> </div> </div> </div> </div> </div> <div class="bottom-footer-text text-center"> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="credit text-center pb-15"> Copyright © sai adarsha international school | Developed By <a href="https://eduwebsoft.co.in/">Eduweb Software Solutions</a> </div> </div> </div> </div> </div> </footer> <!-- ====== /FOOTER ====== --> <!-- GetButton.io widget (unchanged) --> <!-- ✅ Sticky Call (Left) + WhatsApp Business (Right) --> <style> :root { --cta-size: 58px; --cta-offset: 18px; --cta-z: 9999; } .sticky-btn { position: fixed; bottom: var(--cta-offset); width: var(--cta-size); height: var(--cta-size); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); z-index: var(--cta-z); pointer-events: auto; animation: floatIn 0.5s ease-out both; } /* Left (Call Button) */ .cta-call { left: var(--cta-offset); background-color: #E53935; animation-delay: 0.1s; } /* Right (WhatsApp Button) */ .cta-whatsapp { right: var(--cta-offset); background-color: #25D366; animation-delay: 0.2s; } /* Hover effects */ .sticky-btn:hover { transform: scale(1.08); } /* Pulse Animation */ .sticky-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.15); animation: pulse 1.8s ease-out infinite; z-index: -1; } @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.18); } 70% { box-shadow: 0 0 0 18px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } } /* Floating entrance */ @keyframes floatIn { from { opacity: 0; transform: translateY(20px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } } /* Responsive bottom space fix */ @media (max-width: 520px) { .sticky-btn { bottom: 14px; } } </style> <!-- 📞 CALL BUTTON --> <a href="tel:+917507036060" class="sticky-btn cta-call" aria-label="Call Us"> <svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" fill="white" viewBox="0 0 24 24"> <path d="M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24c1.11.37 2.31.57 3.58.57a1 1 0 011 1v3.5a1 1 0 01-1 1C11.4 21.82 2.18 12.6 2.18 2a1 1 0 011-1H6.7a1 1 0 011 1c0 1.27.2 2.47.57 3.58a1 1 0 01-.24 1.01l-2.2 2.2z"/> </svg> </a> <!-- 🟢 WHATSAPP BUSINESS BUTTON --> <!-- ================= WHATSAPP STICKY BUTTON (ONE SHEET) ================= --> <style> .cta-whatsapp{ position:fixed; right:20px; bottom:20px; width:60px; height:60px; background:#25D366; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 25px rgba(0,0,0,.25); z-index:9999; cursor:pointer; transition:.3s ease; } .cta-whatsapp:hover{ transform:scale(1.1); } /* Hover text bubble */ .cta-whatsapp::before{ content:"How may I assist you?"; position:absolute; right:70px; background:#111; color:#fff; padding:8px 12px; border-radius:6px; font-size:13px; white-space:nowrap; opacity:0; transform:translateY(10px); transition:.3s ease; pointer-events:none; } .cta-whatsapp:hover::before{ opacity:1; transform:translateY(0); } </style> <a id="whatsappBtn" href="https://wa.me/919438860699" target="_blank" rel="noopener noreferrer" aria-label="Chat on WhatsApp" class="cta-whatsapp"> <svg viewBox="0 0 32 32" width="28" height="28"> <path d="M16 3C9.38 3 4 8.38 4 15c0 2.52.76 4.85 2.07 6.78L5 29l7.4-1.94A11.9 11.9 0 0016 27c6.62 0 12-5.38 12-12S22.62 3 16 3z" fill="#fff"/> <text x="16" y="20" text-anchor="middle" font-size="14" font-weight="700" fill="#25D366">B</text> </svg> </a> <script> const waBtn = document.getElementById("whatsappBtn"); waBtn.addEventListener("mouseenter", () => { waBtn.href = "https://wa.me/919438860699?text=" + encodeURIComponent( "Hello Sai Adarsha International School Team, I would like to enquire about admissions. Please share details regarding classes, fees structure and admission process. Thank you.!" ); }); </script> <!-- ================= END WHATSAPP BUTTON ================= --> <!-- ✅ /Sticky Footer Buttons --> <!-- AOS --> <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script> <script>AOS.init({ offset: 300, duration: 1700 });</script> <!-- Your Scripts --> <script src="js/custom.js"></script> <script> // Mobile menu toggle document.addEventListener("DOMContentLoaded", function(){ var btn = document.querySelector(".btn-show-menu-mobile"); if(btn){ btn.addEventListener("click", function(){ var menu = document.getElementById("menu"); if(menu){ menu.style.display = (getComputedStyle(menu).display === "none") ? "block" : "none"; } }); } }); </script> <script src="js/custom-header.js"></script> <!-- Lightweight Particles (full-section, red on black, no external lib) --> <script> (function(){ const footer = document.querySelector('footer.kips-footer'); const cvs = document.getElementById('kipsParticles'); if(!footer || !cvs) return; const ctx = cvs.getContext('2d'); const DPR = Math.min(window.devicePixelRatio || 1, 2); let w=0, h=0, particles = [], raf; const RED = 'rgba(228,207,6,'; // opacity appended at render function makeParticle(){ const speed = 0.12 + Math.random()*0.35; // slow float return { x: Math.random()*w, y: Math.random()*h, r: 0.8 + Math.random()*2.2, vx: (Math.random()*2-1)*speed, vy: (Math.random()*2-1)*speed, a: 0.08 + Math.random()*0.22 }; } function resize(){ const rect = footer.getBoundingClientRect(); // ✅ FULL FOOTER SIZE const newW = Math.max(1, Math.floor(rect.width * DPR)); const newH = Math.max(1, Math.floor(rect.height * DPR)); if(newW === w && newH === h) return; // avoid redundant work w = newW; h = newH; cvs.width = w; cvs.height = h; cvs.style.width = rect.width + 'px'; cvs.style.height = rect.height + 'px'; const target = Math.max(60, Math.min(240, Math.floor((w*h)/(12000)))); if(particles.length < target){ for(let i=particles.length; i<target; i++) particles.push(makeParticle()); } else { particles.length = target; } } function step(){ ctx.clearRect(0,0,w,h); // soft red vignette const g = ctx.createRadialGradient(w*0.5,h*0.2,0, w*0.5,h*0.2, Math.max(w,h)*0.8); g.addColorStop(0, 'rgba(234,0,0,0.04)'); g.addColorStop(1, 'rgba(0,0,0,0)'); ctx.fillStyle = g; ctx.fillRect(0,0,w,h); // points for(const p of particles){ p.x += p.vx; p.y += p.vy; // wrap edges if(p.x < -10) p.x = w+10; if(p.x > w+10) p.x = -10; if(p.y < -10) p.y = h+10; if(p.y > h+10) p.y = -10; ctx.beginPath(); ctx.arc(p.x, p.y, p.r*DPR, 0, Math.PI*2); ctx.fillStyle = RED + p.a + ')'; ctx.shadowColor = 'rgba(234,0,0,0.6)'; ctx.shadowBlur = 10*DPR; ctx.fill(); ctx.shadowBlur = 0; } // connecting lines (short distances) for(let i=0;i<particles.length;i++){ for(let j=i+1;j<particles.length;j++){ const a = particles[i], b = particles[j]; const dx = a.x-b.x, dy = a.y-b.y, d2 = dx*dx+dy*dy; const maxD = 140*DPR; if(d2 < maxD*maxD){ const o = 0.12 - d2/(maxD*maxD)*0.12; if(o > 0){ ctx.beginPath(); ctx.moveTo(a.x, a.y); ctx.lineTo(b.x, b.y); ctx.strokeStyle = RED + (o*0.8) + ')'; ctx.lineWidth = 0.6*DPR; ctx.stroke(); } } } } raf = requestAnimationFrame(step); } // observe footer size (handles responsive + content height) const ro = new ResizeObserver(resize); ro.observe(footer); // pause when tab hidden let running = true; document.addEventListener('visibilitychange', () => { if(document.hidden){ running=false; cancelAnimationFrame(raf); } else if(!running){ running=true; step(); } }); resize(); step(); })(); </script>
Upload File
Create Folder