Файловый менеджер - Редактировать - /home/infrafs/www/wp-content/themes/trackstore/assets/js/modules/global.js
Назад
(function($) { "use strict"; window.eltd = {}; eltd.modules = {}; eltd.scroll = 0; eltd.window = $(window); eltd.document = $(document); eltd.windowWidth = $(window).width(); eltd.windowHeight = $(window).height(); eltd.body = $('body'); eltd.html = $('html, body'); eltd.htmlEl = $('html'); eltd.menuDropdownHeightSet = false; eltd.defaultHeaderStyle = ''; eltd.minVideoWidth = 1500; eltd.videoWidthOriginal = 1280; eltd.videoHeightOriginal = 720; eltd.videoRatio = 1.61; eltd.eltdOnDocumentReady = eltdOnDocumentReady; eltd.eltdOnWindowLoad = eltdOnWindowLoad; eltd.eltdOnWindowResize = eltdOnWindowResize; eltd.eltdOnWindowScroll = eltdOnWindowScroll; $(document).ready(eltdOnDocumentReady); $(window).on('load', eltdOnWindowLoad); $(window).resize(eltdOnWindowResize); $(window).scroll(eltdOnWindowScroll); /* All functions to be called on $(document).ready() should be in this function */ function eltdOnDocumentReady() { eltd.scroll = $(window).scrollTop(); //set global variable for header style which we will use in various functions if(eltd.body.hasClass('eltd-dark-header')){ eltd.defaultHeaderStyle = 'eltd-dark-header';} if(eltd.body.hasClass('eltd-light-header')){ eltd.defaultHeaderStyle = 'eltd-light-header';} } /* All functions to be called on $(window).on('load', ) should be in this function */ function eltdOnWindowLoad() { } /* All functions to be called on $(window).resize() should be in this function */ function eltdOnWindowResize() { eltd.windowWidth = $(window).width(); eltd.windowHeight = $(window).height(); } /* All functions to be called on $(window).scroll() should be in this function */ function eltdOnWindowScroll() { eltd.scroll = $(window).scrollTop(); } //set boxed layout width variable for various calculations switch(true){ case eltd.body.hasClass('eltd-grid-1300'): eltd.boxedLayoutWidth = 1350; break; case eltd.body.hasClass('eltd-grid-1200'): eltd.boxedLayoutWidth = 1250; break; case eltd.body.hasClass('eltd-grid-1000'): eltd.boxedLayoutWidth = 1050; break; case eltd.body.hasClass('eltd-grid-800'): eltd.boxedLayoutWidth = 850; break; default : eltd.boxedLayoutWidth = 1150; break; } })(jQuery);
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка