Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/public/js/home.js
Назад
$(document).ready(function () { // // typing txt // var captionLength = 0; // var caption = ''; // var animate = true; // var animationCompleted = true; // var captionEl = $('#caption'); // function startTypingEffect() { // caption = $('#animate_text').text(); // type(); // } // function type() { // var output = caption.substr(0, captionLength++); // var val = $("#url").val(); // if (val !== "" || (!animate)) { // return; // } // captionEl.html(output); // if (captionLength < caption.length + 1) { // setTimeout(type, 50); // } else { // animationCompleted = true; // } // } // $("#url, #caption").on("focusin focusout", function (event) { // if (event.type === "focusin") { // console.log("Focus In"); // animate = false; // captionEl.html(''); // captionLength = 0; // $('.cursor').addClass('hd-none'); // animationCompleted = false; // } else if (event.type === "focusout") { // console.log("Focus Out"); // animate = true; // // $('.cursor').removeClass('hd-none'); // startTypingEffect(); // } // }); // $("#url").on("change", function () { // var urlValue = $(this).val(); // if (urlValue.length > 0) { // $('.cursor').addClass('hd-none'); // } else { // $('.cursor').removeClass('hd-none'); // } // }); // $("#caption").click(function () { // console.log("caption Focus In"); // animate = false; // captionEl.html(''); // captionLength = 0; // $("#url").focus(); // }); // // typing txt // AOS.init({ // once: true, // }); setTimeout(startTypingEffect, 1500); var captionLength = 0; var caption = ''; var animate = true; var animationCompleted = true; var captionEl = $('#caption'); function startTypingEffect() { caption = $('#animate_text').text(); type(); } function type() { var output = caption.substr(0, captionLength++); if (!animate) { return; } captionEl.html(output); if (captionLength < caption.length + 1) { setTimeout(type, 60); } else { animationCompleted = true; } } $(document).ready(function () { // Trigger typing effect after a delay setTimeout(startTypingEffect, 1500); // $("#caption").click(function () { // animate = false; // captionEl.html(''); // captionLength = 0; // startTypingEffect(); // }); AOS.init({ once: true, }); }); // appartment-slider $( '.appartment-slider' ).slick({ dots: true, infinite: true, autoplay: false, speed: 800, slidesToShow: 1, slidesToScroll: 1, responsive: [ { breakpoint: 1024, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: true, dots: true, }, }, { breakpoint: 600, settings: { arrows: true, slidesToShow: 1, slidesToScroll: 1, }, }, { breakpoint: 768, settings: { arrows: true, slidesToShow: 1, slidesToScroll: 1, }, }, { breakpoint: 992, settings: { arrows: true, slidesToShow: 1, slidesToScroll: 1, }, }, { breakpoint: 790, settings: { arrows: true, slidesToShow: 1, slidesToScroll: 1, }, }, { breakpoint: 480, settings: { arrows: true, slidesToShow: 1, slidesToScroll: 1, }, }, // You can unslick at a given breakpoint now by adding: // settings: "unslick " // instead of a settings object ], }) // $(document).on('click','#submitButton',function(e){ // e.preventDefault(); // showLoading(); // }); $("#subscription_form").on('submit',function(e){ e.preventDefault(); showLoading(); $.ajax({ url: '/subscription', type: 'post', dataType: 'json', data: $('form#subscription_form').serialize(), success: function(response){ swal.close() // console.log(response); if(response.data){ TopEndPopUp('success', response.message) }else{ TopEndPopUp('warning',response.message) } $("#subscription_form").trigger("reset"); }, error: function(XMLHttpRequest, textStatus, errorThrown) { swal.close() TopEndPopUp('warning',errorThrown) } }); }); }); $('.get-start-btn').click(function () { if (window.innerWidth > 768 && window.innerWidth < 991) { return getStart[0].scrollIntoView({ behavior: "smooth" }); } getStart[1].scrollIntoView({ behavior: "smooth" }); }); // const TopEndPopUp = function(sign,message){ // const Toast = Swal.mixin({ // toast: true, // position: 'top-end', // showConfirmButton: false, // timer: 2000, // timerProgressBar: true, // didOpen: (toast) => { // toast.addEventListener('mouseenter', Swal.stopTimer) // toast.addEventListener('mouseleave', Swal.resumeTimer) // } // }) // Toast.fire({ // icon: sign, // title: message // }) // }; // const showLoading = function() { // Swal.fire({ // title: 'Processing!', // html: 'Please wait', // didOpen: () => { // Swal.showLoading() // } // }) // };
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка