���� JFIF fdasasfas213sdaf
Server IP : 88.222.243.41 / Your IP : 216.73.216.200 Web Server : LiteSpeed System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64 User : u479334040 ( 479334040) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/u479334040/domains/avsrosystem.com/public_html/assets/js/ |
Upload File : |
const rippleBtns = document.getElementsByClassName("ripple"); function createRipple(event) { // Create the ripple span element let ripples = document.createElement("span"); // Calculate the position relative to the button element let x = event.clientX - event.target.getBoundingClientRect().left; let y = event.clientY - event.target.getBoundingClientRect().top; // Set the position of the ripple within the button element ripples.style.left = x + "px"; ripples.style.top = y + "px"; // Append the ripple to the button event.target.appendChild(ripples); // Set a timeout to remove the ripple after 1000 milliseconds let clearTimeoutHandle = setTimeout(() => { ripples.remove(); }, 1000); // Remove the ripple immediately if the mouse leaves the button event.target.addEventListener("mouseout", function () { clearTimeout(clearTimeoutHandle); ripples.remove(); }); } // Attach the createRipple function to each button for (let i = 0; i < rippleBtns.length; i++) { const rippleBtn = rippleBtns[i]; rippleBtn.addEventListener("mouseover", createRipple); } (function () { var parent = document.querySelector("#rangeSlider"); if (!parent) return; var rangeS = parent.querySelectorAll("input[type=range]"), numberS = parent.querySelectorAll("input[type=number]"); rangeS.forEach(function (el) { el.oninput = function () { var slide1 = parseFloat(rangeS[0].value), slide2 = parseFloat(rangeS[1].value); if (slide1 > slide2) { [slide1, slide2] = [slide2, slide1]; } numberS[0].value = slide1; numberS[1].value = slide2; }; }); numberS.forEach(function (el) { el.oninput = function () { var number1 = parseFloat(numberS[0].value), number2 = parseFloat(numberS[1].value); if (number1 > number2) { var tmp = number1; numberS[0].value = number2; numberS[1].value = tmp; } rangeS[0].value = number1; rangeS[1].value = number2; }; }); })(); // line progress bar let progress = $('#progress1').LineProgressbar({ percentage: 100 }); let progress2 = $('#progress2').LineProgressbar({ percentage: 98 }); let progress3 = $('#progress3').LineProgressbar({ percentage: 97 }); if($('.reveal').length){gsap.registerPlugin(ScrollTrigger);let revealContainers=document.querySelectorAll(".reveal");revealContainers.forEach((container)=>{let image=container.querySelector("img");let tl=gsap.timeline({scrollTrigger:{trigger:container,toggleActions:"play none none none"}});tl.set(container,{autoAlpha:1});tl.from(container,1.5,{xPercent:-100,ease:Power2.out});tl.from(image,1.5,{xPercent:100,scale:1.3,delay:-1.5,ease:Power2.out});});} // Create a circular progress bar using canvas // you can change this class in here and in HTML file var circlularProgress = document.querySelectorAll('.circularProgressMAF'); // some colors var progressColor = ['#029eff', '#febe02', '#87D37C', '#F89406']; var rad = Math.PI / 180; var startArc = 270; var fontSize = 22; var i; for (i = 0;i < circlularProgress.length;i++) { var ctx = circlularProgress[i].getContext('2d'); var cd = circlularProgress[i].parentElement.clientWidth; circlularProgress[i].width = circlularProgress[i].height = cd; var progressValue = circlularProgress[i].getAttribute('data-progress-value'); var endArc = (progressValue / 100) * 360; // create the circle ctx.arc(cd/2, cd/2, cd/6, startArc * rad,(startArc + endArc) * rad, false); // set the colors ctx.strokeStyle = progressColor[i]; ctx.lineWidth = 5; ctx.textAlign = 'center'; ctx.font = fontSize + 'px arial'; ctx.fillText(progressValue + '%', cd/2, (fontSize + cd)/2); ctx.stroke(); } function openNav() { // document.getElementById("sidebar").style.width = "400px"; /* Adjust width as needed */ document.getElementById("sidebar").style.right = "0px"; /* Adjust width as needed */ //document.getElementById("sidebar").style.padding = "30px"; /* Adjust width as needed */ document.getElementById("overlay").style.width = "100%"; /* Show overlay */ } function closeNav() { // document.getElementById("sidebar").style.width = "0"; document.getElementById("sidebar").style.right = "-460px"; /* Adjust width as needed */ document.getElementById("overlay").style.width = "0"; /* Hide overlay */ } //==== search area all ==== document.addEventListener('DOMContentLoaded', function() { let searchToggle = document.getElementById('search-toggle'); let searchBar = document.getElementById('search-bar'); let searchIcon = document.getElementById('search-icon'); let closeIcon = document.getElementById('close-icon'); if (searchToggle && searchBar && searchIcon && closeIcon) { searchToggle.addEventListener('click', function() { // Toggle visibility of search bar searchBar.classList.toggle('active'); searchBar.classList.toggle('hidden'); // Toggle icons between search and close (X) searchToggle.classList.toggle('active'); searchIcon.classList.toggle('hidden'); closeIcon.classList.toggle('hidden'); // Automatically focus on the search input when it's active if (searchBar.classList.contains('active')) { searchBar.focus(); } }); } }); const listItems = document.querySelectorAll('.list-container li'); const images = document.querySelectorAll('.image-container .image'); listItems.forEach(item => { item.addEventListener('mouseover', () => { const targetImageId = item.getAttribute('data-image'); images.forEach(div => { div.classList.remove('active'); if (div.id === targetImageId) { div.classList.add('active'); } }); }); });