1(function($) { 2 "use strict"; 3 4 var tpj = jQuery; 5 var revapi24; 6 // Preloader 7 jQuery(window).on('load', function() { 8 jQuery("#status").fadeOut(); 9 jQuery("#preloader").delay(350).fadeOut("slow"); 10 }); 11 12 13 // on ready function 14 jQuery(document).ready(function($) { 15 16 17 18 var xv_ww=$(window).width(),xv_slideshow=true; 19 $(window).on('resize load', function() { 20 xv_ww = $(window).width(); 21 if(xv_ww <= 767) { 22 $('.responsive-menu').removeClass('xv-menuwrapper').addClass('dl-menuwrapper'); 23 $('.lg-submenu').addClass("dl-submenu"); 24 } else { 25 $('.responsive-menu').removeClass('dl-menuwrapper').addClass('xv-menuwrapper'); 26 $('.lg-submenu').removeClass("dl-submenu"); 27 } 28 }); 29 $('#dl-menu').dlmenu({ 30 animationClasses: { 31 classin: 'dl-animate-in-5', 32 classout: 'dl-animate-out-5' 33 } 34 }); 35 36 37 // Menu js for Position fixed 38 $(window).scroll(function() { 39 var window_top = $(window).scrollTop() + 1; 40 if (window_top > 160) { 41 $('.prs_navigation_main_wrapper').addClass('menu_fixed animated fadeInDown'); 42 } else { 43 $('.prs_navigation_main_wrapper').removeClass('menu_fixed animated fadeInDown'); 44 } 45 }); 46 47 // ===== Scroll to Top ==== 48 $(window).scroll(function() { 49 if ($(this).scrollTop() >= 100) { 50 $('#return-to-top').fadeIn(200); 51 } else { 52 $('#return-to-top').fadeOut(200); 53 } 54 }); 55 $('#return-to-top').on('click', function() { 56 $('body,html').animate({ 57 scrollTop: 0 58 }, 500); 59 }); 60 61 62 /*-------------------------- 63nice Select active 64---------------------------- */ 65 $('select').niceSelect(); 66 67 68 69 var tpj=jQuery; 70 var revapi41; 71 tpj(document).ready(function() { 72 if(tpj("#rev_slider_41_1").revolution == undefined){ 73 }else{ 74 revapi41 = tpj("#rev_slider_41_1").show().revolution({ 75 sliderType:"carousel", 76 jsFileLocation:"revolution/js/", 77 sliderLayout:"fullwidth", 78 dottedOverlay:"none", 79 delay:500, 80 navigation: { 81 keyboardNavigation:"off", 82 keyboard_direction: "horizontal", 83 mouseScrollNavigation:"off", 84 mouseScrollReverse:"default", 85 onHoverStop:"off", 86 arrows: { 87 style:"metis", 88 enable:true, 89 hide_onmobile:false, 90 hide_under:0, 91 hide_onleave:false, 92 tmp:'', 93 left: { 94 h_align:"left", 95 v_align:"center", 96 h_offset:20, 97 v_offset:0 98 }, 99 right: { 100 h_align:"right", 101 v_align:"center", 102 h_offset:20, 103 v_offset:0 104 } 105 } 106 , 107 bullets: { 108 enable:true, 109 hide_onmobile:false, 110 hide_under:580, 111 style:"hephaistos", 112 hide_onleave:false, 113 direction:"horizontal", 114 h_align:"center", 115 v_align:"bottom", 116 h_offset:0, 117 v_offset:40, 118 space:10, 119 tmp:'' 120 } 121 }, 122 carousel: { 123 maxRotation: 20, 124 vary_rotation: "on", 125 minScale: 0, 126 vary_scale: "off", 127 horizontal_align: "center", 128 vertical_align: "center", 129 fadeout: "on", 130 vary_fade: "on", 131 maxVisibleItems: 3, 132 infinity: "on", 133 space: 0, 134 stretch: "off", 135 showLayersAllTime: "off", 136 easing: "Power3.easeInOut", 137 speed: "800" 138 }, 139 visibilityLevels:[1240,1024,778,480], 140 gridwidth:1200, 141 gridheight:880, 142 lazyType:"none", 143 shadow:0, 144 spinner:"off", 145 stopLoop:"off", 146 stopAfterLoops:-1, 147 stopAtSlide:-1, 148 shuffle:"off", 149 autoHeight:"off", 150 disableProgressBar:"on", 151 hideThumbsOnMobile:"off", 152 hideSliderAtLimit:0, 153 hideCaptionAtLimit:0, 154 hideAllCaptionAtLilmit:0, 155 debugMode:false, 156 fallbacks: { 157 simplifyAll:"off", 158 nextSlideOnWindowFocus:"off", 159 disableFocusListener:false, 160 } 161 });
162 } 163 }); /*ready*/ 164 165 166 // Featured Products Js 167 $('.prs_upcom_slider_slides_wrapper .owl-carousel').owlCarousel({ 168 loop:true, 169 margin:0, 170 nav:true, 171 autoplay:false, 172 smartSpeed: 1200, 173 navText:["<i class='flaticon-left-arrow'></i>" , "<i class='flaticon-right-arrow'></i>"], 174 dots:false, 175 autoplayHoverPause: true, 176 responsive:{ 177 0:{ 178 items:1 179 }, 180 600:{ 181 items:1 182 }, 183 1000:{ 184 items:1 185 } 186 } 187 }); 188 189 190 $(document).ready(function() { 191 $('.prs_feature_slider_wrapper .owl-carousel').owlCarousel({ 192 loop: true, 193 margin: 10, 194 autoplay: true, 195 responsiveClass: true, 196 smartSpeed: 1200, 197 navText: ['<i class="flaticon-play-button"></i>', '<i class="flaticon-play-button"></i>'], 198 responsive: { 199 0: { 200 items: 1, 201 nav: true 202 }, 203 500: { 204 items: 1, 205 nav: true 206 }, 207 700: { 208 items: 2, 209 nav: true 210 }, 211 1000: { 212 items: 3, 213 nav: true, 214 loop: true, 215 margin: 20 216 } 217 } 218 }) 219 }) 220 221 222 $(document).ready(function() { 223 $('.prs_es_speak_slider_wrapper .owl-carousel').owlCarousel({ 224 loop: true, 225 margin: 10, 226 autoplay: true, 227 responsiveClass: true, 228 smartSpeed: 1200, 229 navText: ['<i class="flaticon-play-button"></i>', '<i class="flaticon-play-button"></i>'], 230 responsive: { 231 0: { 232 items: 1, 233 nav: true 234 }, 235 500: { 236 items: 2, 237 nav: true 238 }, 239 700: { 240 items: 3, 241 nav: true 242 }, 243 1000: { 244 items: 4, 245 nav: true, 246 loop: true, 247 margin: 20 248 } 249 } 250 }) 251 }) 252 253 $(document).ready(function() { 254 $('.prs_vp_center_slider .owl-carousel').owlCarousel({ 255 loop: true, 256 margin: 10, 257 autoplay: true, 258 responsiveClass: true, 259 smartSpeed: 1200, 260 navText: ['<i class="flaticon-play-button"></i>', '<i class="flaticon-play-button"></i>'], 261 responsive: { 262 0: { 263 items: 1, 264 nav: true 265 }, 266 500: { 267 items: 1, 268 nav: true 269 }, 270 700: { 271 items: 1, 272 nav: true 273 }, 274 1000: { 275 items: 1, 276 nav: true, 277 loop: true, 278 margin: 20 279 } 280 } 281 }) 282 }) 283 284 285 286 $(document).ready(function() { 287 $('.prs_ms_trailer_slider_left_wrapper .owl-carousel').owlCarousel({ 288 loop: true, 289 margin: 10, 290 autoplay: true, 291 responsiveClass: true, 292 smartSpeed: 1200, 293 navText: ['<i class="flaticon-play-button"></i>', '<i class="flaticon-play-button"></i>'], 294 responsive: { 295 0: { 296 items: 1, 297 nav: true 298 }, 299 500: { 300 items: 1, 301 nav: true 302 }, 303 700: { 304 items: 1, 305 nav: true 306 }, 307 1000: { 308 items: 1, 309 nav: true, 310 loop: true, 311 margin: 20 312 } 313 } 314 }) 315 }) 316 317 318 319 $(document).ready(function() { 320 $('.prs_ms_scene_slider_wrapper .owl-carousel').owlCarousel({ 321 loop: true, 322 margin: 10, 323 autoplay: true, 324 responsiveClass: true, 325 smartSpeed: 1200, 326 navText: ['<i class="flaticon-play-button"></i>', '<i class="flaticon-play-button"></i>'], 327 responsive: { 328 0: { 329 items: 1, 330 nav: true 331 }, 332 500: { 333 items: 2, 334 nav: true 335 }, 336 700: { 337 items: 3, 338 nav: true 339 }, 340 1000: { 341 items: 3, 342 nav: true, 343 loop: true, 344 margin: 20 345 } 346 } 347 }) 348 }) 349
350 $(document).ready(function() { 351 $('.prs_pn_slider_wraper .owl-carousel').owlCarousel({ 352 loop: true, 353 margin: 10, 354 autoplay: true, 355 responsiveClass: true, 356 smartSpeed: 1200, 357 navText: ['<i class="flaticon-play-button"></i>', '<i class="flaticon-play-button"></i>'], 358 responsive: { 359 0: { 360 items: 1, 361 nav: true 362 }, 363 500: { 364 items: 3, 365 nav: true 366 }, 367 700: { 368 items: 4, 369 nav: true 370 }, 371 1000: { 372 items: 6, 373 nav: true, 374 loop: true, 375 margin: 20 376 } 377 } 378 }) 379 }) 380 381 382 383 $(document).ready(function() { 384 $('.prs_about_pre_right_slider_sec_wrapper .owl-carousel').owlCarousel({ 385 loop: true, 386 margin: 10, 387 autoplay: true, 388 responsiveClass: true, 389 smartSpeed: 1200, 390 navText: ['<i class="flaticon-play-button"></i>', '<i class="flaticon-play-button"></i>'], 391 responsive: { 392 0: { 393 items: 1, 394 nav: true 395 }, 396 500: { 397 items: 1, 398 nav: true 399 }, 400 700: { 401 items: 1, 402 nav: true 403 }, 404 1000: { 405 items: 1, 406 nav: true, 407 loop: true, 408 margin: 20 409 } 410 } 411 }) 412 }) 413 414 415 $(document).ready(function() { 416 $('.prs_mc_slider_wrapper .owl-carousel').owlCarousel({ 417 loop: true, 418 margin: 10, 419 autoplay: true, 420 responsiveClass: true, 421 smartSpeed: 1200, 422 navText: ['<i class="flaticon-play-button"></i>', '<i class="flaticon-play-button"></i>'], 423 responsive: { 424 0: { 425 items: 1, 426 nav: true 427 }, 428 500: { 429 items: 1, 430 nav: true 431 }, 432 700: { 433 items: 1, 434 nav: true 435 }, 436 1000: { 437 items: 1, 438 nav: true, 439 loop: true, 440 margin: 20 441 } 442 } 443 }) 444 }) 445 446 $(document).ready(function() { 447 $('.prs_navi_slider_wraper .owl-carousel').owlCarousel({ 448 loop: true, 449 margin: 10, 450 autoplay: true, 451 responsiveClass: true, 452 smartSpeed: 1200, 453 navText: ['<i class="flaticon-play-button"></i>', '<i class="flaticon-play-button"></i>'], 454 responsive: { 455 0:{ 456 items:1 457 }, 458 600:{ 459 items:1 460 }, 461 1000:{ 462 items:1 463 } 464 } 465 }) 466 }) 467 468 469 $(document).ready(function() { 470 $('.prs_ms_rm_slider_wrapper .owl-carousel').owlCarousel({ 471 loop: true, 472 margin: 10, 473 autoplay: true, 474 responsiveClass: true, 475 smartSpeed: 1200, 476 navText: ['<i class="flaticon-play-button"></i>', '<i class="flaticon-play-button"></i>'], 477 responsive: { 478 0:{ 479 items:1 480 }, 481 600:{ 482 items:2 483 }, 484 1000:{ 485 items:4 486 } 487 } 488 }) 489 }) 490 491 492 $(document).ready(function() { 493 $('.hs_blog_box1_img_wrapper .owl-carousel').owlCarousel({ 494 loop: true, 495 margin: 10, 496 autoplay: true, 497 responsiveClass: true, 498 smartSpeed: 1200, 499 navText: ['<i class="flaticon-play-button"></i>', '<i class="flaticon-play-button"></i>'], 500 responsive: { 501 0: { 502 items: 1, 503 nav: true 504 }, 505 600: { 506 items: 1, 507 nav: true 508 }, 509 1000: { 510 items: 1, 511 nav: true, 512 loop: true, 513 margin: 20 514 } 515 } 516 }) 517 }) 518 519 $(document).ready(function() { 520 $('.st_md_summ_client_slider .owl-carousel').owlCarousel({ 521 loop: true, 522 margin: 10, 523 autoplay:false, 524 responsiveClass: true, 525 smartSpeed: 1200, 526 navText : ['<i class="flaticon-left-arrow" aria-hidden="true"></i>','<i class="flaticon-right-arrow" aria-hidden="true"></i>'], 527 responsive: { 528 0: { 529 items: 2, 530 nav: true 531 }, 532 600: { 533 items: 3, 534 nav: true 535 }, 536 1000: { 537 items: 4, 538 nav: true, 539 loop: true, 540 margin: 20 541 } 542 } 543 }) 544 }) 545 546 547 $(".album-slider").bxSlider({
548 minSlides: 1, 549 maxSlides: 10, 550 slideWidth: 257, 551 slideMargin: 17, 552 ticker: true, 553 tickerHover: true, 554 speed: 20000, 555 useCSS: false, 556 infiniteLoop: false 557 558 }); 559 560 $(".movie-cast-slider").bxSlider({ 561 minSlides: 1, 562 maxSlides: 10, 563 slideWidth: 257, 564 slideMargin: 17, 565 ticker: true, 566 tickerHover: true, 567 speed: 20000, 568 useCSS: false, 569 infiniteLoop: false 570 571 }); 572 573 574 575 $(".prs_vp_left_slider").bxSlider({ 576 minSlides: 1, 577 autoDirection: 'next', 578 mode: 'vertical', 579 maxSlides: 10, 580 slideWidth: 257, 581 slideMargin: 17, 582 ticker: true, 583 tickerHover: true, 584 speed: 15000, 585 useCSS: false, 586 infiniteLoop: false 587 588 }); 589 590 $(".prs_vp_right_slider").bxSlider({ 591 minSlides: 1, 592 mode: 'vertical', 593 autoDirection: 'prev', 594 maxSlides: 10, 595 slideWidth: 257, 596 slideMargin: 17, 597 ticker: true, 598 tickerHover: true, 599 speed: 15000, 600 useCSS: false, 601 infiniteLoop: false 602 603 }); 604 605 /* 09. VENOBOX JS */ 606 $('.venobox').venobox({ 607 numeratio: true, 608 titleattr: 'data-title', 609 titlePosition: 'top', 610 spinner: 'wandering-cubes', 611 spinColor: '#007bff' 612 }); 613 614 615 616 // Magnific popup-video 617 618 $('.test-popup-link').magnificPopup({ 619 type: 'iframe', 620 iframe: { 621 markup: '<div class="mfp-iframe-scaler">'+ 622 '<div class="mfp-close"></div>'+ 623 '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>'+ 624 '<div class="mfp-title">Some caption</div>'+ 625 '</div>', 626 patterns: { 627 youtube: { 628 index: 'youtube.com/', 629 id: 'v=', 630 src: 'https://www.youtube.com/embed/ryzOXAO0Ss0' 631 } 632 } 633 } 634 // other options 635}); 636 637 638 639 $('.second-nav-toggler').on('click', function(e) { 640 e.preventDefault(); 641 var mask = '<div class="mask-overlay">'; 642 643 $('body').toggleClass('active'); 644 $(mask).hide().appendTo('body').fadeIn('fast'); 645 $('.mask-overlay, .manu-close').on('click', function() { 646 $('body').removeClass('active'); 647 $('.mask-overlay').remove(); 648 }); 649 }); 650 651 652 //show hide login form js 653 $('#search_button').on("click", function(e) { 654 $('#search_open').slideToggle(); 655 e.stopPropagation(); 656 }); 657 658 $(document).on("click", function(e){ 659 if(!(e.target.closest('#search_open'))){ 660 $("#search_open").slideUp(); 661 } 662 }); 663 664 //------------------------------------------------------- 665 // counter-section 666 //------------------------------------------------------- 667 $('.counter-section').on('inview', function(event, visible, visiblePartX, visiblePartY) { 668 if (visible) { 669 $(this).find('.timer').each(function () { 670 var $this = $(this); 671 $({ Counter: 0 }).animate({ Counter: $this.text() }, { 672 duration: 2000, 673 easing: 'swing', 674 step: function () { 675 $this.text(Math.ceil(this.Counter)); 676 } 677 }); 678 }); 679 $(this).off('inview'); 680 } 681 }); 682 683 684 // ------------------------------------------------------------- 685// Shuffle 686// ------------------------------------------------------------- 687 688$(window).load(function() { 689 /** this is come when complete page is fully loaded, including all frames, objects and images **/ 690 691 if ($('#gridWrapper').length > 0) { 692 693 /* initialize shuffle plugin */ 694 var $grid = $('#gridWrapper'); 695 696 $grid.shuffle({ 697 itemSelector: '.portfolio-wrapper' // the selector for the items in the grid 698 }); 699 700 /* reshuffle when user clicks a filter item */ 701 $('#filter a').on('click', function (e) { 702 e.preventDefault(); 703 704 // set active class 705 $('#filter a').removeClass('active'); 706 $(this).addClass('active'); 707 708 // get group name from clicked item 709 var groupName = $(this).attr('data-group'); 710 711 // reshuffle grid 712 $grid.shuffle('shuffle', groupName ); 713 }); 714 } 715}); 716 717 718 /*********color change script start*******/ 719 $('.colorchange').on('click', function(){ 720 721 var color_name=$(this).attr('id'); 722 var new_style='css/color/'+color_name+'.css'; 723 $('#theme-color').attr('href',new_style); 724 725 726 }); 727 //rotate setting gear 728 $(function() { 729 730 var $rota = $('#style-switcher .bottom a.settings img'), 731 degree = 0, 732 timer; 733 734 function rotate() { 735 $rota.css({ transform: 'rotate(' + degree + 'deg)'}); 736 // timeout increase degrees: 737 timer = setTimeout(function() { 738 ++degree; 739 rotate(); // loop it 740 },0); 741 } 742 743 rotate(); // run it! 744 745 }); 746 747 748 $("#style-switcher .bottom a.settings").on('click', function(e){
749 e.preventDefault(); 750 var div = $("#style-switcher"); 751 if (div.css("left") === "-161px") { 752 $("#style-switcher").animate({ 753 left: "0px" 754 }); 755 } else { 756 $("#style-switcher").animate({ 757 left: "-161px" 758 }); 759 } 760 }); 761 762 763/******color change script end******/ 764 765 766 }); 767 768})(jQuery);
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.