OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
assets
/
js
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
04/17/2025 09:15:05 AM
rwxrwxr-x
📄
25_11_24stream.js
16.73 KB
11/21/2024 12:24:11 PM
rw-r--r--
📄
bbcommon.js
46.36 KB
01/08/2025 07:45:55 AM
rw-r--r--
📄
bcommon.js
46.88 KB
11/13/2024 02:39:46 PM
rw-r--r--
📄
common.js
59.76 KB
06/17/2025 08:40:01 AM
rw-r--r--
📄
genai_func.js
13.81 KB
11/15/2024 01:01:34 PM
rw-rw-r--
📄
magnific-popup.min.js
19.74 KB
11/13/2024 02:39:40 PM
rw-r--r--
📄
main.js
4.98 KB
01/04/2025 11:02:19 AM
rw-r--r--
📄
new_social_script.js
11.82 KB
04/17/2025 09:15:27 AM
rw-r--r--
📄
scripts.js
1.49 KB
11/22/2024 07:32:22 AM
rw-rw-r--
📄
stream.js
16.86 KB
03/28/2025 05:41:53 AM
rw-r--r--
Editing: main.js
Close
/** * Template Name: QuickStart * Template URL: https://bootstrapmade.com/quickstart-bootstrap-startup-website-template/ * Updated: Aug 07 2024 with Bootstrap v5.3.3 * Author: BootstrapMade.com * License: https://bootstrapmade.com/license/ */ (function() { "use strict"; /** * Apply .scrolled class to the body as the page is scrolled down */ function toggleScrolled() { const selectBody = document.querySelector('body'); const selectHeader = document.querySelector('#header'); if (!selectHeader.classList.contains('scroll-up-sticky') && !selectHeader.classList.contains('sticky-top') && !selectHeader.classList.contains('fixed-top')) return; window.scrollY > 100 ? selectBody.classList.add('scrolled') : selectBody.classList.remove('scrolled'); } document.addEventListener('scroll', toggleScrolled); window.addEventListener('load', toggleScrolled); /** * Mobile nav toggle */ const mobileNavToggleBtn = document.querySelector('.mobile-nav-toggle'); function mobileNavToogle() { document.querySelector('body').classList.toggle('mobile-nav-active'); mobileNavToggleBtn.classList.toggle('bi-list'); mobileNavToggleBtn.classList.toggle('bi-x'); } mobileNavToggleBtn.addEventListener('click', mobileNavToogle); /** * Hide mobile nav on same-page/hash links */ document.querySelectorAll('#navmenu a').forEach(navmenu => { navmenu.addEventListener('click', () => { if (document.querySelector('.mobile-nav-active')) { mobileNavToogle(); } }); }); /** * Toggle mobile nav dropdowns */ document.querySelectorAll('.navmenu .toggle-dropdown').forEach(navmenu => { navmenu.addEventListener('click', function(e) { e.preventDefault(); this.parentNode.classList.toggle('active'); this.parentNode.nextElementSibling.classList.toggle('dropdown-active'); e.stopImmediatePropagation(); }); }); /** * Preloader */ const preloader = document.querySelector('#preloader'); if (preloader) { window.addEventListener('load', () => { preloader.remove(); }); } /** * Scroll top button */ let scrollTop = document.querySelector('.scroll-top'); function toggleScrollTop() { if (scrollTop) { window.scrollY > 100 ? scrollTop.classList.add('active') : scrollTop.classList.remove('active'); } } scrollTop.addEventListener('click', (e) => { e.preventDefault(); window.scrollTo({ top: 0, behavior: 'smooth' }); }); window.addEventListener('load', toggleScrollTop); document.addEventListener('scroll', toggleScrollTop); /** * Animation on scroll function and init */ function aosInit() { AOS.init({ duration: 600, easing: 'ease-in-out', once: true, mirror: false }); } window.addEventListener('load', aosInit); /** * Initiate glightbox */ const glightbox = GLightbox({ selector: '.glightbox' }); /** * Frequently Asked Questions Toggle */ document.querySelectorAll('.faq-item h3, .faq-item .faq-toggle').forEach((faqItem) => { faqItem.addEventListener('click', () => { faqItem.parentNode.classList.toggle('faq-active'); }); }); /** * Init swiper sliders */ function initSwiper() { document.querySelectorAll(".init-swiper").forEach(function(swiperElement) { let config = JSON.parse( swiperElement.querySelector(".swiper-config").innerHTML.trim() ); if (swiperElement.classList.contains("swiper-tab")) { initSwiperWithCustomPagination(swiperElement, config); } else { new Swiper(swiperElement, config); } }); } window.addEventListener("load", initSwiper); /** * Correct scrolling position upon page load for URLs containing hash links. */ window.addEventListener('load', function(e) { if (window.location.hash) { if (document.querySelector(window.location.hash)) { setTimeout(() => { let section = document.querySelector(window.location.hash); let scrollMarginTop = getComputedStyle(section).scrollMarginTop; window.scrollTo({ top: section.offsetTop - parseInt(scrollMarginTop), behavior: 'smooth' }); }, 100); } } }); /** * Navmenu Scrollspy */ let navmenulinks = document.querySelectorAll('.navmenu a'); function navmenuScrollspy() { navmenulinks.forEach(navmenulink => { if (!navmenulink.hash) return; let section = document.querySelector(navmenulink.hash); if (!section) return; let position = window.scrollY + 200; if (position >= section.offsetTop && position <= (section.offsetTop + section.offsetHeight)) { document.querySelectorAll('.navmenu a.active').forEach(link => link.classList.remove('active')); navmenulink.classList.add('active'); } else { navmenulink.classList.remove('active'); } }) } window.addEventListener('load', navmenuScrollspy); document.addEventListener('scroll', navmenuScrollspy); })();