1(function($){ 2 jQuery(window).on('load',function(){ 3 //Window Load 4 $('body').removeClass('preload'); 5 $('body').addClass('loaded'); 6 7 //Show Search 8 if($('.box-search').length>0){ 9 $('.box-search form').click(function() { 10 var $this = $(this); 11 $this.parent().addClass("show-search"); 12 $('.box-search.show-search input[type=text]').css({"width":"200", "visibility":"visible"}); 13 $('.box-search.show-search input[type=submit]').css({"position":"absolute"}); 14 }); 15 $('body').bind('click', function(e) { 16 if($(e.target).closest('.show-search').length == 0) { 17 $('.box-search.show-search input[type=text]').css({"width":"0", "visibility":"hidden"}); 18 $('.box-search input[type=submit]').css({"position":"initial"}); 19 $('.box-search').removeClass("show-search"); 20 } 21 }); 22 } 23 24 //Menu Responsive 25 if($(".main-nav").length>0){ 26 $(".main-nav").on("click","span", function(e){ 27 $('.main-nav>ul').slideToggle(); 28 $(this).parent().addClass('blind-nav'); 29 }); 30 $('body').bind('click', function(e) { 31 if($(e.target).closest('.blind-nav').length == 0) { 32 $('.blind-nav ul').fadeOut(); 33 $('.main-nav').removeClass("blind-nav"); 34 } 35 }); 36 $('.main-nav>ul li.menu-item-has-children>a i').on('click',function(event){ 37 if($(window).width()<992){ 38 $(this).parent().next().stop().slideToggle(); 39 } 40 }); 41 } 42 43 44 //Owl Carousel 45 if($('.wrap-item').length>0){ 46 $('.wrap-item').each(function(){ 47 var data = $(this).data(); 48 $(this).owlCarousel({ 49 addClassActive:true, 50 stopOnHover:true, 51 itemsCustom:data.itemscustom, 52 autoPlay:data.autoplay, 53 transitionStyle:data.transition, 54 paginationNumbers:data.paginumber, 55 navigationText:['<i class="ion-android-arrow-back" aria-hidden="true"></i>','<i class="ion-android-arrow-forward" aria-hidden="true"></i>'], 56 }); 57 }); 58 } 59 60 //Fix Owl buttons 61 if($('.home2-slider').length>0){ 62 $(".home2-slider .owl-controls").addClass("container"); 63 if($('.home2-slider .clickable').length>0) { 64 $(".clickable").css({ 65 overflow: 'inherit' 66 }); 67 } 68 } 69 if($('.top-listing4').length>0){ 70 $(".top-listing4 .owl-controls").addClass("container"); 71 if($('.top-listing4 .clickable').length>0) { 72 $(".clickable").css({ 73 overflow: 'inherit' 74 }); 75 } 76 } 77 78 //Play Video 79 if($('.ads-style3').length>0){ 80 $('.ads-style3 .video-button').click(function(){ 81 $(this).parent().parent().find('#my-video').get(0).play(); 82 var id = '#dialog'; 83 //Get the screen height and width 84 var maskHeight = $(document).height(); 85 var maskWidth = $(window).width(); 86 //Set heigth and width to mask to fill up the whole screen 87 $('#mask').css({'width':maskWidth,'height':maskHeight}); 88 //transition effect 89 $('#mask').fadeIn(500); 90 $('#mask').fadeTo("slow",0.9); 91 //Get the window height and width 92 var winH = $(window).height(); 93 var winW = $(window).width(); 94 //Set the popup window to center 95 $(id).css('top', winH/2-$(id).height()/2); 96 $(id).css('left', winW/2-$(id).width()/2); 97 //transition effect 98 $(id).fadeIn(2000); 99 //if mask is clicked 100 $('#mask').click(function () { 101 $(this).hide(); 102 $('.window').hide(); 103 $('#my-video').get(0).pause(); 104 }); 105 return false; 106 }); 107 } 108 if($('.video-home3').length>0) { 109 $('.video2').click(function () { 110 $(this).parent().hide(); 111 $(this).parent().parent().find('.post-info').hide(); 112 $(this).parent().parent().find('.bottom-video').show(); 113 $('#seccond-video').get(0).play(); 114 }); 115 } 116 117 //Back To Top 118 $('.scroll-top').on('click',function(event){ 119 event.preventDefault(); 120 $('html, body').animate({scrollTop:0}, 'slow'); 121 }); 122 $('.percentage').each(function(){ 123 var data = $(this).data(); 124 // console.log(data); 125 $(this).circularloader({ 126 backgroundColor: "#ffffff",//background colour of inner circle 127 fontColor: "#000000",//font color of progress text 128 fontSize: "40px",//font size of progress text 129 radius: 11,//radius of circle
130 progressBarBackground: "#e8e8e8",//background colour of circular progress Bar 131 progressBarColor: data.color,//colour of circular progress bar 132 progressBarWidth: 3,//progress bar width 133 progressPercent: data.value,//progress percentage out of 100 134 progressValue:0,//diplay this value instead of percentage 135 showText: false,//show progress text or not 136 title: "",//show header title for the progress bar 137 }); 138 }); 139 //Window Scroll 140 jQuery(window).on('scroll',function(){ 141 //Scroll Top 142 if($(this).scrollTop()>$(this).height()){ 143 $('.scroll-top').addClass('active'); 144 }else{ 145 $('.scroll-top').removeClass('active'); 146 } 147 }); 148 149 150 }); 151})(jQuery); // End of use strict
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.