| Server IP : 108.170.25.35 / Your IP : 216.73.216.172 Web Server : Apache System : Linux gains.winzonesoftech.com 4.18.0-513.24.1.el8_9.x86_64 #1 SMP Mon Apr 8 11:23:13 EDT 2024 x86_64 User : sbags ( 1569) PHP Version : 8.1.28 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/sbags/domains/sbagsandgifts.com/private_html/js/ |
Upload File : |
(function($) {
"use strict";
//Hide Loading Box (Preloader)
function handlePreloader() {
if($('.preloader').length){
$('.preloader').delay(200).fadeOut(500);
}
}
//Update Header Style and Scroll to Top
function headerStyle() {
if($('.main-header').length){
var windowpos = $(window).scrollTop();
var siteHeader = $('.main-header');
var sticky_header = $('.main-header .sticky-header');
var scrollLink = $('.scroll-to-top');
if (windowpos > 100) {
siteHeader.addClass('fixed-header');
sticky_header.addClass("animated slideInDown");
scrollLink.fadeIn(300);
} else {
siteHeader.removeClass('fixed-header');
sticky_header.removeClass("animated slideInDown");
scrollLink.fadeOut(300);
}
}
}
headerStyle();
//Submenu Dropdown Toggle
if($('.main-header li.dropdown ul').length){
$('.main-header .navigation li.dropdown').append('<div class="dropdown-btn"><span class="fa fa-angle-down"></span></div>');
//Dropdown Button
$('.main-header .navigation li.dropdown .dropdown-btn').on('click', function() {
$(this).prev('ul').slideToggle(500);
});
//Disable dropdown parent link
$('.main-header .navigation li.dropdown > a').on('click', function(e) {
e.preventDefault();
});
}
//Search Popup
if($('#search-popup').length){
//Show Popup
$('.search-box-btn').on('click', function() {
$('#search-popup').addClass('popup-visible');
});
$(document).keydown(function(e){
if(e.keyCode == 27) {
$('#search-popup').removeClass('popup-visible');
}
});
//Hide Popup
$('.close-search,.search-popup .overlay-layer').on('click', function() {
$('#search-popup').removeClass('popup-visible');
});
}
//Mobile Nav Hide Show
if($('.mobile-menu').length){
var mobileMenuContent = $('.main-header .nav-outer .main-menu .navigation').html();
$('.mobile-menu .navigation').append(mobileMenuContent);
$('.sticky-header .navigation').append(mobileMenuContent);
$('.mobile-menu .close-btn').on('click', function() {
$('body').removeClass('mobile-menu-visible');
});
//Dropdown Button
$('.mobile-menu li.dropdown .dropdown-btn').on('click', function() {
$(this).prev('ul').slideToggle(500);
});
//Menu Toggle Btn
$('.mobile-nav-toggler').on('click', function() {
$('body').addClass('mobile-menu-visible');
});
//Menu Toggle Btn
$('.mobile-menu .menu-backdrop,.mobile-menu .close-btn').on('click', function() {
$('body').removeClass('mobile-menu-visible');
});
}
//Banner Carousel
if ($('.banner-carousel').length) {
var swiper = new Swiper('.banner-carousel', {
//pagination: '.swiper-pagination',
speed: 400,
loop: true,
slidesPerView: 3,
centeredSlides: true,
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
spaceBetween: 10,
breakpoints: {
1024: {
slidesPerView: 1,
spaceBetween: 0,
},
768: {
slidesPerView: 1,
spaceBetween: 0,
},
640: {
slidesPerView: 1,
spaceBetween: 0,
},
320: {
slidesPerView: 1,
spaceBetween: 0,
}
}
});
}
//Main Slider Carousel
if ($('.main-slider-carousel').length) {
$('.main-slider-carousel').owlCarousel({
animateOut: 'fadeOut',
animateIn: 'fadeIn',
loop:true,
margin:0,
nav:true,
autoHeight: true,
smartSpeed: 500,
autoplay: 6000,
navText: [ '<span class="flaticon-left-arrow"></span>', '<span class="flaticon-right-arrow-1"></span>' ],
responsive:{
0:{
items:1
},
600:{
items:1
},
800:{
items:1
},
1024:{
items:1
},
1200:{
items:1
}
}
});
}
// Appointment Carousel
if ($('.appointment-carousel').length) {
$('.appointment-carousel').owlCarousel({
loop:true,
margin:0,
nav:true,
smartSpeed: 500,
autoplay: true,
autoplayHoverPause:true,
navText: [ '<span class="flaticon-back-7"></span>', '<span class="flaticon-right-arrow"></span>' ],
responsive:{
0:{
items:1
},
600:{
items:1
},
800:{
items:1
},
1024:{
items:1
},
1100:{
items:1
}
}
});
}
//Masonary
function enableMasonry() {
if($('.masonry-items-container').length){
var winDow = $(window);
// Needed variables
var $container=$('.masonry-items-container');
$container.isotope({
itemSelector: '.masonry-item',
masonry: {
columnWidth : 1
},
animationOptions:{
duration:500,
easing:'linear'
}
});
winDow.bind('resize', function(){
$container.isotope({
itemSelector: '.masonry-item',
animationOptions: {
duration: 500,
easing : 'linear',
queue : false
}
});
});
}
}
enableMasonry();
// Dropzone initialization
Dropzone.autoDiscover = false;
$(function () {
$("div#myDropZone").dropzone({
url: "/file-upload",
addRemoveLinks:true
});
});
/* =====================================================================
Price Range Slider
====================================================================== */
//Price Range Slider
if($('.price-range-slider').length){
$( ".price-range-slider" ).slider({
range: true,
min: 0,
max: 10000,
values: [ 1000, 8000 ],
slide: function( event, ui ) {
$( "input.price-amount" ).val( ui.values[ 0 ] + " - " + ui.values[ 1 ] );
}
});
$( "input.price-amount" ).val( $( ".price-range-slider" ).slider( "values", 0 ) + " - $" + $( ".price-range-slider" ).slider( "values", 1 ) );
}
//Price Range Slider
if($('.area-range-slider').length){
$( ".area-range-slider" ).slider({
range: true,
min: 0,
max: 1000,
values: [ 100, 500 ],
slide: function( event, ui ) {
$( "input.property-amount" ).val( ui.values[ 0 ] + " - " + ui.values[ 1 ] );
}
});
$( "input.property-amount" ).val( $( ".area-range-slider" ).slider( "values", 0 ) + " - " + $( ".area-range-slider" ).slider( "values", 1 ) );
}
// Single Item Carousel
if ($('.single-item-carousel').length) {
$('.single-item-carousel').owlCarousel({
animateOut: 'slideOutDown',
animateIn: 'fadeIn',
loop:true,
margin:30,
nav:true,
smartSpeed: 500,
autoplay: true,
autoplayTimeout:10000,
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
},
1280:{
items:1
}
}
});
}
// Three Item Carousel
if ($('.three-item-carousel').length) {
$('.three-item-carousel').owlCarousel({
animateOut: 'slideOutDown',
animateIn: 'fadeIn',
loop:true,
margin:30,
nav:true,
smartSpeed: 500,
autoplay: true,
autoplayTimeout:10000,
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:3
},
1280:{
items:3
}
}
});
}
// Sponsors Item Carousel
if ($('.sponsors-carousel').length) {
$('.sponsors-carousel').owlCarousel({
loop:true,
margin:30,
nav:true,
smartSpeed: 500,
autoplay: 4000,
navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ],
responsive:{
0:{
items:1
},
480:{
items:2
},
600:{
items:3
},
800:{
items:4
},
1024:{
items:5
}
}
});
}
// Gallery Carousel
if ($('.gallery-carousel').length) {
$('.gallery-carousel').owlCarousel({
loop:true,
margin:5,
nav:true,
smartSpeed: 500,
autoplay: 4000,
navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ],
responsive:{
0:{
items:1
},
480:{
items:2
},
600:{
items:3
},
800:{
items:4
},
1024:{
items:5
}
}
});
}
//Three Item Carousel
if ($('.related-item-carousel').length) {
$('.related-item-carousel').owlCarousel({
loop:true,
margin:30,
nav:true,
smartSpeed: 700,
autoplay: 8000,
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:3
},
1200:{
items:3
},
1300:{
items:3
}
}
});
}
// Product Carousel Slider
if ($('.shop-page .image-carousel').length && $('.shop-page .thumbs-carousel').length) {
var $sync3 = $(".shop-page .image-carousel"),
$sync4 = $(".shop-page .thumbs-carousel"),
flags = false,
durations = 500;
$sync3
.owlCarousel({
loop:true,
items: 1,
margin: 0,
nav: false,
navText: [ '<span class="icon fa fa-angle-left"></span>', '<span class="icon fa fa-angle-right"></span>' ],
dots: false,
autoplay: true,
autoplayTimeout: 5000
})
.on('changed.owl.carousel', function (e) {
if (!flags) {
flags = false;
$sync4.trigger('to.owl.carousel', [e.item.index, durations, true]);
flags = false;
}
});
$sync4
.owlCarousel({
loop:true,
margin: 10,
items: 1,
nav: false,
navText: [ '<span class="icon fa fa-angle-left"></span>', '<span class="icon fa fa-angle-right"></span>' ],
dots: false,
center: false,
autoplay: true,
autoplayTimeout: 5000,
responsive: {
0:{
items:2,
autoWidth: false
},
400:{
items:3,
autoWidth: false
},
600:{
items:4,
autoWidth: false
},
900:{
items:5,
autoWidth: false
},
1000:{
items:6,
autoWidth: false
}
},
})
.on('click', '.owl-item', function () {
$sync3.trigger('to.owl.carousel', [$(this).index(), durations, true]);
})
.on('changed.owl.carousel', function (e) {
if (!flags) {
flags = true;
$sync3.trigger('to.owl.carousel', [e.item.index, durations, true]);
flags = false;
}
});
}
//Event Countdown Timer
if($('.time-countdown').length){
$('.time-countdown').each(function() {
var $this = $(this), finalDate = $(this).data('countdown');
$this.countdown(finalDate, function(event) {
var $this = $(this).html(event.strftime('' + '<div class="counter-column"><span class="count">%D</span>Days</div> ' + '<div class="counter-column"><span class="count">%H</span>Hours</div> ' + '<div class="counter-column"><span class="count">%M</span>Minutes</div> ' + '<div class="counter-column"><span class="count">%S</span>Seconds</div>'));
});
});
}
// Image & Thumb Carousel
if ($('.video-tour-section .image-carousel').length && $('.video-tour-section .thumbs-carousel').length) {
var $sync1 = $(".video-tour-section .image-carousel"),
$sync2 = $(".video-tour-section .thumbs-carousel"),
flag = false,
duration = 500;
$sync1
.owlCarousel({
loop:false,
items: 1,
margin: 0,
nav: false,
navText: [ '<span class="icon fa fa-angle-left"></span>', '<span class="icon fa fa-angle-right"></span>' ],
dots: false,
autoplay: true,
autoplayTimeout: 5000
})
.on('changed.owl.carousel', function (e) {
if (!flag) {
flag = false;
$sync2.trigger('to.owl.carousel', [e.item.index, duration, true]);
flag = false;
}
});
$sync2
.owlCarousel({
loop:false,
margin: 20,
items: 1,
nav: true,
navText: [ '<span class="fa fa-long-arrow-left"></span> prev', 'next<span class="fa fa-long-arrow-right"></span>' ],
dots: false,
center: false,
autoplay: true,
mouseDrag:true,
touchDrag:true,
autoplayTimeout: 5000,
responsive: {
0:{
items:2,
autoWidth: false
},
400:{
items:3,
autoWidth: false
},
600:{
items:4,
autoWidth: false
},
800:{
items:4,
autoWidth: false
},
1024:{
items:4,
autoWidth: false
}
},
})
.on('click', '.owl-item', function () {
$sync1.trigger('to.owl.carousel', [$(this).index(), duration, true]);
})
.on('changed.owl.carousel', function (e) {
if (!flag) {
flag = true;
$sync1.trigger('to.owl.carousel', [e.item.index, duration, true]);
flag = false;
}
});
}
// Image & Thumb Carousel
if ($('.property-gallery-box .image-carousel').length && $('.property-gallery-box .thumbs-carousel').length) {
var $sync1 = $(".property-gallery-box .image-carousel"),
$sync2 = $(".property-gallery-box .thumbs-carousel"),
flag = false,
duration = 500;
$sync1
.owlCarousel({
loop:false,
items: 1,
margin: 0,
nav: false,
navText: [ '<span class="icon fa fa-angle-left"></span>', '<span class="icon fa fa-angle-right"></span>' ],
dots: false,
autoplay: true,
autoplayTimeout: 5000
})
.on('changed.owl.carousel', function (e) {
if (!flag) {
flag = false;
$sync2.trigger('to.owl.carousel', [e.item.index, duration, true]);
flag = false;
}
});
$sync2
.owlCarousel({
loop:false,
margin: 20,
items: 1,
nav: true,
navText: [ '<span class="fa fa-long-arrow-left"></span> prev', 'next<span class="fa fa-long-arrow-right"></span>' ],
dots: false,
center: false,
autoplay: true,
mouseDrag:true,
touchDrag:true,
autoplayTimeout: 5000,
responsive: {
0:{
items:2,
autoWidth: false
},
400:{
items:3,
autoWidth: false
},
600:{
items:4,
autoWidth: false
},
800:{
items:4,
autoWidth: false
},
1024:{
items:4,
autoWidth: false
}
},
})
.on('click', '.owl-item', function () {
$sync1.trigger('to.owl.carousel', [$(this).index(), duration, true]);
})
.on('changed.owl.carousel', function (e) {
if (!flag) {
flag = true;
$sync1.trigger('to.owl.carousel', [e.item.index, duration, true]);
flag = false;
}
});
}
//Typeit Text On Main Page
if ($('.variable-text').length) {
$('.variable-text').typeIt({
strings: ["We Are Here to help you for <span class='theme_color'>Everest</span>"],
speed: 150,
breakLines: true,
loop:true,
autoStart: true
});
}
//Client Testimonial Carousel
if ($('.client-testimonial-carousel').length && $('.client-thumbs-carousel').length) {
var $sync3 = $(".client-testimonial-carousel"),
$sync4 = $(".client-thumbs-carousel"),
flag = false,
duration = 500;
$sync3
.owlCarousel({
loop:true,
items: 1,
margin: 0,
nav: true,
navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ],
dots: true,
autoplay: true,
autoplayTimeout: 5000
})
.on('changed.owl.carousel', function (e) {
if (!flag) {
flag = false;
$sync4.trigger('to.owl.carousel', [e.item.index, duration, true]);
flag = false;
}
});
$sync4
.owlCarousel({
loop:true,
margin:20,
items: 1,
nav: false,
navText: [ '<span class="icon flaticon-left-arrow-2"></span>', '<span class="icon flaticon-right-arrow-1"></span>' ],
dots: false,
center: false,
autoplay: true,
autoplayTimeout: 5000,
responsive: {
0:{
items:1,
autoWidth: false
},
400:{
items:1,
autoWidth: false
},
600:{
items:1,
autoWidth: false
},
1000:{
items:1,
autoWidth: false
},
1200:{
items:1,
autoWidth: false
}
},
})
.on('click', '.owl-item', function () {
$sync3.trigger('to.owl.carousel', [$(this).index(), duration, true]);
})
.on('changed.owl.carousel', function (e) {
if (!flag) {
flag = true;
$sync3.trigger('to.owl.carousel', [e.item.index, duration, true]);
flag = false;
}
});
}
//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){
$(outerBox).find('.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).find('.accordion').children('.acc-content').slideUp(300);
target.addClass('active-block');
$(this).next('.acc-content').slideDown(300);
}
});
}
//Fact Counter + Text Count
if($('.count-box').length){
$('.count-box').appear(function(){
var $t = $(this),
n = $t.find(".count-text").attr("data-stop"),
r = parseInt($t.find(".count-text").attr("data-speed"), 10);
if (!$t.hasClass("counted")) {
$t.addClass("counted");
$({
countNum: $t.find(".count-text").text()
}).animate({
countNum: n
}, {
duration: r,
easing: "linear",
step: function() {
$t.find(".count-text").text(Math.floor(this.countNum));
},
complete: function() {
$t.find(".count-text").text(this.countNum);
}
});
}
},{accY: 0});
}
//Event Countdown Timer
if($('.time-countdown').length){
$('.time-countdown').each(function() {
var $this = $(this), finalDate = $(this).data('countdown');
$this.countdown(finalDate, function(event) {
var $this = $(this).html(event.strftime('' + '<div class="counter-column"><span class="count">%D</span>/ Days</div> ' + '<div class="counter-column"><span class="count">%H</span>/ Hours</div> ' + '<div class="counter-column"><span class="count">%M</span>/ Mins</div> ' + '<div class="counter-column"><span class="count">%S</span>/ Secs</div>'));
});
});
}
//Tabs Box
if($('.tabs-box').length){
$('.tabs-box .tab-buttons .tab-btn').on('click', function(e) {
e.preventDefault();
var target = $($(this).attr('data-tab'));
if ($(target).is(':visible')){
return false;
}else{
target.parents('.tabs-box').find('.tab-buttons').find('.tab-btn').removeClass('active-btn');
$(this).addClass('active-btn');
target.parents('.tabs-box').find('.tabs-content').find('.tab').fadeOut(0);
target.parents('.tabs-box').find('.tabs-content').find('.tab').removeClass('active-tab');
$(target).fadeIn(300);
$(target).addClass('active-tab');
}
});
}
//Time Picker
if($('.timepicker').length){
$('.timepicker').timepicker();
}
//Progress Bar / Levels
if($('.progress-levels .progress-box .bar-fill').length){
$(".progress-box .bar-fill").each(function() {
$('.progress-box .bar-fill').appear(function(){
var progressWidth = $(this).attr('data-percent');
$(this).css('width',progressWidth+'%');
});
},{accY: 0});
}
//Custom Seclect Box
if($('.custom-select-box').length){
$('.custom-select-box').selectmenu().selectmenu('menuWidget').addClass('overflow');
}
//Gallery Filters
if($('.filter-list').length){
$('.filter-list').mixItUp({});
}
//LightBox / Fancybox
if($('.lightbox-image').length) {
$('.lightbox-image').fancybox({
openEffect : 'fade',
closeEffect : 'fade',
helpers : {
media : {}
}
});
}
//Contact Form Validation
if($('#contact-form').length){
$('#contact-form').validate({
rules: {
username: {
required: true
},
email: {
required: true,
email: true
},
subject: {
required: true
},
message: {
required: true
}
}
});
}
// 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
}, 1500);
});
}
// Elements Animation
if($('.wow').length){
var wow = new WOW(
{
boxClass: 'wow', // animated element css class (default is wow)
animateClass: 'animated', // animation css class (default is animated)
offset: 0, // distance to the element when triggering the animation (default is 0)
mobile: false, // trigger animations on mobile devices (default is true)
live: true // act on asynchronously loaded content (default is true)
}
);
wow.init();
}
/* ==========================================================================
When document is Scrollig, do
========================================================================== */
$(window).on('scroll', function() {
headerStyle();
});
/* ==========================================================================
When document is loading, do
========================================================================== */
$(window).on('load', function() {
handlePreloader();
enableMasonry();
});
})(window.jQuery);