| Server IP : 146.59.209.152 / Your IP : 216.73.216.46 Web Server : Apache System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : infrafs ( 43850) PHP Version : 8.2.29 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/infrafs/www/wp-content/themes/trackstore/trackstore/assets/js/modules/ |
Upload File : |
(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);