| Server IP : 144.76.79.100 / Your IP : 216.73.216.103 [ Web Server : Apache System : Linux ch05.wehostwebserver.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64 User : razzlestore ( 1092) PHP Version : 8.2.29 Disable Function : NONE Domains : 343 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/public_html/distribution/Clients/js/ |
Upload File : |
(function($) {
"use strict";
var mainwindow = $(window);
// rev-slider 1
if (jQuery("#slider1").length) {
jQuery("#slider1").revolution({
sliderType: "standard",
sliderLayout: "fullwidth",
delay: 5000,
navigation: {
keyboardNavigation: "on",
keyboard_direction: "horizontal",
mouseScrollNavigation: "off",
onHoverStop: "on",
arrows: {
style: 'zeus',
tmp: '<div class="tp-title-wrap"><div class="tp-arr-imgholder"></div></div>',
enable: true,
rtl: false,
hide_onmobile: false,
hide_onleave: false,
hide_delay: 200,
hide_delay_mobile: 1200,
hide_under: 0,
hide_over: 9999,
tmp: ''
}
},
parallax: {
type: "scroll",
origo: "slidercenter",
speed: 1000,
levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 46, 47, 48, 49, 50, 100, 55],
type: "scroll",
},
responsiveLevels: [1240, 1024, 778, 480],
visibilityLevels: [1240, 1024, 778, 480],
gridwidth: [1170, 1024, 778, 480],
gridheight: [700, 700, 500, 420]
});
};
// rev-slider 2
if (jQuery("#slider2").length) {
jQuery("#slider2").revolution({
sliderType: "standard",
sliderLayout: "fullwidth",
delay: 5000,
navigation: {
keyboardNavigation: "on",
keyboard_direction: "horizontal",
mouseScrollNavigation: "off",
onHoverStop: "on",
arrows: {
style: 'zeus',
tmp: '<div class="tp-title-wrap"><div class="tp-arr-imgholder"></div></div>',
enable: true,
rtl: false,
hide_onmobile: false,
hide_onleave: false,
hide_delay: 200,
hide_delay_mobile: 1200,
hide_under: 0,
hide_over: 9999,
tmp: ''
}
},
parallax: {
type: "scroll",
origo: "slidercenter",
speed: 1000,
levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 46, 47, 48, 49, 50, 100, 55],
type: "scroll",
},
responsiveLevels: [1240, 1024, 778, 480],
visibilityLevels: [1240, 1024, 778, 480],
gridwidth: [1170, 1024, 778, 480],
gridheight: [840, 840, 700, 620]
});
};
// rev-slider 3
if (jQuery("#slider3").length) {
jQuery("#slider3").revolution({
sliderType: "standard",
sliderLayout: "fullwidth",
delay: 5000,
navigation: {
keyboardNavigation: "on",
keyboard_direction: "horizontal",
mouseScrollNavigation: "off",
onHoverStop: "on",
arrows: {
style: 'zeus',
tmp: '<div class="tp-title-wrap"><div class="tp-arr-imgholder"></div></div>',
enable: true,
rtl: false,
hide_onmobile: false,
hide_onleave: false,
hide_delay: 200,
hide_delay_mobile: 1200,
hide_under: 0,
hide_over: 9999,
tmp: ''
}
},
parallax: {
type: "scroll",
origo: "slidercenter",
speed: 1000,
levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 46, 47, 48, 49, 50, 100, 55],
type: "scroll",
},
responsiveLevels: [1240, 1024, 778, 480],
visibilityLevels: [1240, 1024, 778, 480],
gridwidth: [1170, 1024, 778, 480],
gridheight: [750, 750, 500, 420]
});
};
//Hide Loading Box (Preloader)
function stylePreloader() {
if ($('.preloader').length) {
$('.preloader').delay(200).fadeOut(500);
}
}
//Accordion Box
if ($('.accordion-box').length) {
$(".accordion-box").on('click', '.acc-btn', function() {
var outerBox = $(this).parents('.accordion-box');
var target = $(this).parents('.accordion');
if ($(this).hasClass('active') !== true) {
$('.accordion .acc-btn').removeClass('active');
}
if ($(this).next('.acc-content').is(':visible')) {
return false;
} else {
$(this).addClass('active');
$(outerBox).children('.accordion').removeClass('active-block');
$(outerBox).children('.accordion').children('.acc-content').slideUp(300);
target.addClass('active-block');
$(this).next('.acc-content').slideDown(300);
}
});
}
if ($('#accordion > .panel').length) {
$('#accordion > .panel').on('show.bs.collapse', function(e) {
var heading = $(this).find('.panel-heading');
heading.addClass("active-panel");
});
$('#accordion > .panel').on('hidden.bs.collapse', function(e) {
var heading = $(this).find('.panel-heading');
heading.removeClass("active-panel");
});
}
//Portfolio gallery
$(function() {
var $grid = $('.grd-masonry').isotope({
itemSelector: '.portfolio-item',
percentPosition: true,
masonry: {
columnWidth: '.grid-sizer'
}
});
// filter items on button click
$('.nav-filter').on('click', 'a', function(e) {
e.preventDefault();
var filterValue = $(this).attr('data-filter');
$grid.isotope({
filter: filterValue
});
$(this).addClass('active');
$(this).parents().siblings().children().removeClass('active');
});
});
$(function() {
var $grid = $('.filterlist').isotope({
itemSelector: '.portfolio-item',
layoutMode: 'fitRows',
});
// filter items on button click
$('.nav-filter').on('click', 'a', function(e) {
e.preventDefault();
var filterValue = $(this).attr('data-filter');
$grid.isotope({
filter: filterValue
});
$(this).addClass('active');
$(this).parents().siblings().children().removeClass('active');
});
});
//--testimonial-list----
if ($('.testone-slide').length) {
$('.testone-slide').slick({
slidesToShow: 2,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 4000,
dots: true,
arrows: false,
responsive: [{
breakpoint: 992,
settings: {
slidesToShow: 1
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 1
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1
}
}
]
});
}
//--award-list----
if ($('.award-slider').length) {
$('.award-slider').slick({
slidesToShow: 1,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 4000,
dots: false,
arrows: true,
responsive: [{
breakpoint: 768,
settings: {
slidesToShow: 1,
arrows: false,
}
}]
});
}
//--testimonials----
if ($('.testimonials-2-slide').length) {
$('.testimonials-2-slide').slick({
slidesToShow: 2,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 4000,
dots: false,
arrows: true,
responsive: [{
breakpoint: 992,
settings: {
slidesToShow: 1
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 1,
arrows: false
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
arrows: false
}
}
]
});
}
//--partener-list----
if ($('.carousel-img').length) {
$('.carousel-img').slick({
slidesToShow: 4,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 4000,
dots: false,
arrows: false,
responsive: [{
breakpoint: 992,
settings: {
slidesToShow: 3
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 2,
arrows: false
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 2
}
}
]
});
}
//--testimonial----
if ($('.testslide-3').length) {
$('.testslide-3').slick({
slidesToShow: 2,
slidesToScroll: 1,
autoplay: false,
autoplaySpeed: 4000,
dots: true,
arrows: false,
responsive: [{
breakpoint: 992,
settings: {
slidesToShow: 2
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 1,
arrows: false
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1
}
}
]
});
}
//--testimonial----
if ($('.teamslide').length) {
$('.teamslide').slick({
slidesToShow: 3,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 4000,
dots: false,
arrows: true,
responsive: [{
breakpoint: 992,
settings: {
slidesToShow: 3
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 2,
arrows: false
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
arrows: false
}
}
]
});
}
//--testimonial----
if ($('.testimonial-4-slide').length) {
$('.testimonial-4-slide').slick({
slidesToShow: 1,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 4000,
dots: false,
arrows: false
});
}
//--testimonial----
if ($('.history-slide').length) {
$('.history-slide').slick({
slidesToShow: 3,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 4000,
dots: false,
arrows: true,
responsive: [{
breakpoint: 992,
settings: {
slidesToShow: 2
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 1,
arrows: false
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
arrows: false
}
}
]
});
}
//--gallery single----
if ($('.gsleft').length) {
$('.gsleft').slick({
slidesToShow: 1,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 4000,
dots: false,
arrows: true
});
}
//--letest-project---
if ($('.slidepost').length) {
$('.slidepost').owlCarousel({
loop: true,
margin: 30,
nav: false,
smartSpeed: 500,
autoplay: 4000,
items: 1,
dots: false,
navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],
responsive: {
0: {
items: 1
},
600: {
items: 2
},
800: {
items: 2
},
1024: {
items: 3
},
1200: {
items: 3
}
}
});
}
//--partener---
if ($('.partner-slide').length) {
$('.partner-slide').owlCarousel({
loop: true,
margin: 20,
nav: false,
smartSpeed: 500,
autoplay: 4000,
items: 1,
dots: false,
navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],
responsive: {
0: {
items: 2
},
600: {
items: 3
},
800: {
items: 4
},
1024: {
items: 5
},
1200: {
items: 5
}
}
});
}
//--testimonial - 2 ---
if ($('.testsingle').length) {
$('.testsingle').owlCarousel({
loop: true,
margin: 0,
nav: true,
smartSpeed: 500,
autoplay: 4000,
items: 1,
dots: false,
navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],
responsive: {
0: {
items: 1
},
600: {
items: 1
},
800: {
items: 1
},
1024: {
items: 1
},
1200: {
items: 1
}
}
});
}
//--testimonial - 2 ---
if ($('.single-slide').length) {
$('.single-slide').owlCarousel({
loop: true,
margin: 0,
nav: false,
smartSpeed: 500,
autoplay: 4000,
items: 1,
dots: true,
navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],
responsive: {
0: {
items: 1
},
600: {
items: 1
},
800: {
items: 1
},
1024: {
items: 1
},
1200: {
items: 1
}
}
});
}
//--testslide--
if ($('.testslide-2').length) {
$('.testslide-2').owlCarousel({
loop: true,
margin: 30,
nav: false,
smartSpeed: 500,
autoplay: 4000,
items: 1,
dots: false,
navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],
responsive: {
0: {
items: 1
},
600: {
items: 1
},
800: {
items: 2
},
1024: {
items: 2
},
1200: {
items: 2
}
}
});
}
//--team--
if ($('.team-slide').length) {
$('.team-slide').owlCarousel({
loop: true,
margin: 30,
nav: true,
smartSpeed: 500,
autoplay: 4000,
items: 1,
dots: false,
navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],
responsive: {
0: {
items: 1
},
600: {
items: 2
},
800: {
items: 3
},
1024: {
items: 4
},
1200: {
items: 4
}
}
});
}
//--history slide---
if ($('.historyslide').length) {
$('.historyslide').owlCarousel({
loop: true,
margin: 30,
nav: true,
smartSpeed: 500,
autoplay: 4000,
items: 1,
dots: false,
navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],
responsive: {
0: {
items: 1
},
600: {
items: 1
},
800: {
items: 2
},
1024: {
items: 2
},
1200: {
items: 2
}
}
});
}
//LightBox / Fancybox
if ($('.fancybox').length) {
$('.fancybox').fancybox({
openEffect: 'fade',
closeEffect: 'fade',
helpers: {
media: {}
}
});
}
// FAQs
if ($('.fp-faq').length) {
$('.fp-faq').on('click', 'h2', function() {
var $faq = $(this).closest('.fp-faq');
$faq.find('.toggle-content').slideToggle(500, function() {
$faq.toggleClass('active');
});
});
}
if ($('.fp-accordion').length) {
$('.fp-accordion').on('click', 'h2, .icons', function() {
var $faq = $(this).closest('.fp-accordion');
$faq.find('.toggle-content').slideToggle(500, function() {
$faq.toggleClass('active');
});
});
}
//Update header style + Scroll to Top
function scrolltotop() {
if ($('.scroll-to-top').length) {
var windowpos = mainwindow.scrollTop();
if (windowpos >= 250) {
$('.scroll-to-top').fadeIn(300);
} else {
$('.scroll-to-top').fadeOut(300);
}
}
}
// Scroll to a Specific Div
if ($('.scroll-to-target').length) {
$(".scroll-to-target").on('click', function() {
var target = $(this).attr('data-target');
// animate
$('html, body').animate({
scrollTop: $(target).offset().top
}, 1000);
});
}
// slider-range
if ($('#slider-range').length) {
$(function() {
$("#slider-range").slider({
range: true,
min: 0,
max: 500,
values: [75, 300],
slide: function(event, ui) {
$("#amount").val("$" + ui.values[0] + " - $" + ui.values[1]);
}
});
$("#amount").val("$" + $("#slider-range").slider("values", 0) +
" - $" + $("#slider-range").slider("values", 1));
});
}
//Input Quantity Up & Down
function quantity_changer() {
$('#quantity-holder').on('click', '.quantity-plus', function() {
var $holder = $(this).parents('.quantity-holder');
var $target = $holder.find('input.quantity-input');
var $quantity = parseInt($target.val(), 10);
if ($.isNumeric($quantity) && $quantity > 0) {
$quantity = $quantity + 1;
$target.val($quantity);
} else {
$target.val($quantity);
}
}).on('click', '.quantity-minus', function() {
var $holder = $(this).parents('.quantity-holder');
var $target = $holder.find('input.quantity-input');
var $quantity = parseInt($target.val(), 10);
if ($.isNumeric($quantity) && $quantity >= 2) {
$quantity = $quantity - 1;
$target.val($quantity);
} else {
$target.val(1);
}
});
}
//counter number changer
function counter_number() {
var timer = $('.timer');
if (timer.length) {
timer.appear(function() {
timer.countTo();
})
}
}
//progress bar
function progressBar() {
if ($(".progress-bar").length) {
var $progress_bar = $('.progress-bar');
$progress_bar.appear();
$(document.body).on('appear', '.progress-bar', function() {
var current_item = $(this);
if (!current_item.hasClass('appeared')) {
var percent = current_item.data('percent');
current_item.append('<span>' + percent + '%' + '</span>').css('width', percent + '%').addClass('appeared');
}
});
};
}
/* ==========================================================================
Contact Form Validation and Ajax
========================================================================== */
$('#contact-form').validate({
rules: {
name: {
required: true
},
email: {
required: true,
minlength: 5,
email: true
},
phone: {
required: true
},
message: {
required: true,
minlength: 10
}
},
messages: {
name: "Please specify your name",
email: {
required: "We need your email address to contact you",
email: "Your email address must be in the format of name@domain.com"
},
phone: "Please specify your phone number",
message: {
required: "Please specify your message",
minlength: jQuery.validator.format("At least {0} characters required!")
}
},
submitHandler: function(e) {
var $t = $(e);
$.ajax({
type: 'POST',
url: $t.attr('action'),
data: $t.serialize(),
beforeSend: function() {
$("#loading").show();
},
complete: function() {
$("#loading").hide();
},
success: function(res) {
$('.contact-form-message').show().html(res).delay(10000).fadeOut("slow");
$('input[name=\'name\']').val('');
$('input[name=\'email\']').val('');
$('input[name=\'phone\']').val('');
$('textarea[name=\'message\']').val('');
}
});
}
});
/* ==========================================================================
When document is ready, do
========================================================================== */
$(document).on('ready', function() {
counter_number();
quantity_changer();
});
/* ==========================================================================
When document is Scrollig, do
========================================================================== */
mainwindow.on('scroll', function() {
scrolltotop();
progressBar();
});
/* ==========================================================================
When document is loading, do
========================================================================== */
mainwindow.on('load', function() {
stylePreloader();
});
/* ==========================================================================
When Window is resizing, do
========================================================================== */
mainwindow.on('resize', function() {});
})(window.jQuery);