1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opens = _____WB$wombat$assign$function_____("opens"); 10/*--------------------------------------------- 11Template name: jironis 12Version: 1.0 13Author: layerdrops 14Author Email: [email protected] 15 16NOTE: 17------ 18Please DO NOT EDIT THIS JS, you may need to use "custom.js" file for writing your custom js. 19We may release future updates so it will overwrite this file. it's better and safer to use "custom.js". 20 21[Table of Content] 22 2301: Main menu 2402: Background image 2503: Parsley form validation 2604: Back to top button 2705: Changing svg color 2806: Ajax Contact Form 29 07: Preloader 3008: Content animation 3109: counter up 3210: Parallax 3311: Google map 3412: testimonial carousel 3513: partner carousel 3614: banner carouser 3 3715: testimonial carousel2 3816: video popup 39 40 41----------------------------------------------*/ 42 43 (function($) { 44 "use strict"; 45 46 47 /* 01: Main menu 48 ==============================================*/ 49 50 $('.header-menu a[href="#"]').on('click', function(event) { 51 event.preventDefault(); 52 }); 53 54 $(".header-menu").menumaker({ 55 title: '<i class="fa fa-bars"></i>', 56 format: "multitoggle" 57 }); 58 59 var mainHeader = $('.main-header'); 60 61 if($(window).scrollTop() > 100) $('.main-header').addClass('sticky fadeInDown') 62 $(window).on('scroll', function(e){ 63 if($(this).scrollTop() < 100){ 64 $('.main-header').removeClass('sticky fadeInDown') 65 }else 66 $('.main-header').addClass('sticky fadeInDown') 67 }); 68 69 /* 02: Background image 70 ==============================================*/ 71 72 var bgImg = $('[data-bg-img]'); 73 74 bgImg.css('background', function(){ 75 return 'url(' + $(this).data('bg-img') + ') center center'; 76 }); 77 78 79 80 81 /* 03: Parsley form validation 82 ==============================================*/ 83 84 $('.parsley-validate, .parsley-validate form').parsley(); 85 86 /*============================================ 87 04: Back to top button 88 ==============================================*/ 89 90 var $backToTopBtn = $('.back-to-top'); 91 92 if ($backToTopBtn.length) { 93 var scrollTrigger = 400, // px 94 backToTop = function () { 95 var scrollTop = $(window).scrollTop(); 96 if (scrollTop > scrollTrigger) { 97 $backToTopBtn.addClass('show'); 98 } else { 99 $backToTopBtn.removeClass('show'); 100 } 101 }; 102 103 backToTop(); 104 105 $(window).on('scroll', function () { 106 backToTop(); 107 }); 108 109 $backToTopBtn.on('click', function (e) { 110 e.preventDefault(); 111 $('html,body').animate({ 112 scrollTop: 0 113 }, 700); 114 }); 115 } 116 117/*========================================== 118 14: feature-carousel 119===========================================*/ 120 121$('.feature-carousel').owlCarousel({ 122 loop: true, 123 margin: 30, 124 center: true, 125 dots:true, 126 autoplay: true, 127 autoplayTimeout: 4000, 128 responsive: { 129 0: { 130 items: 1, 131 132 }, 133 575: { 134 items: 1, 135 136 }, 137 768: { 138 items: 2 139 }, 140 991: { 141 items: 2 142 }, 143 992: { 144 items: 3 145 } 146 } 147}) 148 149/* ================================================= 150 app carousel
151================================================= */ 152 153 $('.app-carousel').owlCarousel({ 154 loop: true, 155 margin: 30, 156 center: true, 157 dots: true, 158 responsive: { 159 0: { 160 items: 1 161 }, 162 575: { 163 items: 1 164 }, 165 700: { 166 items: 1 167 }, 168 1000: { 169 items: 1 170 } 171 } 172 }) 173 /*============================================= 174 05: Changing svg color 175 ==============================================*/ 176 177 jQuery('img.svg').each(function(){ 178 var $img = jQuery(this); 179 var imgID = $img.attr('id'); 180 var imgClass = $img.attr('class'); 181 var imgURL = $img.attr('src'); 182 183 jQuery.get(imgURL, function(data) { 184 // Get the SVG tag, ignore the rest 185 var $svg = jQuery(data).find('svg'); 186 187 // Add replaced image's ID to the new SVG 188 if(typeof imgID !== 'undefined') { 189 $svg = $svg.attr('id', imgID); 190 } 191 // Add replaced image's classes to the new SVG 192 if(typeof imgClass !== 'undefined') { 193 $svg = $svg.attr('class', imgClass+' replaced-svg'); 194 } 195 196 // Remove any invalid XML tags as per http://validator.w3.org 197 $svg = $svg.removeAttr('xmlns:a'); 198 199 // Check if the viewport is set, else we gonna set it if we can. 200 if(!$svg.attr('viewBox') && $svg.attr('height') && $svg.attr('width')) { 201 $svg.attr('viewBox', '0 0 ' + $svg.attr('height') + ' ' + $svg.attr('width')); 202 } 203 204 // Replace image with new SVG 205 $img.replaceWith($svg); 206 207 }, 'xml'); 208 }); 209 210 /*============================================= 211 06: Ajax Contact Form 212 ==============================================*/ 213 214 215 $('.contact-form').on('submit', 'form', function(e) { 216 e.preventDefault(); 217 218 var $el = $(this); 219 220 $.post($el.attr('action'), $el.serialize(), function(res){ 221 res = $.parseJSON( res ); 222 $el.parent('.contact-page-form').find('.form-response').html('<span>' + res[1] + '</span>'); 223 }); 224 }); 225 226 227 /*============================================ 228 07: Preloader 229 ==============================================*/ 230 231 $(window).on('load', function(){ 232 233 function removePreloader() { 234 var preLoader = $('.preLoader'); 235 preLoader.fadeOut(); 236 } 237 setTimeout(removePreloader, 250); 238 }); 239 240 241 /* 08: Content animation 242 ==============================================*/ 243 244 $(window).on('load', function(){ 245 246 var $animateEl = $('[data-animate]'); 247 248 $animateEl.each(function () { 249 var $el = $(this), 250 $name = $el.data('animate'), 251 $duration = $el.data('duration'), 252 $delay = $el.data('delay'); 253 254 $duration = typeof $duration === 'undefined' ? '0.6' : $duration ; 255 $delay = typeof $delay === 'undefined' ? '.1' : $delay ; 256 257 $el.waypoint(function () { 258 $el.addClass('animated ' + $name) 259 .css({ 260 'animation-duration': $duration + 's', 261 'animation-delay': $delay + 's' 262 }); 263 }, {offset: '93%'}); 264 }); 265 }); 266 267 /*========================================================= 268 09: counter up 269 =========================================================*/ 270 $('.counter').counterUp({}); 271 272 /*==================================================== 273 10: Parallax 274 ====================================================*/ 275 var $parallaxLayers = $('[data-trigger="parallax_layers"]'); 276 277 if( $parallaxLayers.length ){ 278 $parallaxLayers.each(function () { 279 new Parallax( $(this)[0], { 280 selector: '[data-depth]' 281 }); 282 }); 283 } 284 285 286 287 /* 16: video popup */ 288 var t = $(".video-btn"); 289 t.length && t.magnificPopup({ 290 type: "iframe" 291 }) 292 293 // parice tabele 294 $('.single-price-plan').on('mouseenter', function(){ 295 $(this).addClass('active').parent().siblings().find('.single-price-plan').removeClass('active'); 296 }) 297 298 /*===================================================== 299 13: partner carousel
300=====================================================*/ 301 $('.partner-carousel').owlCarousel({ 302 loop: true, 303 margin: 20, 304 nav: false, 305 dots: false, 306 autoplay:true, 307 autoplayTimeout:4000, 308 autoplaySpeed:3000, 309 responsive: { 310 0: { 311 items: 3 312 }, 313 500: { 314 items: 3 315 }, 316 768: { 317 items: 4 318 }, 319 992: { 320 items: 5 321 } 322 } 323 }) 324 325 /* scroll */ 326 327 $(".header-menu ul li a").on("click", function(t) { 328 var c = $(this.hash); 329 if(c.length !==0 ){ 330 $("html,body").animate({ 331 scrollTop: c.offset().top 332 }, 700); 333 } 334 }) 335 336 /* testimonial */ 337/*===================================================== 338 13: partner carousel 339=====================================================*/ 340 let author = $('.author-carousel') 341 author.owlCarousel({ 342 loop: true, 343 margin: 20, 344 nav: true, 345 center:true, 346 dots: false, 347 responsive: { 348 0: { 349 items: 1 350 }, 351 500: { 352 items: 1 353 }, 354 768: { 355 items: 1 356 }, 357 992: { 358 items: 1 359 } 360 } 361 }) 362 363 let author_cumment = $('.author-comment-carousel'); 364 author_cumment.owlCarousel({ 365 loop: true, 366 margin: 20, 367 nav: true, 368 navText: ['<i class="fa fa-angle-left">', '<i class="fa fa-angle-right">'], 369 dots: false, 370 responsive: { 371 0: { 372 items: 1 373 }, 374 500: { 375 items: 1 376 }, 377 768: { 378 items: 1 379 }, 380 992: { 381 items: 1 382 } 383 } 384 }); 385 386 $('.author-comment-carousel .owl-next').on('click', function () { 387 $('.author-carousel .owl-next').click() 388 }); 389 390 $('.author-comment-carousel .owl-prev').on('click', function () { 391 $('.author-carousel .owl-prev').click() 392 }); 393 394 // banner 2 logo bgs 395 $(window).on('resize', () =>{ 396 if ($(window).width() >= 975 ){ 397 $('.main-header.header-2 .logo .main-logo2').attr('src', 'assets/img/logo2.png') 398 } else if ($(window).width() <=975) { 399 $('.main-header.header-2 .logo .main-logo2').attr('src', 'assets/img/logo.png') 400 } 401 }) 402 if ($(window).width() >=975) { 403 $('.main-header.header-2 .logo .main-logo2').attr('src', 'assets/img/logo2.png') 404 } else if ($(window).width() <=975){ 405 $('.main-header.header-2 .logo .main-logo2').attr('src', 'assets/img/logo.png') 406 } 407 408 409})(jQuery); 410}
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.