1/* 2======================================================= 3Author:PixelsHarmony (http://www.pixelsharmony.com/) 4Date:02 July, 2016 5Version:1.0 6Description:Volatile - JS Theme Functions 7======================================================= 8 JavaScript Content 9======================================================= 10*/ 11var msie = window.navigator.userAgent.indexOf('MSIE '); 12var isIE = msie > 0; 13var pageloader = false; 14jQuery("body").addClass("body-preloader"); 15/* 16======================================================= 17 Page Preloader 18======================================================= 19*/ 20function phpagepreloader() { 21 // var loadingInterval, counter = 0; 22 // $('.status').fadeOut(); 23 // $('.page-preloader').delay(240).fadeOut('slow').after(function() { 24 // modalNewsletterShop(); 25 // pageloader = true; 26 // loadingInterval = setInterval(function() { 27 // counter += 200; 28 // if (isIE) { 29 // jQuery(window).trigger('resize'); 30 // } else { 31 // window.dispatchEvent(new Event('resize')); 32 // } 33 // if (counter > 1000) { 34 // clearInterval(loadingInterval); 35 // } 36 // }, 200); 37 // }); 38 } 39/* 40======================================================= 41 Active Navgiation 42======================================================= 43*/ 44$(function() { 45 var segments = location.pathname.split('/'); 46 47 if(window.location.origin == 'http://localhost'){ 48 pgurl = segments[segments.length - 2] + '/'; 49 // if (segments[2] == "" || segments[2] == 'index') $('.default-homepage').addClass("active"); 50 } else { 51 pgurl = segments[segments.length - 3] + '/'; 52 // if (segments[3] == "" || segments[3] == 'index') $('.default-homepage').addClass("active"); 53 } 54 55 56 57 $('.dropdown-toggle').on('click', function(e) { 58 e.preventDefault(); 59 }) 60 $("ul.link-list li a").each(function() { 61 62 if ($(this).attr("href") == pgurl || $(this).attr("href") == '') { 63 64 $(this).parent().addClass('active'); 65 $(this).parent().parent().parent().parent().find('a').first().addClass('active'); 66 67 } 68 }); 69 $("ul.wsmenu-submenu li a").each(function() { 70 71 if ($(this).attr("href") == pgurl || $(this).attr("href") == '') { 72 73 $(this).addClass('active'); 74 // $(this).parent().parent().parent().parent().parent().find('a').first().addClass('active'); 75 $(this).closest('.ws-dropdown').find('a:first').addClass('active'); 76 $(this).closest('.wsmenu-submenu').parent().find('.main-category').addClass('active'); 77 78 } 79 }); 80 81 }); 82 83/* 84======================================================= 85 Parallax Video 86======================================================= 87*/ 88function phparallaxvideo() { 89 90 var phvarparallaxvideo = $('.parallax-video'); 91 if (phvarparallaxvideo.length && jQuery()) { 92 phvarparallaxvideo.backgroundVideo({ 93 $videoWrap: $('.video-wrap'), 94 $outerWrap: $('#page-title'), 95 pauseVideoOnViewLoss: false 96 }); 97 } 98 }; 99/* 100======================================================= 101 SmoothScroll 102======================================================= 103*/ 104function phnicescroll() { 105 if ($('.nicescroll').length && jQuery()) { 106 SmoothScroll(); 107 }; 108}; 109/* 110======================================================= 111 Icon & Subtext Navigation 112======================================================= 113*/ 114function phiconsubtextnavigation() { 115 if ($('#header').length && jQuery()) { 116 if ($(".header-with-icons").length) { 117 $( "ul.wsmenu-list > li > a" ).not("ul.wsmenu-list > li.search-cart-navbar > a").each(function() { 118 var menuiconname = $(this).data("menuicon"); 119 $( this ).prepend( '<span class="'+ menuiconname +'"></span>' ).addClass('ws-icon-menu'); 120 121}); 122 }; 123if ($(".header-with-sub-title").length) { 124 $( "ul.wsmenu-list > li > a" ).not("ul.wsmenu-list > li.search-cart-navbar > a").each(function() { 125 var menusubtitle = $(this).data("menusubtitle"); 126 $( this ).append( '<em>'+ menusubtitle +'</em>' ).addClass('ws-subtitle-menu'); 127 128}); 129}; 130 }; 131}; 132/* 133======================================================= 134 Full Height 135======================================================= 136*/ 137function phfullheight() { 138 $(window).load(function() { 139 var phvarfullheight = $('.full-height'); 140 if (phvarfullheight.length && jQuery()) { 141 var fullbodyheight = $(window).height(); 142 var headerheight = $('#header').height(); 143 var navheight = $('#nav').height(); 144 phvarfullheight.css("height", "auto"); 145 if ($('#header').hasClass('header-fixed')) { 146 var introfullheight = fullbodyheight; 147 phvarfullheight.css("height", introfullheight); 148 phvarfullheight.css("padding-top", headerheight); 149 } else if ($('#header').hasClass('header-default')) { 150 var introfullheight = fullbodyheight - headerheight - navheight; 151 phvarfullheight.css("height", introfullheight); 152 } else { 153 var introfullheight = fullbodyheight - headerheight; 154 phvarfullheight.css("height", introfullheight); 155 } 156 phpagetitleopacity(); 157 phparallax(); 158 phparallaxvideo(); 159 }; 160 }); 161}; 162/* 163======================================================= 164 Full Height Blog 165======================================================= 166*/ 167function phfullheightblog() { 168 $(window).load(function() { 169 var phvarfullheightblog = $('.full-height-blog'); 170 if (phvarfullheightblog.length && jQuery()) { 171 var fullbodyheight = $(window).height(); 172 var headerheight = $('#header').height(); 173 var navheight = $('#nav').height(); 174 phvarfullheightblog.css("height", "auto"); 175 var introfullheight = fullbodyheight; 176 phvarfullheightblog.css("height", introfullheight); 177 178 179 180 }; 181 }); 182}; 183/* 184======================================================= 185 Full Height Box 186======================================================= 187*/ 188function phfullheightbox() { 189 var phvarfullheightbox = $('.full-height-box'); 190 if (phvarfullheightbox.length && jQuery()) { 191 phvarfullheightbox.each(function() { 192 var maxheightbox = 0; 193 var heigthboxchild = $(this).children('.equal-height-col'); 194 heigthboxchild.css("height", "auto"); 195 heigthboxchild.each(function() { 196 var heightbox = $(this).outerHeight(); 197 maxheightbox = heightbox > maxheightbox ? heightbox : maxheightbox; 198 }); 199 heigthboxchild.css("height", maxheightbox); 200 }); 201 }; 202}; 203/* 204======================================================= 205 Galleria PLugin 206======================================================= 207*/ 208function galleriaPlugin() { 209 if (jQuery("#galleria").length > 0 && jQuery()) { 210 Galleria.loadTheme('plugins/galleria/themes/classic/galleria.classic.min.js'); 211 Galleria.configure({ 212 swipe: 'enforced' 213 }) 214 Galleria.run('#galleria'); 215 } 216 }; 217/* 218======================================================= 219 Filter To Select 220======================================================= 221*/ 222var callOncePhFilter = true; 223 224function phfiltertoselect() { 225 var phvarportfoliofilter = $('#portfolio-filter'); 226 if (phvarportfoliofilter.length && jQuery()) { 227 if (callOncePhFilter) { 228 phvarportfoliofilter.each(function() { 229 var select = $(document.createElement('select')).insertBefore($(this)); 230 $('>li a', this).each(function() { 231 var datafilter = $(this).data("filter"); 232 option = $(document.createElement('option')).appendTo(select).val(datafilter).html($(this).html()).on( "click", function() {}); 233 }); 234 }); 235 callOncePhFilter = false;
236 } 237 $('.portfolio-filter .selecter-options').on('click', 'span', function(e) { 238 e.preventDefault(); 239 if ($(this).hasClass('activeFilter')) { 240 return false; 241 } 242 $(this).parents('.selecter-options').find('.activeFilter').removeClass('activeFilter'); 243 $(this).addClass('activeFilter'); 244 var selector = $(this).attr('data-value'); 245 var phvarportfolioisotope = $('.portfoliofitrows, .portfoliomasonry, .portfoliomasonrymixed'); 246 if (jQuery(this).hasClass("wow-animation")) { 247 phvarportfolioisotope.isotope({ 248 filter: function() { 249 var item = jQuery(this); 250 if (selector != "*") { 251 if (!item.hasClass(selector.substr(1))) { 252 return false; 253 } 254 } 255 return true; 256 } 257 }); 258 } else { 259 phvarportfolioisotope.isotope({ 260 filter: function() { 261 var item = jQuery(this); 262 if (selector != "*") { 263 if (!item.hasClass(selector.substr(1))) { 264 return false; 265 } 266 } 267 return true; 268 } 269 }); 270 } 271 }); 272 } 273 }; 274/* 275======================================================= 276 Scroll To Top 277======================================================= 278*/ 279function phscrolltotop() { 280 var phvarscrolltotopfixed = $('.scroll-to-top-fixed'); 281 if (phvarscrolltotopfixed.length && jQuery()) { 282 $(window).scroll(function() { 283 var offsetscroll = $(window).scrollTop(); 284 var offsetbody = $(window).height(); 285 if (offsetscroll > offsetbody) { 286 phvarscrolltotopfixed.addClass("sticky-btn"); 287 } else { 288 phvarscrolltotopfixed.removeClass("sticky-btn"); 289 } 290 }); 291 }; 292}; 293/* 294======================================================= 295 Page Title Opacity 296======================================================= 297*/ 298function phpagetitleopacity() { 299 var titleopacity = $('.titleopacity'); 300 if (titleopacity.length && jQuery()) { 301 var phvarpagetitle = $('#page-title'); 302 var titleopacityuntil = (phvarpagetitle.outerHeight()) - (titleopacity.outerHeight()); 303 var titleopacityoffset = titleopacityuntil / 1.2; 304 var offset = phvarpagetitle.offset().top; 305 $(window).on('scroll', function() { 306 var windowtop = $(window).scrollTop(); 307 scrollPos = $(this).scrollTop() - offset; 308 if (windowtop > offset) { 309 titleopacity.css({ 310 'transform': "translateY(" + (scrollPos / 3) + "%)", 311 'opacity': 1 - (scrollPos / titleopacityoffset), 312 '-ms-filter': 'progid:DXImageTransform.Microsoft.Alpha(Opacity=' + 1 - (scrollPos / 300) + ')' 313 }); 314 } 315 clearTimeout(jQuery.data(this, 'scrollTimer')); 316 jQuery.data(this, 'scrollTimer', setTimeout(function() { 317 var windowtop = $(window).scrollTop(); 318 scrollPos = $(this).scrollTop() - offset; 319 titleopacity.css({ 320 'transform': "translateY(" + (1 - (scrollPos / titleopacityoffset) > 1 ? 0 : (scrollPos / 3)) + "%)", 321 'opacity': 1 - (scrollPos / titleopacityoffset), 322 '-ms-filter': 'progid:DXImageTransform.Microsoft.Alpha(Opacity=' + 1 - (scrollPos / 300) + ')' 323 }); 324 }, 250)); 325 }); 326 }; 327}; 328/* 329======================================================= 330 Page Scroll Animation 331======================================================= 332*/ 333function phpagescrollanimation() { 334 var phvarpagescroll = $('.page-scroll'); 335 if (phvarpagescroll.length && jQuery()) { 336 phvarpagescroll.on('click', function(e) { 337 var $anchor = $(this); 338 var soffsettop = $($anchor.attr('href')).offset().top; 339 var offsetall = soffsettop; 340 $('html, body').stop().animate({ 341 scrollTop: offsetall 342 }, 1500, 'easeInOutExpo'); 343 e.preventDefault(); 344 }); 345 }; 346}; 347/* 348======================================================= 349 Counters 350======================================================= 351*/ 352function phcounters() { 353 if ($('.count-number').length && jQuery()) { 354 var counter = jQuery('.count-number span'); 355 var counterfinished = 'counterfinished'; 356 counter.each(function() { 357 var custom = jQuery(this); 358 var waypoint = new Waypoint({ 359 element: custom, 360 offset: '110%', 361 handler: function(direction) { 362 var $this = jQuery(this.element[0]); 363 if (!$this.hasClass(counterfinished)) { 364 $this.countTo({ 365 speed: 2200, 366 refreshInterval: 50, 367 formatter: function(value, options) { 368 return value.toFixed(options.decimals); 369 } 370 }).addClass(counterfinished); 371 } 372 } 373 }) 374 }); 375 }; 376}; 377/* 378======================================================= 379 Progress Bar 380======================================================= 381*/ 382function phprogressbar() { 383 var progressbar = jQuery('.progress-bar-box'); 384 if (progressbar.length && jQuery()) { 385 var progressbarfinished = 'progressbarfinished'; 386 $(".progress-bar").css("width", "0"); 387 progressbar.each(function() { 388 var progressbarcustom = jQuery(this); 389 var waypoint = new Waypoint({ 390 element: progressbarcustom, 391 offset: '100%', 392 handler: function(direction) { 393 var $this = jQuery(this.element[0]); 394 b = $this.find(".progress").attr("data-width"); 395 if (!$this.hasClass(progressbarfinished)) { 396 $this.find(".progress-bar").animate({ 397 width: b + "%" 398 }, 2000, "linear"); 399 $this.addClass(progressbarfinished); 400 } 401 } 402 }); 403 }); 404 }; 405}; 406/* 407======================================================= 408 Pie Chart 409======================================================= 410*/ 411function phpiechart() { 412 var piechart = jQuery('.pie-chart'); 413 if (piechart.length && jQuery()) { 414 var piechartloaded = 'pie-chart-loaded'; 415 piechart.each(function() { 416 var customChart = jQuery(this); 417 var waypoint = new Waypoint({ 418 element: customChart, 419 offset: '80%', 420 handler: function(direction) { 421 if (direction === 'down') { 422 var $this = jQuery(this.element[0]), 423 piechartbarcolor = ($this.data('barcolor')) ? ($this.data('barcolor')) : "#3a3a3a", 424 piechartlinewidth = ($this.data('linewidth')) ? ($this.data('linewidth')) : 6, 425 piechartbarwidth = ($this.data('barwidth')) ? ($this.data('barwidth')) : 180; 426 piechartanimatespeed = ($this.data('animatespeed')) ? ($this.data('animatespeed')) : 4000; 427 piecharttrackcolor = ($this.data('trackcolor')) ? ($this.data('trackcolor')) : "#dddddd"; 428 if (!$this.hasClass(piechartloaded)) { 429 $this.easyPieChart({ 430 animate: piechartanimatespeed, 431 size: piechartbarwidth, 432 lineWidth: piechartlinewidth, 433 scaleColor: false, 434 trackColor: piecharttrackcolor, 435 lineCap: 'square', 436 barColor: piechartbarcolor, 437 onStart: function() { 438 $('.pie-chart-percent').countTo({ 439 from: 0, 440 speed: piechartanimatespeed - 600, 441 formatter: function(value, options) { 442 return value.toFixed(options.decimals) + '%'; 443 } 444 }); 445 } 446 }).addClass(piechartloaded); 447 } 448 } 449 } 450 }) 451 }); 452 phparallax(); 453 }; 454}; 455/* 456======================================================= 457 Full Page Plugin 458======================================================= 459*/ 460function phfullpageplugin() { 461 var phvarfullpage = $('#fullpage'); 462 if (phvarfullpage.length && jQuery()) { 463 jQuery("body, html").css("overflow", "hidden"); 464 phvarfullpage.fullpage({ 465 'verticalCentered': false, 466 'css3': true, 467 'navigation': true, 468 scrollBar: true, 469 'navigationPosition': 'right', 470 onLeave: function(index, nextIndex, direction) { 471 var leavingSection = $(this), 472 nextSection = jQuery("#fullpage .fp-section:eq(" + (nextIndex - 1) + ")"); 473 if (direction == 'down') { 474 var counterfinished = 'counterfinished'; 475 jQuery('.count-number span').countTo({ 476 speed: 2200, 477 refreshInterval: 50, 478 formatter: function(value, options) { 479 return value.toFixed(options.decimals); 480 } 481 }).addClass(counterfinished); 482 } 483 } 484 }); 485 }; 486}; 487/* 488======================================================= 489 Slider Price Filter 490======================================================= 491*/ 492function phsliderpricefilter() { 493 var phvarsliderpricefilter = $('#slider-price-filter'); 494 if (phvarsliderpricefilter.length && jQuery()) { 495 phvarsliderpricefilter.slider({ 496 range: true, 497 min: 0, 498 max: 1000, 499 values: [0, 1000], 500 slide: function(event, ui) { 501 $("#amount").val("$" + ui.values[0] + " - $" + ui.values[1]); 502 } 503 }); 504 $("#amount").val("$" + phvarsliderpricefilter.slider("values", 0) + " - $" + phvarsliderpricefilter.slider("values", 1)); 505 }; 506}; 507/* 508======================================================= 509 Portfolio Carousel
510======================================================= 511*/ 512if ($('.portfoliocarousel').length && jQuery()) { 513 $('.portfoliocarousel').each(function() { 514 jQuery(this).slick({ 515 swipeToSlide: true, 516 slidesToShow: 1, 517 slidesToScroll: 1, 518 autoplay: true, 519 mobileFirst: true, 520 autoplaySpeed: 5000, 521 arrows: false, 522 responsive: [{ 523 breakpoint: 480, 524 settings: { 525 slidesToShow: 1, 526 slidesToScroll: 1 527 } 528 }, { 529 breakpoint: 600, 530 settings: { 531 slidesToShow: 1, 532 slidesToScroll: 1 533 } 534 }, , { 535 breakpoint: 768, 536 settings: { 537 slidesToShow: 2, 538 slidesToScroll: 1 539 } 540 }, { 541 breakpoint: 1024, 542 settings: { 543 slidesToShow: 3, 544 slidesToScroll: 1 545 } 546 }] 547 }); 548 }); 549}; 550 551if ($('.portfoliocarousel-news').length && jQuery()) { 552 $('.portfoliocarousel-news').each(function() { 553 jQuery(this).slick({ 554 swipeToSlide: true, 555 slidesToShow: 1, 556 slidesToScroll: 1, 557 autoplay: true, 558 mobileFirst: true, 559 autoplaySpeed: 5000, 560 arrows: false, 561 responsive: [{ 562 breakpoint: 480, 563 settings: { 564 slidesToShow: 1, 565 slidesToScroll: 1 566 } 567 }, { 568 breakpoint: 600, 569 settings: { 570 slidesToShow: 1, 571 slidesToScroll: 1 572 } 573 }, , { 574 breakpoint: 768, 575 settings: { 576 slidesToShow: 2, 577 slidesToScroll: 1 578 } 579 }, { 580 breakpoint: 1024, 581 settings: { 582 slidesToShow: 3, 583 slidesToScroll: 1 584 } 585 }] 586 }); 587 }); 588}; 589 590if ($('.portfoliocarousel-services').length && jQuery()) { 591 $('.portfoliocarousel-services').each(function() { 592 jQuery(this).slick({ 593 swipeToSlide: true, 594 slidesToShow: 1, 595 slidesToScroll: 1, 596 autoplay: true, 597 mobileFirst: true, 598 autoplaySpeed: 5000, 599 arrows: false, 600 responsive: [{ 601 breakpoint: 480, 602 settings: { 603 slidesToShow: 1, 604 slidesToScroll: 1 605 } 606 }, { 607 breakpoint: 600, 608 settings: { 609 slidesToShow: 1, 610 slidesToScroll: 1 611 } 612 }, , { 613 breakpoint: 768, 614 settings: { 615 slidesToShow: 1, 616 slidesToScroll: 1 617 } 618 }, { 619 breakpoint: 1024, 620 settings: { 621 slidesToShow: 1, 622 slidesToScroll: 1 623 } 624 }] 625 }); 626 }); 627}; 628 629 630if ($('.intropostcarousel').length && jQuery()) { 631 $('.intropostcarousel').each(function() { 632 jQuery(this).slick({ 633 swipeToSlide: true, 634 slidesToShow: 1, 635 slidesToScroll: 1, 636 autoplay: true, 637 mobileFirst: true, 638 autoplaySpeed: 5000, 639 arrows: false, 640 responsive: [{ 641 breakpoint: 480, 642 settings: { 643 slidesToShow: 1, 644 slidesToScroll: 1 645 } 646 }, { 647 breakpoint: 600, 648 settings: { 649 slidesToShow: 1, 650 slidesToScroll: 1 651 } 652 }, , { 653 breakpoint: 768, 654 settings: { 655 slidesToShow: 2, 656 slidesToScroll: 1 657 } 658 }, { 659 breakpoint: 1024, 660 settings: { 661 slidesToShow: 3, 662 slidesToScroll: 1 663 } 664 }] 665 }); 666 }); 667}; 668 669 670/* 671======================================================= 672 Testimonials Carousel 673======================================================= 674*/ 675if ($('.testimonials-carousel').length && jQuery()) { 676 $('.testimonials-carousel').each(function() { 677 jQuery(this).slick({ 678 slidesToShow: 1, 679 slidesToScroll: 1, 680 autoplay: true, 681 mobileFirst: true, 682 autoplaySpeed: 5000,
683 arrows: false, 684 swipeToSlide: true, 685 responsive: [{ 686 breakpoint: 480, 687 settings: { 688 slidesToShow: 1, 689 slidesToScroll: 1 690 } 691 }, { 692 breakpoint: 600, 693 settings: { 694 slidesToShow: 1, 695 slidesToScroll: 1 696 } 697 }, , { 698 breakpoint: 768, 699 settings: { 700 slidesToShow: 2, 701 slidesToScroll: 1 702 } 703 }] 704 }); 705 }); 706}; 707 708 709/* 710======================================================= 711 Testimonials Slider 712======================================================= 713*/ 714if ($('.testimonialsslider').length && jQuery()) { 715 $('.testimonialsslider').each(function() { 716 jQuery(this).slick({ 717 slidesToShow: 1, 718 dots: true, 719 mobileFirst: true, 720 slidesToScroll: 1, 721 autoplay: true, 722 mobileFirst: true, 723 autoplaySpeed: 5000, 724 arrows: false, 725 adaptiveHeight: true, 726 swipeToSlide: true 727 }); 728 }); 729}; 730 731 732/* 733======================================================= 734 Clients Carousel 735======================================================= 736*/ 737if ($('.clients-carousel').length && jQuery()) { 738 $('.clients-carousel').each(function() { 739 jQuery(this).slick({ 740 swipeToSlide: true, 741 slidesToShow: 1, 742 slidesToScroll: 6, 743 autoplay: true, 744 mobileFirst: true, 745 autoplaySpeed: 5000, 746 arrows: false, 747 responsive: [{ 748 breakpoint: 480, 749 settings: { 750 slidesToShow: 1, 751 slidesToScroll: 1 752 } 753 }, { 754 breakpoint: 600, 755 settings: { 756 slidesToShow: 3, 757 slidesToScroll: 1 758 } 759 }, , { 760 breakpoint: 768, 761 settings: { 762 slidesToShow: 4, 763 slidesToScroll: 1 764 } 765 }, { 766 breakpoint: 1081, 767 settings: { 768 slidesToShow: 6, 769 slidesToScroll: 1 770 } 771 }] 772 }); 773 }); 774}; 775 776/* 777======================================================= 778 Slick Arrows Click 779======================================================= 780*/ 781function phslickarrows() { 782 $('.slick-custom-next, .slick-testimonial-next, .slick-clients-next').on('click', function() { 783 var id = jQuery(this).attr("data-id"); 784 jQuery(id).slick('slickNext'); 785 }); 786 $('.slick-custom-prev, .slick-testimonial-prev, .slick-clients-prev').each(function() { 787 jQuery(this).on('click', function() { 788 var id = jQuery(this).attr("data-id"); 789 jQuery(id).slick('slickPrev'); 790 }); 791 }); 792 }; 793/* 794======================================================= 795 Tabs Reload Gmap 796======================================================= 797*/ 798function phtabsreloadgmap() { 799 if ($('.nav-tabs').length && jQuery()) { 800 $('a[data-toggle="tab"]').on('shown.bs.tab', function(e) { 801 phgooglemap(); 802 phshopsort(); 803 }); 804 }; 805}; 806/* 807======================================================= 808 Shop Title Effect 809======================================================= 810*/ 811function phshoptitleeffect() { 812 813 if ($('.shop-desc h5 a').length && jQuery()) { 814 $('.shop-desc h5 a').mouseenter(function(e) { 815 $(this).parent().parent().parent().parent().find('.shop-image-holder').addClass("animation-hover-js"); 816 }).mouseleave(function(e) { 817 $(this).parent().parent().parent().parent().find('.shop-image-holder').removeClass("animation-hover-js"); 818 }); 819 }; 820}; 821/* 822======================================================= 823 Shop Hover Effect 824======================================================= 825*/ 826function phshophovereffect() { 827 if ($('.ssp-title').length && jQuery()) { 828 $('.ssp-title').mouseenter(function(e) { 829 $(this).parent().find('.image-thumb').addClass("animation-hover-js"); 830 }).mouseleave(function(e) { 831 $(this).parent().find('.image-thumb').removeClass("animation-hover-js"); 832 }); 833 }; 834}; 835/* 836======================================================= 837 Blog Hover Effect 838======================================================= 839*/ 840function phbloghovereffect() { 841 if ($('.blog-list').length && jQuery()) { 842 $('.blog-list .blog-desc h4').mouseenter(function(e) { 843 $(this).parent().parent().find('.blog-image-box').addClass("animation-hover-js"); 844 $(this).parent().parent().find('.slider-image-box').addClass("animation-hover-js"); 845 }).mouseleave(function(e) { 846 $(this).parent().parent().find('.blog-image-box').removeClass("animation-hover-js"); 847 $(this).parent().parent().find('.slider-image-box').removeClass("animation-hover-js"); 848 }); 849 }; 850}; 851/* 852======================================================= 853 Blog Read Hover Effect 854======================================================= 855*/ 856function phblogreadhovereffect() { 857 if ($('.blog-list').length && jQuery()) {
858 $('.blog-list .blog-desc .btn-breadmore').mouseenter(function(e) { 859 $(this).parent().parent().parent().find('.blog-image-box').addClass("animation-hover-js"); 860 $(this).parent().parent().parent().find('.slider-image-box').addClass("animation-hover-js"); 861 }).mouseleave(function(e) { 862 $(this).parent().parent().parent().find('.blog-image-box').removeClass("animation-hover-js"); 863 $(this).parent().parent().parent().find('.slider-image-box').removeClass("animation-hover-js"); 864 }); 865 }; 866}; 867/* 868======================================================= 869 Cart Title Effect 870======================================================= 871*/ 872function phcarttitleeffect() { 873 if ($('.csp-title').length && jQuery()) { 874 $('.csp-title').mouseenter(function(e) { 875 $(this).parent().find('.image-thumb').addClass("animation-hover-js"); 876 }).mouseleave(function(e) { 877 $(this).parent().find('.image-thumb').removeClass("animation-hover-js"); 878 }); 879 }; 880}; 881/* 882======================================================= 883 Portfolio Title Effect 884======================================================= 885*/ 886function phportfoliotitleeffect() { 887 if ($('.item-text-wrapper_normal .portfolio-item-title a').length && jQuery()) { 888 $('.item-text-wrapper_normal .portfolio-item-title a').mouseenter(function(e) { 889 $(this).parent().parent().parent().find('.image-box').addClass("animation-hover-js"); 890 }).mouseleave(function(e) { 891 $(this).parent().parent().parent().find('.image-box').removeClass("animation-hover-js"); 892 }); 893 }; 894}; 895 896function stickyElements() { 897 var phvarsidebar = $('.fixed-sidebar'); 898 if (phvarsidebar.length && jQuery()) { 899 900 phvarsidebar.each(function() { 901 jQuery(this).sticky({ 902 topSpacing: 80, 903 bottomSpacing: jQuery(document).height() - jQuery(jQuery(this).attr("data-id")).offset().top + 40 904 }) 905 }); 906 jQuery(window).load(function() { 907 phvarsidebar.sticky('update'); 908 }); 909 } 910 var phvarfixedblogimage = $('.fixed-blog-image'); 911 if (phvarfixedblogimage.length && jQuery()) { 912 913 phvarfixedblogimage.sticky({ 914 topSpacing: 0 915 }) 916 phvarfixedblogimage.on('sticky-start', function() { phfullheight(); }); 917 phvarfixedblogimage.on('sticky-end', function() { phfullheight(); }); 918 } 919 }; 920/* 921======================================================= 922 Audio Player 923======================================================= 924*/ 925function phaudioplayer() { 926 if ($('audio').length && jQuery()) { 927 $('audio').audioPlayer(); 928 }; 929}; 930/* 931======================================================= 932 Contact Form Effect 933======================================================= 934*/ 935function phcontactformeffect() { 936 if ($('.contact-overlay-effect,.maximize-form').length && jQuery()) { 937 $('.contact-overlay-effect,.maximize-form').mouseenter(function(e) { 938 $(this).parent().find('.overlay-map-background').addClass("animation-hover-js"); 939 }).mouseleave(function(e) { 940 $(this).parent().find('.overlay-map-background').removeClass("animation-hover-js"); 941 }); 942 }; 943}; 944/* 945======================================================= 946 Home Blog Simple Effect 947======================================================= 948*/ 949function phhomeblogsimpleeffect() { 950 if ($('.blog-wrapper-simple').length && jQuery()) { 951 $('.blog-wrapper-simple article.blog-item .blog-desc h3 a').mouseenter(function(e) { 952 var sourceimage = $(this).attr("data-image"); 953 $("body").find('.fixed-blog-image .hover-cover-bg').css('background-image', 'url(' + sourceimage + ')'); 954 $("body").find('.fixed-blog-image').addClass("hoveractive"); 955 }).mouseleave(function(e) { 956 var defaultsourceimage = $("body").find('.fixed-blog-image .default-cover-bg').attr("data-defaultimage"); 957 $("body").find('.fixed-blog-image .default-cover-bg').css('background-image', 'url(' + defaultsourceimage + ')'); 958 $("body").find('.fixed-blog-image').removeClass("hoveractive"); 959 }); 960 }; 961}; 962/* 963======================================================= 964 Contact Form Validation 965======================================================= 966*/ 967function phcontactvalidation() { 968 if ($('.form-contact').length && jQuery()) { 969 jQuery(".newsletter-form-action").find(".alert-success,.alert-danger").hide(); 970 $('.form-contact').validator().on('submit', function(e) { 971 if (e.isDefaultPrevented()) { 972 console.log("invalid"); 973 } else { 974 if (jQuery(this).hasClass("newsletter-form-action")) {} 975 e.preventDefault(); 976 var from = jQuery(this); 977 $.ajax({ 978 type: from.attr('method'), 979 url: from.attr('action'), 980 data: from.serialize(), 981 cache: false, 982 dataType: 'json', 983 contentType: "application/json; charset=utf-8", 984 error: function(err) { 985 from.find(".alert-success,.alert-danger").hide(); 986 from.find(".alert-danger").html('Could not subscribe at the moment. Please try again later.'); 987 from.find(".alert-danger").show(); 988 }, 989 success: function(data) { 990 from.find(".alert-success,.alert-danger").hide(); 991 if (data.result != "success") { 992 var message = data.msg.substring(4); 993 from.find(".alert-danger").html(message); 994 from.find(".alert-danger").fadeIn(); 995 } else { 996 var message = data.msg; 997 from.find(".alert-success").html(message); 998 from.find(".alert-success").fadeIn(); 999 } 1000 } 1001 }); 1002 } 1003 }) 1004 }; 1005}; 1006/* 1007======================================================= 1008 Custom Select 1009======================================================= 1010*/ 1011function phcustomselect() { 1012 if ($('select').length && jQuery()) { 1013 $("select").not(".selecter_callback,.select-font-family ").selecter({ 1014 /*label: "Sort Products"*/ 1015 }); 1016 $("select.selecter_callback").selecter({ 1017 callback: selectCallback 1018 }); 1019 }; 1020}; 1021 1022function selectCallback(value, index) { 1023 $(".callback_output").prepend("<p>VALUE: " + value + ", INDEX: " + index + "</p>"); 1024}; 1025/* 1026======================================================= 1027 Shop Fit Rows Sort 1028======================================================= 1029*/ 1030function phshopsort() { 1031 var phvarshopfitrows = $('.shopfitrows'); 1032 if (phvarshopfitrows.length && jQuery()) { 1033 var $grid; 1034 1035 $grid = phvarshopfitrows.isotope({ 1036 itemSelector: '.shop-item', 1037 layoutMode: 'fitRows', 1038 getSortData: { 1039 sortbyname: '.sortbyname', 1040 sortbynamedescending: '.sortbyname', 1041 sortbyprice: function(itemElem) { 1042 var sortbyprice = $(itemElem).find('.sortbyprice').text(); 1043 return parseFloat(sortbyprice.replace(/[\(\)]/g, '')); 1044 }, 1045 sortbypricedescending: function(itemElem) { 1046 var sortbyprice = $(itemElem).find('.sortbyprice').text(); 1047 return parseFloat(sortbyprice.replace(/[\(\)]/g, '')); 1048 }, 1049 sortbyrating: function(itemElem) { 1050 var sortbyrating = $(itemElem).find('.sortbyrating').text(); 1051 return parseFloat(sortbyrating.replace(/[\(\)]/g, '')); 1052 }, 1053 sortbyratingdescending: function(itemElem) { 1054 var sortbyrating = $(itemElem).find('.sortbyrating').text(); 1055 return parseFloat(sortbyrating.replace(/[\(\)]/g, '')); 1056 }, 1057 sortbydate: function(itemElem) { 1058 var date = new Date($(itemElem).find('.sortbydate').text()); 1059 return date.getTime(); 1060 }, 1061 sortbydatedescending: function(itemElem) { 1062 var date = new Date($(itemElem).find('.sortbydate').text()); 1063 return date.getTime(); 1064 } 1065 }, 1066 sortAscending: { 1067 sortbyname: true, 1068 sortbynamedescending: false, 1069 sortbyprice: true, 1070 sortbypricedescending: false, 1071 sortbyrating: true, 1072 sortbyratingdescending: false, 1073 sortbydate: true, 1074 sortbydatedescending: false 1075 } 1076 }); 1077 $('.selecter-options').on('click', 'span', function() { 1078 phvarshopfitrows.find(".shop-item").removeClass("wow animated fadeInUp"); 1079 var sortValue = $(this).attr('data-value'); 1080 $grid.isotope({ 1081 sortBy: sortValue 1082 }); 1083 1084 });
1085 var filterFns = { 1086 filterPrice: function() { 1087 var price = jQuery(".price-filter-desc #amount").val(); 1088 price = price.replace(/ /g, "").split("-"); 1089 var number = $(this).find('.sortbyprice').text(); 1090 return parseInt(number, 10) >= parseInt(price[0].replace("$", ""), 10) && parseInt(number, 10) <= parseInt(price[1].replace("$", ""), 10); 1091 }, 1092 }; 1093 $(".price-filter-desc a").on( "click", function(e) { 1094 e.preventDefault(); 1095 phvarshopfitrows.find(".shop-item").removeClass("wow animated fadeInUp"); 1096 var filterValue = "filterPrice"; 1097 filterValue = filterFns[filterValue] || filterValue; 1098 $grid.isotope({ 1099 filter: filterValue 1100 }); 1101 1102 }); 1103 }; 1104}; 1105function phshopsortResize() { 1106 if ($('.shopfitrows').length && jQuery() && jQuery(".shopfitrows").data('isotope')) { 1107 var shopfitrows = jQuery(".shopfitrows"); 1108 shopfitrows.isotope("destroy"); 1109 phshopsort(); 1110 }; 1111}; 1112/* 1113======================================================= 1114 Shop Masonry Sort 1115======================================================= 1116*/ 1117function phshopsortmasonry() { 1118 var phvarshopmasonry = $('.shopmasonry'); 1119 if (phvarshopmasonry.length && jQuery()) { 1120 var $gridmasonry; 1121 $gridmasonry = phvarshopmasonry.isotope({ 1122 itemSelector: '.shop-item', 1123 layoutMode: 'masonry', 1124 getSortData: { 1125 sortbyname: '.sortbyname', 1126 sortbynamedescending: '.sortbyname', 1127 sortbyprice: function(itemElem) { 1128 var sortbyprice = $(itemElem).find('.sortbyprice').text(); 1129 return parseFloat(sortbyprice.replace(/[\(\)]/g, '')); 1130 }, 1131 sortbypricedescending: function(itemElem) { 1132 var sortbyprice = $(itemElem).find('.sortbyprice').text(); 1133 return parseFloat(sortbyprice.replace(/[\(\)]/g, '')); 1134 }, 1135 sortbyrating: function(itemElem) { 1136 var sortbyrating = $(itemElem).find('.sortbyrating').text(); 1137 return parseFloat(sortbyrating.replace(/[\(\)]/g, '')); 1138 }, 1139 sortbyratingdescending: function(itemElem) { 1140 var sortbyrating = $(itemElem).find('.sortbyrating').text(); 1141 return parseFloat(sortbyrating.replace(/[\(\)]/g, '')); 1142 }, 1143 sortbydate: function(itemElem) { 1144 var date = new Date($(itemElem).find('.sortbydate').text()); 1145 return date.getTime(); 1146 }, 1147 sortbydatedescending: function(itemElem) { 1148 var date = new Date($(itemElem).find('.sortbydate').text()); 1149 return date.getTime(); 1150 } 1151 }, 1152 sortAscending: { 1153 sortbyname: true, 1154 sortbynamedescending: false, 1155 sortbyprice: true, 1156 sortbypricedescending: false, 1157 sortbyrating: true, 1158 sortbyratingdescending: false, 1159 sortbydate: true, 1160 sortbydatedescending: false 1161 } 1162 }); 1163 $('.selecter-options').on('click', 'span', function() { 1164 phvarshopmasonry.find(".shop-item").removeClass("wow animated fadeInUp"); 1165 var sortValue = $(this).attr('data-value'); 1166 $gridmasonry.isotope({ 1167 sortBy: sortValue 1168 }); 1169 1170 }); 1171 var filterFns = { 1172 filterPrice: function() { 1173 var price = jQuery(".price-filter-desc #amount").val(); 1174 price = price.replace(/ /g, "").split("-"); 1175 var number = $(this).find('.sortbyprice').text(); 1176 return parseInt(number, 10) >= parseInt(price[0].replace("$", ""), 10) && parseInt(number, 10) <= parseInt(price[1].replace("$", ""), 10); 1177 }, 1178 }; 1179 $(".price-filter-desc a").on( "click", function(e) { 1180 phvarshopmasonry.find(".shop-item").removeClass("wow animated fadeInUp"); 1181 e.preventDefault(); 1182 var filterValue = "filterPrice"; 1183 filterValue = filterFns[filterValue] || filterValue; 1184 $gridmasonry.isotope({ 1185 filter: filterValue 1186 }); 1187 1188 }); 1189 }; 1190}; 1191function phshopsortmasonryResize() { 1192 if ($('.shopmasonry').length && jQuery() && jQuery(".shopmasonry").data('isotope')) { 1193 var shopmasonry = jQuery(".shopmasonry"); 1194 shopmasonry.isotope("destroy"); 1195 phshopsortmasonry(); 1196 }; 1197}; 1198/* 1199======================================================= 1200 Flexslider FullScreen 1201======================================================= 1202*/ 1203function phflexsliderfullscreen() { 1204 $(window).load(function() { 1205 var phvarflexsliderfullscreen = $('.flexslider.fullscreen'); 1206 if (phvarflexsliderfullscreen.length && jQuery()) { 1207 phvarflexsliderfullscreen.flexslider({ 1208 animation: "fade", 1209 slideshowSpeed: 5000, 1210 animationSpeed: 1500, 1211 animationLoop: true,
1212 pausePlay: false, 1213 slideshow: true, 1214 start: function() { 1215 phparallaxvideo(); 1216 phparallax(); 1217 } 1218 }); 1219 }; 1220 }); 1221}; 1222/* 1223======================================================= 1224 Flexslider Thumbnails 1225======================================================= 1226*/ 1227function phflexsliderthumbnails() { 1228 if ($('.flexslider.flex-slider-thumbnail').length && jQuery()) { 1229 $('#flex-thumbnail-carousel').flexslider({ 1230 animation: "slide", 1231 controlNav: false, 1232 animationLoop: false, 1233 slideshow: false, 1234 itemWidth: 322, 1235 itemMargin: 5, 1236 asNavFor: '#flex-thumbnail-slider' 1237 }); 1238 $('#flex-thumbnail-slider').flexslider({ 1239 animation: "slide", 1240 controlNav: false, 1241 animationLoop: false, 1242 slideshow: false, 1243 sync: "#flex-thumbnail-carousel" 1244 }); 1245 }; 1246}; 1247/* 1248======================================================= 1249 Flexslider Single Shop 1250======================================================= 1251*/ 1252function phflexslidersingleshop() { 1253 $(window).load(function() { 1254 if ($('.flexslider.shop-single-slider').length && jQuery()) { 1255 $('.flexslider.shop-single-carousel').flexslider({ 1256 animation: "slide", 1257 controlNav: false, 1258 animationLoop: false, 1259 slideshow: false, 1260 itemWidth: 158, 1261 itemMargin: 0, 1262 asNavFor: '.flexslider.shop-single-slider' 1263 }); 1264 $('.flexslider.shop-single-slider').flexslider({ 1265 animation: "slide", 1266 controlNav: false, 1267 animationLoop: false, 1268 direction: "vertical", 1269 directionNav: false, 1270 slideshow: false, 1271 sync: ".flexslider.shop-single-carousel" 1272 }); 1273 }; 1274 }); 1275}; 1276/* 1277======================================================= 1278 Flexslider Single Post 1279======================================================= 1280*/ 1281function phflexslidersinglepost() { 1282 var phvarflexsinglepostslider = $('.flexslider.single-post-slider'); 1283 if (phvarflexsinglepostslider.length && jQuery()) { 1284 phvarflexsinglepostslider.flexslider({ 1285 animation: "slide", 1286 controlNav: true, 1287 direction: "horizontal", 1288 directionNav: true, 1289 slideshow: true, 1290 start: function() { 1291 phblogmasonry(); 1292 phmasonryblog(); 1293 phmasonryblogmixed(); 1294 } 1295 }); 1296 }; 1297}; 1298/* 1299======================================================= 1300 Flexslider Portfolio 1301======================================================= 1302*/ 1303function phflexsliderportfolio() { 1304 var phvarflexportfolioslider = $('.flexslider.portofolio-slider'); 1305 if (phvarflexportfolioslider.length && jQuery()) { 1306 phvarflexportfolioslider.flexslider({ 1307 animation: "slide", 1308 slideshowSpeed: 40000, 1309 animationSpeed: 500, 1310 animationLoop: false, 1311 pausePlay: false, 1312 slideshow: true, 1313 start: function() { 1314 phportfoliomasonry(); 1315 phportfoliomasonrymixed(); 1316 } 1317 }); 1318 }; 1319}; 1320/* 1321======================================================= 1322 Flexslider Clients 1323======================================================= 1324*/ 1325function phflexsliderclients() { 1326 $(window).load(function() { 1327 var phvarflexclientsslider = $('.flexslider.clients'); 1328 if (phvarflexclientsslider .length && jQuery()) { 1329 phvarflexclientsslider.flexslider({ 1330 animation: "slide", 1331 slideshowSpeed: 4000, 1332 animationSpeed: 1500, 1333 animationLoop: false, 1334 smoothHeight: true, 1335 pausePlay: false, 1336 slideshow: false, 1337 controlNav: true, 1338 directionNav: false 1339 }); 1340 }; 1341 }); 1342}; 1343/* 1344======================================================= 1345 Isotope Portfolio Fit Rows 1346======================================================= 1347*/ 1348function phportfoliofitrows() { 1349 var phvarportfoliofitrows = $('.portfoliofitrows'); 1350 if (phvarportfoliofitrows.length && jQuery()) { 1351 phvarportfoliofitrows.isotope({ 1352 itemSelector: '.p-item', 1353 percentPosition: true, 1354 layoutMode: 'fitRows', 1355 masonry: {} 1356 }); 1357 phflexsliderportfolio(); 1358 }; 1359}; 1360/* 1361======================================================= 1362 Isotope Gallery Fit Rows 1363======================================================= 1364*/ 1365function phgalleryfitrows() { 1366 if ($('.galleryfitrows').length && jQuery()) { 1367 $('.galleryfitrows').isotope({ 1368 itemSelector: '.g-item', 1369 percentPosition: true, 1370 layoutMode: 'fitRows', 1371 masonry: {} 1372 }); 1373 }; 1374}; 1375/* 1376======================================================= 1377 Isotope Portfolio Masonry 1378======================================================= 1379*/ 1380function phportfoliomasonry() { 1381 if ($('.portfoliomasonry').length && jQuery()) { 1382 $('.portfoliomasonry').isotope({ 1383 itemSelector: '.p-item', 1384 percentPosition: true, 1385 masonry: {} 1386 }); 1387 phflexsliderportfolio(); 1388 }; 1389}; 1390/* 1391======================================================= 1392 Isotope Portfolio Masonry 1393======================================================= 1394*/ 1395function phportfoliomasonrymixed() { 1396 if ($('.portfoliomasonrymixed').length && jQuery()) { 1397 $('.portfoliomasonrymixed').isotope({ 1398 itemSelector: '.p-item', 1399 percentPosition: true, 1400 masonry: { 1401 columnWidth: '.p-sizer' 1402 } 1403 }); 1404 phflexsliderportfolio(); 1405 }; 1406}; 1407/* 1408======================================================= 1409 Shop Categories Masonry 1410======================================================= 1411*/ 1412function phshopcategoriesmasonry() { 1413 if ($('.shopcategoriesmasonry').length && jQuery()) { 1414 $('.shopcategoriesmasonry').isotope({ 1415 itemSelector: '.sc-item', 1416 percentPosition: true, 1417 masonry: { 1418 columnWidth: '.sc-sizer' 1419 } 1420 }); 1421 }; 1422}; 1423/* 1424======================================================= 1425 Isotope Blog Masonry 1426======================================================= 1427*/ 1428function phblogmasonry() { 1429 if ($('.blog-masonry').length && jQuery()) { 1430 $('.blog-masonry').isotope({ 1431 itemSelector: '.blog-item', 1432 percentPosition: true, 1433 masonry: {} 1434 }); 1435 phflexslidersinglepost(); 1436 }; 1437}; 1438 1439function phblogmasonryResize() { 1440 if ($('.blog-masonry').length && jQuery() && jQuery(".blog-masonry").data('isotope')) { 1441 var blogmasonry = jQuery(".blog-masonry"); 1442 blogmasonry.isotope("destroy"); 1443 phblogmasonry(); 1444 }; 1445}; 1446 1447function phmasonryblogmixed() { 1448 if ($('.blog-masonry-mixed').length && jQuery()) { 1449 $('.blog-masonry-mixed').isotope({ 1450 itemSelector: '.blog-item', 1451 percentPosition: true, 1452 masonry: { 1453 columnWidth: '.b-sizer' 1454 } 1455 }); 1456 phflexslidersinglepost(); 1457 }; 1458}; 1459 1460function phmasonryblogmixedResize() { 1461 if ($('.blog-masonry-mixed').length && jQuery() && jQuery(".blog-masonry-mixed").data('isotope')) { 1462 var masonryblogmixed = jQuery(".blog-masonry-mixed"); 1463 masonryblogmixed.isotope("destroy"); 1464 phmasonryblogmixed(); 1465 }; 1466}; 1467
1468function phmasonryblog() { 1469 if ($('.masonry-blog').length && jQuery()) { 1470 $('.masonry-blog').isotope({ 1471 itemSelector: '.blog-item', 1472 percentPosition: true, 1473 masonry: {} 1474 }); 1475 phflexslidersinglepost(); 1476 }; 1477}; 1478 1479function phmasonryblogResize() { 1480 if ($('.masonry-blog').length && jQuery() && jQuery(".masonry-blog").data('isotope')) { 1481 var masonryblog = jQuery(".masonry-blog"); 1482 masonryblog.isotope("destroy"); 1483 phmasonryblog(); 1484 }; 1485}; 1486/* 1487======================================================= 1488 Isotope Blog Fit Rows 1489======================================================= 1490*/ 1491function phblogfitrows() { 1492 if ($('.blogfitrows').length && jQuery()) { 1493 var blogfitrows = jQuery(".blogfitrows"); 1494 blogfitrows.isotope({ 1495 itemSelector: '.blog-item', 1496 percentPosition: true, 1497 layoutMode: 'fitRows' 1498 }); 1499 phflexslidersinglepost(); 1500 }; 1501}; 1502 1503function phblogfitrowsResize() { 1504 if ($('.blogfitrows').length && jQuery() && jQuery(".blogfitrows").data('isotope')) { 1505 var blogfitrows = jQuery(".blogfitrows"); 1506 blogfitrows.isotope("destroy"); 1507 phblogfitrows(); 1508 }; 1509}; 1510/* 1511======================================================= 1512 Isotope Portfolio Filter 1513======================================================= 1514*/ 1515function phportfoliofilter() { 1516 var phvarportfoliofilter = $('#portfolio-filter'); 1517 if (phvarportfoliofilter.length && jQuery()) { 1518 phvarportfoliofilter.on( "click", "a", function(e) { 1519 e.preventDefault(); 1520 var phvarportfoliogrids = $('.portfoliofitrows, .portfoliomasonry, .portfoliomasonrymixed'); 1521 phvarportfoliogrids.find(".p-item").removeClass("wow animated fadeInUp"); 1522 if ($(this).hasClass('activeFilter')) { 1523 return false; 1524 } 1525 $(this).parents('#portfolio-filter').find('.activeFilter').removeClass('activeFilter'); 1526 $(this).addClass('activeFilter'); 1527 var filterValue = $(this).attr('data-filter'); 1528 phvarportfoliogrids.isotope({ 1529 filter: filterValue 1530 }); 1531 1532 }); 1533 }; 1534}; 1535/* 1536======================================================= 1537 SwipeBox 1538======================================================= 1539*/ 1540function phswipebox() { 1541 if ($('.swipebox').length && jQuery()) { 1542 $('.swipebox').swipebox(); 1543 }; 1544}; 1545/* 1546======================================================= 1547 Shop Product Counter 1548======================================================= 1549*/ 1550function phproductcounter() { 1551 var valueElement = $('#value'); 1552 if (valueElement.length && jQuery()) { 1553 function incrementValue(e) { 1554 valueElement.val(Math.max(parseInt(valueElement.val()) + e.data.increment, 0)); 1555 return false; 1556 } 1557 $('.count-plus').on('click', { 1558 increment: 1 1559 }, incrementValue); 1560 $('.count-minus').on('click', { 1561 increment: -1 1562 }, incrementValue); 1563 }; 1564}; 1565/* 1566======================================================= 1567 Add Cart Counter 1568======================================================= 1569*/ 1570function phaddcartcounter() { 1571 var valuecartcount = $('.header-cart-count'); 1572 if (valuecartcount.length && jQuery()) { 1573 function incrementheadercount(e) { 1574 valuecartcount.html(Math.max(parseInt(valuecartcount.html()) + e.data.increment, 0)); 1575 return false; 1576 } 1577 $('.add-to-cart-item').off("click").on('click', { 1578 increment: 1 1579 }, incrementheadercount); 1580 }; 1581}; 1582/* 1583======================================================= 1584 Footer CopyRights 1585======================================================= 1586*/ 1587var copyright = jQuery("#copyrights .copyrights-text, .copyrights-text"); 1588if (copyright.length > 0 && jQuery()) { 1589 var dateNow = new Date(), 1590 intYear = dateNow.getFullYear(), 1591 content = 'Copyrights © ' + intYear + ' All Rights Reserved by <a href="http://www.pixelsharmony.com/" target="_blank">PixelsHarmony'; 1592 copyright.html(content); 1593}; 1594/* 1595======================================================= 1596 Parallax Effect 1597======================================================= 1598*/
1599function modalNewsletterShop() { 1600 var modal = jQuery("#ad-modal-shop"); 1601 if (modal.length > 0 && jQuery()) { 1602 modal.modal("show"); 1603 } 1604}; 1605/* 1606======================================================= 1607 Sidebar Sticky 1608======================================================= 1609*/ 1610function phsidebarsticky() { 1611 if ($('.theiaStickySidebar').length && jQuery()) { 1612 jQuery('.main-sticky, .sidebar-sticky').theiaStickySidebar({ 1613 1614 }); 1615 }; 1616}; 1617/* 1618======================================================= 1619 Parallax Effect Fix 1620======================================================= 1621*/ 1622function phparallaxfixheight() { 1623 var phvarjsparallax = $('.js-parallax'); 1624 if (phvarjsparallax.hasClass('full-height')) { 1625 phvarjsparallax.parallax({ 1626 iosFix: true, 1627 androidFix: true 1628 }); 1629 } else { 1630 phvarjsparallax.each(function() { 1631 var parallaxheight = $(this).outerHeight(); 1632 $(this).css("height", parallaxheight); 1633 }); 1634 phvarjsparallax.parallax({ 1635 iosFix: true, 1636 androidFix: true 1637 }); 1638 } 1639}; 1640 1641function phparallaxcall() { 1642 $(window).trigger('resize'); 1643 $(window).load(function() { 1644 $('.js-parallax').parallax({ 1645 iosFix: true, 1646 androidFix: true 1647 }); 1648 }); 1649}; 1650 1651function phparallax() { 1652 if ($('.js-parallax').length && jQuery()) { 1653 jQuery(window).load(function() { 1654 $.when(phparallaxfixheight()).then(phparallaxcall()); 1655 $.when(phpiechart()).then(phparallaxcall()); 1656 }); 1657 }; 1658}; 1659/* 1660======================================================= 1661 ToolTip 1662======================================================= 1663*/ 1664function phptooltip() { 1665 if ($('[data-toggle="tooltip"]').length && jQuery()) { 1666 $('[data-toggle="tooltip"]').tooltip(); 1667 }; 1668}; 1669/* 1670======================================================= 1671 Popover 1672======================================================= 1673*/ 1674function phpopover() { 1675 if ($('[data-toggle="popover"]').length && jQuery()) { 1676 $('[data-toggle="popover"]').popover(); 1677 }; 1678}; 1679/* 1680======================================================= 1681 Search Collapse 1682======================================================= 1683*/ 1684function phsearchcollapse() { 1685 if ($('.btn-search').length && jQuery()) { 1686 var phvarsearchpopupbox = $('.search-popup-box'); 1687 $('.btn-search').on( "click", function(event) { 1688 event.preventDefault(); 1689 phvarsearchpopupbox.addClass('visible'); 1690 $('.search-form-popup input').focus(); 1691 phvarsearchpopupbox.removeClass("fadeOutUp").addClass("fadeInDown").delay(1000).after(function() {}); 1692 $(document).keyup(function(e) { 1693 1694 if (e.keyCode === 27){ 1695 $('.search-popup-close').trigger('click'); 1696 } 1697 }); 1698 }); 1699 $('.search-popup-close').on( "click", function(event) { 1700 event.preventDefault(); 1701 var timeout = setTimeout(function() { 1702 phvarsearchpopupbox.removeClass("visible"); 1703 clearTimeout(timeout); 1704 }, 1000); 1705 phvarsearchpopupbox.addClass("fadeOutUp"); 1706 }); 1707 }; 1708}; 1709/* 1710======================================================= 1711 Link Prevent 1712======================================================= 1713*/ 1714function phlinkprevent() { 1715 $("a[href^='#']").on( "click", function(event) { 1716 event.preventDefault(); 1717 }); 1718}; 1719/* 1720======================================================= 1721 Contact Form Collapse 1722======================================================= 1723*/ 1724function phcontactformcollapse() { 1725 var phvarcontactoverlaymap = $('.contact-overlay-map'); 1726 if (phvarcontactoverlaymap.length && jQuery()) { 1727 $('.minimize-form').on( "click", function(event) { 1728 event.preventDefault(); 1729 phvarcontactoverlaymap.addClass('contact-form-hidden'); 1730 }); 1731 $('.maximize-form').on( "click", function(event) { 1732 event.preventDefault(); 1733 phvarcontactoverlaymap.removeClass('contact-form-hidden'); 1734 }); 1735 }; 1736}; 1737/* 1738======================================================= 1739 Wishlist Shop Select 1740======================================================= 1741*/ 1742function phwishlistshopselect() {
1743 if ($('.add-to-wishlist').length && jQuery()) { 1744 $('.add-to-wishlist').off("click").on("click", function(event) { 1745 var button = $(this), 1746 text = ''; 1747 button.toggleClass('select'); 1748 event.preventDefault(); 1749 jQuery(".wishlist-modal").delay(2500).remove(); 1750 if (button.hasClass("select")) { 1751 jQuery("body").append('<div class="wishlist-modal added">Item added to wishlist</div>'); 1752 } else { 1753 jQuery("body").append('<div class="wishlist-modal removed ">Item removed from wishlist</div>'); 1754 } 1755 var animacija = "pulse"; 1756 jQuery('.wishlist-modal').addClass(animacija + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function() { 1757 jQuery(this).delay(2500).remove(); 1758 }); 1759 }); 1760 }; 1761}; 1762/* 1763======================================================= 1764 Shop Layout Switch 1765======================================================= 1766*/ 1767function phshoplayoutswitch() { 1768 if ($('.shop-layout-filter').length && jQuery()) { 1769 var phvarshoplistbox = $('.shop-list-box'); 1770 $('.shop-layout-filter li a.box-layout-mode').on( "click", function(event) { 1771 event.preventDefault(); 1772 1773 $('.shop-list').find(".shop-item").removeClass("wow animated fadeInUp"); 1774 $(".shop-product .shop-desc").css("min-height", "auto"); 1775 if (phvarshoplistbox.hasClass('shop-type-list')) { 1776 phvarshoplistbox.removeClass('shop-type-list'); 1777 } else { 1778 phvarshoplistbox.addClass('shop-type-box'); 1779 }; 1780 if (!$(this).hasClass('active')) { 1781 $('.shop-layout-filter li a.active').removeClass("active"); 1782 $(this).addClass("active"); 1783 }; 1784 phshopsort(); 1785 phshopsortmasonry(); 1786 }); 1787 $('.shop-layout-filter li a.list-layout-mode').on( "click", function(event) { 1788 event.preventDefault(); 1789 $('.shop-list').find(".shop-item").removeClass("wow animated fadeInUp"); 1790 if (phvarshoplistbox.hasClass('shop-type-box')) { 1791 phvarshoplistbox.removeClass('shop-type-box'); 1792 } else { 1793 phvarshoplistbox.addClass('shop-type-list'); 1794 }; 1795 if (!$(this).hasClass('active')) { 1796 $('.shop-layout-filter li a.active').removeClass("active"); 1797 $(this).addClass("active"); 1798 }; 1799 phshoplayoutlistfix(); 1800 phshopsort(); 1801 phshopsortmasonry(); 1802 }); 1803 }; 1804}; 1805 1806function phshoplayoutlistfix() { 1807 if ($('.shop-layout-filter').length && jQuery()) { 1808 var $shoplistitembuttonsheight = $('.shop-type-list .shop-product .shop-item-buttons').height() + 1; 1809 var $shoplistimageheight = $('.shop-type-list .shop-product .shop-image-holder').height() - $shoplistitembuttonsheight; 1810 $(".shop-type-list .shop-product .shop-desc").css("min-height", $shoplistimageheight); 1811 }; 1812}; 1813/* 1814======================================================= 1815 Portfolio Layout Switch 1816======================================================= 1817*/ 1818function phportfoliolayoutswitch() { 1819 if ($('.shop-layout-filter').length && jQuery()) { 1820 $('.portfolio-layout-filter li a.box-layout-mode').on( "click", function(event) { 1821 event.preventDefault(); 1822 $('.portfoliofitrows, .portfoliomasonry, .portfoliomasonrymixed').find(".p-item").removeClass("wow animated fadeInUp"); 1823 $(".portfolio-section.portfolio-type-list .item-text-wrapper_normal").css("min-height", "auto"); 1824 if ($('.portfolio-section').hasClass('portfolio-type-list')) { 1825 $('.portfolio-section').removeClass('portfolio-type-list'); 1826 } else { 1827 $('.portfolio-section').addClass('portfolio-type-box'); 1828 }; 1829 if (!$(this).hasClass('active')) { 1830 $('.portfolio-layout-filter li a.active').removeClass("active"); 1831 $(this).addClass("active"); 1832 }; 1833 phportfoliofitrows(); 1834 }); 1835 $('.portfolio-layout-filter li a.list-layout-mode').on( "click", function(event) { 1836 event.preventDefault(); 1837 $('.portfoliofitrows, .portfoliomasonry, .portfoliomasonrymixed').find(".p-item").removeClass("wow animated fadeInUp"); 1838 if ($('.portfolio-section').hasClass('portfolio-type-box')) { 1839 $('.portfolio-section').removeClass('portfolio-type-box'); 1840 } else { 1841 $('.portfolio-section').addClass('portfolio-type-list'); 1842 }; 1843 if (!$(this).hasClass('active')) { 1844 $('.portfolio-layout-filter li a.active').removeClass("active"); 1845 $(this).addClass("active"); 1846 }; 1847 phportfoliolayoutlistfix(); 1848 phportfoliofitrows(); 1849 }); 1850 }; 1851}; 1852 1853function phportfoliolayoutlistfix() { 1854 if ($('.shop-layout-filter').length && jQuery()) { 1855 var $portfolioimageheight = $('.portfolio-type-list .image-box').height(); 1856 $(".portfolio-type-list .item-text-wrapper_normal").css("min-height", $portfolioimageheight); 1857 }; 1858}; 1859/* 1860======================================================= 1861 Navigation 1862======================================================= 1863*/ 1864function phnavigationleftright() { 1865 $(".ws-dropdown").on('mouseenter mouseleave', function(e) { 1866 if ($('ul', this).length) { 1867 1868 var ddelm = $('.ws-dropdown-menu:first', this); 1869 var ddoff = ddelm.offset(); 1870 var ddl = ddoff.left; 1871 var ddw = ddelm.width(); 1872 var ddfw = $("#header").width(); 1873 1874 var isEntirelyVisible = (ddl + ddw <= ddfw); 1875 if (!isEntirelyVisible) { 1876 $(this).addClass('ws-dropdown-left'); 1877 } else { 1878 $(this).removeClass('ws-dropdown-left'); 1879 } 1880 } 1881 }); 1882}; 1883 1884function phnavigation() { 1885 1886 1887 1888 1889 var flag = true; 1890 $('.main-container').off("click").on( "click", function(e) { 1891 e.preventDefault(); 1892 var width = jQuery("#nav-accordion").width(); 1893 if (!flag) { 1894 width = 0; 1895 } else { 1896 return; 1897 } 1898 jQuery(this).parent().animate({ 1899 left: width 1900 }, { 1901 duration: 300, 1902 step: function(left) { 1903 jQuery("#header").css("left", left); 1904 } 1905 }); 1906 flag = !flag; 1907 }); 1908 if (screen.width > 677) { 1909 $(function() { 1910 $(window).on("resize", function() { 1911 var height = $(window).height(); 1912 var k = $("#header").height(); 1913 var l = $("#nav").height(); 1914 $('.background-slider-item').height(height - k - l); 1915 }).trigger("resize"); 1916 }); 1917 } else if (screen.width < 677) { 1918 $(function() { 1919 $(window).on("resize", function() { 1920 var k = $("#header").height(); 1921 var l = $("#nav").height(); 1922 $('.flexslider').css("padding-top", k + l + "px"); 1923 $('#content').css("padding-top", k + l + "px"); 1924 }).trigger("resize"); 1925 }); 1926 } 1927 equalheight = function(container) { 1928 var currentTallest = 0, 1929 currentRowStart = 0, 1930 rowDivs = new Array(), 1931 $el, 1932 topPosition = 0; 1933 $(container).each(function() { 1934 $el = $(this); 1935 $($el).height('auto') 1936 topPostion = $el.position().top; 1937 if (currentRowStart != topPostion) { 1938 for (currentDiv = 0; currentDiv < rowDivs.length; currentDiv++) { 1939 rowDivs[currentDiv].height(currentTallest); 1940 } 1941 rowDivs.length = 0; 1942 currentRowStart = topPostion; 1943 currentTallest = $el.height(); 1944 rowDivs.push($el); 1945 } else { 1946 rowDivs.push($el); 1947 currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest); 1948 } 1949 for (currentDiv = 0; currentDiv < rowDivs.length; currentDiv++) { 1950 rowDivs[currentDiv].height(currentTallest); 1951 } 1952 }); 1953 } 1954}; 1955/* 1956======================================================= 1957 Revolution FullScreen Slider 1958======================================================= 1959*/ 1960function phrevolutionslider() { 1961 if ($('.tp-banner').length && jQuery()) { 1962 $('.tp-banner').show().revolution({ 1963 sliderType: "standard", 1964 sliderLayout: "fullscreen", 1965 dottedOverlay: "none", 1966 delay: 9000, 1967 jsFileLocation: "plugins/revolution-slider/js/", 1968 navigation: { 1969 keyboardNavigation: "off", 1970 keyboard_direction: "horizontal", 1971 mouseScrollNavigation: "off", 1972 onHoverStop: "off", 1973 touch: { 1974 touchenabled: "on", 1975 swipe_threshold: 75, 1976 swipe_min_touches: 1, 1977 swipe_direction: "horizontal", 1978 drag_block_vertical: false 1979 }, 1980 arrows: { 1981 style: "hades", 1982 enable: true, 1983 hide_onmobile: false, 1984 hide_onleave: true, 1985 tmp: '<div class="tp-arr-allwrapper"> <div class="tp-arr-imgholder"></div></div>', 1986 left: { 1987 h_align: "left", 1988 v_align: "center", 1989 h_offset: 0, 1990 v_offset: 0 1991 }, 1992 right: { 1993 h_align: "right", 1994 v_align: "center", 1995 h_offset: 0, 1996 v_offset: 0 1997 } 1998 } 1999 }, 2000 responsiveLevels: [1900, 1600, 1400, 1024, 778, 480], 2001 gridwidth: [1900, 1600, 1240, 1024, 778, 480], 2002 gridheight: [900, 900, 640, 400, 400, 300], 2003 lazyType: "none", 2004 parallax: { 2005 type: "mouse", 2006 origo: "slidercenter", 2007 speed: 2000,
2008 levels: [2, 3, 4, 5, 6, 7, 12, 16, 10, 50], 2009 }, 2010 shadow: 0, 2011 spinner: "off", 2012 autoHeight: "off", 2013 disableProgressBar: "on", 2014 hideThumbsOnMobile: "off", 2015 hideSliderAtLimit: 0, 2016 hideCaptionAtLimit: 0, 2017 hideAllCaptionAtLilmit: 0, 2018 debugMode: false, 2019 fallbacks: { 2020 simplifyAll: "off", 2021 disableFocusListener: false, 2022 } 2023 }); 2024 }; 2025}; 2026/* 2027======================================================= 2028 Revolution Slider FullWidth 2029======================================================= 2030*/ 2031function phrevolutionsliderfull() { 2032 if ($('#fullwidth-revoultion').length && jQuery()) { 2033 $('#fullwidth-revoultion').show().revolution({ 2034 sliderType: "standard", 2035 jsFileLocation: "plugins/revolution-slider/js/", 2036 sliderLayout: "auto", 2037 dottedOverlay: "none", 2038 delay: 9000, 2039 navigation: { 2040 keyboardNavigation: "off", 2041 keyboard_direction: "horizontal", 2042 mouseScrollNavigation: "off", 2043 onHoverStop: "off", 2044 touch: { 2045 touchenabled: "on", 2046 swipe_threshold: 75, 2047 swipe_min_touches: 1, 2048 swipe_direction: "horizontal", 2049 drag_block_vertical: false 2050 }, 2051 arrows: { 2052 style: "hades", 2053 enable: true, 2054 hide_onmobile: false, 2055 hide_onleave: true, 2056 tmp: '<div class="tp-arr-allwrapper"> <div class="tp-arr-imgholder"></div></div>', 2057 left: { 2058 h_align: "left", 2059 v_align: "center", 2060 h_offset: 0, 2061 v_offset: 0 2062 }, 2063 right: { 2064 h_align: "right", 2065 v_align: "center", 2066 h_offset: 0, 2067 v_offset: 0 2068 } 2069 } 2070 }, 2071 responsiveLevels: [1600, 1400, 1024, 778, 480], 2072 gridwidth: [1600, 1240, 1024, 778, 480], 2073 gridheight: [700, 560, 640, 500, 500], 2074 lazyType: "none", 2075 parallax: { 2076 type: "mouse", 2077 origo: "slidercenter", 2078 speed: 2000, 2079 levels: [2, 3, 4, 5, 6, 7, 12, 16, 10, 50], 2080 }, 2081 shadow: 0, 2082 spinner: "off", 2083 autoHeight: "off", 2084 disableProgressBar: "on", 2085 hideThumbsOnMobile: "on", 2086 hideSliderAtLimit: 0, 2087 hideCaptionAtLimit: 0, 2088 hideAllCaptionAtLilmit: 0, 2089 debugMode: false, 2090 fallbacks: { 2091 simplifyAll: "off", 2092 disableFocusListener: false, 2093 } 2094 }); 2095 } 2096}; 2097/* 2098======================================================= 2099 Revolution Slider FullWidth 2100======================================================= 2101*/ 2102function phrevolutionslidertravel() { 2103 if ($('#travel-revolution-slider').length && jQuery()) { 2104 $('#travel-revolution-slider').show().revolution({ 2105 sliderType: "standard", 2106 jsFileLocation: "plugins/revolution-slider/js/", 2107 sliderLayout: "auto", 2108 dottedOverlay: "none", 2109 delay: 6000, 2110 navigation: { 2111 keyboardNavigation: "off", 2112 keyboard_direction: "horizontal", 2113 mouseScrollNavigation: "off", 2114 onHoverStop: "off", 2115 touch: { 2116 touchenabled: "on", 2117 swipe_threshold: 75, 2118 swipe_min_touches: 1, 2119 swipe_direction: "horizontal", 2120 drag_block_vertical: false 2121 }, 2122 bullets: { 2123 enable: true, 2124 hide_onmobile: true, 2125 hide_under: 600, 2126 style: "hermes", 2127 hide_onleave: true, 2128 hide_delay: 200, 2129 hide_delay_mobile: 1200, 2130 direction: "vertical", 2131 h_align: "right", 2132 v_align: "center", 2133 h_offset: 30, 2134 v_offset: 0, 2135 space: 5, 2136 tmp: '' 2137 } 2138 }, 2139 viewPort: { 2140 enable: true, 2141 outof: "pause", 2142 visible_area: "80%" 2143 }, 2144 responsiveLevels: [1600, 1290, 778, 480], 2145 gridwidth: [1600, 1290, 778, 480], 2146 gridheight: [795, 560, 500, 400], 2147 lazyType: "none", 2148 parallax: { 2149 type: "mouse", 2150 origo: "slidercenter", 2151 speed: 2000,
2152 levels: [2, 3, 4, 5, 6, 7, 12, 16, 10, 50], 2153 }, 2154 shadow: 0, 2155 spinner: "off", 2156 stopLoop: "off", 2157 stopAfterLoops: -1, 2158 stopAtSlide: -1, 2159 shuffle: "off", 2160 autoHeight: "off", 2161 hideThumbsOnMobile: "off", 2162 hideSliderAtLimit: 0, 2163 hideCaptionAtLimit: 0, 2164 hideAllCaptionAtLilmit: 0, 2165 debugMode: false, 2166 fallbacks: { 2167 simplifyAll: "off", 2168 nextSlideOnWindowFocus: "off", 2169 disableFocusListener: false, 2170 } 2171 }); 2172 } 2173}; 2174/* 2175======================================================= 2176 Revolution Slider FullWidth 600 2177======================================================= 2178*/ 2179function phrevolutionsliderfull600() { 2180 if ($('#fullwidth-revoultion-600').length && jQuery()) { 2181 $('#fullwidth-revoultion-600').show().revolution({ 2182 sliderType: "standard", 2183 jsFileLocation: "plugins/revolution-slider/js/", 2184 sliderLayout: "auto", 2185 dottedOverlay: "none", 2186 delay: 9000, 2187 navigation: { 2188 keyboardNavigation: "off", 2189 keyboard_direction: "horizontal", 2190 mouseScrollNavigation: "off", 2191 onHoverStop: "off", 2192 touch: { 2193 touchenabled: "on", 2194 swipe_threshold: 75, 2195 swipe_min_touches: 1, 2196 swipe_direction: "horizontal", 2197 drag_block_vertical: false 2198 }, 2199 arrows: { 2200 style: "hades", 2201 enable: true, 2202 hide_onmobile: false, 2203 hide_onleave: true, 2204 tmp: '<div class="tp-arr-allwrapper"> <div class="tp-arr-imgholder"></div></div>', 2205 left: { 2206 h_align: "left", 2207 v_align: "center", 2208 h_offset: 0, 2209 v_offset: 0 2210 }, 2211 right: { 2212 h_align: "right", 2213 v_align: "center", 2214 h_offset: 0, 2215 v_offset: 0 2216 } 2217 } 2218 }, 2219 responsiveLevels: [1600, 1400, 1024, 778, 480], 2220 gridwidth: [1600, 1240, 1024, 778, 480], 2221 gridheight: [610, 540, 540, 500, 500], 2222 lazyType: "none", 2223 parallax: { 2224 type: "mouse", 2225 origo: "slidercenter", 2226 speed: 2000, 2227 levels: [2, 3, 4, 5, 6, 7, 12, 16, 10, 50], 2228 }, 2229 shadow: 0, 2230 spinner: "off", 2231 autoHeight: "off", 2232 disableProgressBar: "on", 2233 hideThumbsOnMobile: "on", 2234 hideSliderAtLimit: 0, 2235 hideCaptionAtLimit: 0, 2236 hideAllCaptionAtLilmit: 0, 2237 debugMode: false, 2238 fallbacks: { 2239 simplifyAll: "off", 2240 disableFocusListener: false, 2241 } 2242 }); 2243 } 2244}; 2245/* 2246======================================================= 2247 Revolution Hero Slider 2248======================================================= 2249*/ 2250function phrevolutionsliderhero() { 2251 if ($('#hero-revoultion').length && jQuery()) { 2252 $('#hero-revoultion').show().revolution({ 2253 sliderType: "hero", 2254 jsFileLocation: "plugins/revolution-slider/js/", 2255 sliderLayout: "fullscreen", 2256 dottedOverlay: "none", 2257 delay: 9000, 2258 navigation: {}, 2259 responsiveLevels: [1600, 1400, 1024, 778, 480], 2260 visibilityLevels: [1600, 1400, 1024, 778, 480], 2261 gridwidth: [1600, 1240, 1024, 778, 480], 2262 gridheight: [900, 640, 400, 400, 300], 2263 lazyType: "none", 2264 parallax: { 2265 type: "scroll", 2266 origo: "slidercenter", 2267 speed: 1000, 2268 levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 46, 47, 48, 49, 50, 51, 55], 2269 type: "scroll", 2270 }, 2271 shadow: 0, 2272 spinner: "spinner2", 2273 autoHeight: "off", 2274 fullScreenAutoWidth: "off", 2275 fullScreenAlignForce: "off", 2276 fullScreenOffsetContainer: "", 2277 fullScreenOffset: "0", 2278 disableProgressBar: "on", 2279 hideThumbsOnMobile: "off", 2280 hideSliderAtLimit: 0, 2281 hideCaptionAtLimit: 0, 2282 hideAllCaptionAtLilmit: 0, 2283 debugMode: false, 2284 fallbacks: { 2285 simplifyAll: "off", 2286 disableFocusListener: false, 2287 } 2288 }); 2289 } 2290}; 2291/* 2292======================================================= 2293 Revolution Slider Intro FullWidth 2294======================================================= 2295*/ 2296function phrevolutionsintroliderfull() { 2297 if ($('.revoultion-intro-slider').length && jQuery()) { 2298 $('.revoultion-intro-slider').show().revolution({ 2299 sliderType: "standard", 2300 jsFileLocation: "plugins/revolution-slider/js/", 2301 sliderLayout: "auto", 2302 dottedOverlay: "none", 2303 delay: 9000, 2304 navigation: { 2305 keyboardNavigation: "off", 2306 keyboard_direction: "horizontal", 2307 mouseScrollNavigation: "off", 2308 onHoverStop: "on", 2309 touch: { 2310 touchenabled: "on", 2311 swipe_threshold: 75, 2312 swipe_min_touches: 1, 2313 swipe_direction: "horizontal", 2314 drag_block_vertical: false 2315 }, 2316 arrows: { 2317 style: "hades", 2318 enable: true, 2319 hide_onmobile: false, 2320 hide_onleave: true, 2321 tmp: '<div class="tp-arr-allwrapper"> <div class="tp-arr-imgholder"></div></div>', 2322 left: { 2323 h_align: "left", 2324 v_align: "center", 2325 h_offset: 0, 2326 v_offset: 0 2327 }, 2328 right: { 2329 h_align: "right", 2330 v_align: "center", 2331 h_offset: 0, 2332 v_offset: 0 2333 } 2334 } 2335 }, 2336 responsiveLevels: [2560, 1600, 1400, 1280, 1024, 778, 480], 2337 gridwidth: [2560, 1600, 1240, 750, 700, 778, 480], 2338 gridheight: [1050, 750, 640, 400, 400, 300], 2339 lazyType: "none", 2340 parallax: { 2341 type: "mouse", 2342 origo: "slidercenter", 2343 speed: 2000,
2344 levels: [2, 3, 4, 5, 6, 7, 12, 16, 10, 50], 2345 }, 2346 shadow: 0, 2347 spinner: "off", 2348 autoHeight: "off", 2349 disableProgressBar: "on", 2350 hideThumbsOnMobile: "off", 2351 hideSliderAtLimit: 0, 2352 hideCaptionAtLimit: 0, 2353 hideAllCaptionAtLilmit: 0, 2354 debugMode: false, 2355 fallbacks: { 2356 simplifyAll: "off", 2357 disableFocusListener: false, 2358 } 2359 }); 2360 } 2361}; 2362/* 2363======================================================= 2364 Revolution Slider Team 2365======================================================= 2366*/ 2367function phrevolutionsliderteam() { 2368 if ($('#team-revoultion').length && jQuery()) { 2369 $('#team-revoultion').show().revolution({ 2370 sliderType: "standard", 2371 jsFileLocation: "plugins/revolution-slider/js/", 2372 sliderLayout: "auto", 2373 dottedOverlay: "none", 2374 delay: 9000, 2375 navigation: { 2376 onHoverStop: "off", 2377 }, 2378 responsiveLevels: [1240, 1024, 778, 480], 2379 visibilityLevels: [1240, 1024, 778, 480], 2380 gridwidth: [1400, 1024, 778, 480], 2381 gridheight: [770, 650, 600, 500], 2382 lazyType: "none", 2383 shadow: 0, 2384 spinner: "off", 2385 stopLoop: "on", 2386 stopAfterLoops: 0, 2387 stopAtSlide: 1, 2388 shuffle: "off", 2389 autoHeight: "off", 2390 disableProgressBar: "on", 2391 hideThumbsOnMobile: "off", 2392 hideSliderAtLimit: 0, 2393 hideCaptionAtLimit: 0, 2394 hideAllCaptionAtLilmit: 0, 2395 debugMode: false, 2396 fallbacks: { 2397 simplifyAll: "off", 2398 nextSlideOnWindowFocus: "off", 2399 disableFocusListener: false, 2400 } 2401 }); 2402 } 2403}; 2404/* 2405======================================================= 2406 Revolution Slider Parallax 2407======================================================= 2408*/ 2409function phrevolutionsliderparallax() { 2410 if ($('#parallax-revoultion').length && jQuery()) { 2411 $('#parallax-revoultion').show().revolution({ 2412 sliderType: "hero", 2413 jsFileLocation: "plugins/revolution-slider/js/", 2414 sliderLayout: "fullwidth", 2415 dottedOverlay: "none", 2416 delay: 9000, 2417 navigation: {}, 2418 responsiveLevels: [1600, 1240, 1024, 778, 480], 2419 visibilityLevels: [1600, 1240, 1024, 778, 480], 2420 gridwidth: [1600, 1400, 1240, 778, 480], 2421 gridheight: [820, 700, 768, 960, 720], 2422 lazyType: "none", 2423 parallax: { 2424 type: "3D", 2425 origo: "slidercenter", 2426 speed: 1000, 2427 levels: [5, 10, 15, 20, 25, 30, 5, 0, 45, 50, 47, 48, 49, 50, 51, 55], 2428 type: "3D", 2429 ddd_shadow: "off", 2430 ddd_bgfreeze: "off", 2431 ddd_overflow: "hidden", 2432 ddd_layer_overflow: "visible", 2433 ddd_z_correction: 65, 2434 }, 2435 spinner: "off", 2436 autoHeight: "off", 2437 disableProgressBar: "on", 2438 hideThumbsOnMobile: "off", 2439 hideSliderAtLimit: 0, 2440 hideCaptionAtLimit: 0, 2441 hideAllCaptionAtLilmit: 0, 2442 debugMode: false, 2443 fallbacks: { 2444 simplifyAll: "off", 2445 disableFocusListener: false, 2446 } 2447 }); 2448 } 2449}; 2450/* 2451======================================================= 2452 Revolution Slider Bullets 2453======================================================= 2454*/ 2455function phrevolutionsliderfullbullets() { 2456 if ($('#fullscreen-with-bullets-revoultion').length && jQuery()) { 2457 $('#fullscreen-with-bullets-revoultion').show().revolution({ 2458 sliderType: "standard", 2459 sliderLayout: "fullscreen", 2460 jsFileLocation: "plugins/revolution-slider/js/", 2461 dottedOverlay: "none", 2462 delay: 9000, 2463 navigation: { 2464 keyboardNavigation: "off", 2465 keyboard_direction: "horizontal", 2466 mouseScrollNavigation: "off", 2467 onHoverStop: "off", 2468 touch: { 2469 touchenabled: "on", 2470 swipe_threshold: 75, 2471 swipe_min_touches: 50, 2472 swipe_direction: "horizontal", 2473 drag_block_vertical: false 2474 }, 2475 bullets: { 2476 enable: true, 2477 hide_onmobile: true, 2478 hide_under: 800, 2479 style: "zeus", 2480 hide_onleave: false, 2481 direction: "horizontal", 2482 h_align: "center", 2483 v_align: "bottom", 2484 h_offset: 0, 2485 v_offset: 30, 2486 space: 5, 2487 tmp: '<span class="tp-bullet-image"></span><span class="tp-bullet-imageoverlay"></span><span class="tp-bullet-title">{{title}}</span>' 2488 } 2489 }, 2490 responsiveLevels: [1240, 1024, 778, 480], 2491 visibilityLevels: [1240, 1024, 778, 480], 2492 gridwidth: [1240, 1024, 778, 480], 2493 gridheight: [868, 768, 960, 720], 2494 lazyType: "none", 2495 parallax: { 2496 type: "scroll", 2497 origo: "slidercenter", 2498 speed: 1000, 2499 levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 46, 47, 48, 49, 50, 100, 55], 2500 type: "scroll", 2501 }, 2502 shadow: 0, 2503 spinner: "off", 2504 stopLoop: "on", 2505 stopAfterLoops: 0, 2506 stopAtSlide: 1, 2507 shuffle: "off", 2508 autoHeight: "off", 2509 fullScreenAutoWidth: "off", 2510 fullScreenAlignForce: "off", 2511 fullScreenOffsetContainer: "", 2512 fullScreenOffset: "60px", 2513 disableProgressBar: "on", 2514 hideThumbsOnMobile: "off", 2515 hideSliderAtLimit: 0, 2516 hideCaptionAtLimit: 0, 2517 hideAllCaptionAtLilmit: 0, 2518 debugMode: false, 2519 fallbacks: { 2520 simplifyAll: "off", 2521 nextSlideOnWindowFocus: "off", 2522 disableFocusListener: false, 2523 } 2524 }); 2525 } 2526}; 2527/* 2528======================================================= 2529 Revolution Slider FullScreen with Thumbs 2530======================================================= 2531*/ 2532function phrevolutionsliderfullthumbs() { 2533 if ($('#fullthumbs-revoultion').length && jQuery()) { 2534 $('#fullthumbs-revoultion').show().revolution({ 2535 sliderType: "standard", 2536 jsFileLocation: "plugins/revolution-slider/js/", 2537 sliderLayout: "auto", 2538 dottedOverlay: "none", 2539 delay: 9000, 2540 navigation: { 2541 keyboardNavigation: "off", 2542 keyboard_direction: "horizontal", 2543 mouseScrollNavigation: "off", 2544 onHoverStop: "off", 2545 touch: { 2546 touchenabled: "on", 2547 swipe_threshold: 75, 2548 swipe_min_touches: 1, 2549 swipe_direction: "horizontal", 2550 drag_block_vertical: false 2551 }, 2552 arrows: { 2553 style: "hades", 2554 enable: true, 2555 hide_onmobile: false, 2556 hide_onleave: true, 2557 tmp: '<div class="tp-arr-allwrapper"> <div class="tp-arr-imgholder"></div></div>', 2558 left: { 2559 h_align: "left", 2560 v_align: "center", 2561 h_offset: 0, 2562 v_offset: 0 2563 }, 2564 right: { 2565 h_align: "right", 2566 v_align: "center", 2567 h_offset: 0, 2568 v_offset: 0 2569 } 2570 }, 2571 thumbnails: { 2572 style: "erinyen", 2573 enable: true, 2574 width: 150, 2575 height: 100, 2576 min_width: 150, 2577 wrapper_padding: 5, 2578 wrapper_color: "transparent", 2579 wrapper_opacity: "1", 2580 tmp: '<div class="tp-thumb-box"><span class="tp-thumb-over"></span><span class="tp-thumb-image"></span><span class="tp-thumb-title">{{title}}</span></div>',
2581 visibleAmount: 5, 2582 hide_onmobile: true, 2583 hide_under: 800, 2584 hide_onleave: false, 2585 direction: "horizontal", 2586 span: false, 2587 position: "inner", 2588 space: 0, 2589 h_align: "center", 2590 v_align: "bottom", 2591 h_offset: 0, 2592 v_offset: 20 2593 } 2594 }, 2595 viewPort: { 2596 enable: true, 2597 outof: "pause", 2598 visible_area: "80%" 2599 }, 2600 responsiveLevels: [1240, 1024, 778, 480], 2601 visibilityLevels: [1240, 1024, 778, 480], 2602 gridwidth: [1240, 1024, 778, 480], 2603 gridheight: [800, 700, 600, 500], 2604 lazyType: "none", 2605 parallax: { 2606 type: "mouse", 2607 origo: "slidercenter", 2608 speed: 2000, 2609 levels: [2, 3, 4, 5, 6, 7, 12, 16, 10, 50, 46, 47, 48, 49, 50, 55], 2610 type: "mouse", 2611 }, 2612 shadow: 0, 2613 spinner: "off", 2614 stopLoop: "off", 2615 stopAfterLoops: -1, 2616 stopAtSlide: -1, 2617 shuffle: "off", 2618 autoHeight: "off", 2619 hideThumbsOnMobile: "on", 2620 hideSliderAtLimit: 0, 2621 hideCaptionAtLimit: 0, 2622 hideAllCaptionAtLilmit: 0, 2623 debugMode: false, 2624 fallbacks: { 2625 simplifyAll: "off", 2626 nextSlideOnWindowFocus: "off", 2627 disableFocusListener: false, 2628 } 2629 }); 2630 } 2631}; 2632/* 2633======================================================= 2634 Revolution Slider Gallery Food 2635======================================================= 2636*/ 2637function phrevolutionslidergalleryfood() { 2638 if ($('#gallery-food-revoultion').length && jQuery()) { 2639 $('#gallery-food-revoultion').show().revolution({ 2640 sliderType: "carousel", 2641 jsFileLocation: "plugins/revolution-slider/js/", 2642 sliderLayout: "fullwidth", 2643 dottedOverlay: "none", 2644 delay: 9000, 2645 navigation: { 2646 keyboardNavigation: "off", 2647 keyboard_direction: "horizontal", 2648 mouseScrollNavigation: "off", 2649 onHoverStop: "off", 2650 arrows: { 2651 style: "metis", 2652 enable: true, 2653 hide_onmobile: true, 2654 hide_under: 768, 2655 hide_onleave: false, 2656 tmp: '', 2657 left: { 2658 h_align: "left", 2659 v_align: "center", 2660 h_offset: 0, 2661 v_offset: 0 2662 }, 2663 right: { 2664 h_align: "right", 2665 v_align: "center", 2666 h_offset: 0, 2667 v_offset: 0 2668 } 2669 }, 2670 thumbnails: { 2671 style: "erinyen", 2672 enable: true, 2673 width: 150, 2674 height: 100, 2675 min_width: 150, 2676 wrapper_padding: 20, 2677 wrapper_color: "#000000", 2678 wrapper_opacity: "0.05", 2679 tmp: '<span class="tp-thumb-over"></span><span class="tp-thumb-image"></span><span class="tp-thumb-title">{{title}}</span><span class="tp-thumb-more"></span>', 2680 visibleAmount: 9, 2681 hide_onmobile: false, 2682 hide_onleave: false, 2683 direction: "horizontal", 2684 span: true, 2685 position: "outer-bottom", 2686 space: 10, 2687 h_align: "center", 2688 v_align: "bottom", 2689 h_offset: 0, 2690 v_offset: 0 2691 } 2692 }, 2693 carousel: { 2694 maxRotation: 65, 2695 vary_rotation: "on", 2696 minScale: 55, 2697 vary_scale: "off", 2698 horizontal_align: "center", 2699 vertical_align: "center", 2700 fadeout: "on", 2701 vary_fade: "on", 2702 maxVisibleItems: 5, 2703 infinity: "on", 2704 space: -150, 2705 stretch: "off" 2706 }, 2707 gridwidth: 750, 2708 gridheight: 750, 2709 lazyType: "none", 2710 shadow: 0, 2711 spinner: "off", 2712 stopLoop: "on", 2713 stopAfterLoops: 0, 2714 stopAtSlide: 1, 2715 shuffle: "off", 2716 autoHeight: "off", 2717 disableProgressBar: "on", 2718 hideThumbsOnMobile: "off", 2719 hideSliderAtLimit: 0, 2720 hideCaptionAtLimit: 0, 2721 hideAllCaptionAtLilmit: 0, 2722 debugMode: false, 2723 fallbacks: { 2724 simplifyAll: "off", 2725 nextSlideOnWindowFocus: "off", 2726 disableFocusListener: false, 2727 } 2728 }); 2729 } 2730}; 2731/* 2732======================================================= 2733 Revolution Slider Gallery HighLights 2734======================================================= 2735*/ 2736function phrevolutionslidergalleryhightlights() { 2737 if ($('#gallery-hightlights-revoultion').length && jQuery()) { 2738 $('#gallery-hightlights-revoultion').show().revolution({ 2739 sliderType: "standard", 2740 sliderLayout: "auto", 2741 jsFileLocation: "plugins/revolution-slider/js/", 2742 dottedOverlay: "none", 2743 delay: 9000, 2744 navigation: { 2745 keyboardNavigation: "off", 2746 keyboard_direction: "horizontal", 2747 mouseScrollNavigation: "off", 2748 onHoverStop: "off", 2749 touch: { 2750 touchenabled: "on", 2751 swipe_threshold: 75, 2752 swipe_min_touches: 1, 2753 swipe_direction: "horizontal", 2754 drag_block_vertical: false 2755 }, 2756 tabs: { 2757 style: "zeus", 2758 enable: true, 2759 width: 100, 2760 height: 30, 2761 min_width: 100, 2762 wrapper_padding: 0, 2763 wrapper_color: "transparent", 2764 wrapper_opacity: "0", 2765 tmp: '<span class="tp-tab-title">{{title}}</span>',
2766 visibleAmount: 3, 2767 hide_onmobile: true, 2768 hide_under: 480, 2769 hide_onleave: false, 2770 hide_delay: 200, 2771 direction: "horizontal", 2772 span: true, 2773 position: "inner", 2774 space: 1, 2775 h_align: "left", 2776 v_align: "top", 2777 h_offset: 30, 2778 v_offset: 100 2779 } 2780 }, 2781 viewPort: { 2782 enable: true, 2783 outof: "pause", 2784 visible_area: "80%" 2785 }, 2786 responsiveLevels: [1240, 1024, 778, 480], 2787 gridwidth: [1240, 1024, 767, 480], 2788 gridheight: [840, 700, 480, 360], 2789 lazyType: "none", 2790 parallax: { 2791 type: "scroll", 2792 origo: "enterpoint", 2793 speed: 400, 2794 levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 50], 2795 }, 2796 shadow: 0, 2797 spinner: "off", 2798 stopLoop: "off", 2799 stopAfterLoops: -1, 2800 stopAtSlide: -1, 2801 shuffle: "off", 2802 autoHeight: "off", 2803 hideThumbsOnMobile: "off", 2804 hideSliderAtLimit: 0, 2805 hideCaptionAtLimit: 0, 2806 hideAllCaptionAtLilmit: 0, 2807 debugMode: false, 2808 fallbacks: { 2809 simplifyAll: "off", 2810 nextSlideOnWindowFocus: "off", 2811 disableFocusListener: false, 2812 } 2813 }); 2814 } 2815}; 2816/* 2817======================================================= 2818 Revolution Slider Gallery Simple 2819======================================================= 2820*/ 2821function phrevolutionslidergallerysimple() { 2822 if ($('#gallery-simple-revoultion').length && jQuery()) { 2823 $('#gallery-simple-revoultion').show().revolution({ 2824 sliderType: "carousel", 2825 sliderLayout: "auto", 2826 jsFileLocation: "plugins/revolution-slider/js/", 2827 dottedOverlay: "none", 2828 delay: 9000, 2829 navigation: { 2830 keyboardNavigation: "on", 2831 keyboard_direction: "horizontal", 2832 mouseScrollNavigation: "off", 2833 onHoverStop: "off", 2834 arrows: { 2835 style: "hesperiden", 2836 enable: true, 2837 hide_onmobile: true, 2838 hide_under: 778, 2839 hide_onleave: true, 2840 hide_delay: 200, 2841 hide_delay_mobile: 1200, 2842 tmp: '', 2843 left: { 2844 h_align: "left", 2845 v_align: "center", 2846 h_offset: 20, 2847 v_offset: 0 2848 }, 2849 right: { 2850 h_align: "right", 2851 v_align: "center", 2852 h_offset: 20, 2853 v_offset: 0 2854 } 2855 }, 2856 thumbnails: { 2857 style: "gyges", 2858 enable: true, 2859 width: 80, 2860 height: 80, 2861 min_width: 80, 2862 wrapper_padding: 20, 2863 wrapper_color: "transparent", 2864 wrapper_opacity: "1", 2865 tmp: '<span class="tp-thumb-img-wrap"> <span class="tp-thumb-image"></span></span>', 2866 visibleAmount: 10, 2867 hide_onmobile: false, 2868 hide_onleave: false, 2869 direction: "vertical", 2870 span: true, 2871 position: "outer-left", 2872 space: 10, 2873 h_align: "left", 2874 v_align: "top", 2875 h_offset: 0, 2876 v_offset: 0 2877 } 2878 }, 2879 carousel: { 2880 border_radius: "20px", 2881 padding_top: "50", 2882 padding_bottom: "50", 2883 maxRotation: 35, 2884 vary_rotation: "on", 2885 minScale: 25, 2886 vary_scale: "on", 2887 horizontal_align: "center", 2888 vertical_align: "center", 2889 fadeout: "on", 2890 vary_fade: "on", 2891 maxVisibleItems: 7, 2892 infinity: "on", 2893 space: 30, 2894 stretch: "off" 2895 }, 2896 responsiveLevels: [1600, 1300, 778, 480], 2897 gridwidth: [640, 640, 480, 320], 2898 gridheight: [640, 460, 480, 320], 2899 lazyType: "smart", 2900 shadow: 0, 2901 spinner: "spinner3", 2902 stopLoop: "on", 2903 stopAfterLoops: 0, 2904 stopAtSlide: 1, 2905 shuffle: "off", 2906 autoHeight: "off", 2907 disableProgressBar: "on", 2908 hideThumbsOnMobile: "off", 2909 hideSliderAtLimit: 0, 2910 hideCaptionAtLimit: 0, 2911 hideAllCaptionAtLilmit: 0, 2912 debugMode: false, 2913 fallbacks: { 2914 simplifyAll: "off", 2915 nextSlideOnWindowFocus: "off", 2916 disableFocusListener: false, 2917 } 2918 }); 2919 } 2920}; 2921/* 2922======================================================= 2923 Revolution Slider Gallery Media 2924======================================================= 2925*/ 2926function phrevolutionslidergallerymedia() { 2927 if ($('#gallery-media-revoultion').length && jQuery()) { 2928 $('#gallery-media-revoultion').show().revolution({ 2929 sliderType: "standard", 2930 sliderLayout: "auto", 2931 jsFileLocation: "plugins/revolution-slider/js/", 2932 dottedOverlay: "none", 2933 delay: 9000, 2934 navigation: { 2935 keyboardNavigation: "off", 2936 keyboard_direction: "horizontal", 2937 mouseScrollNavigation: "off", 2938 onHoverStop: "off", 2939 tabs: { 2940 style: "hesperiden", 2941 enable: true, 2942 width: 250, 2943 height: 80, 2944 min_width: 250, 2945 wrapper_padding: 0, 2946 wrapper_color: "#ffffff", 2947 wrapper_opacity: "1", 2948 tmp: '<div class="tp-tab-content"> <span class="tp-tab-date">{{param1}}</span> <span class="tp-tab-title">{{title}}</span></div><div class="tp-tab-image"></div>',
2949 visibleAmount: 5, 2950 hide_onmobile: false, 2951 hide_onleave: false, 2952 hide_delay: 200, 2953 direction: "horizontal", 2954 span: false, 2955 position: "outer-bottom", 2956 space: 0, 2957 h_align: "center", 2958 v_align: "bottom", 2959 h_offset: 0, 2960 v_offset: 0 2961 } 2962 }, 2963 responsiveLevels: [1600, 1300, 778, 480], 2964 gridwidth: [1600, 1300, 778, 480], 2965 gridheight: [800, 550, 480, 320], 2966 lazyType: "smart", 2967 shadow: 0, 2968 spinner: "off", 2969 stopLoop: "on", 2970 stopAfterLoops: 0, 2971 stopAtSlide: 1, 2972 shuffle: "off", 2973 autoHeight: "off", 2974 disableProgressBar: "on", 2975 hideThumbsOnMobile: "off", 2976 hideSliderAtLimit: 0, 2977 hideCaptionAtLimit: 0, 2978 hideAllCaptionAtLilmit: 0, 2979 debugMode: false, 2980 fallbacks: { 2981 simplifyAll: "off", 2982 nextSlideOnWindowFocus: "off", 2983 disableFocusListener: false, 2984 } 2985 }); 2986 } 2987}; 2988/* 2989======================================================= 2990 Revolution Slider Hosting 2991======================================================= 2992*/ 2993function phrevolutionsliderhosting() { 2994 if ($('#hosting-revoultion').length && jQuery()) { 2995 $('#hosting-revoultion').show().revolution({ 2996 sliderType: "standard", 2997 jsFileLocation: "plugins/revolution-slider/js/", 2998 sliderLayout: "fullwidth", 2999 dottedOverlay: "none", 3000 delay: 9000, 3001 navigation: { 3002 keyboardNavigation: "off", 3003 keyboard_direction: "horizontal", 3004 mouseScrollNavigation: "off", 3005 onHoverStop: "off", 3006 tabs: { 3007 style: "hesperiden", 3008 enable: true, 3009 width: 250, 3010 height: 80, 3011 min_width: 250, 3012 wrapper_padding: 20, 3013 wrapper_color: "#ffffff", 3014 wrapper_opacity: "1", 3015 tmp: '<div class="tp-tab-content"> <span class="tp-tab-date">{{param1}}</span> <span class="tp-tab-title">{{title}}</span></div><div class="tp-tab-image"></div>', 3016 visibleAmount: 5, 3017 hide_onmobile: true, 3018 hide_onleave: false, 3019 hide_delay: 200, 3020 direction: "horizontal", 3021 span: false, 3022 position: "outer-bottom", 3023 space: 0, 3024 h_align: "left", 3025 v_align: "bottom", 3026 h_offset: 0, 3027 v_offset: 0 3028 } 3029 }, 3030 responsiveLevels: [1400, 1281, 778, 480], 3031 visibilityLevels: [1400, 1281, 778, 480], 3032 gridwidth: [1400, 1281, 778, 480], 3033 gridheight: [600, 480, 480, 400], 3034 lazyType: "smart", 3035 shadow: 0, 3036 spinner: "off", 3037 stopLoop: "on", 3038 stopAfterLoops: 0, 3039 stopAtSlide: 1, 3040 shuffle: "off", 3041 autoHeight: "off", 3042 disableProgressBar: "on", 3043 hideThumbsOnMobile: "off", 3044 hideSliderAtLimit: 0, 3045 hideCaptionAtLimit: 0, 3046 hideAllCaptionAtLilmit: 0, 3047 debugMode: false, 3048 fallbacks: { 3049 simplifyAll: "off", 3050 nextSlideOnWindowFocus: "off", 3051 disableFocusListener: false, 3052 } 3053 }); 3054 } 3055}; 3056/* 3057======================================================= 3058 Revolution Slider Gym 2 3059======================================================= 3060*/ 3061function phrevolutionslidergym2() { 3062 if ($('#gym-2-revoultion').length && jQuery()) { 3063 $('#gym-2-revoultion').show().revolution({ 3064 sliderType: "standard", 3065 jsFileLocation: "plugins/revolution-slider/js/", 3066 sliderLayout: "fullwidth", 3067 dottedOverlay: "none", 3068 delay: 9000, 3069 navigation: { 3070 keyboardNavigation: "off", 3071 keyboard_direction: "horizontal", 3072 mouseScrollNavigation: "off", 3073 onHoverStop: "off", 3074 tabs: { 3075 style: "zeus", 3076 enable: true, 3077 width: 291, 3078 height: 80, 3079 min_width: 100, 3080 wrapper_padding: 0, 3081 wrapper_color: "transparent", 3082 wrapper_opacity: "0.05", 3083 tmp: '<span class="tp-tab-title">{{title}}</span>',
3084 visibleAmount: 5, 3085 hide_onmobile: false, 3086 hide_onleave: false, 3087 hide_delay: 200, 3088 direction: "horizontal", 3089 span: false, 3090 position: "inner", 3091 space: 5, 3092 h_align: "center", 3093 v_align: "bottom", 3094 h_offset: 10, 3095 v_offset: 44 3096 } 3097 }, 3098 responsiveLevels: [2560, 1600, 1400, 1280, 1024, 778, 480], 3099 gridwidth: [2560, 1600, 1400, 1280, 1024, 778, 480], 3100 gridheight: [1050, 740, 551, 500, 400, 300, 300], 3101 lazyType: "smart", 3102 shadow: 0, 3103 spinner: "off", 3104 stopLoop: "on", 3105 stopAfterLoops: 0, 3106 stopAtSlide: 1, 3107 shuffle: "off", 3108 autoHeight: "off", 3109 disableProgressBar: "on", 3110 hideThumbsOnMobile: "off", 3111 hideSliderAtLimit: 0, 3112 hideCaptionAtLimit: 0, 3113 hideAllCaptionAtLilmit: 0, 3114 debugMode: false, 3115 fallbacks: { 3116 simplifyAll: "off", 3117 nextSlideOnWindowFocus: "off", 3118 disableFocusListener: false, 3119 } 3120 }); 3121 } 3122}; 3123/* 3124======================================================= 3125 Revolution Slider News 3126======================================================= 3127*/ 3128function phrevolutionslidernews() { 3129 if ($('#news-revoultion').length && jQuery()) { 3130 $('#news-revoultion').show().revolution({ 3131 sliderType: "standard", 3132 jsFileLocation: "plugins/revolution-slider/js/", 3133 sliderLayout: "auto", 3134 dottedOverlay: "none", 3135 delay: 9000, 3136 navigation: { 3137 keyboardNavigation: "off", 3138 keyboard_direction: "horizontal", 3139 mouseScrollNavigation: "off", 3140 mouseScrollReverse: "default", 3141 onHoverStop: "on", 3142 touch: { 3143 touchenabled: "on", 3144 swipe_threshold: 75, 3145 swipe_min_touches: 50, 3146 swipe_direction: "horizontal", 3147 drag_block_vertical: false 3148 }, 3149 thumbnails: { 3150 style: "gyges", 3151 enable: true, 3152 width: 80, 3153 height: 80, 3154 min_width: 80, 3155 wrapper_padding: 10, 3156 wrapper_color: "#333333", 3157 wrapper_opacity: "0", 3158 tmp: '<span class="tp-thumb-img-wrap"> <span class="tp-thumb-image"></span></span>', 3159 visibleAmount: 5, 3160 hide_onmobile: false, 3161 hide_onleave: false, 3162 direction: "vertical", 3163 span: true, 3164 position: "inner", 3165 space: 5, 3166 h_align: "left", 3167 v_align: "top", 3168 h_offset: 0, 3169 v_offset: 0 3170 } 3171 }, 3172 responsiveLevels: [1240, 1024, 778, 480], 3173 visibilityLevels: [1240, 1024, 778, 480], 3174 gridwidth: [1200, 1024, 778, 480], 3175 gridheight: [750, 750, 750, 450], 3176 lazyType: "single", 3177 parallax: { 3178 type: "scroll", 3179 origo: "slidercenter", 3180 speed: 400, 3181 levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 46, 47, 48, 49, 50, 51, 55], 3182 type: "scroll", 3183 }, 3184 shadow: 0, 3185 spinner: "off", 3186 stopLoop: "off", 3187 stopAfterLoops: -1, 3188 stopAtSlide: -1, 3189 shuffle: "off", 3190 autoHeight: "off", 3191 hideThumbsOnMobile: "off", 3192 hideSliderAtLimit: 0, 3193 hideCaptionAtLimit: 0, 3194 hideAllCaptionAtLilmit: 0, 3195 debugMode: false, 3196 fallbacks: { 3197 simplifyAll: "off", 3198 nextSlideOnWindowFocus: "off", 3199 disableFocusListener: false, 3200 } 3201 }); 3202 } 3203}; 3204/* 3205======================================================= 3206 Revolution Slider One Page 3207======================================================= 3208*/ 3209function phrevolutionslideronepage() { 3210 if ($('#one-page-revoultion').length && jQuery()) { 3211 $('#one-page-revoultion').show().revolution({ 3212 sliderType: "standard", 3213 jsFileLocation: "plugins/revolution-slider/js/", 3214 sliderLayout: "fullscreen", 3215 dottedOverlay: "none", 3216 delay: 9000, 3217 navigation: { 3218 keyboardNavigation: "off", 3219 keyboard_direction: "horizontal", 3220 mouseScrollNavigation: "on", 3221 onHoverStop: "off", 3222 touch: { 3223 touchenabled: "on", 3224 swipe_threshold: 75, 3225 swipe_min_touches: 1, 3226 swipe_direction: "vertical", 3227 drag_block_vertical: false 3228 } 3229 }, 3230 responsiveLevels: [1240, 1024, 778, 480], 3231 gridwidth: [1240, 1024, 778, 480], 3232 gridheight: [868, 768, 960, 720], 3233 lazyType: "none", 3234 shadow: 0, 3235 spinner: "off", 3236 stopLoop: "on", 3237 stopAfterLoops: 0, 3238 stopAtSlide: 1, 3239 shuffle: "off", 3240 autoHeight: "off", 3241 fullScreenAlignForce: "off", 3242 fullScreenOffsetContainer: "", 3243 fullScreenOffset: "", 3244 disableProgressBar: "on", 3245 hideThumbsOnMobile: "off", 3246 hideSliderAtLimit: 0, 3247 hideCaptionAtLimit: 0, 3248 hideAllCaptionAtLilmit: 0, 3249 debugMode: false, 3250 fallbacks: { 3251 simplifyAll: "off", 3252 nextSlideOnWindowFocus: "off", 3253 disableFocusListener: false, 3254 } 3255 }); 3256 } 3257}; 3258/* 3259======================================================= 3260 Revolution Slider Photo Gallery 3261======================================================= 3262*/ 3263function phrevolutionsliderphotogallery() { 3264 if ($('#photo-gallery-revoultion').length && jQuery()) { 3265 $('#photo-gallery-revoultion').show().revolution({ 3266 sliderType: "carousel", 3267 jsFileLocation: "plugins/revolution-slider/js/", 3268 sliderLayout: "fullscreen", 3269 dottedOverlay: "none", 3270 delay: 9000, 3271 navigation: { 3272 keyboardNavigation: "off", 3273 keyboard_direction: "horizontal", 3274 onHoverStop: "off", 3275 }, 3276 carousel: { 3277 maxRotation: 5, 3278 vary_rotation: "off", 3279 minScale: 15, 3280 vary_scale: "off", 3281 horizontal_align: "center", 3282 vertical_align: "center", 3283 fadeout: "on", 3284 vary_fade: "on", 3285 maxVisibleItems: 3, 3286 infinity: "off", 3287 space: -80, 3288 stretch: "off" 3289 }, 3290 responsiveLevels: [1240, 1024, 778, 480], 3291 gridwidth: [1024, 900, 778, 480], 3292 gridheight: [868, 768, 960, 720], 3293 lazyType: "none", 3294 shadow: 0, 3295 spinner: "off", 3296 stopLoop: "on", 3297 stopAfterLoops: 0, 3298 stopAtSlide: 1, 3299 shuffle: "off", 3300 autoHeight: "off", 3301 fullScreenAlignForce: "off", 3302 fullScreenOffsetContainer: "", 3303 fullScreenOffset: "", 3304 disableProgressBar: "on", 3305 hideThumbsOnMobile: "off", 3306 hideSliderAtLimit: 0, 3307 hideCaptionAtLimit: 0, 3308 hideAllCaptionAtLilmit: 0, 3309 debugMode: false, 3310 fallbacks: { 3311 simplifyAll: "off", 3312 nextSlideOnWindowFocus: "off", 3313 disableFocusListener: false, 3314 } 3315 }); 3316 } 3317}; 3318/* 3319======================================================= 3320 Revolution Slider Scroll Effect 3321======================================================= 3322*/ 3323function phrevolutionsliderscrolleffect() { 3324 if ($('#scroll-effect-revoultion').length && jQuery()) { 3325 var serevoultion; 3326 serevoultion = $('#scroll-effect-revoultion').show().revolution({ 3327 sliderType: "standard", 3328 jsFileLocation: "plugins/revolution-slider/js/", 3329 sliderLayout: "fullscreen", 3330 dottedOverlay: "none", 3331 delay: 9000, 3332 navigation: { 3333 keyboardNavigation: "off", 3334 keyboard_direction: "horizontal", 3335 mouseScrollNavigation: "off", 3336 onHoverStop: "off", 3337 touch: { 3338 touchenabled: "on", 3339 swipe_threshold: 75, 3340 swipe_min_touches: 1, 3341 swipe_direction: "horizontal", 3342 drag_block_vertical: false 3343 }, 3344 bullets: { 3345 enable: true, 3346 hide_onmobile: true, 3347 hide_under: 960, 3348 style: "zeus", 3349 hide_onleave: false, 3350 direction: "horizontal", 3351 h_align: "right", 3352 v_align: "bottom", 3353 h_offset: 80, 3354 v_offset: 50, 3355 space: 5, 3356 tmp: '<span class="tp-bullet-image"></span><span class="tp-bullet-imageoverlay"></span><span class="tp-bullet-title">{{title}}</span>' 3357 } 3358 }, 3359 responsiveLevels: [1240, 1024, 778, 480], 3360 gridwidth: [1240, 1024, 778, 480], 3361 gridheight: [868, 768, 960, 720], 3362 lazyType: "none", 3363 parallax: { 3364 type: "mouse", 3365 origo: "slidercenter", 3366 speed: 2000,
3367 levels: [2, 3, 4, 5, 6, 7, 12, 16, 10, 50], 3368 disable_onmobile: "on" 3369 }, 3370 shadow: 0, 3371 spinner: "off", 3372 stopLoop: "on", 3373 stopAfterLoops: 0, 3374 stopAtSlide: 1, 3375 shuffle: "off", 3376 autoHeight: "off", 3377 fullScreenAlignForce: "off", 3378 fullScreenOffsetContainer: "", 3379 fullScreenOffset: "60px", 3380 disableProgressBar: "on", 3381 hideThumbsOnMobile: "off", 3382 hideSliderAtLimit: 0, 3383 hideCaptionAtLimit: 0, 3384 hideAllCaptionAtLilmit: 0, 3385 debugMode: false, 3386 fallbacks: { 3387 simplifyAll: "off", 3388 nextSlideOnWindowFocus: "off", 3389 disableFocusListener: false, 3390 } 3391 }); 3392 var newCall = new Object(), 3393 cslide; 3394 newCall.callback = function() { 3395 var proc = serevoultion.revgetparallaxproc(), 3396 fade = 1 + proc, 3397 scale = 1 + (Math.abs(proc) / 10); 3398 punchgs.TweenLite.set(serevoultion.find('.slotholder, .rs-background-video-layer'), { 3399 opacity: fade, 3400 scale: scale 3401 }); 3402 } 3403 newCall.inmodule = "parallax"; 3404 newCall.atposition = "start"; 3405 serevoultion.on("revolution.slide.onloaded", function(e) { 3406 serevoultion.revaddcallback(newCall); 3407 }); 3408 } 3409}; 3410/* 3411======================================================= 3412 Revolution Slider Classic Full 3413======================================================= 3414*/ 3415function phrevolutionsliderclassicfull() { 3416 if ($('#classic-full-revolution').length && jQuery()) { 3417 $("#classic-full-revolution").show().revolution({ 3418 sliderType: "standard", 3419 jsFileLocation: "plugins/revolution-slider/js/", 3420 sliderLayout: "fullwidth", 3421 dottedOverlay: "none", 3422 delay: 9000, 3423 navigation: { 3424 keyboardNavigation: "off", 3425 keyboard_direction: "horizontal", 3426 mouseScrollNavigation: "off", 3427 onHoverStop: "off", 3428 touch: { 3429 touchenabled: "on", 3430 swipe_threshold: 75, 3431 swipe_min_touches: 1, 3432 swipe_direction: "horizontal", 3433 drag_block_vertical: false 3434 }, 3435 arrows: { 3436 style: "zeus", 3437 enable: true, 3438 hide_onmobile: true, 3439 hide_under: 600, 3440 hide_onleave: true, 3441 hide_delay: 200, 3442 hide_delay_mobile: 1200, 3443 tmp: '<div class="tp-title-wrap"> <div class="tp-arr-imgholder"></div> </div>', 3444 left: { 3445 h_align: "left", 3446 v_align: "center", 3447 h_offset: 30, 3448 v_offset: 0 3449 }, 3450 right: { 3451 h_align: "right", 3452 v_align: "center", 3453 h_offset: 30, 3454 v_offset: 0 3455 } 3456 }, 3457 bullets: { 3458 enable: true, 3459 hide_onmobile: true, 3460 hide_under: 600, 3461 style: "metis", 3462 hide_onleave: true, 3463 hide_delay: 200, 3464 hide_delay_mobile: 1200, 3465 direction: "horizontal", 3466 h_align: "center", 3467 v_align: "bottom", 3468 h_offset: 0, 3469 v_offset: 30, 3470 space: 5, 3471 tmp: '<span class="tp-bullet-img-wrap"> <span class="tp-bullet-image"></span></span><span class="tp-bullet-title">{{title}}</span>' 3472 } 3473 }, 3474 viewPort: { 3475 enable: true, 3476 outof: "pause", 3477 visible_area: "80%" 3478 }, 3479 responsiveLevels: [2560, 1600, 1400, 1280, 1024, 778, 480], 3480 gridwidth: [2560, 1600, 1240, 750, 700, 778, 480], 3481 gridheight: [1050, 820, 640, 640, 400, 300], 3482 lazyType: "none", 3483 parallax: { 3484 type: "mouse", 3485 origo: "slidercenter", 3486 speed: 2000, 3487 levels: [2, 3, 4, 5, 6, 7, 12, 16, 10, 50], 3488 }, 3489 shadow: 0, 3490 spinner: "off", 3491 stopLoop: "off", 3492 stopAfterLoops: -1, 3493 stopAtSlide: -1, 3494 shuffle: "off", 3495 autoHeight: "off", 3496 hideThumbsOnMobile: "off", 3497 hideSliderAtLimit: 0, 3498 hideCaptionAtLimit: 0, 3499 hideAllCaptionAtLilmit: 0, 3500 debugMode: false, 3501 fallbacks: { 3502 simplifyAll: "off", 3503 nextSlideOnWindowFocus: "off", 3504 disableFocusListener: false, 3505 } 3506 }); 3507 } 3508}; 3509/* 3510======================================================= 3511 Revolution Slider Touch 3512======================================================= 3513*/ 3514function phrevolutionslidertouch() { 3515 if ($('#touch-revoultion').length && jQuery()) { 3516 $('#touch-revoultion').show().revolution({ 3517 sliderType: "standard", 3518 jsFileLocation: "plugins/revolution-slider/js/", 3519 sliderLayout: "fullscreen", 3520 dottedOverlay: "none", 3521 delay: 9000, 3522 navigation: { 3523 keyboardNavigation: "off", 3524 keyboard_direction: "horizontal", 3525 mouseScrollNavigation: "off", 3526 onHoverStop: "off", 3527 touch: { 3528 touchenabled: "on", 3529 swipe_threshold: 75, 3530 swipe_min_touches: 50, 3531 swipe_direction: "horizontal", 3532 drag_block_vertical: false 3533 }, 3534 tabs: { 3535 style: "metis", 3536 enable: true, 3537 width: 250, 3538 height: 40, 3539 min_width: 249, 3540 wrapper_padding: 0, 3541 wrapper_color: "", 3542 wrapper_opacity: "0", 3543 tmp: '<div class="tp-tab-wrapper"><div class="tp-tab-number">{{param1}}</div><div class="tp-tab-divider"></div><div class="tp-tab-title-mask"><div class="tp-tab-title">{{title}}</div></div></div>',
3544 visibleAmount: 5, 3545 hide_onmobile: true, 3546 hide_under: 800, 3547 hide_onleave: false, 3548 hide_delay: 200, 3549 direction: "vertical", 3550 span: true, 3551 position: "inner", 3552 space: 0, 3553 h_align: "left", 3554 v_align: "center", 3555 h_offset: 0, 3556 v_offset: 0 3557 } 3558 }, 3559 responsiveLevels: [1240, 1024, 778, 480], 3560 visibilityLevels: [1240, 1024, 778, 480], 3561 gridwidth: [1240, 1024, 778, 480], 3562 gridheight: [868, 768, 960, 720], 3563 lazyType: "none", 3564 parallax: { 3565 type: "3D", 3566 origo: "slidercenter", 3567 speed: 1000, 3568 levels: [2, 4, 6, 8, 10, 12, 14, 16, 45, 50, 47, 48, 49, 50, 0, 50], 3569 type: "3D", 3570 ddd_shadow: "off", 3571 ddd_bgfreeze: "on", 3572 ddd_overflow: "hidden", 3573 ddd_layer_overflow: "visible", 3574 ddd_z_correction: 100, 3575 }, 3576 spinner: "off", 3577 stopLoop: "on", 3578 stopAfterLoops: 0, 3579 stopAtSlide: 1, 3580 shuffle: "off", 3581 autoHeight: "off", 3582 fullScreenAutoWidth: "off", 3583 fullScreenAlignForce: "off", 3584 fullScreenOffsetContainer: "", 3585 fullScreenOffset: "60px", 3586 disableProgressBar: "on", 3587 hideThumbsOnMobile: "off", 3588 hideSliderAtLimit: 0, 3589 hideCaptionAtLimit: 0, 3590 hideAllCaptionAtLilmit: 0, 3591 debugMode: false, 3592 fallbacks: { 3593 simplifyAll: "off", 3594 nextSlideOnWindowFocus: "off", 3595 disableFocusListener: false, 3596 } 3597 }); 3598 } 3599}; 3600/* 3601======================================================= 3602 Revolution Slider Vertical Bullet 3603======================================================= 3604*/ 3605function phrevolutionsliderverticalbullet() { 3606 if ($('#slider-vb-revoultion').length && jQuery()) { 3607 $('#slider-vb-revoultion').show().revolution({ 3608 sliderType: "standard", 3609 jsFileLocation: "plugins/revolution-slider/js/", 3610 sliderLayout: "auto", 3611 dottedOverlay: "none", 3612 delay: 6000, 3613 navigation: { 3614 keyboardNavigation: "off", 3615 keyboard_direction: "horizontal", 3616 mouseScrollNavigation: "off", 3617 onHoverStop: "off", 3618 touch: { 3619 touchenabled: "on", 3620 swipe_threshold: 75, 3621 swipe_min_touches: 1, 3622 swipe_direction: "horizontal", 3623 drag_block_vertical: false 3624 }, 3625 bullets: { 3626 enable: true, 3627 hide_onmobile: true, 3628 hide_under: 600, 3629 style: "hermes", 3630 hide_onleave: true, 3631 hide_delay: 200, 3632 hide_delay_mobile: 1200, 3633 direction: "vertical", 3634 h_align: "right", 3635 v_align: "center", 3636 h_offset: 30, 3637 v_offset: 0, 3638 space: 5, 3639 tmp: '' 3640 } 3641 }, 3642 viewPort: { 3643 enable: true, 3644 outof: "pause", 3645 visible_area: "80%" 3646 }, 3647 responsiveLevels: [1240, 1024, 778, 480], 3648 gridwidth: [1240, 1024, 778, 480], 3649 gridheight: [670, 600, 500, 400], 3650 lazyType: "none", 3651 parallax: { 3652 type: "mouse", 3653 origo: "slidercenter", 3654 speed: 2000, 3655 levels: [2, 3, 4, 5, 6, 7, 12, 16, 10, 50], 3656 }, 3657 shadow: 0, 3658 spinner: "off", 3659 stopLoop: "off", 3660 stopAfterLoops: -1, 3661 stopAtSlide: -1, 3662 shuffle: "off", 3663 autoHeight: "off", 3664 hideThumbsOnMobile: "off", 3665 hideSliderAtLimit: 0, 3666 hideCaptionAtLimit: 0, 3667 hideAllCaptionAtLilmit: 0, 3668 debugMode: false, 3669 fallbacks: { 3670 simplifyAll: "off", 3671 nextSlideOnWindowFocus: "off", 3672 disableFocusListener: false, 3673 } 3674 }); 3675 } 3676}; 3677/* 3678======================================================= 3679 Revolution Slider Vertical Bullet 3680======================================================= 3681*/ 3682function phrevolutionslidernotgeneric() { 3683 if ($('#slider-not-generic-revoultion').length && jQuery()) { 3684 $('#slider-not-generic-revoultion').show().revolution({ 3685 sliderType: "standard", 3686 jsFileLocation: "plugins/revolution-slider/js/", 3687 sliderLayout: "fullscreen", 3688 dottedOverlay: "none", 3689 delay: 9000, 3690 navigation: { 3691 keyboardNavigation: "off", 3692 keyboard_direction: "horizontal", 3693 mouseScrollNavigation: "off", 3694 onHoverStop: "off", 3695 touch: { 3696 touchenabled: "on", 3697 swipe_threshold: 75, 3698 swipe_min_touches: 1, 3699 swipe_direction: "horizontal", 3700 drag_block_vertical: false 3701 } 3702 }, 3703 responsiveLevels: [1240, 1024, 778, 480], 3704 gridwidth: [1240, 1024, 778, 480], 3705 gridheight: [868, 768, 960, 720], 3706 lazyType: "none", 3707 parallax: { 3708 type: "mouse", 3709 origo: "slidercenter", 3710 speed: 2000,
3711 levels: [2, 3, 4, 5, 6, 7, 12, 16, 10, 50], 3712 disable_onmobile: "on" 3713 }, 3714 shadow: 0, 3715 spinner: "off", 3716 stopLoop: "on", 3717 stopAfterLoops: 0, 3718 stopAtSlide: 1, 3719 shuffle: "off", 3720 autoHeight: "off", 3721 fullScreenAlignForce: "off", 3722 fullScreenOffsetContainer: "", 3723 fullScreenOffset: "0px", 3724 disableProgressBar: "on", 3725 hideThumbsOnMobile: "off", 3726 hideSliderAtLimit: 0, 3727 hideCaptionAtLimit: 0, 3728 hideAllCaptionAtLilmit: 0, 3729 debugMode: false, 3730 fallbacks: { 3731 simplifyAll: "off", 3732 nextSlideOnWindowFocus: "off", 3733 disableFocusListener: false, 3734 } 3735 }); 3736 } 3737}; 3738/* 3739======================================================= 3740 Revolution Slider Restaurant 1 3741======================================================= 3742*/ 3743function phrevolutionsliderrestaurant1() { 3744 if ($('.slider-revolution-restaurant-1').length && jQuery()) { 3745 $('.slider-revolution-restaurant-1').show().revolution({ 3746 sliderType: "standard", 3747 sliderLayout: "auto", 3748 dottedOverlay: "none", 3749 jsFileLocation: "plugins/revolution-slider/js/", 3750 delay: 9000, 3751 navigation: { 3752 keyboardNavigation: "off", 3753 keyboard_direction: "horizontal", 3754 mouseScrollNavigation: "off", 3755 onHoverStop: "off", 3756 touch: { 3757 touchenabled: "on", 3758 swipe_threshold: 75, 3759 swipe_min_touches: 1, 3760 swipe_direction: "horizontal", 3761 drag_block_vertical: false 3762 }, 3763 arrows: { 3764 style: "zeus", 3765 enable: true, 3766 hide_onmobile: true, 3767 hide_under: 600, 3768 hide_onleave: true, 3769 hide_delay: 200, 3770 hide_delay_mobile: 1200, 3771 tmp: '<div class="tp-title-wrap"> <div class="tp-arr-imgholder"></div> </div>', 3772 left: { 3773 h_align: "left", 3774 v_align: "center", 3775 h_offset: 30, 3776 v_offset: 0 3777 }, 3778 right: { 3779 h_align: "right", 3780 v_align: "center", 3781 h_offset: 30, 3782 v_offset: 0 3783 } 3784 } 3785 }, 3786 responsiveLevels: [1600, 1400, 1024, 778, 480], 3787 gridwidth: [1600, 1240, 1024, 778, 480], 3788 gridheight: [900, 640, 400, 400, 300], 3789 lazyType: "none", 3790 parallax: { 3791 type: "mouse", 3792 origo: "slidercenter", 3793 speed: 2000, 3794 levels: [2, 3, 4, 5, 6, 7, 12, 16, 10, 50], 3795 }, 3796 shadow: 0, 3797 spinner: "off", 3798 autoHeight: "off", 3799 disableProgressBar: "on", 3800 hideThumbsOnMobile: "off", 3801 hideSliderAtLimit: 0, 3802 hideCaptionAtLimit: 0, 3803 hideAllCaptionAtLilmit: 0, 3804 debugMode: false, 3805 fallbacks: { 3806 simplifyAll: "off", 3807 disableFocusListener: false, 3808 } 3809 }); 3810 } 3811}; 3812/* 3813======================================================= 3814 Revolution Slider Restaurant 2 3815======================================================= 3816*/ 3817function phrevolutionsliderrestaurant2() { 3818 if ($('.slider-revolution-restaurant-2').length && jQuery()) { 3819 $('.slider-revolution-restaurant-2').show().revolution({ 3820 sliderType: "carousel", 3821 sliderLayout: "fullwidth", 3822 dottedOverlay: "none", 3823 jsFileLocation: "plugins/revolution-slider/js/", 3824 delay: 9000, 3825 navigation: { 3826 keyboardNavigation: "off", 3827 keyboard_direction: "horizontal", 3828 mouseScrollNavigation: "off", 3829 onHoverStop: "off", 3830 arrows: { 3831 style: "metis", 3832 enable: true, 3833 hide_onmobile: true, 3834 hide_under: 768, 3835 hide_onleave: false, 3836 tmp: '', 3837 left: { 3838 h_align: "left", 3839 v_align: "center", 3840 h_offset: 0, 3841 v_offset: 0 3842 }, 3843 right: { 3844 h_align: "right", 3845 v_align: "center", 3846 h_offset: 0, 3847 v_offset: 0 3848 } 3849 }, 3850 thumbnails: { 3851 style: "erinyen", 3852 enable: false, 3853 width: 150, 3854 height: 100, 3855 min_width: 150, 3856 wrapper_padding: 20, 3857 wrapper_color: "#000000", 3858 wrapper_opacity: "0.05", 3859 tmp: '<span class="tp-thumb-over"></span><span class="tp-thumb-image"></span><span class="tp-thumb-title">{{title}}</span><span class="tp-thumb-more"></span>',
3860 visibleAmount: 9, 3861 hide_onmobile: false, 3862 hide_onleave: false, 3863 direction: "horizontal", 3864 span: true, 3865 position: "outer-bottom", 3866 space: 10, 3867 h_align: "center", 3868 v_align: "bottom", 3869 h_offset: 0, 3870 v_offset: 0 3871 } 3872 }, 3873 carousel: { 3874 maxRotation: 65, 3875 vary_rotation: "on", 3876 minScale: 55, 3877 vary_scale: "off", 3878 horizontal_align: "center", 3879 vertical_align: "center", 3880 fadeout: "on", 3881 vary_fade: "on", 3882 maxVisibleItems: 5, 3883 infinity: "on", 3884 space: -150, 3885 stretch: "off" 3886 }, 3887 gridwidth: 600, 3888 gridheight: 600, 3889 lazyType: "none", 3890 shadow: 0, 3891 spinner: "off", 3892 stopLoop: "on", 3893 stopAfterLoops: 0, 3894 stopAtSlide: 1, 3895 shuffle: "off", 3896 autoHeight: "off", 3897 disableProgressBar: "on", 3898 hideThumbsOnMobile: "off", 3899 hideSliderAtLimit: 0, 3900 hideCaptionAtLimit: 0, 3901 hideAllCaptionAtLilmit: 0, 3902 debugMode: false, 3903 fallbacks: { 3904 simplifyAll: "off", 3905 nextSlideOnWindowFocus: "off", 3906 disableFocusListener: false, 3907 } 3908 }); 3909 } 3910}; 3911/* 3912======================================================= 3913 Revolution Slider Shop 3914======================================================= 3915*/ 3916function phrevolutionslidershop() { 3917 if ($('#slider-shop-revolution').length && jQuery()) { 3918 $('#slider-shop-revolution').show().revolution({ 3919 sliderType: "standard", 3920 jsFileLocation: "plugins/revolution-slider/js/", 3921 sliderLayout: "auto", 3922 dottedOverlay: "none", 3923 delay: 9000, 3924 navigation: { 3925 keyboardNavigation: "off", 3926 keyboard_direction: "horizontal", 3927 mouseScrollNavigation: "off", 3928 onHoverStop: "on", 3929 touch: { 3930 touchenabled: "on", 3931 swipe_threshold: 75, 3932 swipe_min_touches: 50, 3933 swipe_direction: "horizontal", 3934 drag_block_vertical: false 3935 }, 3936 arrows: { 3937 style: "gyges", 3938 enable: true, 3939 hide_onmobile: false, 3940 hide_onleave: false, 3941 tmp: '', 3942 left: { 3943 h_align: "right", 3944 v_align: "bottom", 3945 h_offset: 40, 3946 v_offset: 0 3947 }, 3948 right: { 3949 h_align: "right", 3950 v_align: "bottom", 3951 h_offset: 0, 3952 v_offset: 0 3953 } 3954 } 3955 }, 3956 responsiveLevels: [1240, 1024, 778, 480], 3957 visibilityLevels: [1240, 1024, 778, 480], 3958 gridwidth: [1200, 1024, 778, 480], 3959 gridheight: [600, 510, 410, 210], 3960 lazyType: "single", 3961 parallax: { 3962 type: "scroll", 3963 origo: "slidercenter", 3964 speed: 400, 3965 levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 46, 47, 48, 49, 50, 51, 55], 3966 type: "scroll", 3967 }, 3968 shadow: 0, 3969 spinner: "off", 3970 stopLoop: "off", 3971 stopAfterLoops: -1, 3972 stopAtSlide: -1, 3973 shuffle: "off", 3974 autoHeight: "off", 3975 disableProgressBar: "on", 3976 hideThumbsOnMobile: "off", 3977 hideSliderAtLimit: 0, 3978 hideCaptionAtLimit: 0, 3979 hideAllCaptionAtLilmit: 0, 3980 debugMode: false, 3981 fallbacks: { 3982 simplifyAll: "off", 3983 nextSlideOnWindowFocus: "off", 3984 disableFocusListener: false, 3985 } 3986 }); 3987 } 3988}; 3989/* 3990======================================================= 3991 Load More 3992======================================================= 3993*/ 3994jQuery(document).ajaxComplete(function() { 3995 if (jQuery("#load-more-content").length) { 3996 var load = jQuery("#load-more-content"); 3997 var data = jQuery(load.html()); 3998 var id = load.attr("data-id"); 3999 jQuery(id).isotope('insert', data); 4000 load.remove(); 4001 } 4002 setTimeout(function() { 4003 if (isIE) { 4004 jQuery(window).trigger('resize'); 4005 } else { 4006 window.dispatchEvent(new Event('resize')); 4007 } 4008 customFilterLoad(); 4009 customLoadMoreCallback(); 4010 }, 100); 4011}); 4012var loadMoreTimeout; 4013 4014function phloadmore() { 4015 if (jQuery('#load-more-btn').length && jQuery()) {
4016 jQuery("#load-more-btn").off("click").on( "click", function(e) { 4017 e.preventDefault(); 4018 var load = jQuery(this); 4019 var page = load.attr("data-page"); 4020 var max = load.attr("data-max"); 4021 var id = load.attr("data-id"); 4022 var content = load.attr("data-content"); 4023 var itemContent = jQuery(id).clone(); 4024 if (Number(page) <= Number(max)) { 4025 jQuery.when(jQuery.post(content, {page:page}).done(function(data) { 4026 data = jQuery(data); 4027 load.after("<div id='load-more-content' style='display:none;' data-id='" + id + "'></div>"); 4028 jQuery("#load-more-content").html(data); 4029 load.attr("data-page", parseInt(page) + 1); 4030 })).then(function() { 4031 loadMoreTimeout = setTimeout(function() { 4032 if (isIE) { 4033 jQuery(window).trigger('resize'); 4034 } else { 4035 window.dispatchEvent(new Event('resize')); 4036 } 4037 /*** Add Isotope Callsto to prevent overalpping */ 4038 phportfoliofitrows(); 4039 phgalleryfitrows(); 4040 phportfoliomasonry(); 4041 phblogmasonry(); 4042 phmasonryblogmixed(); 4043 phmasonryblog(); 4044 phshopcategoriesmasonry(); 4045 phportfoliomasonrymixed(); 4046 phshopsort(); 4047 phshopsortmasonry(); 4048 clearTimeout(loadMoreTimeout); 4049 }, 3000); 4050 }); 4051 } 4052 if (page == max) { 4053 load.html("Não existem mais artigos!"); 4054 load.addClass('disabled'); 4055 load.off("click").on("click", function(e) { 4056 return false; 4057 }); 4058 } 4059 }); 4060 }; 4061}; 4062 4063function customFilterLoad() { 4064 if (jQuery(".portfoliofitrows, .portfoliomasonry").length > 0 && jQuery()) { 4065 var selector = "*"; 4066 $('.portfoliofitrows, .portfoliomasonry').isotope({ 4067 filter: function() { 4068 var item = jQuery(this); 4069 if (selector != "*") { 4070 if (!item.hasClass(selector.substr(1))) { 4071 return false; 4072 } 4073 } 4074 return true; 4075 } 4076 }); 4077 }; 4078}; 4079/* 4080======================================================= 4081 Animated Module 4082======================================================= 4083*/ 4084function phanimatedmodule() { 4085 $(".hover-animation-1").mouseleave(function() { 4086 $(".hover-animation-icon", this).addClass("animated bounceInLeft"); 4087 }); 4088 $(".hover-animation-1").mouseover(function() { 4089 $(".hover-animation-icon", this).removeClass("animated bounceInLeft"); 4090 }); 4091 $(".hover-animation-2").mouseleave(function() { 4092 $(".hover-animation-icon", this).addClass("animated bounceInRight"); 4093 }); 4094 $(".hover-animation-2").mouseover(function() { 4095 $(".hover-animation-icon", this).removeClass("animated bounceInRight"); 4096 }); 4097 $(".hover-animation-3").mouseleave(function() { 4098 $(".hover-animation-icon", this).addClass("animated bounceInDown"); 4099 }); 4100 $(".hover-animation-3").mouseover(function() { 4101 $(".hover-animation-icon", this).removeClass("animated bounceInDown"); 4102 }); 4103 $(".hover-animation-4").mouseleave(function() { 4104 $(".hover-animation-icon-style-2 i", this).toggleClass("animated bounce"); 4105 }); 4106 $(".hover-animation-4").mouseover(function() { 4107 $(".hover-animation-icon-style-2 i", this).toggleClass("animated bounce"); 4108 }); 4109}; 4110/* 4111======================================================= 4112 Google Map 4113======================================================= 4114*/ 4115function phgooglemap() { 4116 if ($('#google-map').length && jQuery()) { 4117 var $map = $('#google-map'); 4118 $map.gMap({ 4119 markers: [{ 4120 'address': 'Level 13, 2 Elizabeth St, Melbourne Victoria 3000 Australia', 4121 icon: { 4122 image: 'images/marker-icon.png', 4123 iconsize: [25, 41], 4124 }, 4125 }], 4126 zoom: 14, 4127 scrollwheel: false 4128 }); 4129 } 4130 if ($('#google-map-2').length && jQuery()) { 4131 var $map1 = $('#google-map-2'); 4132 $map1.gMap({ 4133 latitude: "fit", 4134 longitude: "fit", 4135 zoom: 14, 4136 scrollwheel: false, 4137 markers: [{ 4138 'address': 'Level 13, 2 Elizabeth St, Melbourne Victoria 3000 Australia', 4139 icon: { 4140 image: 'images/marker-icon.png', 4141 iconsize: [25, 41], 4142 }, 4143 }], 4144 styles: [{ 4145 "featureType": "administrative", 4146 "elementType": "labels.text.fill", 4147 "stylers": [{ 4148 "color": "#6195a0" 4149 }] 4150 }, { 4151 "featureType": "landscape", 4152 "elementType": "all", 4153 "stylers": [{ 4154 "color": "#f2f2f2" 4155 }] 4156 }, { 4157 "featureType": "landscape", 4158 "elementType": "geometry.fill", 4159 "stylers": [{ 4160 "color": "#ffffff" 4161 }] 4162 }, { 4163 "featureType": "poi", 4164 "elementType": "all", 4165 "stylers": [{ 4166 "visibility": "off" 4167 }] 4168 }, { 4169 "featureType": "poi.park", 4170 "elementType": "geometry.fill", 4171 "stylers": [{ 4172 "color": "#e6f3d6" 4173 }, { 4174 "visibility": "on" 4175 }] 4176 }, { 4177 "featureType": "road", 4178 "elementType": "all", 4179 "stylers": [{ 4180 "saturation": -100 4181 }, { 4182 "lightness": 45 4183 }, { 4184 "visibility": "simplified" 4185 }] 4186 }, { 4187 "featureType": "road.highway", 4188 "elementType": "all", 4189 "stylers": [{ 4190 "visibility": "simplified" 4191 }] 4192 }, { 4193 "featureType": "road.highway", 4194 "elementType": "geometry.fill", 4195 "stylers": [{ 4196 "color": "#f4d2c5" 4197 }, { 4198 "visibility": "simplified" 4199 }] 4200 }, { 4201 "featureType": "road.highway", 4202 "elementType": "labels.text", 4203 "stylers": [{ 4204 "color": "#4e4e4e" 4205 }] 4206 }, { 4207 "featureType": "road.arterial", 4208 "elementType": "geometry.fill", 4209 "stylers": [{ 4210 "color": "#f4f4f4" 4211 }] 4212 }, { 4213 "featureType": "road.arterial", 4214 "elementType": "labels.text.fill", 4215 "stylers": [{ 4216 "color": "#787878" 4217 }] 4218 }, { 4219 "featureType": "road.arterial", 4220 "elementType": "labels.icon", 4221 "stylers": [{ 4222 "visibility": "off" 4223 }] 4224 }, { 4225 "featureType": "transit", 4226 "elementType": "all", 4227 "stylers": [{ 4228 "visibility": "off" 4229 }] 4230 }, { 4231 "featureType": "water", 4232 "elementType": "all", 4233 "stylers": [{ 4234 "color": "#eaf6f8" 4235 }, { 4236 "visibility": "on" 4237 }] 4238 }, { 4239 "featureType": "water", 4240 "elementType": "geometry.fill", 4241 "stylers": [{ 4242 "color": "#eaf6f8" 4243 }] 4244 }] 4245 }); 4246 } 4247 if ($('#google-map-3').length && jQuery()) { 4248 var $map2 = $('#google-map-3'); 4249 $map2.gMap({ 4250 latitude: "fit", 4251 longitude: "fit", 4252 scrollwheel: false, 4253 zoom: 14, 4254 markers: [{ 4255 'address': 'Level 13, 2 Elizabeth St, Melbourne Victoria 3000 Australia', 4256 icon: { 4257 image: 'images/marker-icon.png', 4258 iconsize: [25, 41], 4259 }, 4260 }], 4261 styles: [{ 4262 "featureType": "administrative", 4263 "elementType": "all", 4264 "stylers": [{ 4265 "visibility": "simplified" 4266 }] 4267 }, { 4268 "featureType": "landscape", 4269 "elementType": "geometry", 4270 "stylers": [{ 4271 "visibility": "simplified" 4272 }, { 4273 "color": "#fcfcfc" 4274 }] 4275 }, { 4276 "featureType": "poi", 4277 "elementType": "geometry", 4278 "stylers": [{ 4279 "visibility": "simplified" 4280 }, { 4281 "color": "#fcfcfc" 4282 }] 4283 }, { 4284 "featureType": "road.highway", 4285 "elementType": "geometry", 4286 "stylers": [{ 4287 "visibility": "simplified" 4288 }, { 4289 "color": "#dddddd" 4290 }] 4291 }, { 4292 "featureType": "road.arterial", 4293 "elementType": "geometry", 4294 "stylers": [{ 4295 "visibility": "simplified" 4296 }, { 4297 "color": "#dddddd" 4298 }] 4299 }, { 4300 "featureType": "road.local", 4301 "elementType": "geometry", 4302 "stylers": [{ 4303 "visibility": "simplified" 4304 }, { 4305 "color": "#eeeeee" 4306 }] 4307 }, { 4308 "featureType": "water", 4309 "elementType": "geometry", 4310 "stylers": [{ 4311 "visibility": "simplified" 4312 }, { 4313 "color": "#dddddd" 4314 }] 4315 }] 4316 }); 4317 } 4318 // if ($('#google-map-4').length && jQuery()) { 4319 // var $map3 = $('#google-map-4'); 4320 // $map3.gMap({ 4321 // latitude: "fit", 4322 // longitude: "fit", 4323 // scrollwheel: false, 4324 // zoom: 14, 4325 // markers: [{ 4326 // 'address': 'Level 13, 2 Elizabeth St, Melbourne Victoria 3000 Australia', 4327 // icon: { 4328 // image: 'images/marker-icon.png', 4329 // iconsize: [25, 41], 4330 // }, 4331 // }], 4332 // styles: [{ 4333 // "featureType": "administrative", 4334 // "elementType": "labels.text.fill", 4335 // "stylers": [{ 4336 // "color": "#444444" 4337 // }] 4338 // }, { 4339 // "featureType": "landscape", 4340 // "elementType": "all", 4341 // "stylers": [{ 4342 // "color": "#f2f2f2" 4343 // }] 4344 // }, { 4345 // "featureType": "poi", 4346 // "elementType": "all", 4347 // "stylers": [{ 4348 // "visibility": "off" 4349 // }] 4350 // }, { 4351 // "featureType": "poi.business", 4352 // "elementType": "geometry.fill", 4353 // "stylers": [{ 4354 // "visibility": "on" 4355 // }] 4356 // }, { 4357 // "featureType": "road", 4358 // "elementType": "all", 4359 // "stylers": [{ 4360 // "saturation": -100 4361 // }, { 4362 // "lightness": 45 4363 // }] 4364 // }, { 4365 // "featureType": "road.highway", 4366 // "elementType": "all", 4367 // "stylers": [{ 4368 // "visibility": "simplified" 4369 // }] 4370 // }, { 4371 // "featureType": "road.arterial", 4372 // "elementType": "labels.icon", 4373 // "stylers": [{ 4374 // "visibility": "off" 4375 // }] 4376 // }, { 4377 // "featureType": "transit", 4378 // "elementType": "all", 4379 // "stylers": [{ 4380 // "visibility": "off" 4381 // }] 4382 // }, { 4383 // "featureType": "water", 4384 // "elementType": "all", 4385 // "stylers": [{ 4386 // "color": "#b4d4e1" 4387 // }, { 4388 // "visibility": "on" 4389 // }] 4390 // }] 4391 // }); 4392 // } 4393}; 4394/* 4395======================================================= 4396 DRAGGABLE PANEL + SUBMIT FORM ITEMS 4397======================================================= 4398*/ 4399function phdraggablepanel() { 4400 if ($('#draggablePanelList').length && jQuery()) { 4401 var panelList = $('#draggablePanelList'); 4402 panelList.sortable({ 4403 handle: '.panel-heading', 4404 update: function() { 4405 $('.panel', panelList).each(function(index, elem) { 4406 var $listItem = $(elem), 4407 newIndex = $listItem.index(); 4408 }); 4409 } 4410 }); 4411 $('.add-addinfo').on( "click", function(e) { 4412 event.preventDefault(); 4413 var newElem = $('<li><div class="panel panel-info"><span class="icon-drag-1 panel-heading"></span><div class="panel-body no-margin"><input class="addinfo-input" name="addinfo-name" type="text" placeholder="Name of ingredient"><input class="addinfo-input" name="addinfo-note" tabindex="6" type="text" placeholder="Notes (quantity, additional info)"><p class="delete-form-item btn btn-default"><span class="icon-minus-circle"></span></p></div></div></li>'); 4414 newElem.appendTo('.addinfo-sort'); 4415 }); 4416 $('.add-separator').on( "click", function(e) { 4417 event.preventDefault(); 4418 var newElem = $('<li><div class="panel panel-info"><span class="icon-drag-1 panel-heading"></span><div class="panel-body no-margin"><input class="addinfo-input" name="addinfo-name" type="text"><p class="delete-form-item btn btn-default"><span class="icon-minus-circle"></span></p></div></div></li>'); 4419 newElem.appendTo('.addinfo-sort'); 4420 }); 4421 $('#draggablePanelList').on('click', '.delete-form-item', function() { 4422 event.preventDefault();
4423 if ($("#draggablePanelList").children().length > 1) { 4424 $(this).parent().parent().parent().remove(); 4425 } 4426 }); 4427 }; 4428}; 4429/* 4430======================================================= 4431 TEXT EDITOR 4432======================================================= 4433*/ 4434function phtexteditor() { 4435 if ($('.edittextarea').length && jQuery()) { 4436 tinymce.init({ 4437 selector: ".edittextarea", 4438 plugins: ["advlist autolink autosave link image lists charmap print preview hr anchor pagebreak spellchecker", "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking", "table contextmenu directionality emoticons template textcolor paste fullpage textcolor colorpicker textpattern"], 4439 toolbar1: "newdocument | bold italic underline | alignleft aligncenter alignright alignjustify | styleselect formatselect fontselect fontsizeselect | table forecolor backcolor blockquote | subscript superscript | image media code | print fullscreen | undo redo", 4440 menubar: false, 4441 toolbar_items_size: 'small', 4442 style_formats: [{ 4443 title: 'Bold text', 4444 inline: 'b' 4445 }, { 4446 title: 'Red text', 4447 inline: 'span', 4448 styles: { 4449 color: '#ff0000' 4450 } 4451 }, { 4452 title: 'Red header', 4453 block: 'h1', 4454 styles: { 4455 color: '#ff0000' 4456 } 4457 }, { 4458 title: 'Example 1', 4459 inline: 'span', 4460 classes: 'example1' 4461 }, { 4462 title: 'Example 2', 4463 inline: 'span', 4464 classes: 'example2' 4465 }, { 4466 title: 'Table styles' 4467 }, { 4468 title: 'Table row 1', 4469 selector: 'tr', 4470 classes: 'tablerow1' 4471 }], 4472 templates: [{ 4473 title: 'Test template 1', 4474 content: 'Test 1' 4475 }, { 4476 title: 'Test template 2', 4477 content: 'Test 2' 4478 }] 4479 }); 4480 }; 4481}; 4482/* 4483======================================================= 4484 WOW Animation 4485======================================================= 4486*/ 4487function phwowanimation() { 4488 if ($('.wow').length && jQuery() ) { 4489 wow = new WOW({ 4490 boxClass: 'wow', 4491 animateClass: 'animated', 4492 offset: 150, 4493 mobile: false, 4494 live: true 4495 }); 4496 wow.init(); 4497 }; 4498}; 4499/* 4500======================================================= 4501 WOW Animation Off 4502======================================================= 4503*/ 4504function phwowanimationoff() { 4505if((jQuery(window).width() < 768)) { 4506 $('.wow').addClass('wow-removed').removeClass('wow'); 4507} else { 4508 $('.wow-removed').addClass('wow').removeClass('wow-removed'); 4509 phwowanimation(); 4510} 4511}; 4512/* 4513======================================================= 4514 SELECT PICKER 4515======================================================= 4516*/ 4517if ($('.select-box').length && jQuery()) { 4518 $('.selectpicker').selectpicker({ 4519 iconBase: 'Simple-Line-Icons-Pro', 4520 tickIcon: 'icon-check', 4521 style: 'btn-white', 4522 size: 4 4523 }); 4524}; 4525/* 4526======================================================= 4527 Coming Soon Timer 4528======================================================= 4529*/ 4530function phcomingsoonetimer() { 4531 if ($('.clock').length && jQuery()) { 4532 var clock; 4533 clock = $('.clock').FlipClock({ 4534 clockFace: 'DailyCounter', 4535 autoStart: false, 4536 callbacks: { 4537 stop: function() { 4538 $('.message').html('The clock has stopped!') 4539 } 4540 } 4541 }); 4542 clock.setTime(220880); 4543 clock.setCountdown(true); 4544 clock.start(); 4545 }; 4546}; 4547/* 4548======================================================= 4549 Page Scroll Animation 4550======================================================= 4551*/ 4552function phonepagenav() { 4553 if ($('.link-scroll').length && jQuery()) { 4554 jQuery('.link-scroll:eq(0)').toggleClass('first-element'); 4555 $('.link-scroll').on('click', function(e) { 4556 var li = $(this); 4557 var $anchor = li.children(); 4558 if (li.hasClass('first-element')) { 4559 var soffsetenter = $('#header').height(); 4560 console.log(soffsetenter); 4561 } else { 4562 var soffsetenter = $('.navbar.banner--clone').height(); 4563 console.log(soffsetenter); 4564 }; 4565 var soffsettop = $($anchor.attr('href')).offset().top; 4566 var offsetall = soffsettop - soffsetenter; 4567 $('html, body').stop().animate({ 4568 scrollTop: offsetall 4569 }, 1500, 'easeInOutExpo'); 4570 e.preventDefault(); 4571 }); 4572 }; 4573}; 4574/* 4575======================================================= 4576 Page Scroll Animation 4577======================================================= 4578*/ 4579var stickyOnce2 = true, 4580 introTop, stickyTop, stickyOnce3 = true; 4581 4582function phelementsticky() { 4583 var phvarstickyelement = $('.sticky-element'); 4584 var phvarheaderstickyelement = $('#header').outerHeight(); 4585 if (phvarstickyelement.length && jQuery()) { 4586 if (jQuery(window).width() > 786) { 4587 phvarstickyelement.sticky({ 4588 topSpacing: phvarheaderstickyelement 4589 }); 4590 stickyOnce3 = false;
4591 } 4592 stickyTop = phvarstickyelement.offset().top; 4593 jQuery(window).scroll(function() { 4594 var phvarheaderstickyelement = $('#header').outerHeight(); 4595 if (jQuery(window).width() > 1079) { 4596 if ($(this).scrollTop() >= stickyTop - 63) { /*} + jQuery($(".sticky-element-intro").attr("data-id")).height() ) {*/ 4597 if (stickyOnce2) { 4598 phvarstickyelement.sticky({ 4599 topSpacing: phvarheaderstickyelement 4600 }); 4601 stickyOnce2 = false; 4602 } 4603 } 4604 if ($(this).scrollTop() < stickyTop - 63) { /*} + jQuery($(".sticky-element-intro").attr("data-id")).height() ) {*/ 4605 phvarstickyelement.unstick(); 4606 stickyOnce2 = true; 4607 } 4608 } else { 4609 $(".sticky-element-intro").unstick(); 4610 stickyOnce2 = true; 4611 } 4612 }); 4613 jQuery(window).resize(function() { 4614 stickyTop = phvarstickyelement.offset().top; 4615 if (jQuery(window).width() < 1079) { 4616 phvarstickyelement.unstick(); 4617 } 4618 }); 4619 }; 4620 var phvarstickyelementintro = $('.sticky-element-intro'); 4621 if (phvarstickyelementintro.length && jQuery()) { 4622 introTop = phvarstickyelementintro.offset().top; 4623 jQuery(window).scroll(function() { 4624 if (jQuery(window).width() > 1079) { 4625 if ($(this).scrollTop() >= introTop - 63) { /*} + jQuery($(".sticky-element-intro").attr("data-id")).height() ) {*/ 4626 if (stickyOnce2) { 4627 phvarstickyelementintro.sticky({ 4628 topSpacing: 63 4629 }); 4630 stickyOnce2 = false; 4631 } 4632 } 4633 if ($(this).scrollTop() < introTop - 63) { /*} + jQuery($(".sticky-element-intro").attr("data-id")).height() ) {*/ 4634 phvarstickyelementintro.unstick(); 4635 stickyOnce2 = true; 4636 } 4637 } else { 4638 phvarstickyelementintro.unstick(); 4639 stickyOnce2 = true; 4640 } 4641 }); 4642 jQuery(window).resize(function() { 4643 introTop = phvarstickyelementintro.offset().top; 4644 if (jQuery(window).width() < 1079) { 4645 phvarstickyelementintro.unstick(); 4646 stickyOnce2 = true; 4647 } 4648 }); 4649 } 4650}; 4651/* 4652======================================================= 4653 Sticky Blog Post Title 4654======================================================= 4655*/ 4656function phelementstickyposttile() { 4657 var stickyOnce = true; 4658 if ($('.sticky-blog-title').length && jQuery()) { 4659 jQuery(window).scroll(function() { 4660 var phvarheaderblogstickyelement = $('#header').outerHeight(); 4661 if ($(this).scrollTop() >= jQuery($(".sticky-blog-title").attr("data-id")).offset().top - 63) { /*} + jQuery($(".sticky-blog-title").attr("data-id")).height() ) {*/ 4662 if (stickyOnce) { 4663 $(".sticky-blog-title").show(); 4664 $(".sticky-blog-title").sticky({ 4665 topSpacing: phvarheaderblogstickyelement 4666 }); 4667 stickyOnce = false; 4668 jQuery($(".sticky-blog-title").attr("data-margin")).css("margin-top", "-63px"); 4669 } 4670 } 4671 if ($(this).scrollTop() - 10 < jQuery($(".sticky-blog-title").attr("data-id")).offset().top - 63) { /*} + jQuery($(".sticky-blog-title").attr("data-id")).height() ) {*/ 4672 $(".sticky-blog-title").hide(); 4673 $(".sticky-blog-title").unstick(); 4674 stickyOnce = true; 4675 jQuery($(".sticky-blog-title").attr("data-margin")).css("margin-top", "0px"); 4676 if (isIE) { 4677 jQuery(window).trigger('resize'); 4678 } else { 4679 window.dispatchEvent(new Event('resize')); 4680 } 4681 } 4682 }); 4683 }; 4684}; 4685/* 4686======================================================= 4687 Header Sticky 4688======================================================= 4689*/ 4690function phheadersticky() { 4691 if ($('#header').length && jQuery()) { 4692 if ($('#header').hasClass('header-fixed')) {} else { 4693 var headerbodypadding = $('#header').outerHeight(); 4694 $("body").css("padding-top", headerbodypadding); 4695 phparallax(); 4696 4697 } 4698 4699 4700 4701 $(window).scroll(function() { 4702 var offsetscroll = $(window).scrollTop(); 4703 4704 var offsetheadernav = ($("#header").height() / 2); 4705 4706 if (offsetscroll >= offsetheadernav) { 4707 $("#header.header").addClass("nav-sticky"); 4708 } 4709 else if (offsetscroll == 0) { 4710 $("#header.header").removeClass("nav-sticky"); 4711 4712 } 4713 else { 4714 $("#header.header").removeClass("nav-sticky"); 4715 4716 } 4717 }); 4718 }; 4719}; 4720/* 4721======================================================= 4722 Portfolio Animation Slide 4723======================================================= 4724*/ 4725function phportfolioanimationslide() {
4726 if ($('.portfolio-animation-slide').length && jQuery()) { 4727 $('.portfolio-animation-slide > article').hoverdir({ 4728 hoverDelay: 75, 4729 hoverElem: '.sliding-content' 4730 }); 4731 }; 4732}; 4733/* 4734======================================================= 4735 Scroll Spy 4736======================================================= 4737*/ 4738function phscrollspy() { 4739 if ($('.link-scroll').length && jQuery()) { 4740 if ($('.navbar').hasClass('banner--stick')) { 4741 var lcspyoffset = $('.navbar.banner--clone').height(); 4742 } else { 4743 var lcspyoffset = $('#header').height(); 4744 }; 4745 $('body').scrollspy({ 4746 target: '.navbar', 4747 offset: lcspyoffset 4748 }); 4749 }; 4750}; 4751/* 4752======================================================= 4753 Vertical Center Element 4754======================================================= 4755*/ 4756function phverticalcenterelement() { 4757 if ($('.vertical-center-element').length && jQuery()) { 4758 var phvecelelement = $('.vertical-center-element').height(); 4759 var phvectopfit = -(phvecelelement / 2); 4760 $(".vertical-center-element").css("top", "50%"); 4761 $(".vertical-center-element").css("margin-top", phvectopfit); 4762 }; 4763}; 4764 4765function nav_close_accordion_section() { 4766 if ($('#nav-accordion').length && jQuery()) { 4767 $('#nav-accordion .nav-accordion-section-title').removeClass('active'); 4768 $('#nav-accordion .nav-accordion-section-content').slideUp(600).removeClass('open'); 4769 }; 4770}; 4771 4772function nav_close_accordion_section_faster() { 4773 if ($('#nav-accordion').length && jQuery()) { 4774 $('#nav-accordion .nav-accordion-section-title').removeClass('active'); 4775 $('#nav-accordion .nav-accordion-section-content').slideUp(100).removeClass('open'); 4776 }; 4777}; 4778 4779function phnavaccordion() { 4780 if ($('#nav-accordion').length && jQuery()) { 4781 nav_close_accordion_section(); 4782 $('.nav-accordion-section-title').off("click").on("click", function(e) { 4783 /* Grab current anchor value */ 4784 var currentAttrValue = $(this).attr('href'); 4785 if ($(e.target).is('.active')) { 4786 nav_close_accordion_section(); 4787 } else { 4788 nav_close_accordion_section(); 4789 /* Add active class to section title */ 4790 $(this).addClass('active'); 4791 /* Open up the hidden content panel */ 4792 $('#nav-accordion ' + currentAttrValue).slideDown(300).addClass('open'); 4793 } 4794 e.preventDefault(); 4795 }); 4796 }; 4797}; 4798/* 4799======================================================= 4800 Shop Carousel 4801======================================================= 4802*/ 4803if ($('.shopcarousel').length > 0 && jQuery()) { 4804 $('.shopcarousel').each(function() { 4805 jQuery(this).slick({ 4806 swipeToSlide: true, 4807 slidesToShow: 1, 4808 slidesToScroll: 1, 4809 autoplay: false, 4810 mobileFirst: true, 4811 autoplaySpeed: 5000, 4812 arrows: false 4813 }); 4814 }); 4815}; 4816 4817 4818/* 4819======================================================= 4820 Swiper Slider 4821======================================================= 4822*/ 4823function phswiperslider() { 4824 if (jQuery(".swiper-container").length > 0) { 4825 var swiper = new Swiper('.swiper-container', { 4826 pagination: '.swiper-pagination', 4827 paginationClickable: true, 4828 nextButton: '.swiper-button-next', 4829 prevButton: '.swiper-button-prev', 4830 loop: true, 4831 speed: 1000, 4832 onSlideChangeStart: function(swiper) { 4833 4834 var h1_atr = $(".swiper-content h1[data-animation]").attr("data-animation"); 4835 var h2_atr = $(".swiper-content h2[data-animation]").attr("data-animation"); 4836 var p_atr = $(".swiper-content p[data-animation]").attr("data-animation"); 4837 var a_atr = $(".swiper-content a.btn[data-animation]").attr("data-animation"); 4838 var form_atr = $(".swiper-content form[data-animation]").attr("data-animation"); 4839 4840 $(".swiper-slide.cover-bg.swiper-slide-active h1").addClass(h1_atr); 4841 $(".swiper-slide.cover-bg.swiper-slide-active p").addClass(p_atr); 4842 $(".swiper-slide.cover-bg.swiper-slide-active a.btn").addClass(a_atr); 4843 $(".swiper-slide.cover-bg.swiper-slide-active h2").addClass(h2_atr); 4844 $(".swiper-slide.cover-bg.swiper-slide-active form").addClass(form_atr); 4845 4846 $(".swiper-slide.cover-bg.swiper-slide-prev h1").removeClass(h1_atr); 4847 $(".swiper-slide.cover-bg.swiper-slide-prev p").removeClass(p_atr); 4848 $(".swiper-slide.cover-bg.swiper-slide-prev a.btn").removeClass(a_atr); 4849 $(".swiper-slide.cover-bg.swiper-slide-next h1").removeClass(h1_atr); 4850 $(".swiper-slide.cover-bg.swiper-slide-next p").removeClass(p_atr); 4851 $(".swiper-slide.cover-bg.swiper-slide-next a.btn").removeClass(a_atr); 4852 $(".swiper-slide.cover-bg.swiper-slide-prev h2").removeClass(h2_atr); 4853 $(".swiper-slide.cover-bg.swiper-slide-prev form").removeClass(form_atr); 4854 $(".swiper-slide.cover-bg.swiper-slide-next h2").removeClass(h2_atr); 4855 $(".swiper-slide.cover-bg.swiper-slide-next form").removeClass(form_atr); 4856 } 4857 }); 4858 } 4859 if (jQuery(".swiper-intro").length > 0) { 4860 var swiper = new Swiper('.swiper-container', { 4861 pagination: '.swiper-pagination', 4862 paginationClickable: true, 4863 nextButton: '.swiper-button-next', 4864 prevButton: '.swiper-button-prev', 4865 loop: false, 4866 speed: 1000, 4867 onSlideChangeStart: function(swiper) { 4868 4869 var h1_atr = $(".swiper-content h1[data-animation]").attr("data-animation"); 4870 var p_atr = $(".swiper-content p[data-animation]").attr("data-animation"); 4871 var a_atr = $(".swiper-content a.btn[data-animation]").attr("data-animation"); 4872 4873 $(".swiper-slide.cover-bg.swiper-slide-active h1").addClass(h1_atr); 4874 $(".swiper-slide.cover-bg.swiper-slide-active p").addClass(p_atr); 4875 $(".swiper-slide.cover-bg.swiper-slide-active a.btn").addClass(a_atr); 4876 4877 $(".swiper-slide.cover-bg.swiper-slide-prev h1").removeClass(h1_atr); 4878 $(".swiper-slide.cover-bg.swiper-slide-prev p").removeClass(p_atr); 4879 $(".swiper-slide.cover-bg.swiper-slide-prev a.btn").removeClass(a_atr); 4880 $(".swiper-slide.cover-bg.swiper-slide-next h1").removeClass(h1_atr); 4881 $(".swiper-slide.cover-bg.swiper-slide-next p").removeClass(p_atr); 4882 $(".swiper-slide.cover-bg.swiper-slide-next a.btn").removeClass(a_atr); 4883 } 4884 }); 4885 } 4886 if (jQuery(".swiper-scrollable").length > 0) { 4887 var swiper = new Swiper('.swiper-scrollable', { 4888 scrollbar: '.swiper-scrollbar', 4889 scrollbarHide: true, 4890 pagination: '.swiper-pagination', 4891 nextButton: '.swiper-button-next', 4892 prevButton: '.swiper-button-prev', 4893 loop: false, 4894 speed: 600,
4895 mousewheelControl: true, 4896 slidesPerView: 3, 4897 paginationClickable: true, 4898 onSlideChangeStart: function(swiper) { 4899 4900 var h1_atr = $(".swiper-content h1[data-animation]").attr("data-animation"); 4901 var p_atr = $(".swiper-content p[data-animation]").attr("data-animation"); 4902 var a_atr = $(".swiper-content a.btn[data-animation]").attr("data-animation"); 4903 4904 $(".swiper-slide.cover-bg.swiper-slide-active h1").addClass(h1_atr); 4905 $(".swiper-slide.cover-bg.swiper-slide-active p").addClass(p_atr); 4906 $(".swiper-slide.cover-bg.swiper-slide-active a.btn").addClass(a_atr); 4907 4908 $(".swiper-slide.cover-bg.swiper-slide-prev h1").removeClass(h1_atr); 4909 $(".swiper-slide.cover-bg.swiper-slide-prev p").removeClass(p_atr); 4910 $(".swiper-slide.cover-bg.swiper-slide-prev a.btn").removeClass(a_atr); 4911 $(".swiper-slide.cover-bg.swiper-slide-next h1").removeClass(h1_atr); 4912 $(".swiper-slide.cover-bg.swiper-slide-next p").removeClass(p_atr); 4913 $(".swiper-slide.cover-bg.swiper-slide-next a.btn").removeClass(a_atr); 4914 } 4915 }); 4916 $(".swiper-button-down").click(function(){ 4917 $("body").animate({ scrollTop: window.pageYOffset + $(window).height()}, 800); 4918 }); 4919 } 4920}; 4921/* 4922======================================================= 4923 Card Slider 4924======================================================= 4925*/ 4926function phcardslider() { 4927 if (jQuery(".cardslider").length > 0) { 4928 jQuery('.cardslider').cardSlider({ 4929 autoPlay: true, 4930 pauseOnHover: true, 4931 interval: 4000, 4932 nav: true, 4933 dots: true 4934 }); 4935 } 4936}; 4937/* 4938======================================================= 4939 Arrow Animated 4940======================================================= 4941*/ 4942function pharrowanimated() { 4943 if (jQuery(".arrow-animated").length > 0) { 4944 var $root = $('html, body'); 4945 $('.arrow-animated a').on( "click", function() { 4946 $root.animate({ 4947 scrollTop: $($.attr(this, 'href')).offset().top 4948 }, 500); 4949 return false; 4950 }); 4951 }; 4952}; 4953/* 4954======================================================= 4955 Layer Slider 4956======================================================= 4957*/ 4958function phlayerslider() { 4959 if (jQuery("#layerslider").length > 0) { 4960 jQuery("#layerslider").layerSlider({ 4961 autoStart: true, 4962 responsive: true, 4963 responsiveUnder: 0, 4964 sublayerContainer: 1440, 4965 firstLayer: 1, 4966 twoWaySlideshow: true, 4967 randomSlideshow: false, 4968 keybNav: true, 4969 touchNav: true, 4970 imgPreload: true, 4971 navPrevNext: true, 4972 navStartStop: true, 4973 navButtons: true, 4974 thumbnailNavigation: 'hover', 4975 tnWidth: 100, 4976 tnHeight: 60, 4977 tnContainerWidth: '60%', 4978 tnActiveOpacity: 35, 4979 tnInactiveOpacity: 100, 4980 hoverPrevNext: true, 4981 hoverBottomNav: false, 4982 skin: 'default', 4983 skinsPath: 'plugins/layerslider/skins/', 4984 pauseOnHover: true, 4985 globalBGColor: 'transparent', 4986 globalBGImage: false, 4987 animateFirstLayer: true, 4988 yourLogo: false, 4989 yourLogoStyle: 'position: absolute; z-index: 1001; left: 10px; top: 10px;', 4990 yourLogoLink: false, 4991 yourLogoTarget: '_blank', 4992 loops: 0, 4993 forceLoopNum: true, 4994 autoPlayVideos: true, 4995 autoPauseSlideshow: 'auto', 4996 youtubePreview: 'maxresdefault.jpg', 4997 showBarTimer: false, 4998 showCircleTimer: false, 4999 slideDirection: 'right', 5000 slideDelay: 8000, 5001 durationIn: 3000, 5002 durationOut: 3000, 5003 easingIn: 'easeInOutQuint', 5004 easingOut: 'easeInOutQuint', 5005 delayIn: 0, 5006 delayOut: 0 5007 }); 5008 } 5009}; 5010/* 5011======================================================= 5012 Master Slider 5013======================================================= 5014*/ 5015function phmasterslider() { 5016 if (jQuery("#masterslider").length > 0) { 5017 var slider = new MasterSlider(); 5018 slider.control('arrows', { 5019 insertTo: '#masterslider' 5020 }); 5021 slider.setup('masterslider', { 5022 width: 1200, 5023 height: 800, 5024 space: 5, 5025 autoplay: true, 5026 layout: "fullwidth", 5027 loop: true 5028 }); 5029 } 5030}; 5031/* 5032======================================================= 5033 Royal Slider 5034======================================================= 5035*/ 5036function phroyalslider() { 5037 if (jQuery(".royalSlider").length > 0) { 5038 $(".royalSlider-default").royalSlider({ 5039 autoScaleSliderWidth: 1600, 5040 autoScaleSliderHeight: 600, 5041 keyboardNavEnabled: true, 5042 loop: true, 5043 autoScaleSlider: true, 5044 imageAlignCenter: true, 5045 imageScaleMode: 'fill', 5046 arrowsNav: true, 5047 arrowsNavAutoHide: true, 5048 autoPlay: { 5049 enabled: true, 5050 pauseOnHover: true 5051 } 5052 }); 5053 $(".royalSlider-fullscreen").royalSlider({ 5054 keyboardNavEnabled: true, 5055 loop: true, 5056 autoScaleSlider: true, 5057 imageAlignCenter: true, 5058 imageScaleMode: 'fill', 5059 arrowsNav: true, 5060 arrowsNavAutoHide: true, 5061 fullscreen: { 5062 enabled: true, 5063 nativeFS: false 5064 }, 5065 autoPlay: { 5066 enabled: true, 5067 pauseOnHover: true 5068 } 5069 }); 5070 } 5071}; 5072/* 5073======================================================= 5074 Owl Carousel Slider 5075======================================================= 5076*/ 5077function phowlcarouselslider() { 5078 if (jQuery(".owl-carousel-fullwidth").length > 0) { 5079 jQuery('.owl-carousel-fullwidth').owlCarousel({ 5080 margin: 0, 5081 responsiveClass: true, 5082 items: 1, 5083 autoHeight: false, 5084 nav: true, 5085 dots: false, 5086 loop: true, 5087 autoplay: true, 5088 autoplayTimeout: 6000, 5089 autoplayHoverPause: true, 5090 responsive: { 5091 0: { 5092 items: 1, 5093 responsive: true, 5094 responsiveRefreshRate: 50 5095 }, 5096 1140: { 5097 items: 1, 5098 responsive: true, 5099 responsiveRefreshRate: 50 5100 }, 5101 1440: { 5102 items: 1, 5103 responsive: true, 5104 responsiveRefreshRate: 50, 5105 } 5106 } 5107 }); 5108 } 5109}; 5110/* 5111======================================================= 5112 Landing Page Carousel
5113======================================================= 5114*/ 5115if ($('.landing-page-carousel').length && jQuery()) { 5116 $('.landing-page-carousel').each(function() { 5117 jQuery(this).slick({ 5118 swipeToSlide: true, 5119 slidesToShow: 2, 5120 slidesToScroll: 2, 5121 autoplay: true, 5122 mobileFirst: true, 5123 autoplaySpeed: 5000, 5124 arrows: false 5125 }); 5126 }); 5127}; 5128 5129 5130/* 5131======================================================= 5132 Slick Slider 5133======================================================= 5134*/ 5135function slickslider() { 5136 if ($('.slider-slick.simple-slick').length && jQuery()) { 5137 $('.slider-slick').slick({ 5138 swipeToSlide: true, 5139 mobileFirst: true, 5140 centerMode: true, 5141 centerPadding: '60px', 5142 slidesToShow: 1, 5143 responsive: [{ 5144 breakpoint: 768, 5145 settings: { 5146 arrows: false, 5147 centerMode: true, 5148 centerPadding: '0px', 5149 slidesToShow: 3 5150 } 5151 }, { 5152 breakpoint: 480, 5153 settings: { 5154 arrows: false, 5155 centerMode: true, 5156 centerPadding: '0px', 5157 slidesToShow: 1 5158 } 5159 }] 5160 }); 5161 } 5162 if ($('.slider-slick.blog-slick').length && jQuery()) { 5163 $('.slider-slick').slick({ 5164 swipeToSlide: true, 5165 mobileFirst: true, 5166 centerMode: true, 5167 centerPadding: '60px', 5168 slidesToShow: 1, 5169 responsive: [{ 5170 breakpoint: 768, 5171 settings: { 5172 arrows: false, 5173 centerMode: true, 5174 centerPadding: '0px', 5175 slidesToShow: 3 5176 } 5177 }, { 5178 breakpoint: 480, 5179 settings: { 5180 arrows: false, 5181 centerMode: true, 5182 centerPadding: '0px', 5183 slidesToShow: 1 5184 } 5185 }] 5186 }); 5187 }; 5188}; 5189/* 5190======================================================= 5191 Testimonials Single Slider 5192======================================================= 5193*/ 5194if ($('.testimonial-single').length && jQuery()) { 5195 $('.testimonial-single').each(function() { 5196 jQuery(this).slick({ 5197 mobileFirst: true, 5198 swipeToSlide: true, 5199 slidesToShow: 1, 5200 slidesToScroll: 1, 5201 autoplay: false, 5202 autoplaySpeed: 5000, 5203 arrows: true, 5204 dots: true 5205 }); 5206 }); 5207}; 5208 5209function phtestimonialsingle() {}; 5210/* 5211======================================================= 5212 Accordion Slider 5213======================================================= 5214*/ 5215function phaccordionSlider() { 5216 if ($('.accordion-slider').length && jQuery()) { 5217 5218 var accordionsliderheight = $( window ).height(); 5219 if (accordionsliderheight > 800) { 5220 var accordionsliderheight = 800; 5221 } 5222 else if (accordionsliderheight < 400) { 5223 var accordionsliderheight = 400; 5224 } 5225 $('.accordion-slider').accordionSlider({ 5226 width: '100%', 5227 height: accordionsliderheight, 5228 responsiveMode: 'auto', 5229 visiblePanels: 7, 5230 startPanel: 3, 5231 openedPanelSize: 'max', 5232 maxOpenedPanelSize: '80%', 5233 closePanelsOnMouseOut: false, 5234 shadow: false, 5235 panelDistance: 0, 5236 autoplay: false, 5237 mouseWheel: false, 5238 breakpoints: { 5239 960: { 5240 visiblePanels: 5 5241 }, 5242 800: { 5243 visiblePanels: 3 5244 }, 5245 650: { 5246 visiblePanels: 4 5247 }, 5248 500: { 5249 visiblePanels: 3 5250 } 5251 } 5252 }); 5253 }; 5254}; 5255/* 5256======================================================= 5257 Slick Four Columns Carousel 5258======================================================= 5259*/ 5260if ($('.slick-four-columns').length && jQuery()) { 5261 $('.slick-four-columns').each(function() { 5262 jQuery(this).slick({ 5263 swipeToSlide: true, 5264 slidesToShow: 1, 5265 mobileFirst: true, 5266 slidesToScroll: 1, 5267 autoplay: false, 5268 autoplaySpeed: 5000,
5269 arrows: false, 5270 responsive: [{ 5271 breakpoint: 480, 5272 settings: { 5273 slidesToShow: 1, 5274 slidesToScroll: 1 5275 } 5276 }, { 5277 breakpoint: 600, 5278 settings: { 5279 slidesToShow: 1, 5280 slidesToScroll: 1 5281 } 5282 }, , { 5283 breakpoint: 768, 5284 settings: { 5285 slidesToShow: 2, 5286 slidesToScroll: 1 5287 } 5288 }, { 5289 breakpoint: 1081, 5290 settings: { 5291 slidesToShow: 3, 5292 slidesToScroll: 1 5293 } 5294 }] 5295 }); 5296 }); 5297}; 5298 5299 5300/* 5301======================================================= 5302 Vertical Timeline 5303======================================================= 5304*/ 5305function verticaltimeline() { 5306 if ($('.cd-timeline-block').length && jQuery()) { 5307 var timelineBlocks = $('.cd-timeline-block'), 5308 offset = 0.8; 5309 hideBlocks(timelineBlocks, offset); 5310 $(window).on('scroll', function() { 5311 (!window.requestAnimationFrame) ? setTimeout(function() { 5312 showBlocks(timelineBlocks, offset); 5313 }, 100): window.requestAnimationFrame(function() { 5314 showBlocks(timelineBlocks, offset); 5315 }); 5316 }); 5317 5318 function hideBlocks(blocks, offset) { 5319 blocks.each(function() { 5320 ($(this).offset().top > $(window).scrollTop() + $(window).height() * offset) && $(this).find('.cd-timeline-img, .cd-timeline-content').addClass('is-hidden wow fadeIn animated'); 5321 }); 5322 } 5323 5324 function showBlocks(blocks, offset) { 5325 blocks.each(function() { 5326 ($(this).offset().top <= $(window).scrollTop() + $(window).height() * offset && $(this).find('.cd-timeline-img').hasClass('is-hidden')) && $(this).find('.cd-timeline-img, .cd-timeline-content').removeClass('is-hidden').addClass('wow fadeIn animated'); 5327 }); 5328 } 5329 $('.cd-timeline-inner-content h4').mouseenter(function(e) { 5330 $(this).parent().parent().find('.cd-bg-image').addClass("animation-hover-js"); 5331 }).mouseleave(function(e) { 5332 $(this).parent().parent().find('.cd-bg-image').removeClass("animation-hover-js"); 5333 }); 5334 }; 5335}; 5336/* 5337======================================================= 5338 CheckBox 5339======================================================= 5340*/ 5341function phcheckbox() { 5342 if ($('.my-checkbox').length && jQuery()) { 5343 $('.my-checkbox').bootstrapSwitch({ 5344 onSwitchChange: function(event, state) { 5345 var mainDiv = jQuery(jQuery(this).attr("data-id")); 5346 var toflipclass = jQuery(mainDiv).find(".flip-pricing-tables"); 5347 if ($(this).is(':checked')) { 5348 toflipclass.flip(false); 5349 } else { 5350 toflipclass.flip(true); 5351 } 5352 } 5353 }); 5354 }; 5355}; 5356/* 5357======================================================= 5358 Bootstrap Data Table 5359======================================================= 5360*/ 5361function bootstrapDataTable() { 5362 if (jQuery("#bootstrap-table").length && jQuery()) { 5363 jQuery('#bootstrap-table').bdt(); 5364 } 5365}; 5366/* 5367======================================================= 5368 Vivus Svg Animations 5369======================================================= 5370*/ 5371function vivusSvgAnimations() { 5372 if (jQuery(".svg-animation-1").length && jQuery()) { 5373 $(".svg-animation-1").each(function() { 5374 new Vivus(this, { 5375 type: 'delayed', 5376 duration: 350 5377 }); 5378 }); 5379 } 5380 if (jQuery(".svg-animation-2").length && jQuery()) { 5381 $(".svg-animation-2").each(function() { 5382 new Vivus(this, { 5383 type: 'async', 5384 duration: 350 5385 }); 5386 }); 5387 } 5388 if (jQuery(".svg-animation-3").length && jQuery()) { 5389 $(".svg-animation-3").each(function() { 5390 new Vivus(this, { 5391 type: 'oneByOne', 5392 duration: 350 5393 }); 5394 }); 5395 } 5396 if (jQuery(".svg-animation-4").length && jQuery()) { 5397 $(".svg-animation-4").each(function() { 5398 new Vivus(this, { 5399 type: 'scenario', 5400 duration: 350 5401 }); 5402 }); 5403 } 5404 if (jQuery(".svg-animation-5").length && jQuery()) { 5405 $(".svg-animation-5").each(function() { 5406 new Vivus(this, { 5407 type: 'scenario-sync', 5408 duration: 350 5409 }); 5410 }); 5411 } 5412}; 5413/* 5414======================================================= 5415 Full Calendar 5416======================================================= 5417*/
5418// function fullCalendar() { 5419// if (jQuery(".calendar").length && jQuery()) { 5420// $('.calendar-simple').fullCalendar({ 5421// dayClick: function() { 5422// $(this).toggleClass('background-1'); 5423// }, 5424// fixedWeekCount: false 5425// }); 5426// $('.calendar-agenda').fullCalendar({ 5427// header: { 5428// left: 'prev,next today', 5429// center: 'title', 5430// right: 'month,agendaWeek,agendaDay' 5431// }, 5432// defaultDate: '2016-01-12', 5433// editable: true, 5434// eventLimit: true, 5435// events: [{ 5436// title: 'All Day Event', 5437// start: '2016-04-05' 5438// }, { 5439// title: 'Long Event', 5440// start: '2016-04-07', 5441// end: '2016-01-10' 5442// }, { 5443// id: 999, 5444// title: 'Repeating Event', 5445// start: '2016-01-09T16:00:00' 5446// }, { 5447// id: 999, 5448// title: 'Repeating Event', 5449// start: '2016-01-16T16:00:00' 5450// }, { 5451// title: 'Conference', 5452// start: '2016-01-11', 5453// end: '2016-01-13' 5454// }, { 5455// title: 'Meeting', 5456// start: '2016-01-12T10:30:00', 5457// end: '2016-01-12T12:30:00' 5458// }, { 5459// title: 'Lunch', 5460// start: '2016-01-12T12:00:00' 5461// }, { 5462// title: 'Meeting', 5463// start: '2016-01-12T14:30:00' 5464// }, { 5465// title: 'Happy Hour', 5466// start: '2016-01-12T17:30:00' 5467// }, { 5468// title: 'Dinner', 5469// start: '2016-01-12T20:00:00' 5470// }, { 5471// title: 'Birthday Party', 5472// start: '2016-01-13T07:00:00' 5473// }, { 5474// title: 'Click for Google', 5475// url: 'http://google.com/', 5476// start: '2016-01-28' 5477// }], 5478// fixedWeekCount: false 5479// }); 5480// $('.calendar-bg-events').fullCalendar({ 5481// header: { 5482// left: 'prev,next today', 5483// center: 'title', 5484// right: 'month,agendaWeek,agendaDay' 5485// }, 5486// defaultDate: '2016-01-12', 5487// businessHours: true, 5488// editable: true, 5489// events: [{ 5490// title: 'Business Lunch', 5491// start: '2016-01-03T13:00:00', 5492// constraint: 'businessHours' 5493// }, { 5494// title: 'Meeting', 5495// start: '2016-01-13T11:00:00', 5496// constraint: 'availableForMeeting', 5497// color: '#257e4a' 5498// }, { 5499// title: 'Conference', 5500// start: '2016-01-18', 5501// end: '2016-01-20' 5502// }, { 5503// title: 'Party', 5504// start: '2016-01-29T20:00:00' 5505// }, 5506 5507// { 5508// id: 'availableForMeeting', 5509// start: '2016-01-11T10:00:00', 5510// end: '2016-01-11T16:00:00', 5511// rendering: 'background' 5512// }, { 5513// id: 'availableForMeeting', 5514// start: '2016-01-13T10:00:00', 5515// end: '2016-01-13T16:00:00', 5516// rendering: 'background' 5517// }, { 5518// start: '2016-01-24', 5519// end: '2016-01-28', 5520// overlap: false, 5521// rendering: 'background', 5522// color: '#ff9f89' 5523// }, { 5524// start: '2016-01-06', 5525// end: '2016-01-08', 5526// overlap: false, 5527// rendering: 'background', 5528// color: '#ff9f89' 5529// } 5530// ], 5531// fixedWeekCount: false 5532// }); 5533// $('.calendar-selectable').fullCalendar({ 5534// header: { 5535// left: 'prev,next today', 5536// center: 'title', 5537// right: 'month,agendaWeek,agendaDay' 5538// }, 5539// defaultDate: '2016-01-12', 5540// selectable: true, 5541// selectHelper: true, 5542// select: function(start, end) { 5543// var title = prompt('Event Title:'); 5544// var eventData; 5545// if (title) { 5546// eventData = { 5547// title: title, 5548// start: start, 5549// end: end 5550// }; 5551// $('#calendar').fullCalendar('renderEvent', eventData, true); /*/ stick? = true */ 5552// } 5553// $('#calendar').fullCalendar('unselect'); 5554// }, 5555// editable: true, 5556// eventLimit: true, 5557// events: [{ 5558// title: 'All Day Event', 5559// start: '2016-01-01' 5560// }, { 5561// title: 'Long Event', 5562// start: '2016-01-07', 5563// end: '2016-01-10' 5564// }, { 5565// id: 999, 5566// title: 'Repeating Event', 5567// start: '2016-01-09T16:00:00' 5568// }, { 5569// id: 999, 5570// title: 'Repeating Event', 5571// start: '2016-01-16T16:00:00' 5572// }, { 5573// title: 'Conference', 5574// start: '2016-01-11', 5575// end: '2016-01-13' 5576// }, { 5577// title: 'Meeting', 5578// start: '2016-01-12T10:30:00', 5579// end: '2016-01-12T12:30:00' 5580// }, { 5581// title: 'Lunch', 5582// start: '2016-01-12T12:00:00' 5583// }, { 5584// title: 'Meeting', 5585// start: '2016-01-12T14:30:00' 5586// }, { 5587// title: 'Happy Hour', 5588// start: '2016-01-12T17:30:00' 5589// }, { 5590// title: 'Dinner', 5591// start: '2016-01-12T20:00:00' 5592// }, { 5593// title: 'Birthday Party', 5594// start: '2016-01-13T07:00:00' 5595// }, { 5596// title: 'Click for Google', 5597// url: 'http://google.com/', 5598// start: '2016-01-28' 5599// }] 5600// }); 5601// }; 5602// }; 5603/* 5604======================================================= 5605 Right Side Navigation 5606======================================================= 5607*/ 5608function rightsidenavigation() { 5609 if ($('#vlt-showRight').length && jQuery()) { 5610 5611 var menuRightNav = document.getElementById('vlt-right-menu-s2'), 5612 showRightPushNav = document.getElementById('vlt-showRight'), 5613 body = document.body; 5614 var flagNav = false;
5615 jQuery("#vlt-showRight").on( "click", function(e) { 5616 e.preventDefault(); 5617 if (flagNav) { 5618 jQuery("#nav-icon2").removeClass('open'); 5619 jQuery(".vlt-nav").stop().animate({ 5620 right: 15 5621 }, { 5622 duration: 250, 5623 step: function(currentLeft) { 5624 jQuery("#wrapper").css("left", -currentLeft + 15); 5625 jQuery("#header.header-container").css("left", -currentLeft + 15); 5626 jQuery(".vlt-right-menu").css("right", -395 + currentLeft); 5627 } 5628 }); 5629 } else { 5630 jQuery("#nav-icon2").addClass('open'); 5631 jQuery(".vlt-nav").stop().animate({ 5632 right: 380 5633 }, { 5634 duration: 250, 5635 step: function(currentLeft) { 5636 jQuery("#wrapper").css("left", -currentLeft); 5637 jQuery("#header.header-container").css("left", -currentLeft - 238); 5638 jQuery(".vlt-right-menu").css("right", -380 + currentLeft); 5639 5640 } 5641 }); 5642 } 5643 flagNav = !flagNav; 5644 }); 5645 }; 5646}; 5647/* 5648======================================================= 5649 Left Side Navigation 5650======================================================= 5651*/ 5652function leftsidenavigation() { 5653 if ($('#vlt-showLeft').length && jQuery()) { 5654 var menuRightNav = document.getElementById('vlt-left-menu-s2'), 5655 showRightPushNav = document.getElementById('vlt-showLeft'), 5656 body = document.body; 5657 var flagNav = false; 5658 jQuery("#vlt-showLeft").on( "click", function(e) { 5659 e.preventDefault(); 5660 if (flagNav) { 5661 jQuery("#nav-icon2").removeClass('open'); 5662 jQuery(".vlt-nav").stop().animate({ 5663 left: 15 5664 }, { 5665 duration: 250, 5666 step: function(currentRight) { 5667 jQuery("#wrapper").css("right", -currentRight + 15); 5668 jQuery(".vlt-left-menu").css("left", -395 + currentRight); 5669 } 5670 }); 5671 } else { 5672 jQuery("#nav-icon2").addClass('open'); 5673 jQuery(".vlt-nav").stop().animate({ 5674 left: 380 5675 }, { 5676 duration: 250, 5677 step: function(currentRight) { 5678 jQuery("#wrapper").css("right", -currentRight); 5679 jQuery(".vlt-left-menu").css("left", -380 + currentRight); 5680 console.log(currentRight); 5681 } 5682 }); 5683 } 5684 flagNav = !flagNav; 5685 }); 5686 }; 5687}; 5688 5689function countDownNew() { 5690 if ($('.countdown').length && jQuery()) { 5691 jQuery('.countdown').downCount({ 5692 date: '5/29/2017 12:00:00', 5693 offset: +10 5694 }); 5695 }; 5696}; 5697/* 5698======================================================= 5699 Mouse Movement Event 5700======================================================= 5701*/ 5702function mouseMovement() { 5703 if ($('.mouse-movement').length && jQuery()) { 5704 new logosDistort(document.getElementsByClassName('mouse-movement'), { 5705 perspectiveMulti: 1.3 5706 }); 5707 }; 5708}; 5709/* 5710======================================================= 5711 Social Share Click Event 5712======================================================= 5713*/ 5714function socialShareClick() { 5715 if ($('.share-number').length > 0 && jQuery()) { 5716 $(".share-number").off("click").on('click', function(e) { 5717 var item = jQuery(this); 5718 e.preventDefault(); 5719 item.parent().find(".meta-share-social").fadeIn(); 5720 item.css("display", "none"); 5721 }); 5722 $(document).on('click', 'body', function(e) { 5723 var item = jQuery(e.target); 5724 if (!item.hasClass("share-number") && !item.parent().hasClass("share-number") && !item.hasClass("meta-share-social") && !item.parent().hasClass("meta-share-social")) { 5725 jQuery(".share-number").fadeIn(); 5726 jQuery(".share-number").parent().find(".meta-share-social").css("display", "none"); 5727 } 5728 }); 5729 }; 5730}; 5731/* 5732======================================================= 5733 Range Sliders 5734======================================================= 5735*/ 5736function rangeSliders() { 5737 if (($('.range-slider').length) && jQuery()) { 5738 $(".simple-range-1").ionRangeSlider(); 5739 $(".simple-range-2").ionRangeSlider({ 5740 min: 100, 5741 max: 1000, 5742 from: 550 5743 }); 5744 $(".simple-range-3").ionRangeSlider({ 5745 type: "double", 5746 grid: true, 5747 min: 0, 5748 max: 1000, 5749 from: 200, 5750 to: 800, 5751 prefix: "$" 5752 }); 5753 $(".simple-range-4").ionRangeSlider({ 5754 type: "double", 5755 grid: true, 5756 min: -1000, 5757 max: 1000, 5758 from: -500, 5759 to: 500 5760 }); 5761 $(".simple-range-5").ionRangeSlider({ 5762 type: "double", 5763 grid: true, 5764 min: -1000, 5765 max: 1000, 5766 from: -500, 5767 to: 500, 5768 step: 250 5769 }); 5770 $(".simple-range-6").ionRangeSlider({ 5771 type: "double", 5772 grid: true, 5773 min: -12.8, 5774 max: 12.8, 5775 from: -3.2, 5776 to: 3.2, 5777 step: 0.1 5778 }); 5779 $(".simple-range-7").ionRangeSlider({ 5780 type: "double", 5781 grid: true, 5782 from: 1, 5783 to: 5, 5784 values: [0, 10, 100, 1000, 10000, 100000, 1000000] 5785 }); 5786 $(".simple-range-8").ionRangeSlider({ 5787 grid: true, 5788 from: 5, 5789 values: ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"] 5790 }); 5791 $(".simple-range-9").ionRangeSlider({ 5792 grid: true, 5793 from: 3, 5794 values: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "
5794November", "December"] 5795 }); 5796 $(".simple-range-10").ionRangeSlider({ 5797 grid: true, 5798 min: 1000, 5799 max: 1000000, 5800 from: 200000, 5801 step: 1000, 5802 prettify_enabled: true 5803 }); 5804 $(".simple-range-11").ionRangeSlider({ 5805 grid: true, 5806 min: 1000, 5807 max: 1000000, 5808 from: 300000, 5809 step: 1000, 5810 prettify_enabled: true, 5811 prettify_separator: "." 5812 }); 5813 $(".simple-range-12").ionRangeSlider({ 5814 type: "double", 5815 grid: true, 5816 min: 0, 5817 max: 10000, 5818 from: 1000, 5819 step: 9000, 5820 prefix: "$" 5821 }); 5822 $(".simple-range-13").ionRangeSlider({ 5823 type: "single", 5824 grid: true, 5825 min: -90, 5826 max: 90, 5827 from: 0, 5828 postfix: "°" 5829 }); 5830 $(".simple-range-14").ionRangeSlider({ 5831 grid: true, 5832 min: 18, 5833 max: 70, 5834 from: 30, 5835 prefix: "Age ", 5836 max_postfix: "+" 5837 }); 5838 $(".simple-range-15").ionRangeSlider({ 5839 type: "double", 5840 min: 100, 5841 max: 200, 5842 from: 148, 5843 to: 152, 5844 prefix: "Weight: ", 5845 postfix: " million pounds", 5846 values_separator: " → " 5847 }); 5848 $(".simple-range-16").ionRangeSlider({ 5849 type: "double", 5850 min: 1000, 5851 max: 2000, 5852 from: 1200, 5853 to: 1800, 5854 hide_min_max: true, 5855 hide_from_to: false, 5856 grid: false 5857 }); 5858 $(".simple-range-17").ionRangeSlider({ 5859 type: "double", 5860 min: 0, 5861 max: 10000, 5862 step: 500, 5863 grid: true, 5864 grid_snap: true 5865 }); 5866 $(".simple-range-18").ionRangeSlider({ 5867 type: "double", 5868 min: 0, 5869 max: 100, 5870 from: 20, 5871 from_min: 10, 5872 from_max: 30, 5873 from_shadow: true, 5874 to: 80, 5875 to_min: 70, 5876 to_max: 90, 5877 to_shadow: true, 5878 grid: true, 5879 grid_num: 10 5880 }); 5881 $(".simple-range-19").ionRangeSlider({ 5882 min: 0, 5883 max: 100, 5884 from: 30, 5885 disable: true 5886 }); 5887 $(".simple-range-20").ionRangeSlider({ 5888 min: +moment().subtract(12, "hours").format("X"), 5889 max: +moment().format("X"), 5890 from: +moment().subtract(6, "hours").format("X"), 5891 grid: true, 5892 force_edges: true, 5893 prettify: function(num) { 5894 var m = moment(num, "X").locale("ru"); 5895 return m.format("Do MMMM, HH:mm"); 5896 } 5897 }); 5898 $(".simple-range-21").ionRangeSlider({ 5899 min: +moment().subtract(12, "hours").format("X"), 5900 max: +moment().format("X"), 5901 from: +moment().subtract(6, "hours").format("X"), 5902 grid: true, 5903 force_edges: true, 5904 prettify: function(num) { 5905 var m = moment(num, "X").locale("ja"); 5906 return m.format("Do MMMM, LT"); 5907 } 5908 }); 5909 }; 5910}; 5911/* 5912======================================================= 5913 Process Multi Steps 5914======================================================= 5915*/ 5916function processMultiSteps() { 5917 if (($('#msform').length) && jQuery()) { 5918 var current_fs, next_fs, previous_fs; 5919 var left, opacity, scale; 5920 var animating; 5921 $(".next").on( "click", function() { 5922 if (animating) return false; 5923 animating = true; 5924 current_fs = $(this).parent(); 5925 next_fs = $(this).parent().next(); 5926 $("#progressbar li").eq($("fieldset").index(next_fs)).addClass("active"); 5927 next_fs.show(); 5928 current_fs.animate({ 5929 opacity: 0 5930 }, { 5931 step: function(now, mx) { 5932 scale = 1 - (1 - now) * 0.2; 5933 left = (now * 50) + "%"; 5934 opacity = 1 - now; 5935 current_fs.css({ 5936 'transform': 'scale(' + scale + ')' 5937 }); 5938 next_fs.css({ 5939 'left': left, 5940 'opacity': opacity 5941 }); 5942 }, 5943 duration: 800, 5944 complete: function() { 5945 current_fs.hide(); 5946 animating = false;
5947 }, 5948 easing: 'easeInOutBack' 5949 }); 5950 }); 5951 $(".previous").on( "click", function() { 5952 if (animating) return false; 5953 animating = true; 5954 current_fs = $(this).parent(); 5955 previous_fs = $(this).parent().prev(); 5956 $("#progressbar li").eq($("fieldset").index(current_fs)).removeClass("active"); 5957 previous_fs.show(); 5958 current_fs.animate({ 5959 opacity: 0 5960 }, { 5961 step: function(now, mx) { 5962 scale = 0.8 + (1 - now) * 0.2; 5963 left = ((1 - now) * 50) + "%"; 5964 opacity = 1 - now; 5965 current_fs.css({ 5966 'left': left 5967 }); 5968 previous_fs.css({ 5969 'transform': 'scale(' + scale + ')', 5970 'opacity': opacity 5971 }); 5972 }, 5973 duration: 800, 5974 complete: function() { 5975 current_fs.hide(); 5976 animating = false; 5977 }, 5978 easing: 'easeInOutBack' 5979 }); 5980 }); 5981 }; 5982}; 5983/* 5984======================================================= 5985 Charts 5986======================================================= 5987*/ 5988function pizzaChats() { 5989 if (($('#vlt-bar-chart').length || $('#vlt-line-graph').length || $('#vlt-donut-graph').length || $('#vlt-graph-line').length) && jQuery()) { 5990 Pizza.init(); 5991 }; 5992}; 5993 5994 5995function googlecharts() { 5996 if ($('.google-charts-box').length && jQuery()) { 5997 5998 google.charts.load('current', {'packages':['corechart', 'bar']}); 5999 google.charts.setOnLoadCallback(googlepiechart); 6000 google.charts.setOnLoadCallback(googlecolumnsbar); 6001 google.charts.setOnLoadCallback(googleareachart); 6002 google.charts.setOnLoadCallback(googledonutchart); 6003 function googlepiechart() { 6004 var data = new google.visualization.DataTable(); 6005 data.addColumn('string', 'Topping'); 6006 data.addColumn('number', 'Slices'); 6007 data.addRows([ 6008 ['Mushrooms', 3], 6009 ['Onions', 1], 6010 ['Olives', 1], 6011 ]); 6012 var options = {'title':'How Much Pizza I Ate Last Night', 6013 colors: ['#0eb1eb', '#fe403b', '#323a44'] 6014 }; 6015 var chart = new google.visualization.PieChart(document.getElementById('googlepiechart')); 6016 chart.draw(data, options); 6017 } 6018 function googlecolumnsbar() { 6019 var data = new google.visualization.DataTable(); 6020 data.addColumn('timeofday', 'Time of Day'); 6021 data.addColumn('number', 'Motivation Level'); 6022 data.addColumn('number', 'Energy Level'); 6023 6024 data.addRows([ 6025 [{v: [8, 0, 0], f: '8 am'}, 1, .25], 6026 [{v: [9, 0, 0], f: '9 am'}, 2, .5], 6027 [{v: [10, 0, 0], f:'10 am'}, 3, 1], 6028 [{v: [11, 0, 0], f: '11 am'}, 4, 2.25], 6029 [{v: [12, 0, 0], f: '12 pm'}, 5, 2.25], 6030 [{v: [13, 0, 0], f: '1 pm'}, 6, 3], 6031 [{v: [14, 0, 0], f: '2 pm'}, 7, 4], 6032 [{v: [15, 0, 0], f: '3 pm'}, 8, 5.25], 6033 [{v: [16, 0, 0], f: '4 pm'}, 9, 7.5], 6034 [{v: [17, 0, 0], f: '5 pm'}, 10, 10], 6035 ]); 6036 6037 var options = { 6038 title: 'Motivation and Energy Level Throughout the Day', 6039 colors: ['#0eb1eb', '#fe403b'], 6040 hAxis: { 6041 title: 'Time of Day', 6042 format: 'h:mm a', 6043 viewWindow: { 6044 min: [7, 30, 0], 6045 max: [17, 30, 0] 6046 } 6047 }, 6048 vAxis: { 6049 title: 'Rating (scale of 1-10)' 6050 } 6051 }; 6052 6053 var chart = new google.visualization.ColumnChart(document.getElementById('googlecolumnsbar')); 6054 chart.draw(data, options); 6055 } 6056 function googleareachart() { 6057 var data = google.visualization.arrayToDataTable([ 6058 ['Year', 'Sales', 'Expenses'], 6059 ['2013', 1000, 400], 6060 ['2014', 1170, 460], 6061 ['2015', 660, 1120], 6062 ['2016', 1030, 540] 6063 ]); 6064 6065 var options = { 6066 title: 'Company Performance', 6067 hAxis: {title: 'Year', titleTextStyle: {color: '#333'}}, 6068 vAxis: {minValue: 0}, 6069 colors: ['#0eb1eb', '#fe403b'], 6070 areaOpacity: 0.0 6071 }; 6072 6073 var chart = new google.visualization.AreaChart(document.getElementById('googleareachart')); 6074 chart.draw(data, options); 6075 } 6076 function googledonutchart() { 6077 var data = google.visualization.arrayToDataTable([ 6078 ['Task', 'Hours per Day'], 6079 ['Work', 11], 6080 ['Eat', 2], 6081 ['Sleep', 4], 6082 ]); 6083 6084 var options = { 6085 title: 'My Daily Activities', 6086 pieHole: 0.4, 6087 colors: ['#0eb1eb', '#fe403b', '#323a44'] 6088 }; 6089 6090 var chart = new google.visualization.PieChart(document.getElementById('googledonutchart')); 6091 chart.draw(data, options); 6092 } 6093}; 6094}; 6095function flotcharts() { 6096 6097function flotbasicchart() { 6098 if ($('#flotbasicchart').length && jQuery()) { 6099 var d1 = []; 6100 for (var i = 0; i < Math.PI * 2; i += 0.25) { 6101 d1.push([i, Math.sin(i)]); 6102 } 6103 6104 var d2 = []; 6105 for (var i = 0; i < Math.PI * 2; i += 0.25) { 6106 d2.push([i, Math.cos(i)]); 6107 } 6108 6109 var d3 = []; 6110 for (var i = 0; i < Math.PI * 2; i += 0.1) { 6111 d3.push([i, Math.tan(i)]); 6112 } 6113 6114 $.plot("#flotbasicchart", [ 6115 { label: "sin(x)", data: d1, color: '#0eb1eb' }, 6116 { label: "cos(x)", data: d2, color: '#fe403b', }, 6117 { label: "tan(x)", data: d3, color: '#323a44', } 6118 ], {
6119 series: { 6120 lines: { show: true }, 6121 points: { show: true } 6122 }, 6123 xaxis: { 6124 ticks: [ 6125 0, [ Math.PI/2, "\u03c0/2" ], [ Math.PI, "\u03c0" ], 6126 [ Math.PI * 3/2, "3\u03c0/2" ], [ Math.PI * 2, "2\u03c0" ] 6127 ] 6128 }, 6129 yaxis: { 6130 ticks: 10, 6131 min: -2, 6132 max: 2, 6133 tickDecimals: 3 6134 }, 6135 grid: { 6136 backgroundColor: "#ffffff", 6137 borderWidth: { 6138 top: 1, 6139 right: 1, 6140 bottom: 2, 6141 left: 2 6142 } 6143 } 6144 }); 6145 6146 6147 6148 6149 6150 6151 }; 6152}; 6153 6154function flottrackingchart() { 6155 if ($('#flottrackingchart').length && jQuery()) { 6156 var sin = [], cos = []; 6157 for (var i = 0; i < 14; i += 0.1) { 6158 sin.push([i, Math.sin(i)]); 6159 cos.push([i, Math.cos(i)]); 6160 } 6161 6162 plot = $.plot("#flottrackingchart", [ 6163 { data: sin, label: "sin(x) = -0.00", color: '#0eb1eb' }, 6164 { data: cos, label: "cos(x) = -0.00", color: '#fe403b' } 6165 ], { 6166 series: { 6167 lines: { 6168 show: true 6169 } 6170 }, 6171 crosshair: { 6172 mode: "x" 6173 }, 6174 grid: { 6175 hoverable: true, 6176 autoHighlight: false 6177 }, 6178 yaxis: { 6179 min: -1.2, 6180 max: 1.2 6181 } 6182 }); 6183 6184 var legends = $("#flottrackingchart .legendLabel"); 6185 6186 legends.each(function () { 6187 6188 $(this).css('width', $(this).width()); 6189 }); 6190 6191 var updateLegendTimeout = null; 6192 var latestPosition = null; 6193 6194 function updateLegend() { 6195 6196 updateLegendTimeout = null; 6197 6198 var pos = latestPosition; 6199 6200 var axes = plot.getAxes(); 6201 if (pos.x < axes.xaxis.min || pos.x > axes.xaxis.max || 6202 pos.y < axes.yaxis.min || pos.y > axes.yaxis.max) { 6203 return; 6204 } 6205 6206 var i, j, dataset = plot.getData(); 6207 for (i = 0; i < dataset.length; ++i) { 6208 6209 var series = dataset[i]; 6210 6211 6212 6213 for (j = 0; j < series.data.length; ++j) { 6214 if (series.data[j][0] > pos.x) { 6215 break; 6216 } 6217 } 6218 6219 6220 var y, 6221 p1 = series.data[j - 1], 6222 p2 = series.data[j]; 6223 6224 if (p1 == null) { 6225 y = p2[1]; 6226 } else if (p2 == null) { 6227 y = p1[1]; 6228 } else { 6229 y = p1[1] + (p2[1] - p1[1]) * (pos.x - p1[0]) / (p2[0] - p1[0]); 6230 } 6231 6232 legends.eq(i).text(series.label.replace(/=.*/, "= " + y.toFixed(2))); 6233 } 6234 } 6235 6236 $("#flottrackingchart").on("plothover", function (event, pos, item) { 6237 latestPosition = pos; 6238 if (!updateLegendTimeout) { 6239 updateLegendTimeout = setTimeout(updateLegend, 50); 6240 } 6241 }); 6242 6243 6244 6245 6246 6247 6248 }; 6249}; 6250 6251 function flotrealtimechart() { 6252 6253if ($('#flotrealtimechart').length && jQuery()) { 6254 6255 6256 6257 var data = [], 6258 totalPoints = 300; 6259 6260 function getRandomData() { 6261 6262 if (data.length > 0) 6263 data = data.slice(1); 6264 6265 6266 6267 while (data.length < totalPoints) { 6268 6269 var prev = data.length > 0 ? data[data.length - 1] : 50, 6270 y = prev + Math.random() * 10 - 5; 6271 6272 if (y < 0) { 6273 y = 0; 6274 } else if (y > 100) { 6275 y = 100; 6276 } 6277 6278 data.push(y); 6279 } 6280 6281 6282 6283 var res = []; 6284 for (var i = 0; i < data.length; ++i) { 6285 res.push([i, data[i]]) 6286 } 6287 6288 return res; 6289 } 6290 6291 6292 6293 var updateInterval = 30; 6294 $("#updateInterval").val(updateInterval).change(function () { 6295 var v = $(this).val(); 6296 if (v && !isNaN(+v)) { 6297 updateInterval = +v; 6298 if (updateInterval < 1) { 6299 updateInterval = 1; 6300 } else if (updateInterval > 2000) { 6301 updateInterval = 2000; 6302 } 6303 $(this).val("" + updateInterval); 6304 } 6305 }); 6306 6307 var plot = $.plot("#flotrealtimechart", [ getRandomData() ], { 6308 series: { 6309 lines: { 6310 shadowSize: 0, 6311 fill: true 6312 }, 6313 color: '#0eb1eb' 6314 }, 6315 yaxis: { 6316 min: 0, 6317 max: 100 6318 }, 6319 xaxis: { 6320 show: false 6321 } 6322 }); 6323 6324 function update() { 6325 6326 plot.setData([getRandomData()]); 6327 plot.draw(); 6328 setTimeout(update, updateInterval); 6329 } 6330 6331 update(); 6332 6333 6334 6335 6336 6337 6338 6339 6340 }; 6341 }; 6342 flotbasicchart(); 6343 flottrackingchart(); 6344 flotrealtimechart(); 6345 }; 6346 function morrischarts() { 6347 if ($('#morrisdonutgraph').length && jQuery()) { 6348 Morris.Donut({ 6349 element: 'morrisdonutgraph', 6350 data: [ 6351 {value: 70, label: 'Business'}, 6352 {value: 15, label: 'Coporate'}, 6353 {value: 10, label: 'Restaurant'}, 6354 {value: 5, label: 'Shop'} 6355 ], 6356 colors: [ 6357 '#0eb1eb', 6358 '#fe403b', 6359 '#323a44' 6360 6361 ], 6362 formatter: function (x) { return x + "%"} 6363 }).on('click', function(i, row){ 6364 console.log(i, row); 6365 }); 6366 }; 6367 if ($('#morrisareagraph').length && jQuery()) { 6368 Morris.Area({ 6369 element: 'morrisareagraph', 6370 data: [ 6371 {x: '2010 Q4', y: 3, z: 7}, 6372 {x: '2011 Q1', y: 3, z: 4}, 6373 {x: '2011 Q2', y: null, z: 1}, 6374 {x: '2011 Q3', y: 2, z: 5}, 6375 {x: '2011 Q4', y: 8, z: 2}, 6376 {x: '2012 Q1', y: 4, z: 4} 6377 ], 6378 xkey: 'x', 6379 ykeys: ['y', 'z'], 6380 labels: ['Y', 'Z'], 6381 lineColors: [ 6382 '#0eb1eb', 6383 '#fe403b', 6384 6385 6386 ] 6387}).on('click', function(i, row){ 6388 console.log(i, row); 6389}); 6390 }; 6391 if ($('#morrislinegraph').length && jQuery()) { 6392 Morris.Line({ 6393 element: 'morrislinegraph', 6394 data: [ 6395 {x: '2010 Q4', y: 3, z: 7}, 6396 {x: '2011 Q1', y: 3, z: 4}, 6397 {x: '2011 Q2', y: 2, z: 1}, 6398 {x: '2011 Q3', y: 2, z: 5}, 6399 {x: '2011 Q4', y: 8, z: 2}, 6400 {x: '2012 Q1', y: 4, z: 4} 6401 ], 6402 xkey: 'x', 6403 ykeys: ['y', 'z'], 6404 labels: ['Y', 'Z'], 6405 lineColors: [ 6406 '#0eb1eb', 6407 '#fe403b', 6408 6409 6410 ] 6411}).on('click', function(i, row){ 6412 console.log(i, row); 6413}); 6414 }; 6415 if ($('#morrisbargraph').length && jQuery()) { 6416Morris.Bar({ 6417 element: 'morrisbargraph', 6418 data: [ 6419 {x: '2011 Q1', y: 3, z: 2, a: 3}, 6420 {x: '2011 Q2', y: 2, z: null, a: 1}, 6421 {x: '2011 Q3', y: 0, z: 2, a: 4}, 6422 {x: '2011 Q4', y: 2, z: 4, a: 3} 6423 ], 6424 xkey: 'x', 6425 ykeys: ['y', 'z', 'a'], 6426 labels: ['Y', 'Z', 'A'], 6427 barColors: [ 6428 '#0eb1eb', 6429 '#fe403b', 6430 '#323a44' 6431 6432 ] 6433}).on('click', function(i, row){ 6434 console.log(i, row); 6435}); 6436 }; 6437 }; 6438function chartlicharts() { 6439if ($('#chartli1').length && jQuery()) { 6440var chartliexample1 = echarts.init(document.getElementById('chartli1')); 6441 6442 6443 option = { 6444 tooltip: { 6445 trigger: 'axis' 6446 }, 6447 legend: { 6448 data: ['Microsoft', 'Apple', 'Samsung', 'Cisco', 'Sony'] 6449 }, 6450 toolbox: { 6451 show: true, 6452 feature: { 6453 mark: { show: false }, 6454 dataView: { show: false, readOnly: false }, 6455 magicType: { show: true, type: ['line', 'bar', 'stack', 'tiled'] }, 6456 restore: { show: true, title: 'Refresh' }, 6457 saveAsImage: { show: true, title: 'Save As Image' } 6458 } 6459 }, 6460 calculable: true, 6461 xAxis: [ 6462 { 6463 type: 'category', 6464 boundaryGap: false, 6465 data: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'] 6466 } 6467 ], 6468 yAxis: [ 6469 { 6470 type: 'value' 6471 } 6472 ],
6473 color: ['#0eb1eb', '#fe403b', '#323a44', '#069dd4', '#e53029'], 6474 series: [ 6475 { 6476 name: 'Microsoft', 6477 type: 'line', 6478 stack: 'Total', 6479 data: [120, 132, 101, 134, 90, 230, 210] 6480 }, 6481 { 6482 name: 'Apple', 6483 type: 'line', 6484 stack: 'Total', 6485 data: [220, 182, 191, 234, 290, 330, 310] 6486 }, 6487 { 6488 name: 'Samsung', 6489 type: 'line', 6490 stack: 'Total', 6491 data: [150, 232, 201, 154, 190, 330, 410] 6492 }, 6493 { 6494 name: 'Cisco', 6495 type: 'line', 6496 stack: 'Total', 6497 data: [320, 332, 301, 334, 390, 330, 320] 6498 }, 6499 { 6500 name: 'Sony', 6501 type: 'line', 6502 stack: 'Total', 6503 data: [820, 932, 901, 934, 1290, 1330, 1320] 6504 } 6505 ] 6506 }; 6507 6508 6509 6510 chartliexample1.setOption(option); 6511} 6512if ($('#chartli2').length && jQuery()) { 6513var chartliexample2 = echarts.init(document.getElementById('chartli2')); 6514 option = { 6515 title: { 6516 text: 'A real estate sales', 6517 subtext: '' 6518 }, 6519 tooltip: { 6520 trigger: 'axis' 6521 }, 6522 legend: { 6523 data: ['Request', 'Pre Order', 'Transactions'] 6524 }, 6525 toolbox: { 6526 show: true, 6527 feature: { 6528 mark: { show: false }, 6529 dataView: { show: false, readOnly: false }, 6530 magicType: { show: true, type: ['line', 'bar', 'stack', 'tiled'] }, 6531 restore: { show: true, title: 'Refresh' }, 6532 saveAsImage: { show: true, title: 'Save As Image' } 6533 } 6534 }, 6535 calculable: true, 6536 xAxis: [ 6537 { 6538 type: 'category', 6539 boundaryGap: false, 6540 data: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'] 6541 } 6542 ], 6543 yAxis: [ 6544 { 6545 type: 'value' 6546 } 6547 ], 6548 color: ['#0eb1eb', '#fe403b', '#323a44', '#069dd4'], 6549 series: [ 6550 { 6551 name: 'Transactions', 6552 type: 'line', 6553 smooth: true, 6554 itemStyle: { normal: { areaStyle: { type: 'default' } } }, 6555 data: [10, 12, 21, 54, 260, 830, 710] 6556 }, 6557 { 6558 name: 'Pre Order', 6559 type: 'line', 6560 smooth: true, 6561 itemStyle: { normal: { areaStyle: { type: 'default' } } }, 6562 data: [30, 182, 434, 791, 390, 30, 10] 6563 }, 6564 { 6565 name: 'Request', 6566 type: 'line', 6567 smooth: true, 6568 itemStyle: { normal: { areaStyle: { type: 'default' } } }, 6569 data: [1320, 1132, 601, 234, 120, 90, 20] 6570 } 6571 ] 6572 }; 6573 6574 chartliexample2.setOption(option); 6575 6576 6577 } 6578 if ($('#chartli3').length && jQuery()) { 6579 var chartliexample3 = echarts.init(document.getElementById('chartli3')); 6580 window.onresize = chartliexample3.resize 6581 6582 option = { 6583 tooltip: { 6584 trigger: 'axis', 6585 axisPointer: { 6586 type: 'shadow' // type:'line' | 'shadow' 6587 } 6588 }, 6589 legend: { 6590 data: ['Lenovo', 'Apple', 'Samsung', 'Dell', 'Acer', 'Toshiba', 'Hp', 'IBM', 'Huweai'] 6591 }, 6592 toolbox: { 6593 show: true, 6594 orient: 'vertical', 6595 x: 'right', 6596 y: 'center', 6597 feature: { 6598 mark: { show: false }, 6599 dataView: { show: false, readOnly: false }, 6600 magicType: { show: true, type: ['line', 'bar', 'stack', 'tiled'] }, 6601 restore: { show: true ,title:'Refresh'}, 6602 saveAsImage: { show: true ,title:'Save As Image'} 6603 } 6604 }, 6605 calculable: true, 6606 color: ['#0eb1eb', '#fe403b', '#323a44', '#069dd4', '#e53029', '#556273', '#03CEA4', '#FA7921'], 6607 xAxis: [ 6608 { 6609 type: 'category', 6610 data: ['Monday', 'Tuesday', 'Wednesday', 'Thursday','Friday', 'Saturday', 'Sunday'] 6611 } 6612 ], 6613 yAxis: [ 6614 { 6615 type: 'value' 6616 } 6617 ], 6618 series: [ 6619 { 6620 name: 'Lenovo', 6621 type: 'bar', 6622 data: [320, 332, 301, 334, 390, 330, 320] 6623 }, 6624 { 6625 name: 'Apple', 6626 type: 'bar', 6627 stack: 'Smartphone',
6628 data: [120, 132, 101, 134, 90, 230, 210] 6629 }, 6630 { 6631 name: 'Samsung', 6632 type: 'bar', 6633 stack: 'Smartphone', 6634 data: [220, 182, 191, 234, 290, 330, 310] 6635 }, 6636 { 6637 name: 'Dell', 6638 type: 'bar', 6639 stack: 'Computer', 6640 data: [150, 232, 201, 154, 190, 330, 410] 6641 }, 6642 { 6643 name: 'Acer', 6644 type: 'bar', 6645 data: [862, 1018, 964, 1026, 1679, 1600, 1570], 6646 markLine: { 6647 itemStyle: { 6648 normal: { 6649 lineStyle: { 6650 type: 'dashed' 6651 } 6652 } 6653 }, 6654 data: [ 6655 [{ type: 'min' }, { type: 'max' }] 6656 ] 6657 } 6658 }, 6659 { 6660 name: 'Toshiba', 6661 type: 'bar', 6662 barWidth: 5, 6663 stack: 'Computer', 6664 data: [620, 732, 701, 734, 1090, 1130, 1120] 6665 }, 6666 { 6667 name: 'Hp', 6668 type: 'bar', 6669 stack: 'Notebook', 6670 data: [120, 132, 101, 134, 290, 230, 220] 6671 }, 6672 { 6673 name: 'IBM', 6674 type: 'bar', 6675 stack: 'Server', 6676 data: [60, 72, 71, 74, 190, 130, 110] 6677 }, 6678 { 6679 name: 'Huweai', 6680 type: 'bar', 6681 stack: 'Server', 6682 data: [62, 82, 91, 84, 109, 110, 120] 6683 } 6684 ] 6685 }; 6686 6687 chartliexample3.setOption(option); 6688 6689 } 6690 if ($('#chartli5').length && jQuery()) { 6691 var chartliexample5 = echarts.init(document.getElementById('chartli5')); 6692 6693 option = { 6694 title: { 6695 text: 'Male Female Height Weight Distribution', 6696 subtext: '' 6697 }, 6698 tooltip: { 6699 trigger: 'axis', 6700 showDelay: 0, 6701 formatter: function (params) { 6702 if (params.value.length > 1) { 6703 return params.seriesName + ' :<br />' 6704 + params.value[0] + 'cm ' 6705 + params.value[1] + 'kg '; 6706 } 6707 else { 6708 return params.seriesName + ' :<br />' 6709 + params.name + ' : ' 6710 + params.value + 'kg '; 6711 } 6712 }, 6713 axisPointer: { 6714 show: true, 6715 type: 'cross', 6716 lineStyle: { 6717 type: 'dashed', 6718 width: 1 6719 } 6720 } 6721 }, 6722 legend: { 6723 data: ['Female', 'Male'] 6724 }, 6725 toolbox: { 6726 show: true, 6727 feature: { 6728 restore: { show: true, title: 'Refresh' }, 6729 //magicType: { show: true, type: ['force', 'chord'] }, 6730 saveAsImage: { show: true, title: 'Save As Image' } 6731 } 6732 }, 6733 xAxis: [ 6734 { 6735 type: 'value', 6736 scale: true, 6737 axisLabel: { 6738 formatter: '{value} cm' 6739 } 6740 } 6741 ], 6742 yAxis: [ 6743 { 6744 type: 'value', 6745 scale: true, 6746 axisLabel: { 6747 formatter: '{value} kg' 6748 } 6749 } 6750 ], 6751 series: [ 6752 { 6753 name: 'Female', 6754 type: 'scatter', 6755 itemStyle: { 6756 normal: { 6757 color: '#0eb1eb', 6758 } 6759 }, 6760 data: [[161.2, 51.6], [167.5, 59.0], [159.5, 49.2], [157.0, 63.0], [155.8, 53.6], 6761 [170.0, 59.0], [159.1, 47.6], [166.0, 69.8], [176.2, 66.8], [160.2, 75.2], 6762 [172.5, 55.2], [170.9, 54.2], [172.9, 62.5], [153.4, 42.0], [160.0, 50.0], 6763 [147.2, 49.8], [168.2, 49.2], [175.0, 73.2], [157.0, 47.8], [167.6, 68.8], 6764 [159.5, 50.6], [175.0, 82.5], [166.8, 57.2], [176.5, 87.8], [170.2, 72.8], 6765 [174.0, 54.5], [173.0, 59.8], [179.9, 67.3], [170.5, 67.8], [160.0, 47.0], 6766 [154.4, 46.2], [162.0, 55.0], [176.5, 83.0], [160.0, 54.4], [152.0, 45.8], 6767 [162.1, 53.6], [170.0, 73.2], [160.2, 52.1], [161.3, 67.9], [166.4, 56.6], 6768 [168.9, 62.3], [163.8, 58.5], [167.6, 54.5], [160.0, 50.2], [161.3, 60.3], 6769 [167.6, 58.3], [165.1, 56.2], [160.0, 50.2], [170.0, 72.9], [157.5, 59.8], 6770 [167.6, 61.0], [160.7, 69.1], [163.2, 55.9], [152.4, 46.5
6770], [157.5, 54.3], 6771 [168.3, 54.8], [180.3, 60.7], [165.5, 60.0], [165.0, 62.0], [164.5, 60.3], 6772 [156.0, 52.7], [160.0, 74.3], [163.0, 62.0], [165.7, 73.1], [161.0, 80.0], 6773 [162.0, 54.7], [166.0, 53.2], [174.0, 75.7], [172.7, 61.1], [167.6, 55.7], 6774 [151.1, 48.7], [164.5, 52.3], [163.5, 50.0], [152.0, 59.3], [169.0, 62.5], 6775 [164.0, 55.7], [161.2, 54.8], [155.0, 45.9], [170.0, 70.6], [176.2, 67.2], 6776 [170.0, 69.4], [162.5, 58.2], [170.3, 64.8], [164.1, 71.6], [169.5, 52.8], 6777 [163.2, 59.8], [154.5, 49.0], [159.8, 50.0], [173.2, 69.2], [170.0, 55.9], 6778 [161.4, 63.4], [169.0, 58.2], [166.2, 58.6], [159.4, 45.7], [162.5, 52.2], 6779 [159.0, 48.6], [162.8, 57.8], [159.0, 55.6], [179.8, 66.8], [162.9, 59.4], 6780 [161.0, 53.6], [151.1, 73.2], [168.2, 53.4], [168.9, 69.0], [173.2, 58.4], 6781 [171.8, 56.2], [178.0, 70.6], [164.3, 59.8], [163.0, 72.0], [168.5, 65.2], 6782 [166.8, 56.6], [172.7, 105.2], [163.5, 51.8], [169.4, 63.4], [167.8, 59.0], 6783 [159.5, 47.6], [167.6, 63.0], [161.2, 55.2], [160.0, 45.0], [163.2, 54.0], 6784 [162.2, 50.2], [161.3, 60.2], [149.5, 44.8], [157.5, 58.8], [163.2, 56.4], 6785 [172.7, 62.0], [155.0, 49.2], [156.5, 67.2], [164.0, 53.8], [160.9, 54.4], 6786 [162.8, 58.0], [167.0, 59.8], [160.0, 54.8], [160.0, 43.2], [168.9, 60.5], 6787 [158.2, 46.4], [156.0, 64.4], [160.0, 48.8], [167.1, 62.2], [158.0, 55.5], 6788 [167.6, 57.8], [156.0, 54.6], [162.1, 59.2], [173.4, 52.7], [159.8, 53.2], 6789 [170.5, 64.5], [159.2, 51.8], [157.5, 56.0], [161.3, 63.6], [162.6, 63.2], 6790 [160.0, 59.5], [168.9, 56.8], [165.1, 64.1], [162.6, 50.0], [165.1, 72.3], 6791 [166.4, 55.0], [160.0, 55.9], [152.4, 60.4], [170.2, 69.1], [162.6, 84.5], 6792 [170.2, 55.9], [158.8, 55.5], [172.7, 69.5], [167.6, 76.4], [162.6, 61.4], 6793 [167.6, 65.9], [156.2, 58.6], [175.2, 66.8], [172.1, 56.6], [162.6, 58.6], 6794 [160.0, 55.9], [165.1, 59.1], [182.9, 81.8], [166.4, 70.7], [165.1, 56.8], 6795 [177.8, 60.0], [165.1, 58.2], [175.3, 72.7], [154.9, 54.1], [158.8, 49.1], 6796 [172.7, 75.9], [168.9, 55.0], [161.3, 57.3], [167.6, 55.0], [165.1, 65.5], 6797 [175.3, 65.5], [157.5, 48.6], [163.8, 58.6], [167.6, 63.6], [165.1, 55.2], 6798 [165.1, 62.7], [168.9, 56.6], [162.6, 53.9], [164.5, 63.2], [176.5, 73.6], 6799 [168.9, 62.0], [175.3, 63.6], [159.4, 53.2], [160.0, 53.4], [170.2, 55.0], 6800 [162.6, 70.5], [167.6, 54.5], [162.6, 54.5], [160.7, 55.9], [160.0, 59.0], 6801 [157.5, 63.6], [162.6, 54.5], [152.4, 47.3], [170.2, 67.7], [165.1, 80.9], 6802 [172.7, 70.5], [165.1, 60.9], [170.2, 63.6], [170.2, 54.5], [170.2, 59.1], 6803 [161.3, 70.5], [167.6, 52.7], [167.6, 62.7], [165.1, 86.3], [162.6, 66.4], 6804 [152.4, 67.3], [168.9, 63.0], [170.2, 73.6], [175.2, 62.3], [175.2, 57.7], 6805 [160.0, 55.4], [165.1, 104.1], [174.0, 55.5], [170.2, 77.3], [160.0, 80.5], 6806 [167.6, 64.5], [167.6, 72.3], [167.6, 61.4], [154.9, 58.2], [162.6, 81.8], 6807 [175.3, 63.6], [171.4, 53.4], [157.5, 54.5], [165.1, 53.6], [160.0, 60.0], 6808 [174.0, 73.6], [162.6, 61.4], [174.0, 55.5], [162.6, 63.6], [161.3, 60.9], 6809 [156.2, 60.0], [149.9, 46.8], [169.5, 57.3], [160.0, 64.1], [175.3, 63.6], 6810 [169.5, 67.3], [160.0, 75.5], [172.7, 68.2], [162.6, 61.4], [157.5, 76.8], 6811 [176.5, 71.8], [164.4, 55.5], [160.7, 48.6], [174.0, 66.4], [163.8, 67.3] 6812 ], 6813 markPoint: { 6814 data: [ 6815 { type: 'max', name: 'Max:' }, 6816 { type: 'min', name: 'Min:' } 6817 ] 6818 }, 6819 markLine: { 6820 data: [ 6821 { type: 'average', name: 'Avarage' } 6822 ] 6823 } 6824 }, 6825 { 6826 name: 'Male', 6827 type: 'scatter', 6828 itemStyle: { 6829 normal: { 6830 color: '#fe403b', 6831 } 6832 }, 6833 data: [[174.0, 65.6], [175.3, 71.8], [193.5, 80.7], [186.5, 72.6], [187.2, 78.8], 6834 [181.5, 74.8], [184.0, 86.4], [184.5, 78.4], [175.0, 62.0], [184.0, 81.6],
6835 [180.0, 76.6], [177.8, 83.6], [192.0, 90.0], [176.0, 74.6], [174.0, 71.0], 6836 [184.0, 79.6], [192.7, 93.8], [171.5, 70.0], [173.0, 72.4], [176.0, 85.9], 6837 [176.0, 78.8], [180.5, 77.8], [172.7, 66.2], [176.0, 86.4], [173.5, 81.8], 6838 [178.0, 89.6], [180.3, 82.8], [180.3, 76.4], [164.5, 63.2], [173.0, 60.9], 6839 [183.5, 74.8], [175.5, 70.0], [188.0, 72.4], [189.2, 84.1], [172.8, 69.1], 6840 [170.0, 59.5], [182.0, 67.2], [170.0, 61.3], [177.8, 68.6], [184.2, 80.1], 6841 [186.7, 87.8], [171.4, 84.7], [172.7, 73.4], [175.3, 72.1], [180.3, 82.6], 6842 [182.9, 88.7], [188.0, 84.1], [177.2, 94.1], [172.1, 74.9], [167.0, 59.1], 6843 [169.5, 75.6], [174.0, 86.2], [172.7, 75.3], [182.2, 87.1], [164.1, 55.2], 6844 [163.0, 57.0], [171.5, 61.4], [184.2, 76.8], [174.0, 86.8], [174.0, 72.2], 6845 [177.0, 71.6], [186.0, 84.8], [167.0, 68.2], [171.8, 66.1], [182.0, 72.0], 6846 [167.0, 64.6], [177.8, 74.8], [164.5, 70.0], [192.0, 101.6], [175.5, 63.2], 6847 [171.2, 79.1], [181.6, 78.9], [167.4, 67.7], [181.1, 66.0], [177.0, 68.2], 6848 [174.5, 63.9], [177.5, 72.0], [170.5, 56.8], [182.4, 74.5], [197.1, 90.9], 6849 [180.1, 93.0], [175.5, 80.9], [180.6, 72.7], [184.4, 68.0], [175.5, 70.9], 6850 [180.6, 72.5], [177.0, 72.5], [177.1, 83.4], [181.6, 75.5], [176.5, 73.0], 6851 [175.0, 70.2], [174.0, 73.4], [165.1, 70.5], [177.0, 68.9], [192.0, 102.3], 6852 [176.5, 68.4], [169.4, 65.9], [182.1, 75.7], [179.8, 84.5], [175.3, 87.7], 6853 [184.9, 86.4], [177.3, 73.2], [167.4, 53.9], [178.1, 72.0], [168.9, 55.5], 6854 [157.2, 58.4], [180.3, 83.2], [170.2, 72.7], [177.8, 64.1], [172.7, 72.3], 6855 [165.1, 65.0], [186.7, 86.4], [165.1, 65.0], [174.0, 88.6], [175.3, 84.1], 6856 [185.4, 66.8], [177.8, 75.5], [180.3, 93.2], [180.3, 82.7], [177.8, 58.0], 6857 [177.8, 79.5], [177.8, 78.6], [177.8, 71.8], [177.8, 116.4], [163.8, 72.2], 6858 [188.0, 83.6], [198.1, 85.5], [175.3, 90.9], [166.4, 85.9], [190.5, 89.1], 6859 [166.4, 75.0], [177.8, 77.7], [179.7, 86.4], [172.7, 90.9], [190.5, 73.6], 6860 [185.4, 76.4], [168.9, 69.1], [167.6, 84.5], [175.3, 64.5], [170.2, 69.1], 6861 [190.5, 108.6], [177.8, 86.4], [190.5, 80.9], [177.8, 87.7
6861], [184.2, 94.5], 6862 [176.5, 80.2], [177.8, 72.0], [180.3, 71.4], [171.4, 72.7], [172.7, 84.1], 6863 [172.7, 76.8], [177.8, 63.6], [177.8, 80.9], [182.9, 80.9], [170.2, 85.5], 6864 [167.6, 68.6], [175.3, 67.7], [165.1, 66.4], [185.4, 102.3], [181.6, 70.5], 6865 [172.7, 95.9], [190.5, 84.1], [179.1, 87.3], [175.3, 71.8], [170.2, 65.9], 6866 [193.0, 95.9], [171.4, 91.4], [177.8, 81.8], [177.8, 96.8], [167.6, 69.1], 6867 [167.6, 82.7], [180.3, 75.5], [182.9, 79.5], [176.5, 73.6], [186.7, 91.8], 6868 [188.0, 84.1], [188.0, 85.9], [177.8, 81.8], [174.0, 82.5], [177.8, 80.5], 6869 [171.4, 70.0], [185.4, 81.8], [185.4, 84.1], [188.0, 90.5], [188.0, 91.4], 6870 [182.9, 89.1], [176.5, 85.0], [175.3, 69.1], [175.3, 73.6], [188.0, 80.5], 6871 [188.0, 82.7], [175.3, 86.4], [170.5, 67.7], [179.1, 92.7], [177.8, 93.6], 6872 [175.3, 70.9], [182.9, 75.0], [170.8, 93.2], [188.0, 93.2], [180.3, 77.7], 6873 [177.8, 61.4], [185.4, 94.1], [168.9, 75.0], [185.4, 83.6], [180.3, 85.5], 6874 [174.0, 73.9], [167.6, 66.8], [182.9, 87.3], [160.0, 72.3], [180.3, 88.6], 6875 [167.6, 75.5], [186.7, 101.4], [175.3, 91.1], [175.3, 67.3], [175.9, 77.7], 6876 [175.3, 81.8], [179.1, 75.5], [181.6, 84.5], [177.8, 76.6], [182.9, 85.0], 6877 [177.8, 102.5], [184.2, 77.3], [179.1, 71.8], [176.5, 87.9], [188.0, 94.3], 6878 [174.0, 70.9], [167.6, 64.5], [170.2, 77.3], [167.6, 72.3], [188.0, 87.3], 6879 [174.0, 80.0], [176.5, 82.3], [180.3, 73.6], [167.6, 74.1], [188.0, 85.9], 6880 [180.3, 73.2], [167.6, 76.3], [183.0, 65.9], [183.0, 90.9], [179.1, 89.1], 6881 [170.2, 62.3], [177.8, 82.7], [179.1, 79.1], [190.5, 98.2], [177.8, 84.1], 6882 [180.3, 83.2], [180.3, 83.2] 6883 ], 6884 markPoint: { 6885 data: [ 6886 { type: 'max', name: 'Max:' }, 6887 { type: 'min', name: 'Min:' } 6888 ] 6889 }, 6890 markLine: { 6891 data: [ 6892 { type: 'average', name: 'Avarage' } 6893 ] 6894 } 6895 } 6896 ] 6897 }; 6898 6899 chartliexample5.setOption(option); 6900 6901 6902 6903 } 6904 if ($('#chartli7').length && jQuery()) { 6905 var chartliexample7 = echarts.init(document.getElementById('chartli7')); 6906 6907 option = { 6908 title: { 6909 text: 'A site user to access source', 6910 subtext: '', 6911 x: 'center' 6912 }, 6913 tooltip: { 6914 trigger: 'item', 6915 formatter: "{a} <br />{b} : {c} ({d}%)" 6916 }, 6917 legend: { 6918 orient: 'vertical', 6919 x: 'left', 6920 data: ['Direct Interview', 'E-mail Marketing', 'Advertising Alliance', 'Video Ads', 'Search Engine'] 6921 }, 6922 toolbox: { 6923 show: true, 6924 feature: { 6925 mark: { show: true }, 6926 dataView: { show: true, readOnly: false }, 6927 magicType: { 6928 show: true, 6929 type: ['pie', 'funnel'], 6930 option: { 6931 funnel: { 6932 x: '25%', 6933 width: '50%', 6934 funnelAlign: 'left', 6935 max: 1548 6936 } 6937 } 6938 }, 6939 restore: { show: true }, 6940 saveAsImage: { show: true } 6941 } 6942 }, 6943 color: ['#0eb1eb', '#fe403b', '#323a44', '#06D6A0', '#FFD166'], 6944 calculable: true, 6945 series: [ 6946 { 6947 name: 'Access Sources', 6948 type: 'pie', 6949 radius: '55%', 6950 center: ['50%', '60%'], 6951 data: [ 6952 { value: 335, name: 'Direct Interview' }, 6953 { value: 310, name: 'E-mail Marketing' },
6954 { value: 234, name: 'Advertising Alliance' }, 6955 { value: 135, name: 'Video Ads' }, 6956 { value: 1548, name: 'Search Engine' } 6957 ] 6958 } 6959 ] 6960 }; 6961 6962 chartliexample7.setOption(option); 6963 } 6964 if ($('#chartli8').length && jQuery()) { 6965 var chartliexample8 = echarts.init(document.getElementById('chartli8')); 6966 6967 option = { 6968 tooltip: { 6969 trigger: 'item', 6970 formatter: "{a} <br />{b} : {c} ({d}%)" 6971 }, 6972 legend: { 6973 orient: 'vertical', 6974 x: 'left', 6975 data: ['Direct Interview', 'E-mail Marketing', 'Advertising Alliance', 'Video Ads', 'Search Engine'] 6976 }, 6977 toolbox: { 6978 show: true, 6979 feature: { 6980 mark: { show: true }, 6981 dataView: { show: true, readOnly: false }, 6982 magicType: { 6983 show: true, 6984 type: ['pie', 'funnel'], 6985 option: { 6986 funnel: { 6987 x: '25%', 6988 width: '50%', 6989 funnelAlign: 'center', 6990 max: 1548 6991 } 6992 } 6993 }, 6994 restore: { show: true }, 6995 saveAsImage: { show: true } 6996 } 6997 }, 6998 6999 color: ['#0eb1eb', '#fe403b', '#323a44', '#06D6A0', '#FFD166'], 7000 calculable: true, 7001 series: [ 7002 { 7003 name: 'Access Sources', 7004 type: 'pie', 7005 radius: ['50%', '70%'], 7006 itemStyle: { 7007 normal: { 7008 label: { 7009 show: false 7010 }, 7011 labelLine: { 7012 show: false 7013 } 7014 }, 7015 emphasis: { 7016 label: { 7017 show: true, 7018 position: 'center', 7019 textStyle: { 7020 fontSize: '15', 7021 fontWeight: 'bold' 7022 } 7023 } 7024 } 7025 }, 7026 data: [ 7027 { value: 335, name: 'Direct Interview' }, 7028 { value: 310, name: 'E-mail Marketing' }, 7029 { value: 234, name: 'Advertising Alliance' }, 7030 { value: 135, name: 'Video Ads' }, 7031 { value: 1548, name: 'Search Engine' } 7032 ] 7033 } 7034 ] 7035 }; 7036 7037 chartliexample8.setOption(option); 7038 } 7039 if ($('#chartli9').length && jQuery()) { 7040 var chartliexample9 = echarts.init(document.getElementById('chartli9')); 7041 option = { 7042 tooltip: { 7043 trigger: 'item', 7044 formatter: "{a} <br />{b} : {c} ({d}%)" 7045 }, 7046 legend: { 7047 orient: 'vertical', 7048 x: 'left', 7049 data: ['Through', 'E-mail Marketing', 'Advertising Alliance', 'Video Ads', 'Yandex', 'Google', 'Bing', 'Other'] 7050 }, 7051 toolbox: { 7052 show: true, 7053 feature: { 7054 mark: { show: true }, 7055 dataView: { show: true, readOnly: false }, 7056 magicType: { 7057 show: true, 7058 type: ['pie', 'funnel'] 7059 }, 7060 restore: { show: true }, 7061 saveAsImage: { show: true } 7062 } 7063 }, 7064 color: ['#0eb1eb', '#fe403b', '#323a44', '#069dd4', '#e53029', '#556273', '#06D6A0', '#FFD166'], 7065 7066 7067 calculable: false, 7068 series: [ 7069 { 7070 name: 'Access Sources', 7071 type: 'pie', 7072 selectedMode: 'single', 7073 radius: [0, 70], 7074 7075 // for funnel 7076 x: '20%', 7077 width: '40%', 7078 funnelAlign: 'right', 7079 max: 1548, 7080 7081 itemStyle: { 7082 normal: { 7083 label: { 7084 position: 'inner' 7085 }, 7086 labelLine: { 7087 show: false 7088 } 7089 } 7090 }, 7091 data: [ 7092 { value: 650, name: 'Yandex' }, 7093 { value: 379, name: 'Bing' }, 7094 { value: 1500, name: 'Google', selected: true } 7095 ] 7096 }, 7097 { 7098 name: 'Access Sources', 7099 type: 'pie', 7100 radius: [100, 140], 7101 7102 // for funnel 7103 x: '60%', 7104 width: '35%', 7105 funnelAlign: 'left', 7106 max: 1048, 7107 7108 data: [ 7109 { value: 335, name: 'Through' }, 7110 { value: 310, name: 'E-mail Marketing' },
7111 { value: 234, name: 'Advertising Alliance' }, 7112 { value: 135, name: 'Video Ads' }, 7113 { value: 20, name: 'Yandex' }, 7114 { value: 1500, name: 'Google' }, 7115 { value: 147, name: 'Bing' }, 7116 { value: 102, name: 'Other' } 7117 ] 7118 } 7119 ] 7120 }; 7121 7122 chartliexample9.setOption(option); 7123 7124 } 7125 if ($('#chartli10').length && jQuery()) { 7126 var chartliexample10 = echarts.init(document.getElementById('chartli10')); 7127 7128 option = { 7129 title: { 7130 text: 'Budget vs expenses(Budget vs spending)', 7131 subtext: '' 7132 }, 7133 tooltip: { 7134 trigger: 'axis' 7135 }, 7136 legend: { 7137 orient: 'vertical', 7138 x: 'right', 7139 y: 'bottom', 7140 data: ['Budget allocation(Allocated Budget)', 'The actual cost(Actual Spending)'] 7141 }, 7142 toolbox: { 7143 show: true, 7144 feature: { 7145 restore: { show: true, title: 'Refresh' }, 7146 //magicType: { show: true, type: ['force', 'chord'] }, 7147 saveAsImage: { show: true, title: 'Save As Image' } 7148 } 7149 }, 7150 color: ['#0eb1eb', '#fe403b'], 7151 polar: [ 7152 { 7153 indicator: [ 7154 { text: 'Sales(Sales)', max: 6000 }, 7155 { text: 'Administration(Administration)', max: 16000 }, 7156 { text: 'Information Technology(Information Techology)', max: 30000 }, 7157 { text: 'Customer Support(Customer Support)', max: 38000 }, 7158 { text: 'Development(Development)', max: 52000 }, 7159 { text: 'Marketing(Marketing)', max: 25000 } 7160 ] 7161 } 7162 ], 7163 calculable: true, 7164 series: [ 7165 { 7166 name: 'Budget vs expenses(Budget vs spending)', 7167 type: 'radar', 7168 data: [ 7169 { 7170 value: [4300, 10000, 28000, 35000, 50000, 19000], 7171 name: 'Budget allocation(Allocated Budget)' 7172 }, 7173 { 7174 value: [5000, 14000, 28000, 31000, 42000, 21000], 7175 name: 'The actual cost(Actual Spending)' 7176 } 7177 ] 7178 } 7179 ] 7180 }; 7181 7182 chartliexample10.setOption(option); 7183 } 7184 if ($('#chartli12').length && jQuery()) { 7185 var myChart = echarts.init(document.getElementById('chartli12')); 7186 myChart.showLoading(); 7187 7188 $.get('plugins/chartli/maps/world.json', function (usaJson) { 7189 myChart.hideLoading(); 7190 7191 echarts.registerMap('world', usaJson, { 7192 7193 }); 7194 option = { 7195 title: { 7196 text: 'World Population', 7197 subtext: 'Datas Are Not Real', 7198 sublink: '', 7199 left: 'right' 7200 }, 7201 tooltip: { 7202 trigger: 'item', 7203 showDelay: 0, 7204 transitionDuration: 0.2, 7205 formatter: function (params) { 7206 var value = (params.value + '').split('.'); 7207 value = value[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g, '$1,'); 7208 return params.seriesName + '<br />' + params.name + ': ' + value; 7209 } 7210 }, 7211 visualMap: { 7212 left: 'right', 7213 min: 0, 7214 max: 1000000, 7215 inRange: { 7216 color: ['#0eb1eb', '#fe403b', '#323a44'] 7217 }, 7218 text: ['High', 'Low'], 7219 calculable: true 7220 }, 7221 7222 toolbox: { 7223 show: true, 7224 //orient: 'vertical', 7225 left: 'left', 7226 top: 'top', 7227 feature: { 7228 dataView: { readOnly: false }, 7229 restore: {}, 7230 saveAsImage: {} 7231 } 7232 }, 7233 series: [ 7234 { 7235 name: 'World Population', 7236 type: 'map', 7237 map: 'world', 7238 itemStyle: { 7239 emphasis: { label: { show: false } } 7240 }, 7241 zoom: 1.2, 7242 data: [ 7243 { name: 'Afghanistan', value: 28397.812 }, 7244 { name: 'Angola', value: 19549.124 }, 7245 { name: 'Albania', value: 3150.143 }, 7246 { name: 'United Arab Emirates', value: 8441.537 }, 7247 { name: 'Argentina', value: 40374.224 }, 7248 { name: 'Armenia', value: 2963.496 }, 7249 { name: 'French Southern and Antarctic Lands', value: 268.065 }, 7250 { name: 'Australia', value: 22404.488 }, 7251 { name: 'Austria', value: 8401.924 }, 7252 { name: 'Azerbaijan', value: 9094.718 }, 7253 { name: 'Burundi', value: 9232.753 }, 7254 { name: 'Belgium', value: 10941.288 }, 7255 { name: 'Benin', value: 9509.798 }, 7256 { name: 'Burkina Faso', value: 15540.284 }, 7257 { name: 'Bangladesh', value: 151125.475 }, 7258 { name: 'Bulgaria', value: 7389.175 }, 7259 { name: 'The Bahamas', value: 66402.316 }, 7260 { name: 'Bosnia and Herzegovina', value: 3845.929 }, 7261 { name: 'Belarus', value: 9491.07 }, 7262 { name: 'Belize', value: 308.595 }, 7263 { name: 'Bermuda', value: 64.951 }, 7264 { name: 'Bolivia', value: 716.939 }, 7265 { name: 'Brazil', value: 195210.154 }, 7266 { name: 'Brunei', value: 27.223 }, 7267 { name: 'Bhutan', value: 716.939 }, 7268 { name: 'Botswana', value: 1969.341 }, 7269 { name: 'Central African Republic', value: 4349.921 }, 7270 { name: 'Canada', value: 34126.24 }, 7271 { name: 'Switzerland', value: 7830.534 }, 7272 { name: 'Chile', value: 17150.76 }, 7273 { name: 'China', value: 1359821.465 }, 7274 { name: 'Ivory Coast', value: 60508.978 }, 7275 { name: 'Cameroon', value: 20624.343 }, 7276 { name: 'Democratic Republic of the Congo', value: 62191.161 }, 7277 { name: 'Republic of the Congo', value: 3573.024 }, 7278 { name: 'Colombia', value: 46444.798 }, 7279 { name: 'Costa Rica', value: 4669.685 }, 7280 { name: 'Cuba', value: 11281.768 }, 7281 { name: 'Northern Cyprus', value: 1.468 }, 7282 { name: 'Cyprus', value: 1103.685 }, 7283 { name: 'Czech Republic', value: 10553.701 }, 7284 { name: 'Germany', value: 83017.404 }, 7285 { name: 'Djibouti', value: 834.036 }, 7286 { name: 'Denmark', value: 5550.959 }, 7287 { name: 'Dominican Republic', value: 10016.797 }, 7288 { name: 'Algeria', value: 37062.82 }, 7289 { name: 'Ecuador', value: 15001.072 }, 7290 { name: 'Egypt', value: 78075.705 }, 7291 { name: 'Eritrea', value: 5741.159 }, 7292 { name: 'Spain', value: 46182.038 }, 7293 { name: 'Estonia', value: 1298.533 }, 7294 { name: 'Ethiopia', value: 87095.281 }, 7295 { name: 'Finland', value: 5367.693 }, 7296 { name: 'Fiji', value: 860.559 }, 7297 { name: 'Falkland Islands', value: 49.581 }, 7298 { name: 'France', value: 63230.866 }, 7299 { name: 'Gabon', value: 1556.222 }, 7300 { name: 'United Kingdom', value: 62066.35 }, 7301 { name: 'Georgia', value: 4388.674 }, 7302 { name: 'Ghana', value: 24262.901 }, 7303 { name: 'Guinea', value: 10876.033 }, 7304 { name: 'Gambia', value: 1680.64 }, 7305 { name: 'Guinea Bissau', value: 10876.033 }, 7306 { name: 'Equatorial Guinea', value: 696.167 }, 7307 { name: 'Greece', value: 11109.999 }, 7308 { name: 'Greenland', value: 56.546 }, 7309 { name: 'Guatemala', value: 14341.576 }, 7310 { name: 'French Guiana', value: 231.169 }, 7311 { name: 'Guyana', value: 786.126 }, 7312 { name: 'Honduras', value: 7621.204 }, 7313 { name: 'Croatia', value: 4338.027 }, 7314 { name: 'Haiti', value: 9896.4 }, 7315 { name: 'Hungary', value: 10014.633 }, 7316 { name: 'Indonesia', value: 240676.485 }, 7317 { name: 'India', value: 1205624.648 }, 7318 { name: 'Ireland', value: 4467.561 }, 7319 { name: 'Iran', value: 240676.485 }, 7320 { name: 'Iraq', value: 30962.38 }, 7321 { name: 'Iceland', value: 318.042 }, 7322 { name: 'Israel', value: 7420.368 }, 7323 { name: 'Italy', value: 60508.978 }, 7324 { name: 'Jamaica', value: 2741.485 }, 7325 { name: 'Jordan', value: 6454.554 }, 7326 { name: 'Japan', value: 127352.833 }, 7327 { name: 'Kazakhstan', value: 15921.127 }, 7328 { name: 'Kenya', value: 40909.194 }, 7329 { name: 'Kyrgyzstan', value: 5334.223 }, 7330 { name: 'Cambodia', value: 14364.931 }, 7331 { name: 'South Korea', value: 51452.352 }, 7332 { name: 'Kosovo', value: 97.743 }, 7333 { name: 'Kuwait', value: 2991.58 }, 7334 { name: 'Laos', value: 6395.713 }, 7335 { name: 'Lebanon', value: 4341.092 }, 7336 { name: 'Liberia', value: 3957.99 }, 7337 { name: 'Libya', value: 6040.612 }, 7338 { name: 'Sri Lanka', value: 20758.779 }, 7339 { name: 'Lesotho', value: 2008.921 }, 7340 { name: 'Lithuania', value: 3068.457 }, 7341 { name: 'Luxembourg', value: 507.885 }, 7342 { name: 'Lithuania', value: 2090.519 }, 7343 { name: 'Morocco', value: 31642.36 }, 7344 { name: 'Moldova', value: 103.619 }, 7345 { name: 'Madagascar', value: 21079.532 }, 7346 { name: 'Mexico', value: 117886.404 }, 7347 { name: 'Macedonia', value: 507.885 }, 7348 { name: 'Mali', value: 13985.961 }, 7349 { name: 'Myanmar', value: 51931.231 }, 7350 { name: 'Montenegro', value: 620.078 }, 7351 { name: 'Mongolia', value: 2712.738 }, 7352 { name: 'Mozambique', value: 23967.265 }, 7353 { name: 'Mauritania', value: 3609.42 }, 7354 { name: 'Malawi', value: 15013.694 }, 7355 { name: 'Malaysia', value: 28275.835 }, 7356 { name: 'Namibia', value: 2178.967 }, 7357 { name: 'New Caledonia', value: 246.379 }, 7358 { name: 'Niger', value: 15893.746 }, 7359 { name: 'Nigeria', value: 159707.78 }, 7360 { name: 'Nicaragua', value: 5822.209 }, 7361 { name: 'Netherlands', value: 16615.243 }, 7362 { name: 'Norway', value: 4891.251 }, 7363 { name: 'Nepal', value: 26846.016 }, 7364 { name: 'New Zealand', value: 4368.136 }, 7365 { name: 'Oman', value: 2802.768 }, 7366 { name: 'Pakistan', value: 173149.306 }, 7367 { name: 'Panama', value: 3678.128 }, 7368 { name: 'Peru', value: 29262.83 }, 7369 { name: 'Philippines', value: 93444.322 }, 7370 { name: 'Papua New Guinea', value: 6858.945 }, 7371 { name: 'Poland', value: 38198.754 }, 7372 { name: 'Puerto Rico', value: 3709.671 }, 7373 { name: 'North Korea', value: 1.468 }, 7374 { name: 'Portugal', value: 10589.792 }, 7375 { name: 'Paraguay', value: 6459.721 }, 7376 { name: 'Qatar', value: 1749.713 }, 7377 { name: 'Romania', value: 21861.476 }, 7378 { name: 'Russia', value: 21861.476 }, 7379 { name: 'Rwanda', value: 10836.732 }, 7380 { name: 'Western Sahara', value: 514.648 }, 7381 { name: 'Saudi Arabia', value: 27258.387 }, 7382 { name: 'Sudan', value: 35652.002 }, 7383 { name: 'South Sudan', value: 9940.929 }, 7384 { name: 'Senegal', value: 12950.564 }, 7385 { name: 'Solomon Islands', value: 526.447 }, 7386 { name: 'Sierra Leone', value: 5751.976 }, 7387 { name: 'El Salvador', value: 6218.195 }, 7388 { name: 'Somaliland', value: 9636.173 }, 7389 { name: 'Somalia', value: 9636.173 },
7390 { name: 'Republic of Serbia', value: 3573.024 }, 7391 { name: 'Suriname', value: 524.96 }, 7392 { name: 'Slovakia', value: 5433.437 }, 7393 { name: 'Slovenia', value: 2054.232 }, 7394 { name: 'Sweden', value: 9382.297 }, 7395 { name: 'Swaziland', value: 1193.148 }, 7396 { name: 'Syria', value: 7830.534 }, 7397 { name: 'Chad', value: 11720.781 }, 7398 { name: 'Togo', value: 6306.014 }, 7399 { name: 'Thailand', value: 66402.316 }, 7400 { name: 'Tajikistan', value: 7627.326 }, 7401 { name: 'Turkmenistan', value: 5041.995 }, 7402 { name: 'East Timor', value: 10016.797 }, 7403 { name: 'Trinidad and Tobago', value: 1328.095 }, 7404 { name: 'Tunisia', value: 10631.83 }, 7405 { name: 'Turkey', value: 72137.546 }, 7406 { name: 'United Republic of Tanzania', value: 44973.33 }, 7407 { name: 'Uganda', value: 33987.213 }, 7408 { name: 'Ukraine', value: 46050.22 }, 7409 { name: 'Uruguay', value: 3371.982 }, 7410 { name: 'United States of America', value: 312247.116 }, 7411 { name: 'Uzbekistan', value: 27769.27 }, 7412 { name: 'Venezuela', value: 236.299 }, 7413 { name: 'Vietnam', value: 89047.397 }, 7414 { name: 'Vanuatu', value: 236.299 }, 7415 { name: 'West Bank', value: 13.565 }, 7416 { name: 'Yemen', value: 22763.008 }, 7417 { name: 'South Africa', value: 51452.352 }, 7418 { name: 'Zambia', value: 13216.985 }, 7419 { name: 'Zimbabwe', value: 13076.978 } 7420 ] 7421 } 7422 ] 7423 }; 7424 7425 myChart.setOption(option); 7426 }); 7427 7428 } 7429 if ($('#chartli13').length && jQuery()) { 7430 var chartliexample13 = echarts.init(document.getElementById('chartli13')); 7431 chartliexample1option = { 7432 tooltip: { 7433 formatter: "{a} <br/>{b} : {c}%" 7434 }, 7435 toolbox: { 7436 feature: { 7437 restore: {}, 7438 saveAsImage: {} 7439 } 7440 }, 7441 color: ['#0eb1eb', '#fe403b', '#323a44'], 7442 series: [ 7443 { 7444 name: 'Speed', 7445 type: 'gauge', 7446 detail: { formatter: '{value}%' }, 7447 data: [{ value: 50, name: 'Km/h' }], 7448 axisLine: { // Coordinate axis 7449 lineStyle: { // Property lineStyle control line style 7450 color: [[0.2, '#0eb1eb'], [0.8, '#fe403b'], [1, '#323a44']], 7451 7452 } 7453 }, 7454 } 7455 ] 7456 }; 7457 7458 timeTicket = setInterval(function () { 7459 chartliexample1option.series[0].data[0].value = (Math.random() * 100).toFixed(2) - 0; 7460 chartliexample1.setOption(chartliexample1option, true); 7461 }, 2000); 7462 7463 chartliexample13.setOption(chartliexample1option); 7464 7465 } 7466 if ($('#chartli14').length && jQuery()) { 7467 var timerTwo; 7468 var chartliexample14 = echarts.init(document.getElementById('chartli14')); 7469 7470 chartliexample14option = { 7471 tooltip: { 7472 formatter: "{a} <br />{b} : {c}%" 7473 }, 7474 toolbox: { 7475 show: true, 7476 feature: { 7477 mark: { show: false }, 7478 restore: { show: true, title: 'Refresh' }, 7479 saveAsImage: { show: true, title: 'Save As Image' } 7480 } 7481 }, 7482 series: [ 7483 { 7484 name: 'Business Indicators', 7485 type: 'gauge', 7486 splitNumber: 10, // Dividing the number of segments,The default is 5
7487 axisLine: { // Coordinate axis 7488 lineStyle: { // Property lineStyle control line style 7489 color: [[0.2, '#0eb1eb'], [0.8, '#fe403b'], [1, '#323a44']], 7490 width: 8 7491 } 7492 }, 7493 axisTick: { // Axis markers 7494 splitNumber: 10, // How much of each split segment segment 7495 length: 12, // Attribute length Control line length 7496 lineStyle: { // Property lineStyle control line style 7497 color: 'auto' 7498 } 7499 }, 7500 axisLabel: { // Axis text labels 7501 textStyle: { // The remaining properties using the global default text style 7502 color: 'auto' 7503 } 7504 }, 7505 splitLine: { // Divider 7506 show: true, // The default display, control display properties show or not 7507 length: 30, // Attribute length Control line length 7508 lineStyle: { // Property lineStyle control line style 7509 color: 'auto' 7510 } 7511 }, 7512 pointer: { 7513 width: 15 7514 }, 7515 title: { 7516 show: true, 7517 offsetCenter: [0, '-40%'], // x, y, units px 7518 textStyle: { //The remaining properties using the global default text style 7519 fontWeight: 'bolder' 7520 } 7521 }, 7522 detail: { 7523 formatter: '{value}%', 7524 textStyle: { // The remaining properties using the global default text style 7525 color: 'auto', 7526 fontWeight: 'bolder' 7527 } 7528 }, 7529 data: [{ value: 80, name: 'Completion Rate' }] 7530 } 7531 ] 7532 }; 7533 7534 timeTicket = setInterval(function () { 7535 chartliexample14option.series[0].data[0].value = (Math.random() * 100).toFixed(2) - 0; 7536 chartliexample14.setOption(chartliexample14option, true); 7537 }, 2000); 7538 7539 chartliexample14.setOption(chartliexample14option); 7540 } 7541 if ($('#chartli15').length && jQuery()) { 7542 var chartliexample15 = echarts.init(document.getElementById('chartli15')); 7543 7544 option = { 7545 title: { 7546 text: '', 7547 subtext: '' 7548 }, 7549 tooltip: { 7550 trigger: 'item', 7551 formatter: "{a} <br />{b} : {c}%" 7552 }, 7553 toolbox: { 7554 show: true, 7555 feature: { 7556 restore: { show: true, title: 'Refresh' }, 7557 //magicType: { show: true, type: ['force', 'chord'] }, 7558 saveAsImage: { show: true, title: 'Save As Image' } 7559 } 7560 }, 7561 legend: { 7562 data: ['Porshe', 'Jeep', 'Alfa Romeo', 'Jaguar', 'Opel'] 7563 }, 7564 color: ['#0eb1eb', '#fe403b', '#323a44', '#06D6A0', '#FFD166'], 7565 calculable: true, 7566 series: [ 7567 { 7568 name: 'Funnel', 7569 type: 'funnel', 7570 width: '40%', 7571 data: [ 7572 { value: 60, name: 'Alfa Romeo' }, 7573 { value: 40, name: 'Jaguar' }, 7574 { value: 20, name: 'Opel' }, 7575 { value: 80, name: 'Jeep' }, 7576 { value: 100, name: 'Porshe' } 7577 ] 7578 }, 7579 { 7580 name: 'Pyramid', 7581 type: 'funnel', 7582 x: '50%', 7583 sort: 'ascending', 7584 itemStyle: { 7585 normal: { 7586 7587 label: { 7588 position: 'left' 7589 } 7590 } 7591 }, 7592 data: [ 7593 { value: 60, name: 'Alfa Romeo' }, 7594 { value: 40, name: 'Jaguar' }, 7595 { value: 20, name: 'Opel' }, 7596 { value: 80, name: 'Jeep' }, 7597 { value: 100, name: 'Porshe' } 7598 ] 7599 } 7600 ] 7601 }; 7602 7603 chartliexample15.setOption(option); 7604 } 7605 }; 7606/* 7607 ======================================================= 7608 Fliping Pricing Tables 7609 ======================================================= 7610 */ 7611function flipingpricingtables() { 7612 if (jQuery(".flip-pricing-tables").length > 0 && jQuery()) { 7613 $(".flip-pricing-tables").each(function() { 7614 var height = 0; 7615 jQuery(this).find("div[class*='-column']").each(function() { 7616 if (height < jQuery(this).outerHeight()) { 7617 height = jQuery(this).outerHeight(); 7618 } 7619 }); 7620 jQuery(this).css("height", height + "px"); 7621 }); 7622 $(".flip-pricing-tables").flip({ 7623 speed: 440 7624 }); 7625 } 7626}; 7627/* 7628======================================================= 7629 Video Play on Click 7630======================================================= 7631 */ 7632function videoPlay() { 7633 if (jQuery(".single-video-play").length > 0 && jQuery()) {
7634 jQuery(".single-video-play").off("click").on("click", function(e) { 7635 e.preventDefault(); 7636 var item = jQuery(this), 7637 parent = jQuery(item.attr("data-id")), 7638 frame = item.attr("data-frame"), 7639 video = item.attr("data-video"), 7640 videoHtml = '', 7641 videoImage = item.attr("data-image"); 7642 if (frame === "1") { 7643 /* Video Is Frame */ 7644 videoHtml = '<div class="video-blog-wrapper"><iframe src="' + video + '" frameborder="0" allowfullscreen></iframe></div>' 7645 } else { 7646 /* Video Is HTML 5 */ 7647 video = JSON.parse(item.attr("data-video")); 7648 videoHtml += '<div class="video-blog-wrapper">'; 7649 if (videoImage != undefined) { 7650 videoHtml += '<video poster="' + videoImage + '" preload="auto" loop autoplay>'; 7651 } else { 7652 videoHtml += '<video preload="auto" loop autoplay controls>'; 7653 } 7654 for (key in video) { 7655 videoHtml += "<source src='" + video[key] + "' type='video/" + key + "'/>"; 7656 } 7657 videoHtml += '</video>'; 7658 videoHtml += '</div>'; 7659 } 7660 parent.html(videoHtml); 7661 }); 7662 } 7663}; 7664/* 7665======================================================= 7666 Process Steps 7667======================================================= 7668 */ 7669 function phprocessSteps(){ 7670 if (jQuery(".process-step-1").length > 0 && jQuery()){ 7671 7672 $('.tsf-wizard-1.process-step-1').tsfWizard({ 7673 stepEffect: 'basic', 7674 stepStyle: 'style1', 7675 navPosition: 'top', 7676 stepTransition: true, 7677 showButtons: true, 7678 showStepNum: true, 7679 height: '300px' 7680 }); 7681 7682 } 7683 if (jQuery(".process-step-2").length > 0 && jQuery()){ 7684 7685 $('.tsf-wizard-1.process-step-2').tsfWizard({ 7686 stepEffect: 'basic', 7687 stepStyle: 'style2', 7688 navPosition: 'top', 7689 stepTransition: true, 7690 showButtons: true, 7691 showStepNum: true, 7692 height: '300px' 7693 }); 7694 } 7695 if (jQuery(".process-step-3").length > 0 && jQuery()){ 7696 7697 $('.tsf-wizard-1.process-step-3').tsfWizard({ 7698 stepEffect: 'basic', 7699 stepStyle: 'style3', 7700 navPosition: 'top', 7701 stepTransition: true, 7702 showButtons: true, 7703 showStepNum: true, 7704 height: '300px' 7705 }); 7706 } 7707 if (jQuery(".process-step-4").length > 0 && jQuery()){ 7708 7709 $('.tsf-wizard-1.process-step-4').tsfWizard({ 7710 stepEffect: 'basic', 7711 stepStyle: 'style4', 7712 navPosition: 'top', 7713 stepTransition: true, 7714 showButtons: true, 7715 showStepNum: true, 7716 height: '300px' 7717 }); 7718 7719 } 7720 if (jQuery(".process-step-5").length > 0 && jQuery()){ 7721 7722 $('.tsf-wizard-1.process-step-5').tsfWizard({ 7723 stepEffect: 'basic', 7724 stepStyle: 'style5', 7725 navPosition: 'top', 7726 stepTransition: true, 7727 showButtons: true, 7728 showStepNum: true, 7729 height: '300px' 7730 }); 7731 7732 } 7733 if (jQuery(".process-step-6").length > 0 && jQuery()){ 7734 7735 $('.tsf-wizard-1.process-step-6').tsfWizard({ 7736 stepEffect: 'basic', 7737 stepStyle: 'style5_circle', 7738 navPosition: 'top', 7739 stepTransition: true, 7740 showButtons: true, 7741 showStepNum: true, 7742 height: '300px' 7743 }); 7744 7745 } 7746 if (jQuery(".process-step-7").length > 0 && jQuery()){ 7747 7748 $('.tsf-wizard-1.process-step-7').tsfWizard({ 7749 stepEffect: 'basic', 7750 stepStyle: 'style6', 7751 navPosition: 'top', 7752 stepTransition: true, 7753 showButtons: true, 7754 showStepNum: true, 7755 height: '300px' 7756 }); 7757 7758 } 7759 if (jQuery(".process-step-8").length && jQuery()){ 7760 7761 $('.tsf-wizard-1.process-step-8').tsfWizard({ 7762 stepEffect: 'basic', 7763 stepStyle: 'style7_borderTop', 7764 navPosition: 'top', 7765 stepTransition: true, 7766 showButtons: true, 7767 showStepNum: true, 7768 height: '300px' 7769 }); 7770 7771 } 7772 if (jQuery(".process-step-9").length && jQuery()){ 7773 $('.tsf-wizard-1.process-step-9').tsfWizard({ 7774 stepEffect: 'basic', 7775 stepStyle: 'style7_borderRight', 7776 navPosition: 'top', 7777 stepTransition: true, 7778 showButtons: true, 7779 showStepNum: true, 7780 height: '300px' 7781 }); 7782 } 7783 7784 if (jQuery(".process-step-10").length && jQuery()){ 7785 $('.tsf-wizard-1.process-step-10').tsfWizard({ 7786 stepEffect: 'basic', 7787 stepStyle: 'style7_borderBottom', 7788 navPosition: 'top', 7789 stepTransition: true, 7790 showButtons: true, 7791 showStepNum: true, 7792 height: '300px' 7793 }); 7794 } 7795 7796 if (jQuery(".process-step-11").length && jQuery()){ 7797 $('.tsf-wizard-1.process-step-11').tsfWizard({ 7798 stepEffect: 'basic', 7799 stepStyle: 'style7_borderLeft', 7800 navPosition: 'top', 7801 stepTransition: true, 7802 showButtons: true, 7803 showStepNum: true, 7804 height: '300px' 7805 }); 7806 } 7807 7808 if (jQuery(".process-step-12").length && jQuery()){ 7809 7810 $('.tsf-wizard-1.process-step-12').tsfWizard({ 7811 7812 stepEffect: 'basic', 7813 stepStyle: 'style7_borderTop_circle', 7814 navPosition: 'top', 7815 stepTransition: true, 7816 showButtons: true, 7817 showStepNum: true, 7818 height: '300px' 7819 }); 7820 } 7821 7822 if (jQuery(".process-step-13").length && jQuery()){ 7823 $('.tsf-wizard-1.process-step-13').tsfWizard({ 7824 stepEffect: 'basic', 7825 stepStyle: 'style7_borderRight_circle', 7826 navPosition: 'top', 7827 stepTransition: true, 7828 showButtons: true, 7829 showStepNum: true, 7830 height: '300px' 7831 }); 7832 } 7833 7834 if (jQuery(".process-step-14").length && jQuery()){ 7835 $('.tsf-wizard-1.process-step-14').tsfWizard({ 7836 stepEffect: 'basic', 7837 stepStyle: 'style7_borderBottom_circle', 7838 navPosition: 'top', 7839 stepTransition: true, 7840 showButtons: true, 7841 showStepNum: true, 7842 height: '300px' 7843 }); 7844 } 7845 7846 if (jQuery(".process-step-15").length && jQuery()){ 7847 $('.tsf-wizard-1.process-step-15').tsfWizard({ 7848 stepEffect: 'basic', 7849 stepStyle: 'style7_borderLeft_circle', 7850 navPosition: 'top', 7851 stepTransition: true, 7852 showButtons: true, 7853 showStepNum: true, 7854 height: '300px' 7855 }); 7856 } 7857 7858 if (jQuery(".process-step-16").length && jQuery()){ 7859 $('.tsf-wizard-1.process-step-16').tsfWizard({ 7860 stepEffect: 'basic', 7861 stepStyle: 'style8', 7862 navPosition: 'top', 7863 stepTransition: true, 7864 showButtons: true, 7865 showStepNum: true, 7866 height: '300px' 7867 }); 7868 7869 } 7870 7871 if (jQuery(".process-step-17").length && jQuery()){ 7872 $('.tsf-wizard-1.process-step-17').tsfWizard({ 7873 stepEffect: 'basic', 7874 stepStyle: 'style8_circle', 7875 navPosition: 'top', 7876 stepTransition: true, 7877 showButtons: true, 7878 showStepNum: true, 7879 height: '300px' 7880 }); 7881 } 7882 7883 if (jQuery(".process-step-18").length && jQuery()){ 7884 $('.tsf-wizard-1.process-step-18').tsfWizard({ 7885 stepEffect: 'basic', 7886 stepStyle: 'style9', 7887 navPosition: 'top', 7888 stepTransition: true, 7889 showButtons: true, 7890 showStepNum: true, 7891 height: '300px' 7892 }); 7893 } 7894 7895 if (jQuery(".process-step-19").length && jQuery()){ 7896 $('.tsf-wizard-1.process-step-19').tsfWizard({ 7897 stepEffect: 'basic', 7898 stepStyle: 'style10', 7899 navPosition: 'top', 7900 stepTransition: true, 7901 showButtons: true, 7902 showStepNum: true, 7903 height: '300px' 7904 }); 7905 } 7906 7907 if (jQuery(".process-step-20").length && jQuery()){ 7908 $('.tsf-wizard-1.process-step-20').tsfWizard({ 7909 stepEffect: 'basic', 7910 stepStyle: 'style11', 7911 navPosition: 'top', 7912 stepTransition: true, 7913 showButtons: true, 7914 showStepNum: true, 7915 height: '300px' 7916 }); 7917 } 7918 7919 if (jQuery(".process-step-21").length && jQuery()){ 7920 $('.tsf-wizard-1.process-step-21').tsfWizard({ 7921 stepEffect: 'basic', 7922 stepStyle: 'style1', 7923 navPosition: 'top', 7924 manySteps: true, 7925 stepTransition: true, 7926 showButtons: true, 7927 showStepNum: true, 7928 height: '300px' 7929 }); 7930 } 7931 } 7932/* 7933======================================================= 7934 Date Time Picker 7935======================================================= 7936*/ 7937function phflatpicker() { 7938 if (jQuery(".flatpickr").length > 0 && jQuery()) { 7939 $(".flatpickr").flatpickr(); 7940 } 7941} 7942/* 7943======================================================= 7944 Tiny MCE Editors 7945======================================================= 7946*/ 7947function phtinymceeditors() { 7948 var jsFileLocation = ""; 7949 var path = location.pathname.split("/"); 7950 for (i = 0; i < path.length; i++) { 7951 if (path[i].indexOf(".html") === -1) { 7952 jsFileLocation += path[i] + "/"; 7953 } 7954 } 7955 if (typeof(base_url) == "undefined") { 7956 var base_url = location.protocol + '//' + location.host + '/'; 7957 } 7958 base_url += jsFileLocation; 7959 if (jQuery("#html").length && jQuery()) { 7960 $("#html").tinymce({ 7961 script_url: base_url + 'plugins/tinymce-bootstrap-plugin/examples/tinymce/tinymce.min.js', 7962 document_base_url: base_url, 7963 plugins: ["bootstrap"], 7964 bootstrapConfig: { 7965 'bootstrapCssPath': base_url + 'plugins/texteditor/plugins/bootstrap/css/bootstrap.min.css', 7966 'imagesPath': '/plugins/tinymce-bootstrap-plugin/examples/img/' 7967 }, 7968 toolbar: "bootstrap", 7969 theme: "modern" 7970 }); 7971 } 7972 /** Darkly TINYMCE */ 7973 if (jQuery("#html-darkly").length && jQuery()) { 7974 $("#html-darkly").tinymce({ 7975 script_url: base_url + 'plugins/tinymce-bootstrap-plugin/examples/tinymce/tinymce.min.js', 7976 document_base_url: base_url, 7977 plugins: ["bootstrap"], 7978 bootstrapConfig: { 7979 'bootstrapCssPath': base_url + 'plugins/texteditor/plugins/bootstrap/themes/darkly/bootstrap.min.css', 7980 'imagesPath': '/plugins/tinymce-bootstrap-plugin/examples/img/' 7981 }, 7982 toolbar: "bootstrap", 7983 theme: "modern" 7984 }); 7985 } 7986 /** Flatly TINYMCE */ 7987 if (jQuery("#html-flatly").length && jQuery()) { 7988 $("#html-flatly").tinymce({ 7989 script_url: base_url + 'plugins/tinymce-bootstrap-plugin/examples/tinymce/tinymce.min.js', 7990 document_base_url: base_url, 7991 plugins: ["bootstrap"], 7992 bootstrapConfig: { 7993 'bootstrapCssPath': base_url + 'plugins/texteditor/plugins/bootstrap/themes/flatly/bootstrap.min.css', 7994 'imagesPath': '/plugins/tinymce-bootstrap-plugin/examples/img/' 7995 }, 7996 toolbar: "bootstrap", 7997 theme: "modern" 7998 }); 7999 } 8000 /** Slate TINYMCE */ 8001 if (jQuery("#html-slate").length && jQuery()) { 8002 $("#html-slate").tinymce({ 8003 script_url: base_url + 'plugins/tinymce-bootstrap-plugin/examples/tinymce/tinymce.min.js', 8004 document_base_url: base_url, 8005 plugins: ["bootstrap"], 8006 bootstrapConfig: { 8007 'bootstrapCssPath': base_url + 'plugins/texteditor/plugins/bootstrap/themes/slate/bootstrap.min.css', 8008 'imagesPath': '/plugins/tinymce-bootstrap-plugin/examples/img/' 8009 }, 8010 toolbar: "bootstrap", 8011 theme: "modern" 8012 }); 8013 } 8014}; 8015 8016 8017 8018/* 8019======================================================= 8020 Mega Menu Same Height on Hover 8021======================================================= 8022*/ 8023jQuery(window).load(function() { 8024 blogSameHeight(); 8025}); 8026 8027 8028 /** 8029 * jQuery function to prevent default anchor event and take the href * and the title to make a share pupup 8030 * 8031 * @param {[object]} e [Mouse event] 8032 * @param {[integer]} intWidth [Popup width defalut 500] 8033 * @param {[integer]} intHeight [Popup height defalut 400] 8034 * @param {[boolean]} blnResize [Is popup resizeabel default true] 8035 */ 8036 function customerPopup(e, obj) { 8037 8038 // Prevent default anchor event 8039 e.preventDefault(); 8040 8041 // Set values for window 8042 intWidth = '500'; 8043 intHeight = '400'; 8044 strResize = 'yes'; 8045 8046 // Set title and open popup with focus on it
8047 var strTitle = ((typeof obj.attr('title') !== 'undefined') ? obj.attr('title') : 'Social Share'), 8048 strParam = 'width=' + intWidth + ',height=' + intHeight + ',resizable=' + strResize, 8049 objWindow = window.open(obj.attr('href'), strTitle, strParam).focus(); 8050 } 8051 8052 /* ================================================== */ 8053 8054 $(document).ready(function ($) { 8055 $('.popup-share').on("click", function(e) { 8056 obj = $(this); 8057 customerPopup(e, obj); 8058 8059 }); 8060 }); 8061 8062 8063function blogSameHeight() { 8064 if ($('.boxes-same-height').length && jQuery()) { 8065 jQuery(".blog-desc").css("height", "auto"); 8066 jQuery(".horizontal-post").css("height", "100%"); 8067 jQuery(".boxes-same-height").each(function() { 8068 var height = 0; 8069 jQuery(this).find(".blog-desc").each(function() { 8070 console.log(jQuery(this).css("height")); 8071 if (jQuery(this).height() > height) { 8072 height = jQuery(this).css("height"); 8073 } 8074 jQuery(".horizontal-post").css("height", height); 8075 }); 8076 }); 8077 jQuery(".blogfitrows").isotope('reloadItems'); 8078 } 8079} 8080loadingInterval2 = setInterval(function() { 8081 if (pageloader) { 8082 phwowanimation(); 8083 jQuery("body").toggleClass("body-preloader", false); 8084 clearInterval(loadingInterval2); 8085 } 8086}, 50); 8087 8088function sameHeightClass() { 8089 if (jQuery(".same-height-box").length > 0 && jQuery(".same-height").length > 0 && jQuery()) { 8090 jQuery(".same-height-box").each(function() { 8091 var height = 0; 8092 jQuery(this).find(".same-height").each(function() { 8093 console.log(jQuery(this).css("height")); 8094 if (jQuery(this).height() > height) { 8095 height = jQuery(this).css("height"); 8096 } 8097 jQuery(".same-height").css("height", height); 8098 }); 8099 }); 8100 } 8101} 8102jQuery(document).ready(function() { 8103 phfullheight(); 8104 phfullheightbox(); 8105 8106 phpiechart(); 8107 phfullheightblog(); 8108 phiconsubtextnavigation(); 8109}); 8110/* 8111======================================================= 8112 Call Functions 8113======================================================= 8114*/ 8115$(window).load(function() { 8116 phpagepreloader(); 8117 8118 if (jQuery("#post-content").length > 0) { 8119 jQuery('#post-content p').selectionSharer(); 8120 jQuery('#post-content h1').selectionSharer(); 8121 jQuery('#post-content h2').selectionSharer(); 8122 jQuery('#post-content h3').selectionSharer(); 8123 jQuery('#post-content h4').selectionSharer(); 8124 jQuery('#post-content h5').selectionSharer(); 8125 jQuery('#post-content h6').selectionSharer(); 8126 jQuery('#post-content span').selectionSharer(); 8127 jQuery('#post-content blockquote').selectionSharer(); 8128 } 8129 // Page logo 8130 $('.vlt-nav').find('a.brand-modern').html($('.header-content').find('.brand-modern').html()); 8131 $('#footer').find('a.brand-modern').html($('.header-content').find('.brand-modern').html()); 8132 phcomingsoonetimer(); 8133 phnavigation(); 8134 phnavigationleftright(); 8135 //phcustomselect(); 8136 phnicescroll(); 8137 phpagescrollanimation(); 8138 phscrolltotop(); 8139 phsliderpricefilter(); 8140 phflexsliderfullscreen(); 8141 phflexslidersingleshop(); 8142 phflexsliderthumbnails(); 8143 phflexslidersinglepost(); 8144 phcontactformcollapse(); 8145 phlinkprevent(); 8146 phpagetitleopacity(); 8147 phbloghovereffect(); 8148 phblogreadhovereffect(); 8149 phptooltip(); 8150 phpopover(); 8151 phprocessSteps(); 8152 phflatpicker(); 8153 flipingpricingtables(); 8154 phcontactformeffect(); 8155 phhomeblogsimpleeffect(); 8156 phsearchcollapse(); 8157 phsidebarsticky(); 8158 phrevolutionslider(); 8159 phrevolutionsliderfull(); 8160 phrevolutionsliderfull600(); 8161 phrevolutionslidertravel(); 8162 phrevolutionsliderhero(); 8163 phrevolutionsliderteam(); 8164 phrevolutionsliderparallax(); 8165 phrevolutionsliderfullbullets(); 8166 phrevolutionsliderfullthumbs(); 8167 phrevolutionslidergalleryfood(); 8168 phrevolutionslidergalleryhightlights(); 8169 phrevolutionslidergallerysimple(); 8170 phrevolutionslidergallerymedia(); 8171 phrevolutionsliderhosting(); 8172 phrevolutionslidergym2(); 8173 phrevolutionslidernews(); 8174 phrevolutionslideronepage(); 8175 phrevolutionsliderphotogallery(); 8176 phrevolutionsliderscrolleffect(); 8177 phrevolutionsliderclassicfull(); 8178 phrevolutionslidertouch(); 8179 phrevolutionsliderverticalbullet(); 8180 phrevolutionsintroliderfull(); 8181 phrevolutionslidernotgeneric(); 8182 phrevolutionslidershop(); 8183 phrevolutionsliderrestaurant1(); 8184 phrevolutionsliderrestaurant2(); 8185 phcounters(); 8186 phparallax(); 8187 phfiltertoselect(); 8188 phtabsreloadgmap(); 8189 phflexsliderportfolio(); 8190 phflexsliderclients(); 8191 phshoplayoutswitch(); 8192 phportfoliolayoutswitch(); 8193 phshoplayoutlistfix() 8194 phportfoliofilter(); 8195 phswipebox(); 8196 phproductcounter(); 8197 phgooglemap(); 8198 phaddcartcounter(); 8199 phshoptitleeffect(); 8200 phportfoliotitleeffect(); 8201 phdraggablepanel(); 8202 phtexteditor(); 8203 phloadmore(); 8204 phcontactvalidation(); 8205 phfullpageplugin(); 8206 phanimatedmodule(); 8207 phparallaxvideo(); 8208 phshophovereffect(); 8209 phcarttitleeffect(); 8210 phonepagenav(); 8211 phscrollspy(); 8212 phverticalcenterelement(); 8213 phnavaccordion(); 8214 phelementsticky(); 8215 phwishlistshopselect(); 8216 phswiperslider(); 8217 phcardslider(); 8218 phportfolioanimationslide(); 8219 pharrowanimated(); 8220 phlayerslider(); 8221 phmasterslider(); 8222 phroyalslider(); 8223 phowlcarouselslider(); 8224 phheadersticky(); 8225 // phaudioplayer(); 8226 slickslider(); 8227 phtestimonialsingle(); 8228 phaccordionSlider(); 8229 verticaltimeline(); 8230 phslickarrows(); 8231 phcheckbox(); 8232 rightsidenavigation(); 8233 leftsidenavigation(); 8234 countDownNew(); 8235 bootstrapDataTable(); 8236 vivusSvgAnimations();
8237 // fullCalendar(); 8238 mouseMovement(); 8239 phprocessSteps(); 8240 phflatpicker(); 8241 pizzaChats(); 8242 googlecharts(); 8243 flotcharts(); 8244 morrischarts(); 8245 chartlicharts(); 8246 processMultiSteps(); 8247 galleriaPlugin(); 8248 socialShareClick(); 8249 sameHeightClass(); 8250 phportfoliofitrows(); 8251 phgalleryfitrows(); 8252 phportfoliomasonry(); 8253 phblogmasonry(); 8254 phmasonryblogmixed(); 8255 phmasonryblog(); 8256 phshopcategoriesmasonry(); 8257 phportfoliomasonrymixed(); 8258 phshopsort(); 8259 phshopsortmasonry(); 8260 phblogfitrows(); 8261 stickyElements(); 8262 phelementstickyposttile(); 8263 phprogressbar(); 8264 videoPlay(); 8265 phtinymceeditors(); 8266}); 8267jQuery(window).resize(function() { 8268 phportfoliofitrows(); 8269 phgalleryfitrows(); 8270 phportfoliomasonry(); 8271 phwowanimationoff(); 8272 phblogmasonry(); 8273 phmasonryblogmixed(); 8274 phmasonryblog(); 8275 phshopcategoriesmasonry(); 8276 phportfoliomasonrymixed(); 8277 phshopsort(); 8278 phshopsortmasonry(); 8279 phblogmasonryResize(); 8280 phmasonryblogmixedResize(); 8281 phmasonryblogResize(); 8282 phblogfitrowsResize(); 8283 phshopsortmasonryResize(); 8284 phshopsortResize(); 8285 phfullheightbox(); 8286 phfiltertoselect(); 8287 phheadersticky(); 8288 flipingpricingtables(); 8289}); 8290 8291function customLoadMoreCallback() { 8292 jQuery(window).trigger('resize'); 8293 phnicescroll(); 8294 phpagescrollanimation(); 8295 phfullheight(); 8296 phfullheightbox(); 8297 phscrolltotop(); 8298 phsliderpricefilter(); 8299 phflexsliderfullscreen(); 8300 phflexslidersingleshop(); 8301 phflexsliderthumbnails(); 8302 phflexslidersinglepost(); 8303 phlinkprevent(); 8304 phpagetitleopacity(); 8305 phbloghovereffect(); 8306 phblogreadhovereffect(); 8307 phparallax(); 8308 phprocessSteps(); 8309 phflexsliderportfolio(); 8310 phflexsliderclients(); 8311 phshoplayoutswitch(); 8312 phportfoliolayoutswitch(); 8313 phshoplayoutlistfix() 8314 phportfoliofilter(); 8315 phswipebox(); 8316 phproductcounter(); 8317 phgooglemap(); 8318 phaddcartcounter(); 8319 phshoptitleeffect(); 8320 phportfoliotitleeffect(); 8321 phdraggablepanel(); 8322 phtexteditor(); 8323 phfullpageplugin(); 8324 phanimatedmodule(); 8325 phparallaxvideo(); 8326 phshophovereffect(); 8327 phcarttitleeffect(); 8328 phonepagenav(); 8329 phscrollspy(); 8330 phverticalcenterelement(); 8331 phnavaccordion(); 8332 phwishlistshopselect(); 8333 phswiperslider(); 8334 phcardslider(); 8335 phportfolioanimationslide(); 8336 pharrowanimated(); 8337 slickslider(); 8338 phtestimonialsingle(); 8339 phaccordionSlider(); 8340 phportfoliofitrows(); 8341 phgalleryfitrows(); 8342 phportfoliomasonry(); 8343 phblogmasonry(); 8344 phmasonryblogmixed(); 8345 phmasonryblog(); 8346 phshopcategoriesmasonry(); 8347 phportfoliomasonrymixed(); 8348 phshopsort(); 8349 phshopsortmasonry(); 8350 phblogfitrows(); 8351 verticaltimeline(); 8352 phslickarrows(); 8353 blogSameHeight(); 8354 phcheckbox(); 8355 rightsidenavigation(); 8356 leftsidenavigation(); 8357 countDownNew(); 8358 sameHeightClass(); 8359 socialShareClick(); 8360};
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.