Файловый менеджер - Редактировать - /var/www/vhosts/allit.dev1.mndrn.cloud/wp-content/themes/allit/dist/scripts/main.js
Назад
/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./src/scripts/main.js": /*!*****************************!*\ !*** ./src/scripts/main.js ***! \*****************************/ /***/ (() => { (function ($) { var script = {}; script.openmenu = function () { $('.mobilemenu').hide(); $('.closemenu').hide(); $(document).on('click', '.openmenu', function (event) { event.preventDefault(); $('.mobilemenu').fadeIn('fast'); $('.mobilemenu').css({ 'height': 'calc(100vh - 94px)', 'overflow-y': 'auto' }); $('body').css('overflow-y', 'hidden'); $('.closemenu').fadeIn('fast'); $('.openmenu').hide(); }); $(document).on('click', '.closemenu', function (event) { event.preventDefault(); $('.mobilemenu').css('display', 'none'); $('body').css('overflow-y', ''); $('.openmenu').fadeIn('fast'); $('.closemenu').hide(); }); $(document).on('mouseenter', '.aziendasub', function (event) { event.preventDefault(); $('.aziendasub .sub-menu').fadeIn('fast'); }); $(document).on('mouseleave', '.aziendasub', function (event) { event.preventDefault(); $('.aziendasub .sub-menu').css('display', 'none'); }); $(document).on('mouseenter', '.profilisub', function (event) { event.preventDefault(); $('.profilisub .sub-menu').fadeIn('fast'); }); $(document).on('mouseleave', '.profilisub', function (event) { event.preventDefault(); $('.profilisub .sub-menu').css('display', 'none'); }); $(document).on('mouseenter', '.processosub', function (event) { event.preventDefault(); $('.processosub .sub-menu').fadeIn('fast'); }); $(document).on('mouseleave', '.processosub', function (event) { event.preventDefault(); $('.processosub .sub-menu').css('display', 'none'); }); }; script.slide = function () { if ($(window).width() <= 767) { $('.slickcategoryhome, .slickcategory').slick({ arrows: false, centerMode: false, slidesToShow: 1, adaptiveHeight: true }); } $('.slidetimeline').slick({ dots: true, infinite: false, arrows: false, speed: 300, slidesToShow: 1, slidesToScroll: 1, vertical: true, verticalSwiping: true, swipeToSlide: true, adaptiveHeight: true, responsive: [{ breakpoint: 1024, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: false, dots: true } }, { breakpoint: 600, settings: { slidesToShow: 1, slidesToScroll: 2 } }, { breakpoint: 480, settings: { slidesToShow: 1, slidesToScroll: 1 } } // You can unslick at a given breakpoint now by adding: // settings: "unslick" // instead of a settings object ] }).on('afterChange', function (event, slick, currentSlide) { $(event.target).data('current-slide', currentSlide); var attrID = $(event.target).data('data-slick-index', currentSlide); // console.log(attrID); // console.log(attrID.length); $('.slick-slide').each(function (index, element) { var a = element; if ($(this).hasClass('slick-active') != true) { console.log('false'); $('.testoactive').removeClass('animate__fadeInRight'); $('time').removeClass('animate__fadeInUpBig'); $('.cerchioactive i').removeClass('animate-ping'); } if ($(this).hasClass('slick-active')) { setTimeout(function () { console.log('true'); $('.slick-active .testoactive').addClass('animate__fadeInRight'); $('.slick-active time').addClass('animate__fadeInUpBig'); $('.slick-active .cerchioactive i').addClass('animate-ping'); $('.slick-active .time').css('opacity', 1); var bgtime = $('.slick-active input[type=hidden]').val(); console.log(bgtime); $('.backgroundparallax').css('background-image', 'url(' + bgtime + ')'); }, 100); } }); }).on('wheel', function (e) { var deltaY = e.originalEvent.deltaY, $currentSlider = $(e.currentTarget), currentSlickIndex = $currentSlider.data('current-slide') || 0; if ( // check when you scroll up deltaY < 0 && currentSlickIndex == 0 || // check when you scroll down deltaY > 0 && currentSlickIndex == $currentSlider.data('slider-length') - 1) { return; } e.preventDefault(); if (e.originalEvent.deltaY < 0) { $currentSlider.slick('slickPrev'); } else { $currentSlider.slick('slickNext'); } }); }; $(document).ready(function () { console.log('ready'); script.slide(); script.openmenu(); var slider = $('.slickmain'); function onSliderAfterChange(event, slick, currentSlide) { $(event.target).data('current-slide', currentSlide); } var previousSlide = 0; function onSwipe(event, slick, direction) { console.log('Previous', previousSlide); console.log('Next', slick.currentSlide); console.log(slick); setTimeout(function () { if (slick.currentSlide == slick.slideCount - 1 && direction == 'down' && previousSlide == slick.currentSlide) { console.log('last'); window.scrollBy({ top: slick.listHeight, left: 0, behavior: 'smooth' }); } previousSlide = slick.currentSlide; }, 10); } function onSliderWheel(e) { var deltaY = e.originalEvent.deltaY, $currentSlider = $(e.currentTarget), currentSlickIndex = $currentSlider.data('current-slide') || 0; if ( // check when you scroll up deltaY < 0 && currentSlickIndex == 0 || // check when you scroll down deltaY > 0 && currentSlickIndex == $currentSlider.data('slider-length') - 1) { return; } e.preventDefault(); if (e.originalEvent.deltaY < 0) { $currentSlider.slick('slickPrev'); } else { $currentSlider.slick('slickNext'); } } slider.each(function (index, element) { var $element = $(element); // set the length of children in each loop // but the better way for performance is to set this data attribute on the div.slider in the markup $element.data('slider-length', $element.children().length); }).slick({ infinite: false, slidesToScroll: 1, arrows: false, dots: false, vertical: true, verticalSwiping: true }).on('afterChange', onSliderAfterChange).on('wheel', onSliderWheel).on('swipe', onSwipe); }); })(jQuery); /***/ }), /***/ "./src/styles/main.scss": /*!******************************!*\ !*** ./src/styles/main.scss ***! \******************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); // extracted by mini-css-extract-plugin /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = __webpack_modules__; /******/ /************************************************************************/ /******/ /* webpack/runtime/chunk loaded */ /******/ (() => { /******/ var deferred = []; /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { /******/ if(chunkIds) { /******/ priority = priority || 0; /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; /******/ deferred[i] = [chunkIds, fn, priority]; /******/ return; /******/ } /******/ var notFulfilled = Infinity; /******/ for (var i = 0; i < deferred.length; i++) { /******/ var [chunkIds, fn, priority] = deferred[i]; /******/ var fulfilled = true; /******/ for (var j = 0; j < chunkIds.length; j++) { /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { /******/ chunkIds.splice(j--, 1); /******/ } else { /******/ fulfilled = false; /******/ if(priority < notFulfilled) notFulfilled = priority; /******/ } /******/ } /******/ if(fulfilled) { /******/ deferred.splice(i--, 1) /******/ var r = fn(); /******/ if (r !== undefined) result = r; /******/ } /******/ } /******/ return result; /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /******/ /* webpack/runtime/make namespace object */ /******/ (() => { /******/ // define __esModule on exports /******/ __webpack_require__.r = (exports) => { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/jsonp chunk loading */ /******/ (() => { /******/ // no baseURI /******/ /******/ // object to store loaded and loading chunks /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { /******/ "/scripts/main": 0, /******/ "styles/main": 0 /******/ }; /******/ /******/ // no chunk on demand loading /******/ /******/ // no prefetching /******/ /******/ // no preloaded /******/ /******/ // no HMR /******/ /******/ // no HMR manifest /******/ /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); /******/ /******/ // install a JSONP callback for chunk loading /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback /******/ var moduleId, chunkId, i = 0; /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { /******/ for(moduleId in moreModules) { /******/ if(__webpack_require__.o(moreModules, moduleId)) { /******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; /******/ } /******/ } /******/ if(runtime) var result = runtime(__webpack_require__); /******/ } /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ installedChunks[chunkId][0](); /******/ } /******/ installedChunks[chunkId] = 0; /******/ } /******/ return __webpack_require__.O(result); /******/ } /******/ /******/ var chunkLoadingGlobal = self["webpackChunktailwind_wp_theme_starter_pack"] = self["webpackChunktailwind_wp_theme_starter_pack"] || []; /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); /******/ })(); /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module depends on other loaded chunks and execution need to be delayed /******/ __webpack_require__.O(undefined, ["styles/main"], () => (__webpack_require__("./src/scripts/main.js"))) /******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["styles/main"], () => (__webpack_require__("./src/styles/main.scss"))) /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); /******/ /******/ })() ;
| ver. 1.4 |
Github
|
.
| PHP 8.2.5 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка