File manager - Edit - /home/asiatechinc/public_html/asiatech-websites/jawaiberaleopardcamp.com/js/script.js
Back
(function($) { "use strict"; /* ----- Preloader ----- */ function preloaderLoad() { if($('.preloader').length){ $('.preloader').delay(200).fadeOut(300); } $('.preloader_disabler').on('click', function () { $('.preloader').hide(); }); } /* ----- Navbar Scroll To Fixed ----- */ function navbarScrollfixed() { $('.navbar-scrolltofixed').scrollToFixed(); var summaries = $('.summary'); summaries.each(function(i) { var summary = $(summaries[i]); var next = summaries[i + 1]; summary.scrollToFixed({ marginTop: $('.navbar-scrolltofixed').outerHeight(true) + 10, limit: function() { var limit = 0; if (next) { limit = $(next).offset().top - $(this).outerHeight(true) - 10; } else { limit = $('.footer').offset().top - $(this).outerHeight(true) - 10; } return limit; }, zIndex: 999 }); }); } /* ----- fact-counter ----- */ function counterNumber() { $('div.timer').counterUp({ delay: 5, time: 2000 }); } /* ----- MASONRY ISOTOP GALLERY ----- */ if ($('.masonry-gallery').length>0 || $('.masonry-grid').length>0 || $('.masonry-grid-fitrows').length>0) { $(window).on('load',function() { $('.masonry-gallery').fadeIn(); var $container = $('.masonry-gallery').isotope({ itemSelector: '.isotope-item', layoutMode: 'masonry', transitionDuration: '0.6s', filter: "*" }); $('.masonry-grid').isotope({ itemSelector: '.masonry-grid-item', layoutMode: 'masonry' }); $('.masonry-grid-fitrows').isotope({ itemSelector: '.masonry-grid-item', layoutMode: 'fitRows' }); // filter items on button click $('.masonry-filter').on( 'click', 'li a', function() { var filterValue = $(this).attr('data-filter'); $(".masonry-filter").find("a.active").removeClass("active"); $(this).parent().addClass("active"); $container.isotope({ filter: filterValue }); return false; }); }); }; /* ----- LighvtBox / Fancybox ----- */ if($('.lightbox-image').length) { $('.lightbox-image').fancybox(); } /* ----- MagnificPopup ----- */ if (($(".popup-img").length > 0) || ($(".mfp-iframe").length > 0) || ($(".mfp-img-single").length > 0)) { $(".popup-img").magnificPopup({ type:"image", gallery: { enabled: true, } }); $(".mfp-img-single").magnificPopup({ type:"image", gallery: { enabled: false, } }); $('.mfp-iframe').magnificPopup({ disableOn: 700, type: 'iframe', preloader: false, fixedContentPos: false }); $('.mfp-youtube, .mfp-vimeo, .mfp-gmaps').magnificPopup({ disableOn: 700, type: 'iframe', mainClass: 'mfp-fade', removalDelay: 160, preloader: false, fixedContentPos: false, iframe: { patterns: { youtube: { src: '//www.youtube.com/embed/%id%?autoplay=1&rel=0' } } } }); $('.mfp-youtube, .mfp-vimeo').on('click', function(e){ return false; }); }; /* ----- Progress Bar ----- */ if($('.progress-levels .progress-box .bar-fill').length){ $(".progress-box .bar-fill").each(function() { var progressWidth = $(this).attr('data-percent'); $(this).css('width',progressWidth+'%'); $(this).children('.percent').html(progressWidth+'%'); }); } /* ----- BarFill ----- */ function barFill() { $('#bar1').barfiller(); $('#bar2').barfiller(); $('#bar3').barfiller(); $('#bar4').barfiller(); } /* ----- Background Parallax ----- */ var isMobile = { Android: function() { return navigator.userAgent.match(/Android/i); }, BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i); }, iOS: function() { return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, Opera: function() { return navigator.userAgent.match(/Opera Mini/i); }, Windows: function() { return navigator.userAgent.match(/IEMobile/i); }, any: function() { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); } }; jQuery(document).on('ready',function(){ jQuery(window).stellar({ horizontalScrolling: false, hideDistantElements: true, verticalScrolling: !isMobile.any(), scrollProperty: 'scroll', responsive: true }); }); /* ----- YTplayer ----- */ if($('.player').length) { $(".player").mb_YTPlayer(); } /* ----- Vimeo ----- */ if($('#myvideo').length) { $("#myvideo").vimeo("play"); } /* ----- fitVids ----- */ if($('.body, #my-video').length) { $('.body').fitVids(); } /* ----- Project Box ----- */ if($('.hover').length) { $(".hover").mouseleave( function() { $(this).removeClass("hover"); } ); } /* ----- Wow animation ----- */ function wowAnimation() { var wow = new WOW({ animateClass: 'animated', mobile: true, // trigger animations on mobile devices (default is true) offset: 0 }); wow.init(); } /* ----- FLIP CLOCK ----- */ function flip_Clock() { var clock; var clock; clock = $('.clock').FlipClock({ clockFace: 'DailyCounter', autoStart: false, callbacks: { stop: function() { $('.message').html('The clock has stopped!') } } }); clock.setTime(8220880); clock.setCountdown(true); clock.start(); } /* ----- FULL CALENDAR ----- */ if($('.calendar').length){ $('.calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' }, defaultDate: '2018-05-22', navLinks: true, // can click day/week names to navigate views selectable: true, selectHelper: true, select: function(start, end) { var title = prompt('Event Title:'); var eventData; if (title) { eventData = { title: title, start: start, end: end }; $('.calendar').fullCalendar('renderEvent', eventData, true); // stick? = true } $('.calendar').fullCalendar('unselect'); }, editable: true, eventLimit: true, // allow "more" link when too many events events: [ { title: 'All Day Event', start: '2018-05-01' }, { title: 'Long Event', start: '2018-05-07', end: '2018-05-10' }, { id: 999, title: 'Repeating Event', start: '2018-05-09T16:00:00' }, { id: 999, title: 'Repeating Event', start: '2018-05-16T16:00:00' }, { title: 'Conference', start: '2018-05-11', end: '2018-05-13' }, { title: 'Meeting', start: '2018-05-12T10:30:00', end: '2018-05-12T12:30:00' }, { title: 'Lunch', start: '2018-05-12T12:00:00' }, { title: 'Meeting', start: '2018-05-12T14:30:00' }, { title: 'Happy Hour', start: '2018-05-12T17:30:00' }, { title: 'Dinner', start: '2018-05-12T20:00:00' }, { title: 'Birthday Party', start: '2018-05-13T07:00:00' }, { title: 'Click for Google', url: 'http://google.com/', start: '2018-05-28' } ] }); } if($('#calendar').length){ $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'listDay,listWeek,month' }, // customize the button names, // otherwise they'd all just say "list" views: { listDay: { buttonText: 'list day' }, listWeek: { buttonText: 'list week' } }, defaultView: 'listWeek', defaultDate: '2018-05-12', navLinks: true, // can click day/week names to navigate views editable: true, eventLimit: true, // allow "more" link when too many events events: [ { title: 'All Day Event', start: '2018-05-01' }, { title: 'Long Event', start: '2018-05-07', end: '2018-05-10' }, { id: 999, title: 'Repeating Event', start: '2018-05-09T16:00:00' }, { id: 999, title: 'Repeating Event', start: '2018-05-16T16:00:00' }, { title: 'Conference', start: '2018-05-11', end: '2018-05-13' }, { title: 'Meeting', start: '2018-05-12T10:30:00', end: '2018-05-12T12:30:00' }, { title: 'Lunch', start: '2018-05-12T12:00:00' }, { title: 'Meeting', start: '2018-05-12T14:30:00' }, { title: 'Happy Hour', start: '2018-05-12T17:30:00' }, { title: 'Dinner', start: '2018-05-12T20:00:00' }, { title: 'Birthday Party', start: '2018-05-13T07:00:00' }, { title: 'Click for Google', url: 'http://google.com/', start: '2018-05-28' } ] }); } /* ----- Countdown ----- */ if($('#countdown').length){ $('#countdown').timeTo({ timeTo: new Date(new Date('Thu Dec 15 2017 09:00:00 GMT+0600 (Bangladesh Standard Time)')), displayDays: 2, theme: "white", displayCaptions: true, fontSize: 24, captionSize: 14 }); } if($('.countdown').length){ $('.countdown').timeTo({ timeTo: new Date(new Date('Thu Dec 15 2017 09:00:00 GMT+0600 (Bangladesh Standard Time)')), displayDays: 2, theme: "white", displayCaptions: true, fontSize: 60, captionSize: 24 }); } /* ----- GraphBox Design ----- */ if($('#graph, #graph2, #graph3').length){ $('#graph').graphify({ //options: true, start: 'combo', obj: { id: 'ggg', height: 375, xGrid: false, legend: true, title: 'Weekly Status', points: [ [7, 26, 33, 74, 12, 49, 33], [32, 46, 75, 38, 62, 20, 52] ], pointRadius: 3, colors: ['#023368', 'red'], xDist: 90, dataNames: ['Graph 1', 'Graph 2'], xName: 'Day', tooltipWidth: 15, animations: true, pointAnimation: true, averagePointRadius: 10, design: { tooltipColor: '#fff', gridColor: 'grey', tooltipBoxColor: 'green', averageLineColor: 'green', pointColor: 'green', lineStrokeColor: 'grey', } } }); $('#graph2').graphify({ start: 'donut', obj: { id: 'lol', legend: false, showPoints: true, width: 775, legendX: 450, pieSize: 200, shadow: true, height: 400, animations: true, x: [2000, 2001, 2002, 2003, 2004, 2005, 2010], points: [17, 33, 64, 22, 87, 45, 38], xDist: 90, scale: 12, yDist: 35, grid: false, xName: 'Year', dataNames: ['Amount'], design: { lineColor: 'red', tooltipFontSize: '20px', pointColor: 'red', barColor: 'blue', areaColor: 'orange' } } }); var bar = new GraphBar({ attachTo: '#graph3', special: 'combo', height: 725, width: '100%', yDist: 60, xDist: 150, showPoints: false, xGrid: false, legend: true, points: [ [17, 21, 51, 74, 12, 49, 33], [32, 15, 75, 20, 45, 90, 52] ], colors: ['red', 'orange'], dataNames: ['Hot', 'Warm'], xName: 'Day', tooltipWidth: 15, design: { tooltipColor: '#fff', gridColor: 'black', tooltipBoxColor: 'green', averageLineColor: 'blue', } }); bar.init(); } /* ----- Date & time Picker ----- */ if($('.datepicker').length){ $('.datepicker').datetimepicker(); } /* ----- Home Maximage Slider ----- */ if($('#maximage').length){ $('#maximage').maximage({ cycleOptions: { fx:'fade', speed: 500, timeout: 20000, prev: '#arrow_left', next: '#arrow_right' }, onFirstImageLoaded: function(){ jQuery('#cycle-loader').hide(); jQuery('#maximage').fadeIn('fast'); } }); // Helper function to Fill and Center the HTML5 Video jQuery('#html5video').maximage('maxcover'); // To show it is dynamic html text jQuery('.in-slide-content').delay(2000).fadeIn(); } /* ----- PG Slider ----- */ if($('#js-main-slider').length){ $('#js-main-slider').pogoSlider({ autoplay: true, autoplayTimeout: 5000, displayProgess: true, preserveTargetSize: true, targetWidth: 1000, targetHeight: 300, responsive: true }).data('plugin_pogoSlider'); } /* ----- FullPage Slider, Particles Script & Multiscroll ----- */ if($('#particles2-effect').length){ $("#particles2-effect").jParticle({ background: "#023368", color: "#fff" }); } if($('#fullpage').length){ $('#fullpage').fullpage({ navigation: true, navigationPosition: 'right', sectionsColor: ['#F0F2F4', '#fafafa', '#F0F2F4', 'whitesmoke', '#f9f9f9'] }); } if($('#myContainer').length){ $('#myContainer').multiscroll({ sectionsColor: ['#C63D0F', '#1BBC9B', '#7E8F7C'], anchors: ['first', 'second', 'third'], menu: '#menu', css3: true, paddingTop: '70px', paddingBottom: '70px' }); } // Owl-main-slider-carousel if($('.main-slider2').length){ $('.main-slider2').owlCarousel({ animateIn: 'pulse', loop:true, margin:0, dots: false, nav:true, rtl:true, autoplayHoverPause:false, autoplay: false, autoHeight:true, smartSpeed: 2000, navText: [ '<i class="fa fa-long-arrow-left"></i>', '<i class="fa fa-long-arrow-right"></i>' ], responsive: { 0: { items: 1, center: false }, 480:{ items:1, center: false }, 600: { items: 1, center: false }, 768: { items: 1 }, 992: { items: 1 }, 1200: { items: 1 } } }) } /* Owl-Feature-Service */ if($('.fservice-slider').length){ $('.fservice-slider').owlCarousel({ loop:true, margin:10, dots: false, items: 2, nav:false, rtl:true, autoplayHoverPause:true, autoplay: true, smartSpeed: 500, singleItem: true, navText: [ '<i class="flaticon-left-arrow"></i>', '<i class="flaticon-right-arrow"></i>' ], responsive: { 0: { items: 1, center: false }, 480:{ items:1, center: false }, 600: { items: 2, center: false }, 768: { items: 3 }, 992: { items: 4 }, 1200: { items: 4 }, 1300: { items: 4 }, 1900: { items: 4 } } }) } /* Owl-single-post-carousel */ if($('.blog-post-img-slider').length){ $('.blog-post-img-slider').owlCarousel({ loop:true, margin:5, dots: false, nav:true, autoplayHoverPause:true, autoplay: true, smartSpeed: 1200, navText: [ '<i class="flaticon-left-arrow"></i>', '<i class="flaticon-right-arrow"></i>' ], responsive: { 0: { items: 1, center: false }, 480:{ items:1, center: false }, 600: { items: 1, center: false }, 768: { items: 1 }, 992: { items: 1 }, 1200: { items: 1 } } }) } /* Owl-Testimonial-carousel */ if($('.testimonial-carousel').length){ $('.testimonial-carousel').bxSlider({ auto: true, infiniteLoop: true, mode: 'vertical', nextSelector: '#slider-next', prevSelector: '#slider-prev', pager: false, slideMargin: 5, speed: 3000 }); } /* Owl-gallery-carousel */ if($('.fancybox-gallery-slider').length){ $('.fancybox-gallery-slider').owlCarousel({ loop:true, margin:15, dots: false, nav:true, rtl:true, autoplayHoverPause:false, autoplay: true, smartSpeed: 1800, navText: [ '<i class="flaticon-left-arrow"></i>', '<i class="flaticon-right-arrow"></i>' ], responsive: { 0: { items: 1, center: false }, 480:{ items:1, center: false }, 600: { items: 2, center: false }, 768: { items: 3 }, 992: { items: 4 }, 1200: { items: 4 }, 1366: { items: 4 }, 1920: { items: 4 } } }) } /* Gift-Slider */ if($('.three-grid-slider').length){ $('.three-grid-slider').owlCarousel({ loop:true, margin:15, dots: false, nav:false, rtl:true, autoplayHoverPause:false, autoplay: true, smartSpeed: 1200, singleItem: true, navText: [ '<i class="fa fa-long-arrow-left"></i>', '<i class="fa fa-long-arrow-right"></i>' ], responsive: { 0: { items: 1, center: false }, 320:{ items: 1, center: false }, 480:{ items: 1, center: false }, 600: { items: 2, center: false }, 768: { items: 3 }, 992: { items: 3 }, 1200: { items: 3 } } }) } /* Gift-Slider */ if($('.gift-slider').length){ $('.gift-slider').owlCarousel({ animateIn: 'fadeIn', loop:true, margin:15, dots: false, nav:false, rtl:true, autoplayHoverPause:false, autoplay: true, smartSpeed: 1200, singleItem: true, navText: [ '<i class="fa fa-long-arrow-left"></i>', '<i class="fa fa-long-arrow-right"></i>' ], responsive: { 0: { items: 1, center: false }, 320:{ items: 2, center: false }, 480:{ items: 3, center: false }, 600: { items: 3, center: false }, 768: { items: 4 }, 992: { items: 6 }, 1200: { items: 6 } } }) } /* Unlock 1st BS SLider */ function mhome_slider() { //Function to animate slider captions function doAnimations( elems ) { //Cache the animationend event in a variable var animEndEv = 'webkitAnimationEnd animationend'; elems.each(function () { var $this = $(this), $animationType = $this.data('animation'); $this.addClass($animationType).one(animEndEv, function () { $this.removeClass($animationType); }); }); } //Variables on page load var $myCarousel = $('#sg-carousel'), $firstAnimatingElems = $myCarousel.find('.item:first').find("[data-animation ^= 'animated']"); //Initialize carousel $myCarousel.carousel(); //Animate captions in first slide on page load doAnimations($firstAnimatingElems); //Pause carousel $myCarousel.carousel('pause'); //Other slides to be animated on carousel slide event $myCarousel.on('slide.bs.carousel', function (e) { var $animatingElems = $(e.relatedTarget).find("[data-animation ^= 'animated']"); doAnimations($animatingElems); }); } /* Shop Slider */ if($('#custom_carousel').length){ $('#custom_carousel').on('slide.bs.carousel', function (evt) { $('#custom_carousel .controls li.active').removeClass('active'); $('#custom_carousel .controls li:eq('+$(evt.relatedTarget).index()+')').addClass('active'); }) } /* ----- Google Map Settings ----- */ // if($('#map-location').length){ // var map; // map = new GMaps({ // url: '../images/resource/flake.png', // el: '#map-location', // zoom: 17, // scrollwheel:false, // //Set Latitude and Longitude Here // lat: 40.712850, // lng: -74.006465 // }); // } /* ----- FLICEKR FEED ----- */ // if($('.flickr-photo').length){ // $('.flickr-photo').jflickrfeed({ // limit: 9, // qstrings: { // id: '44802888@N04' // }, // itemTemplate: // '<li>' + // '<a href="{{image_b}}"><img src="{{image_s}}" alt="{{title}}" /></a>' + // '</li>' // }); // } /* ----- FLICEKR FEED ----- */ // function twitterFeed() { // $('.twitter').twittie({ // dateFormat: '%b. %d, %Y', // template: '{{tweet}} <div class="date">{{date}}</div> <a href="{{url}}" target="_blank">Details</a>', // count: 2, // hideReplies: true // }); // } /* ----- INSTAGRAM FEED ----- */ // function instagram_feed() { // var uins_feed = new Instafeed({ // get: 'user', // userId: 1691981710, // accessToken: '1691981710.b1cd863.1c4d5299499e466392732854131d0641', // resolution: 'standard_resolution', // target: 'instafeed', // limit: 9, // mock: true, // success: function(data) { // for(i=0;i<data.data.length;i++) { // // console.log(data.data[i]); // console.log(data.data[i].images.low_resolution.width); // if (data.data[i].images.low_resolution.width == data.data[i].images.low_resolution.height) { // $('#instafeed').append('<div class="instagram-feed-image"><a href="'+ data.data[i].link +'" target="_blank"><img src="'+data.data[i].images.standard_resolution.url+'" /></a></div>' // ); // } // } // } // }); // uins_feed.run(); // } /* ----- Scroll To top ----- */ function scrollToTop() { $(window).scroll(function(){ if ($(this).scrollTop() > 600) { $('.scrollToHome').fadeIn(); } else { $('.scrollToHome').fadeOut(); } }); //Click event to scroll to top $('.scrollToHome').on('click',function(){ $('html, body').animate({scrollTop : 0},800); return false; }); } /* ====== When document is ready, do ====== */ $(document).on('ready', function() { // add your functions navbarScrollfixed(); scrollToTop(); wowAnimation(); //flip_Clock(); // twitterFeed(); barFill(); mhome_slider(); //instagram_feed(); }); /* ====== When document is loading, do ====== */ // window on Load function $(window).on('load', function() { // add your functions preloaderLoad(); counterNumber(); }); // window on Scroll function $(window).scroll(function() { // add your functions }); })(window.jQuery);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings