PageSourceSearch

https://drciyaku.jp/js/main.js

js drciyaku.jp collected 2026-10-05 05:38:15 UTC 145,570 bytes, 3,544 lines download raw bytes

1"use strict";
2var lastScroll = 0;
3
4//var _h = '<div class="top-header-area bg-deep-pink no-padding-tb"><div class="container"><div class="row align-items-center"><div class="col-md-5 d-none align-items-center justify-content-end d-md-none d-lg-none"><div class="social-icon-style-8 d-inline-block vertical-align-middle"><ul class="medium-icon mb-0"><li class="mb-0"><a class="instagram text-white-2" href="https://www.instagram.com/drc.iyaku/" target="_blank"><i class="fab fa-instagram no-margin-right" aria-hidden="true"></i></a></li><li class="mb-0"><a class="line text-white-2" href="https://line.me/R/ti/p/%40288potuz" target="_blank"><i class="fab fa-line no-margin-right" aria-hidden="true"></i></a></li><li class="mb-0"><a class="twitter text-white-2" href="https://twitter.com/DRCiyaku" target="_blank"><img src="images/x-twitter.svg" class="fab " style="margin-bottom:3px"></a></li><li class="mb-0"><a class="youtube text-white-2" href="https://www.youtube.com/channel/UC75755iLV4Fsx5uglv9FhJg" target="_blank"><i class="fab fa-youtube no-margin-right" aria-hidden="true"></i></a></li></ul></div><div class="separator-line-verticle-extra-small bg-white display-inline-block margin-two-half-lr position-relative vertical-align-middle top-1px d-none"></div><div class="btn-group dropdown-style-1 dropdown-style-1-hover d-none"><button type="button" class="btn dropdown-toggle sm-width-100" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">日本語 <span class="caret"></span></button><ul class="dropdown-menu"><li><a href="#" title="English"><span class="icon-country usa"></span>English</a></li><li><a href="#" title="Japan"><span class="icon-country japan"></span>日本語</a></li></ul></div></div><div class="col-md-12 text-uppercase alt-font d-flex align-items-center justify-content-lg-end justify-content-center justify-content-md-center"><div class="social-icon-style-8 d-inline-block vertical-align-middle"><ul class="medium-icon mb-0"><li><a class="instagram text-white-2" href="https://www.instagram.com/drc.iyaku/" target="_blank"><i class="fab fa-instagram no-margin-right" aria-hidden="true"></i></a></li><li><a class="line text-white-2" href="https://line.me/R/ti/p/%40288potuz" target="_blank"><i class="fab fa-line no-margin-right" aria-hidden="true"></i></a></li><li><a class="twitter text-white-2" href="https://twitter.com/DRCiyaku" target="_blank"><img src="images/x-twitter.svg" class="fab fa-twitter" style="margin-bottom:3px"></a></li><li><a class="youtube text-white-2" href="https://www.youtube.com/channel/UC75755iLV4Fsx5uglv9FhJg" target="_blank"><i class="fab fa-youtube no-margin-right" aria-hidden="true"></i></a></li></ul></div><div class="separator-line-verticle-extra-small bg-white /*display-inline-block*/ margin-two-half-lr position-relative vertical-align-middle d-none d-md-none d-lg-block"></div><a href="news/news.html" class="text-link-white-2 text-black-hover line-height-normal d-none d-md-none d-lg-block" title="ニュース">ニュース</a><div class="separator-line-verticle-extra-small bg-white /*display-inline-block*/ margin-two-half-lr position-relative vertical-align-middle d-none d-md-none d-lg-block"></div><a class="btn btn-very-small btn-white-deep btn-rounded no-margin-bottom d-none" href="https://drciyaku.co.jp/index.html" target="_blank">企業サイトへ</a> <a class="btn btn-very-small btn-white-deep btn-rounded no-margin-bottom d-table d-lg-inline-block ml-2" href="https://shop.drciyaku.jp/" target="_blank">公式オンラインショップへ</a></div></div></div></div><nav class="navbar_desktop navbar navbar-default bootsnav navbar-fixed-top header-light-transparent background-transparent nav-box-width navbar-expand-lg"><div class="container nav-header-container"><div class="col-auto pl-lg-0"><a href="index.html" title="DRC" class="logo"><img src="images/drc_logo.svg" data-rjs="images/drc_logo.svg" class="logo-dark default" alt="DRC"><img src="images/drc_logo.svg" data-rjs="images/drc_logo.svg" alt="DRC" class="logo-light"></a></div><div class="col accordion-menu pl-0 pr-0"><button type="button" class="navbar-toggler collapsed" data-toggle="collapse" data-target="#navbar-collapse-toggle-1"><span class="sr-only">toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span></button><div class="navbar-collapse collapse justify-content-end" id="navbar-collapse-toggle-1"><ul id="accordion" class="nav navbar-nav navbar-left no-margin alt-font text-normal" data-in="fadeIn" data-out="fadeOut"><li class="dropdown simple-dropdown"><a href="index.html">TOP</a></li><li class="dropdown simple-dropdown"><a href="company.html">企業情報</a><i class="fas fa-angle-down dropdown-toggle" data-toggle="dropdown" aria-hidden="true"></i><ul class="dropdown-menu" role="menu"><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="company.html">企業情報<i class="fas fa-caret-right"></i></a></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="access.html">アクセス<i class="fas fa-caret-right"></i></a></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="news/news.html">ニュース<i class="fas fa-caret-right"></i></a></li></ul></li><li class="dropdown simple-dropdown"><a href="mechanism.html">ハイドロ銀チタン<sup>®</sup></a><i class="fas fa-angle-down dropdown-toggle" data-toggle="dropdown" aria-hidden="true"></i><ul class="dropdown-menu width-380" role="menu"><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="mechanism.html">メカニズム<i class="fas fa-caret-right"></i></a></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="safety.html">安全性試験について<i class="fas fa-caret-right"></i></a></li><li class="dropdown d-none"><a class="dropdown-toggle" data-toggle="dropdown" href="comic01.html">マンガで解説!ハイドロ銀チタン<sup>®</sup><i class="fas fa-caret-right"></i></a></li></ul></li><li class="dropdown simple-dropdown"><a href="mask01.html">
4製品情報</a><i class="fas fa-angle-down dropdown-toggle" data-toggle="dropdown" aria-hidden="true"></i><ul class="dropdown-menu width-380" role="menu"><li><p class="mb-0 eb15 text-deep-pink">ハイドロ銀チタン<sup>®</sup>製品</p></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="seat_sp.html">どこでもシート<i class="fas fa-caret-right"></i></a></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="mask07.html">ダイヤモンド型立体マスク<i class="fas fa-caret-right"></i></a></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="mask01.html">プリーツ型マスク<i class="fas fa-caret-right"></i></a></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="mask06.html">防御フィルター入りクールガーゼマスク<i class="fas fa-caret-right"></i></a></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="mask05.html">防御フィルタ入りソフトガーゼマスク<i class="fas fa-caret-right"></i></a></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="mask03.html">ソフトガーゼマスク<i class="fas fa-caret-right"></i></a></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="mask_brand.html">ブランドマスク<i class="fas fa-caret-right"></i></a></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="mask_character.html">キャラクターマスク<i class="fas fa-caret-right"></i></a></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="mask_original.html">オリジナル名入れマスク<i class="fas fa-caret-right"></i></a></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="aircleaner_sp.html">空気清浄機<i class="fas fa-caret-right"></i></a></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="fabric.html">繊維製品シリーズ紹介<i class="fas fa-caret-right"></i></a></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="towel.html">タオル<i class="fas fa-caret-right"></i></a></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="pillow_case.html">枕カバー<i class="fas fa-caret-right"></i></a></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="mask_case02.html">クリーンマスクケース<i class="fas fa-caret-right"></i></a></li><li class="dropdown"><a class="dropdown-toggle menu-sep-bottom" data-toggle="dropdown" href="glasses.html">メガネ<i class="fas fa-caret-right"></i></a></li></ul></li><li class="dropdown simple-dropdown"><a href="collaboration.html" title="Blog">コラボレーション企業</a><i class="fas fa-angle-down dropdown-toggle" data-toggle="dropdown" aria-hidden="true"></i></li><li class="dropdown simple-dropdown"><a href="movie.html">ムービー</a></li><li class="dropdown megamenu-fw"><a href="development_research.html">共同研究施設</a><i class="fas fa-angle-down dropdown-toggle" data-toggle="dropdown" aria-hidden="true"></i></li></ul></div></div></div></nav><nav class="navbar_mobile navbar full-width-pull-menu navbar-fixed-top no-border-top no-transition pt-2"><div class="container nav-header-container height-66px padding-three-half-lr sm-height-70px sm-padding-15px-lr"><div class="col-auto pl-0"><a href="index.html" title="DRC" class="logo"><img src="images/drc_logo.svg" data-rjs="images/drc_logo.svg" class="logo-dark default" alt="DRC"><img src="images/drc_logo.svg" data-rjs="images/drc_logo.svg" alt="DRC" class="logo-light"></a></div><div class="col pr-0"><div class="menu-wrap full-screen d-flex"><div class="col-md-6 p-0 d-none d-md-block"><div class="cover-background full-screen" style="background-image:url(images/menu-background-1.png)"><div class="opacity-medium bg-extra-dark-gray"></div><div class="position-absolute height-100 width-100 text-center"><div class="display-table height-100 width-100"><div class="display-table-cell height-100 width-100 align-middle position-relative"><a href="index.html" class="logo-holder"><img alt="" src="images/logo-white-big.png"></a><div class="position-absolute bottom-50 text-center width-100 margin-30px-bottom"><div class="text-small text-extra-medium-gray">&COPY;DRC Medicine Ltd. All Rights Reserved.</div></div></div></div></div></div></div><div class="col-md-6 p-0 bg-white full-screen"><div class="position-absolute height-100 width-100 overflow-auto"><div class="display-table height-100 width-100"><div class="display-table-cell height-100 width-100 padding-fourteen-lr alt-font link-style-2 md-padding-seven-lr sm-pad
4ding-15px-lr sm-padding-15px-top md-padding-15px-top"><ul class="font-weight-500 sm-no-padding-left"><li class="dropdown"><a href="index.html">TOP</a></li><li class="dropdown"><a href="company.html">企業情報</a></li><li class="dropdown"><a href="news/news.html">ニュース</a></li><li class="dropdown"><a href="mechanism.html">ハイドロ銀チタン<sup>®</sup></a><span data-toggle="dropdown" class="dropdown-toggle"></span><ul class="dropdown-menu font-weight-300"><li><a href="mechanism.html"><i class="fas fa-caret-right pr-2"></i>メカニズム</a></li><li><a href="safety.html"><i class="fas fa-caret-right pr-2"></i>安全性試験について</a></li><li class="d-none"><a href="comic01.html"><i class="fas fa-caret-right pr-2"></i>マンガで解説!ハイドロ銀チタン<sup>®</sup></a></li></ul></li><li class="dropdown show"><a href="mask01.html">製品情報</a><span data-toggle="dropdown" class="dropdown-toggle" aria-expanded="true"></span><ul class="dropdown-menu font-weight-300 show"><li><p class="mb-0 eb15 text-deep-pink">ハイドロ銀チタン<sup>®</sup>製品</p></li><li><a href="seat_sp.html"><i class="fas fa-caret-right pr-2"></i>どこでもシート</a></li><li><a href="mask07.html"><i class="fas fa-caret-right pr-2"></i>ダイヤモンド型立体マスク</a></li><li><a href="mask01.html"><i class="fas fa-caret-right pr-2"></i>プリーツ型マスク</a></li><li><a href="mask06.html"><i class="fas fa-caret-right pr-2"></i>防御フィルター入りクールガーゼマスク</a></li><li><a href="mask05.html"><i class="fas fa-caret-right pr-2"></i>防御フィルタ入りソフトガーゼマスク</a></li><li><a href="mask03.html"><i class="fas fa-caret-right pr-2"></i>ソフトガーゼマスク</a></li><li><a href="mask_brand.html"><i class="fas fa-caret-right pr-2"></i>ブランドマスク</a></li><li><a href="mask_character.html"><i class="fas fa-caret-right pr-2"></i>キャラクターマスク</a></li><li><a href="mask_original.html"><i class="fas fa-caret-right pr-2"></i>オリジナル名入れマスク</a></li><li><a href="fabric.html"><i class="fas fa-caret-right pr-2"></i>繊維製品シリーズ紹介</a></li><li><a href="aircleaner_sp.html"><i class="fas fa-caret-right pr-2"></i>空気清浄機</a></li><li><a href="towel.html"><i class="fas fa-caret-right pr-2"></i>タオル</a></li><li><a href="pillow_case.html"><i class="fas fa-caret-right pr-2"></i>枕カバー</a></li><li><a href="mask_case02.html"><i class="fas fa-caret-right pr-2"></i>クリーンマスクケース</a></li><li><a href="glasses.html"><i class="fas fa-caret-right pr-2"></i>メガネ</a></li></ul></li><li class="dropdown"><a href="collaboration.html">コラボレーション企業</a></li><li class="dropdown"><a href="movie.html">ムービー</a></li><li class="dropdown"><a href="development_research.html">共同研究施設</a></li><li class="dropdown"><a href="access.html">アクセス</a></li></ul></div></div></div></div></div><button class="navbar-toggler mobile-toggle pt-2" type="button" id="open-button" data-toggle="collapse" data-target=".navbar-collapse"><span></span> <span></span> <span></span></button><div class="d-none d-md-none"><div class="btn-group dropdown-style-1 dropdown-style-1-hover sp-lang-group"><button type="button" class="btn dropdown-toggle sm-width-100 sp-lang" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">日本語 <span class="caret"></span></button><ul class="dropdown-menu"><li><a href="#" title="English"><span class="icon-country usa"></span>English</a></li><li><a href="#" title="Japan"><span class="icon-country japan"></span>日本語</a></li></ul></div></div></div></div></nav>';
5//$('header').html('');
6//$("header").append(_h);
7
8//var _h = '<div class="footer-widget-area border-color-extra-light-gray border-top padding-40px-top sm-padding-30px-top"><div class="container"><div class="row mb-4"><div class="ml-auto mr-auto text-md-center sm-text-center"><div class="social-icon-style-2 d-inline-block vertical-align-middle"><div><ul class="medium-icon mb-0"><li class="mb-0"><a class="instagram text-white-2" href="https://www.instagram.com/drc.iyaku/" target="_blank"><i class="fab fa-instagram no-margin-right" aria-hidden="true"></i></a></li><li class="mb-0"><a class="line text-white-2" href="https://line.me/R/ti/p/%40288potuz" target="_blank"><i class="fab fa-line no-margin-right" aria-hidden="true"></i></a></li><li class="mb-0"><a class="twitter text-white-2" href="https://twitter.com/DRCiyaku" target="_blank"><img src="images/x-twitter.svg" class="fab " style="margin-bottom:3px"></a></li><li class="mb-0"><a class="youtube text-white-2" href="https://www.youtube.com/channel/UC75755iLV4Fsx5uglv9FhJg" target="_blank"><i class="fab fa-youtube no-margin-right" aria-hidden="true"></i></a></li></ul></div></div></div></div><div class="row padding-30px-bottom d-none"><div class="col-lg-3 widget text-left text-md-center text-lg-left md-margin-50px-bottom sm-margin-20px-bottom"><a href="index.html" class="d-inline-block"><img class="footer-logo" src="images/drc_logo.svg" alt=""></a></div></div><div class="row padding-20px-bottom">
8<div class="col-6 col-lg-11 col-md-12 mx-auto sm-pr-sm-1"><div class="row"><div class="col-lg col-md col-12 widget"><div class="widget-title alt-font eb15 text-deep-pink text-uppercase margin-15px-bottom font-weight-500">ハイドロ銀チタン<sup>®</sup><br class="d-block d-md-none d-lg-none">製品情報</div><ul class="pl-3 list-style-1 b13 mb-2"><li><a href="seat_sp.html"><i class="fas fa-caret-right pr-1"></i>どこでもシート</a></li><li><a href="mask07.html"><i class="fas fa-caret-right pr-1"></i>ダイヤモンド型立体マスク</a></li><li><a href="mask01.html"><i class="fas fa-caret-right pr-1"></i>プリーツ型マスク</a></li><li><a href="mask06.html"><i class="fas fa-caret-right pr-1"></i>防御フィルター入りクールガーゼマスク</a></li><li><a href="mask05.html"><i class="fas fa-caret-right pr-1"></i>防御フィルタ入りソフト<br class="d-block d-md-none d-lg-none">ガーゼマスク</a></li></ul></div><div class="col-lg col-md col-12 widget"><div class="widget-title alt-font eb15 text-deep-pink text-uppercase margin-15px-bottom font-weight-500 d-none d-lg-block d-md-block">&nbsp;&nbsp;</div><ul class="pl-3 list-style-1 b13 mb-2"><li><a href="mask03.html"><i class="fas fa-caret-right pr-1"></i>ソフトガーゼマスク</a></li><li><a href="aircleaner_sp.html"><i class="fas fa-caret-right pr-1"></i>空気清浄機</a></li><li><a href="fabric.html"><i class="fas fa-caret-right pr-1"></i>繊維製品シリーズ紹介</a></li><li><a href="mask_brand.html"><i class="fas fa-caret-right pr-1"></i>ブランドマスク</a></li><li><a href="mask_character.html"><i class="fas fa-caret-right pr-1"></i>キャラクターマスク</a></li></ul></div><div class="col-md-3 col-12 widget"><div class="widget-title alt-font eb15 text-deep-pink text-uppercase margin-15px-bottom font-weight-500 d-none d-lg-block d-md-block">&nbsp;&nbsp;</div><ul class="pl-3 list-style-1 b13 mb-2"><li><a href="mask_original.html"><i class="fas fa-caret-right pr-1"></i>オリジナル名入れマスク</a></li><li><a href="towel.html"><i class="fas fa-caret-right pr-1"></i>タオル</a></li><li><a href="pillow_case.html"><i class="fas fa-caret-right pr-1"></i>枕カバー</a></li><li><a href="mask_case02.html"><i class="fas fa-caret-right pr-1"></i>クリーンマスクケース</a></li><li><a href="glasses.html"><i class="fas fa-caret-right pr-1"></i>メガネ</a></li></ul></div></div></div><div class="col-6 col-lg-11 col-md-12 mx-auto sm-pl-sm-1"><div class="row padding-20px-bottom"><div class="col-lg col-md col-12 widget"><div class="widget-title alt-font eb15 text-deep-pink text-uppercase margin-15px-bottom font-weight-500">ハイドロ銀チタン<sup>®</sup></div><ul class="pl-3 list-style-1 b13 mb-2"><li><a href="mechanism.html"><i class="fas fa-caret-right pr-1"></i>メカニズム</a></li><li><a href="safety.html"><i class="fas fa-caret-right pr-1"></i>安全性試験</a></li><li class="d-none"><a href="comic01.html"><i class="fas fa-caret-right pr-1"></i>マンガで解説!<br class="d-block d-md-none d-lg-none">ハイドロ銀チタン<sup>®</sup></a></li></ul><div class="widget-title alt-font eb15 text-deep-pink text-uppercase margin-15px-bottom font-weight-500">コラボレーション企業</div><ul class="pl-3 list-style-1 b13 mb-2"><li><a href="collaboration.html"><i class="fas fa-caret-right pr-1"></i>コラボレーション企業</a></li></ul></div><div class="col-lg col-md col-12 widget"><div class="widget-title alt-font eb15 text-deep-pink text-uppercase margin-15px-bottom font-weight-500">ムービー</div><ul class="pl-3 list-style-1 b13 mb-2"><li><a href="movie.html"><i class="fas fa-caret-right pr-1"></i>ムービー</a></li></ul><div class="widget-title alt-font eb15 text-deep-pink text-uppercase margin-15px-bottom font-weight-500">共同研究施設</div><ul class="pl-3 list-style-1 b13 mb-2"><li><a href="development_research.html"><i class="fas fa-caret-right pr-1"></i>共同研究施設</a></li></ul></div><div class="col-md-3 col-12 widget"><div class="widget-title alt-font eb15 text-deep-pink text-uppercase margin-15px-bottom font-weight-500">企業情報</div><ul class="pl-3 list-style-1 b13 mb-2"><li><a href="company.html"><i class="fas fa-caret-right pr-1"></i>企業情報</a></li><li><a href="access.html"><i class="fas fa-caret-right pr-1"></i>アクセス</a></li><li><a href="faq.html"><i class="fas fa-caret-right pr-1"></i>よくある質問</a></li><li><a href="contact.html"><i class="fas fa-caret-right pr-1"></i>お問い合わせ</a></li></ul><div class="widget-title alt-font eb15 text-deep-pink text-uppercase margin-15px-bottom font-weight-500">ニュースリリース</div><ul class="pl-3 list-style-1 b13 mb-2"><li><a href="news/news.html"><i class="fas fa-caret-right pr-1"></i>ニュース一覧</a></li></ul></div></div></div></div></div></div><div class="container"><div class="border-color-extra-light-gray border-top padding-30px-top sm-padding-30px-top"><div class="row mb-4 d-none"><div class="col-lg-4 col-md-4 ml-auto mr-auto text-md-center sm-text-center"><div class="social-icon-style-3 d-inline-block vertical-align-middle"><ul class="small-icon mb-0"><li><a class="facebook" href="https://www.facebook.com/" target="_blank"><i class="fab fa-facebook-f" aria-hidden="true"></i></a></li><li><a class="twitter" href="https://twitter.com/" target="_blank"><img src="images/x-twitter.svg" class="fab fa-twitter" style="margin-bottom:3px"></a></li><li><a class="google" href="https://plus.google.com" target="_blank"><i class="fab fa-google-plus-g"></i></a></li><li><a class="instagram" href="https://instagram.com/" target="_blank"><i class="fab fa-instagram mr-0" aria-hidden="true"></i></a></li></ul></div></div></div><div class="row mb-4"><div class="col-12 col-md-12 text-medium text-center text-md-center b15"><p class="b15 mb-0 text-deep-pink">ハイドロ銀チタン<sup>®</sup>はDRC医薬の登録商標です</p></div></div><div class="row"><div class="col-12 col-md-12 ml-auto mr-auto text-small text-center text-md-centert b12"><a href="terms_of_use.html" class="text-dark-gray">利用規約</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="privacy.html" class="text-dark-gray">プライバシーポリシー</a>&nbsp;&nbsp;|&nbsp;&nbsp;<br class="d-block d-md-block d-lg-none"><a href="sitemap.html" class="text-dark-gray">サイトマップ</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="compliance.html" class="text-dark-gray">反社会勢力に対する基本方針</a></div></div></div></div><div class="container"><div class="padding-30px-top sm-padding-30px-top"><div class="row"><div class="col-12 text-small text-center b12 cc-mark">&COPY;DRC Medicine Ltd. All Rights Reserved.</div></div></div></div>';
9//$('footer').html('');
10//$('footer').append(_h);
11
12
13//check for browser os
14var isMobile = false;
15var isiPhoneiPad = false;
16if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
17    isMobile = true;
18}
19
20if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {
21    isiPhoneiPad = true;
22}
23
24function SetMegamenuPosition() {
25    if ($(window).width() > 991) {
26        setTimeout(function () {
27            var totalHeight = $('nav.navbar').outerHeight();
28            $('.mega-menu').css({ top: totalHeight });
29            if ($('.navbar-brand-top').length === 0)
30                $('.dropdown.simple-dropdown > .dropdown-menu').css({ top: totalHeight });
31        }, 200);
32    } else {
33        $('.mega-menu').css('top', '');
34        $('.dropdown.simple-dropdown > .dropdown-menu').css('top', '');
35    }
36}
37
38function pad(d) {
39    return (d < 10) ? '0' + d.toString() : d.toString();
40}
41
42function isIE() {
43    var ua = window.navigator.userAgent;
44    var msie = ua.indexOf("MSIE ");
45    if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./))  // If Internet Explorer, return version number
46    {
47        return true;
48    } else  // If another browser, return 0
49    {
50        return false;
51    }
52}
53
54//page title space
55function setPageTitleSpace() {
56    if ($('.navbar').hasClass('navbar-top') || $('nav').hasClass('navbar-fixed-top')) {
57        if ($('.top-space').length > 0) {
58            var top_space_height = $('.navbar').outerHeight();
59            if ($('.top-header-area').length > 0) {
60                top_space_height = top_space_height + $('.top-header-area').outerHeight();
61            }
62            $('.top-space').css('margin-top', top_space_height + "px");
63        }
64    }
65}
66
67//swiper button position in auto height slider
68function setButtonPosition() {
69    if ($(window).width() > 767 && $(".swiper-auto-height-container").length > 0) {
70        var leftPosition = parseInt($('.swiper-auto-height-container .swiper-slide').css('padding-left'));
71        var bottomPosition = parseInt($('.swiper-auto-height-container .swiper-slide').css('padding-bottom'));
72        var bannerWidth = parseInt($('.swiper-auto-height-container .slide-banner').outerWidth());
73        $('.navigation-area').css({ 'left': bannerWidth + leftPosition + 'px', 'bottom': bottomPosition + 'px' });
74    } else if ($(".swiper-auto-height-container").length > 0) {
75        $('.navigation-area').css({ 'left': '', 'bottom': '' });
76    }
77}
78
79$(window).on("scroll", init_scroll_navigate);
80function init_scroll_navigate() {
81
82    /*==============================================================
83     One Page Main JS - START CODE
84     =============================================================*/
85    var menu_links = $(".navbar-nav li a");
86    var scrollPos = $(document).scrollTop();
87    scrollPos = scrollPos + 60;
88    menu_links.each(function () {
89        var currLink = $(this);
90        var hasPos = currLink.attr("href").indexOf("#");
91        if (hasPos > -1) {
92            var res = currLink.attr("href").substring(hasPos);
93            if ($(res).length > 0) {
94                var refElement = $(res);
95                if (refElement.offset().top <= scrollPos && refElement.offset().top + refElement.height() > scrollPos) {
96                    menu_links.not(currLink).removeClass("active");
97                    currLink.addClass("active");
98                } else {
99                    currLink.removeClass("active");
100                }
101            }
102        }
103    });
104
105    /*==============================================================*/
106    //background color slider Start
107    /*==============================================================*/
108    var $window = $(window),
109        $body = $('.bg-background-fade'),
110        $panel = $('.color-code');
111    var scroll = $window.scrollTop() + ($window.height() / 2);
112    $panel.each(function () {
113        var $this = $(this);
114        if ($this.position().top <= scroll && $this.position().top + $this.height() > scroll) {
115            $body.removeClass(function (index, css) {
116                return (css.match(/(^|\s)color-\S+/g) || []).join(' ');
117            });
118            $body.addClass('color-' + $(this).data('color'));
119        }
120    });
121
122    /* ===================================
123     sticky nav Start
124     ====================================== */
125    var headerHeight = $('nav').outerHeight();
126    if (!$('header').hasClass('no-sticky')) {
127        if ($(document).scrollTop() >= headerHeight) {
128            $('header').addClass('sticky');
129
130        } else if ($(document).scrollTop() <= headerHeight) {
131            $('header').removeClass('sticky');
132            setTimeout(function () {
133                setPageTitleSpace();
134            }, 500);
135        }
136        SetMegamenuPosition();
137    }
138
139    /* ===================================
140     header appear on scroll up
141     ====================================== */
142    var st = $(this).scrollTop();
143    if (st > lastScroll) {
144        $('.sticky').removeClass('header-appear');
145        //  $('.dropdown.on').removeClass('on').removeClass('open').find('.dropdown-menu').fadeOut(100);
146    } else
147        $('.sticky').addClass('header-appear');
148    lastScroll = st;
149    if (lastScroll <= headerHeight)
150        $('header').removeClass('header-appear');
151}
152
153/*==============================================================
154 parallax text - START CODE
155 ==============================================================*/
156function parallax_text() {
157    var window_width = $(window).width();
158    if (window_width > 1024) {
159        if ($('.swiper-auto-slide .swiper-slide').length !== 0) {
160            $(document).on("mousemove", ".swiper-auto-slide .swiper-slide", function (e) {
161                var positionX = e.clientX;
162                var positionY = e.clientY;
163                positionX = Math.round(positionX / 10) - 80;
164                positionY = Math.round(positionY / 10) - 40;
165                $(this).find('.parallax-text').css({ 'transform': 'translate(' + positionX + 'px,' + positionY + 'px)', 'transition-duration': '0s' });
166            });
167
168            $(document).on("mouseout", ".swiper-auto-slide .swiper-slide", function (e) {
169                $('.parallax-text').css({ 'transform': 'translate(0,0)', 'transition-duration': '0.5s' });
170            });
171        }
172    }
173}
174
175/*==============================================================*/
176//Search - START CODE
177/*==============================================================*/
178function ScrollStop() {
179    return false;
180}
181function ScrollStart() {
182    return true;
183}
184function validationSearchForm() {
185    var error = true;
186    $('#search-header input[type=text]').each(function (index) {
187        if (index === 0) {
188            if ($(this).val() === null || $(this).val() === "") {
189                $("#search-header").find("input:eq(" + index + ")").css({ "border": "none", "border-bottom": "2px solid red" });
190                error = false;
191            } else {
192                $("#search-header").find("input:eq(" + index + ")").css({ "border": "none", "border-bottom": "2px solid #000" });
193            }
194        }
195    });
196    return error;
197}
198
199/*==============================================================
200 //Parallax - START CODE
201 ==============================================================*/
202function stellarParallax() {
203    if ($(window).width() > 1024) {
204        $.stellar();
205    } else {
206        $.stellar('destroy');
207        $('.parallax').css('background-position', '');
208    }
209}
210
211
212/*==============================================================
213 full screen START CODE
214 ==============================================================*/
215function fullScreenHeight() {
216    var element = $(".full-screen");
217    var $minheight = $(window).height();
218    element.parents('section').imagesLoaded(function () {
219        if ($(".top-space .full-screen").length > 0) {
220            var $headerheight = $("header nav.navbar").outerHeight();
221            $(".top-space .full-screen").css('min-height', $minheight - $headerheight);
222        } else {
223            element.css('min-height', $minheight);
224        }
225    });
226
227    var minwidth = $(window).width();
228    $(".full-screen-width").css('min-width', minwidth);
229
230    var sidebarNavHeight = $('.sidebar-nav-style-1').height() - $('.logo-holder').parent().height() - $('.footer-holder').parent().height() - 10;
231    $(".sidebar-nav-style-1 .nav").css('height', (sidebarNavHeight));
232    var style2NavHeight = parseInt($('.sidebar-part2').height() - parseInt($('.sidebar-part2 .sidebar-middle').css('padding-top')) - parseInt($('.sidebar-part2 .sidebar-middle').css('padding-bottom')) - parseInt($(".sidebar-part2 .sidebar-middle .sidebar-middle-menu .nav").css('margin-bottom')));
233    $(".sidebar-part2 .sidebar-middle .sidebar-middle-menu .nav").css('height', (style2NavHeight));
234
235
236}
237
238function SetResizeContent() {
239    //    all function call
240    SetMegamenuPosition();
241    setPageTitleSpace();
242    setButtonPosition();
243    parallax_text();
244    stellarParallax();
245    fullScreenHeight();
246    //    navClick();
247}
248
249/* ===================================
250 START RESIZE
251 ====================================== */
252$(window).resize(function (event) {
253    setTimeout(function () {
254        SetResizeContent();
255    }, 500);
256    $('.menu-back-div').each(function () {
257        $(this).attr('style', '');
258    });
259    $('.navbar-collapse').collapse('hide');
260
261    event.preventDefault();
262});
263
264/* ===================================
265 START READY
266 ====================================== */
267$(document).ready(function () {
268    "use strict";
269
270    var isOpen = false;
271
272    $(document).on('click', '#open-button', function (e) {
273
274        if (isOpen) {
275            $('body').removeClass('show-menu');
276            if ($(".full-width-pull-menu").length) {
277                $('body').removeClass('overflow-hidden');
278                $('body').removeClass('position-fixed');
279            }
280        }
281        else {
282            $('body').addClass('show-menu');
283
284            if ($(".full-width-pull-menu").length) {
285                $('body').addClass('overflow-hidden');
286                $('body').addClass('position-fixed');
287            }
288
289        }
290        isOpen = !isOpen;
291
292        return false;
293    });
294
295    $(document).on('click', '#close-button', function (e) {
296
297        if (isOpen) {
298            $('body').removeClass('show-menu');
299            if ($(".full-width-pull-menu").length) {
300                $('body').removeClass('overflow-hidden');
301                $('body').removeClass('position-fixed');
302            }
303        }
304        else {
305            $('body').addClass('show-menu');
306
307            if ($(".full-width-pull-menu").length) {
308                $('body').addClass('overflow-hidden');
309                $('body').addClass('position-fixed');
310            }
311
312        }
313        isOpen = !isOpen;
314
315        return false;
316    });
317
318    // Active class to current menu for only html
319    var pgurl = window.location.href.substr(window.location.href.lastIndexOf("/") + 1);
320    var $hash = window.location.hash.substring(1);
321
322    if ($hash) {
323        $hash = "#" + $hash;
324        pgurl = pgurl.replace($hash, "");
325    } else {
326        pgurl = pgurl.replace("#", "");
327    }
328
329    $(".nav li a").each(function () {
330        if ($(this).attr("href") == pgurl || $(this).attr("href") == pgurl + '.html') {
331            $(this).parent().addClass("active");
332            $(this).parents('li.dropdown').addClass("active");
333        }
334    });
335    $(window).scroll(function () {
336        if ($(this).scrollTop() > 150) {
337            $('.scroll-top-arrow').fadeIn('slow');
338            $('.online_shop_banner').fadeIn('slow');
339            $('.conf-button').fadeIn('slow');
340        } else {
341            $('.scroll-top-arrow').fadeOut('slow');
342            $('.online_shop_banner').fadeOut('slow');
343            $('.conf-button').fadeOut('slow');
344        }
345    });
346
347
348
349    var headerHeight = $('header').outerHeight();
350    var urlHash = location.hash;
351    if (urlHash) {
352        $('body,html').stop().scrollTop(0);
353        setTimeout(function () {
354            var target = $(urlHash);
355            var position = target.offset().top - 100;
356            $('body,html').stop().animate({ scrollTop: position }, 2000);
357        }, 500);
358    }
359
360    //Click event to scroll to top
361    $(document).on('click', '.scroll-top-arrow', function () {
362        $('html, body').animate({ scrollTop: 0 }, 800);
363        return false;
364    });
365
366    /* ===================================
367     swiper slider
368     ====================================== */
369    var swiperFull = new Swiper('.swiper-full-screen', {
370        //spaceBetween: 30,
371        centeredSlides: true,
372        autoplay: {
373            delay: 3500,
374            disableOnInteraction: false,
375        },
376        pagination: {
377            el: '.swiper-pagination',
378            clickable: true,
379        },
380        navigation: {
381            nextEl: '.swiper-button-next',
382            prevEl: '.swiper-button-prev',
383        },
384        on: {
385            resize: function () {
386                swiperFull.update();
387            }
388        }
389        /*
390                loop: true,
391                slidesPerView: 1,
392                preventClicks: true,
393                allowTouchMove: true,
394                pagination: {
395                    el: '.swiper-full-screen-pagination',
396                    clickable: false
397                },
398                autoplay: {
399                    delay: 3000
400                },
401                keyboard: {
402                    enabled: true
403                },
404                navigation: {
405                    nextEl: '.swiper-button-next',
406                    prevEl: '.swiper-button-prev'
407                },
408                on: {
409                    resize: function () {
410                        swiperFull.update();
411                    }
412                }
413                */
414    });
415    var swiperAutoFade = new Swiper('.swiper-auto-fade', {
416        allowTouchMove: true,
417        loop: true,
418        slidesPerView: 1,
419        preventClicks: false,
420        effect: 'fade',
421        autoplay: {
422            delay: 5000
423        },
424        keyboard: {
425            enabled: true
426        },
427        navigation: {
428            nextEl: '.swiper-button-next',
429            prevEl: '.swiper-button-prev'
430        },
431        pagination: {
432            el: '.swiper-auto-pagination',
433            clickable: true
434        },
435        on: {
436            resize: function () {
437                swiperAutoFade.update();
438            }
439        }
440    });
441
442    var swiperSecond = new Swiper('.swiper-slider-second', {
443        allowTouchMove: true,
444        slidesPerView: 1,
445        preventClicks: false,
446        keyboard: {
447            enabled: true
448        },
449        navigation: {
450            nextEl: '.swiper-button-next',
451            prevEl: '.swiper-button-prev'
452        },
453        pagination: {
454            el: '.swiper-pagination-second',
455            clickable: true
456        },
457        on: {
458            resize: function () {
459                swiperSecond.update();
460            }
461        }
462    });
463
464    var swiperThird = new Swiper('.swiper-slider-third', {
465        allowTouchMove: true,
466        slidesPerView: 1,
467        preventClicks: false,
468        keyboard: {
469            enabled: true
470        },
471        navigation: {
472            nextEl: '.swiper-button-next',
473            prevEl: '.swiper-button-prev'
474        },
475        pagination: {
476            el: '.swiper-pagination-third',
477            clickable: true
478        },
479        on: {
480            resize: function () {
481                swiperThird.update();
482            }
483        }
484    });
485
486    var swiperNumber = new Swiper('.swiper-number-pagination', {
487        allowTouchMove: true,
488        preventClicks: false,
489        autoplay: {
490            delay: 4000,
491            disableOnInteraction: true
492        },
493        pagination: {
494            el: '.swiper-number',
495            clickable: true,
496            renderBullet: function (index, className) {
497                return '<span class="' + className + '">' + pad((index + 1)) + '</span>';
498            }
499        },
500        on: {
501            resize: function () {
502                swiperNumber.update();
503            }
504        }
505    });
506
507    var swiperVerticalPagination = new Swiper('.swiper-vertical-pagination', {
508        allowTouchMove: true,
509        direction: 'vertical',
510        slidesPerView: 1,
511        spaceBetween: 0,
512        preventClicks: false,
513        mousewheel: {
514            mousewheel: true,
515            sensitivity: 1,
516            releaseOnEdges: true
517        },
518        navigation: {
519            nextEl: '.swiper-button-next',
520            prevEl: '.swiper-button-prev'
521        },
522        pagination: {
523            el: '.swiper-pagination-vertical',
524            clickable: true
525        },
526        on: {
527            resize: function () {
528                swiperVerticalPagination.update();
529            }
530        }
531    });
532
533    var swiperClients = new Swiper('.swiper-slider-clients', {
534        allowTouchMove: true,
535        slidesPerView: 4,
536        paginationClickable: true,
537        preventClicks: true,
538        autoplay: {
539            delay: 3000,
540            disableOnInteraction: true
541        },
542        pagination: {
543            el: null
544        },
545        breakpoints: {
546            1199: {
547                slidesPerView: 3
548            },
549            991: {
550                slidesPerView: 2
551            },
552            767: {
553                slidesPerView: 1
554            }
555        },
556        on: {
557            resize: function () {
558                swiperClients.update();
559            }
560        }
561    });
562
563    var swiperClients2 = new Swiper('.swiper-slider-clients-second', {
564        allowTouchMove: true,
565        slidesPerView: 4,
566        paginationClickable: true,
567        preventClicks: true,
568        autoplay: {
569            delay: 3000,
570            disableOnInteraction: true
571        },
572        pagination: {
573            el: null
574        },
575        breakpoints: {
576            1199: {
577                slidesPerView: 3
578            },
579            991: {
580                slidesPerView: 2
581            },
582            767: {
583                slidesPerView: 1
584            }
585        },
586        on: {
587            resize: function () {
588                swiperClients2.update();
589            }
590        }
591    });
592
593    var swiperThreeSlides = new Swiper('.swiper-three-slides', {
594        allowTouchMove: true,
595        slidesPerView: 3,
596        preventClicks: false,
597        pagination: {
598            el: '.swiper-pagination-three-slides',
599            clickable: true
600        },
601        autoplay: {
602            delay: 3000
603        },
604        keyboard: {
605            enabled: true
606        },
607        navigation: {
608            nextEl: '.swiper-three-slide-next',
609            prevEl: '.swiper-three-slide-prev'
610        },
611        breakpoints: {
612            991: {
613                slidesPerView: 2
614            },
615            767: {
616                slidesPerView: 1
617            }
618        },
619        on: {
620            resize: function () {
621                swiperThreeSlides.update();
622            }
623        }
624    });
625
626    var swiperFourSlides = new Swiper('.swiper-four-slides', {
627        allowTouchMove: true,
628        slidesPerView: 4,
629        preventClicks: false,
630        pagination: {
631            el: '.swiper-pagination-four-slides',
632            clickable: true
633        },
634        watchOverflow: true,
635        autoplay: {
636            delay: 3000
637        },
638        keyboard: {
639            enabled: true
640        },
641        navigation: {
642            nextEl: '.swiper-button-next',
643            prevEl: '.swiper-button-prev'
644        },
645        breakpoints: {
646            1199: {
647                slidesPerView: 3
648            },
649            991: {
650                slidesPerView: 2
651            },
652            767: {
653                slidesPerView: 1
654            }
655        },
656        on: {
657            resize: function () {
658                swiperFourSlides.update();
659            }
660        }
661    });
662
663    var swiperFour0Slides = new Swiper('.swiper-four0-slides', {
664        allowTouchMove: true,
665        slidesPerView: 5,
666        preventClicks: false,
667        pagination: {
668            el: '.swiper-pagination-four0-slides',
669            clickable: true
670        },
671        watchOverflow: true,
672        autoplay: {
673            delay: 3000
674        },
675        keyboard: {
676            enabled: true
677        },
678        navigation: {
679            nextEl: '.swiper-button-next',
680            prevEl: '.swiper-button-prev'
681        },
682        breakpoints: {
683            1199: {
684                slidesPerView: 5
685            },
686            991: {
687                slidesPerView: 5
688            },
689            767: {
690                slidesPerView: 5
691            }
692        },
693        on: {
694            resize: function () {
695                swiperFour0Slides.update();
696            }
697        }
698    });
699
700    var swiperFour2Slides = new Swiper('.swiper-four2-slides', {
701        allowTouchMove: true,
702        slidesPerView: 5,
703        preventClicks: false,
704        pagination: {
705            el: '.swiper-pagination-four2-slides',
706            clickable: true
707        },
708        watchOverflow: true,
709        autoplay: {
710            delay: 3000
711        },
712        keyboard: {
713            enabled: true
714        },
715        navigation: {
716            nextEl: '.swiper-button-next',
717            prevEl: '.swiper-button-prev'
718        },
719        breakpoints: {
720            1199: {
721                slidesPerView: 5
722            },
723            991: {
724                slidesPerView: 5
725            },
726            767: {
727                slidesPerView: 5
728            }
729        },
730        on: {
731            resize: function () {
732                swiperFour2Slides.update();
733            }
734        }
735    });
736
737    var swiperFour3Slides = new Swiper('.swiper-four3-slides', {
738        allowTouchMove: true,
739        slidesPerView: 5,
740        preventClicks: false,
741        pagination: {
742            el: '.swiper-pagination-four3-slides',
743            clickable: true
744        },
745        watchOverflow: true,
746        autoplay: {
747            delay: 3000
748        },
749        keyboard: {
750            enabled: true
751        },
752        navigation: {
753            nextEl: '.swiper-button-next',
754            prevEl: '.swiper-button-prev'
755        },
756        breakpoints: {
757            1199: {
758                slidesPerView: 5
759            },
760            991: {
761                slidesPerView: 5
762            },
763            767: {
764                slidesPerView: 5
765            }
766        },
767        on: {
768            resize: function () {
769                swiperFour3Slides.update();
770            }
771        }
772    });
773
774    var swiperFour4Slides = new Swiper('.swiper-four4-slides', {
775        allowTouchMove: true,
776        slidesPerView: 5,
777        preventClicks: false,
778        pagination: {
779            el: '.swiper-pagination-four4-slides',
780            clickable: true
781        },
782        watchOverflow: true,
783        autoplay: {
784            delay: 3000
785        },
786        keyboard: {
787            enabled: true
788        },
789        navigation: {
790            nextEl: '.swiper-button-next',
791            prevEl: '.swiper-button-prev'
792        },
793        breakpoints: {
794            1199: {
795                slidesPerView: 5
796            },
797            991: {
798                slidesPerView: 5
799            },
800            767: {
801                slidesPerView: 5
802            }
803        },
804        on: {
805            resize: function () {
806                swiperFour4Slides.update();
807            }
808        }
809    });
810
811    var swiperPtwoSlides = new Swiper('.swiper-ptwo-slides', {
812        allowTouchMove: true,
813        slidesPerView: 5,
814        preventClicks: false,
815        pagination: {
816            el: '.swiper-pagination-ptwo-slides',
817            clickable: true
818        },
819        watchOverflow: true,
820        autoplay: {
821            delay: 3000
822        },
823        keyboard: {
824            enabled: true
825        },
826        navigation: {
827            nextEl: '.swiper-button-next',
828            prevEl: '.swiper-button-prev'
829        },
830        breakpoints: {
831            1199: {
832                slidesPerView: 5
833            },
834            991: {
835                slidesPerView: 5
836            },
837            767: {
838                slidesPerView: 5
839            }
840        },
841        on: {
842            resize: function () {
843                swiperPtwoSlides.update();
844            }
845        }
846    });
847
848    var swiperPthreeSlides = new Swiper('.swiper-pthree-slides', {
849        allowTouchMove: true,
850        slidesPerView: 5,
851        preventClicks: false,
852        pagination: {
853            el: '.swiper-pagination-pthree-slides',
854            clickable: true
855        },
856        watchOverflow: true,
857        autoplay: {
858            delay: 3000
859        },
860        keyboard: {
861            enabled: true
862        },
863        navigation: {
864            nextEl: '.swiper-button-next',
865            prevEl: '.swiper-button-prev'
866        },
867        breakpoints: {
868            1199: {
869                slidesPerView: 5
870            },
871            991: {
872                slidesPerView: 5
873            },
874            767: {
875                slidesPerView: 5
876            }
877        },
878        on: {
879            resize: function () {
880                swiperPthreeSlides.update();
881            }
882        }
883    });
884
885    var swiperPfourSlides = new Swiper('.swiper-pfour-slides', {
886        allowTouchMove: true,
887        slidesPerView: 5,
888        preventClicks: false,
889        pagination: {
890            el: '.swiper-pagination-pfour-slides',
891            clickable: true
892        },
893        watchOverflow: true,
894        autoplay: {
895            delay: 3000
896        },
897        keyboard: {
898            enabled: true
899        },
900        navigation: {
901            nextEl: '.swiper-button-next',
902            prevEl: '.swiper-button-prev'
903        },
904        breakpoints: {
905            1199: {
906                slidesPerView: 5
907            },
908            991: {
909                slidesPerView: 5
910            },
911            767: {
912                slidesPerView: 5
913            }
914        },
915        on: {
916            resize: function () {
917                swiperPfourSlides.update();
918            }
919        }
920    });
921
922    var swiperPfiveSlides = new Swiper('.swiper-pfive-slides', {
923        allowTouchMove: true,
924        slidesPerView: 4,
925        preventClicks: false,
926        pagination: {
927            el: '.swiper-pagination-pfive-slides',
928            clickable: true
929        },
930        watchOverflow: true,
931        autoplay: {
932            delay: 3000
933        },
934        keyboard: {
935            enabled: true
936        },
937        navigation: {
938            nextEl: '.swiper-button-next',
939            prevEl: '.swiper-button-prev'
940        },
941        breakpoints: {
942            1199: {
943                slidesPerView: 3
944            },
945            991: {
946                slidesPerView: 2
947            },
948            767: {
949                slidesPerView: 1
950            }
951        },
952        on: {
953            resize: function () {
954                swiperPfiveSlides.update();
955            }
956        }
957    });
958
959    var swiperPsixSlides = new Swiper('.swiper-psix-slides', {
960        allowTouchMove: true,
961        slidesPerView: 4,
962        preventClicks: false,
963        pagination: {
964            el: '.swiper-pagination-psix-slides',
965            clickable: true
966        },
967        watchOverflow: true,
968        autoplay: {
969            delay: 3000
970        },
971        keyboard: {
972            enabled: true
973        },
974        navigation: {
975            nextEl: '.swiper-button-next',
976            prevEl: '.swiper-button-prev'
977        },
978        breakpoints: {
979            1199: {
980                slidesPerView: 3
981            },
982            991: {
983                slidesPerView: 2
984            },
985            767: {
986                slidesPerView: 1
987            }
988        },
989        on: {
990            resize: function () {
991                swiperPsixSlides.update();
992            }
993        }
994    });
995
996    var swiperDemoHeaderStyle = new Swiper('.swiper-demo-header-style', {
997        allowTouchMove: true,
998        loop: true,
999        slidesPerView: 4,
1000        preventClicks: true,
1001        slidesPerGroup: 4,
1002        pagination: {
1003            el: '.swiper-pagination-demo-header-style',
1004            clickable: true
1005        },
1006        autoplay: {
1007            delay: 3000
1008        },
1009        keyboard: {
1010            enabled: true
1011        },
1012        navigation: {
1013            nextEl: '.swiper-button-next',
1014            prevEl: '.swiper-button-prev'
1015        },
1016        breakpoints: {
1017            1199: {
1018                slidesPerGroup: 2,
1019                slidesPerView: 2
1020            },
1021            767: {
1022                slidesPerGroup: 1,
1023                slidesPerView: 1
1024            }
1025        },
1026        on: {
1027            resize: function () {
1028                swiperDemoHeaderStyle.update();
1029            }
1030        }
1031    });
1032
1033    var $swiperAutoSlideIndex = 0;
1034    var swiperAutoSlide = new Swiper('.swiper-auto-slide', {
1035        allowTouchMove: true,
1036        slidesPerView: 'auto',
1037        centeredSlides: true,
1038        spaceBetween: 80,
1039        preventClicks: false,
1040        observer: true,
1041        speed: 1000,
1042        pagination: {
1043            el: null
1044        },
1045        scrollbar: {
1046            el: '.swiper-scrollbar',
1047            draggable: true,
1048            hide: false,
1049            snapOnRelease: true
1050        },
1051        autoplay: {
1052            delay: 3000
1053        },
1054        mousewheel: {
1055            invert: false
1056        },
1057        keyboard: {
1058            enabled: true
1059        },
1060        navigation: {
1061            nextEl: '.swiper-next-style2',
1062            prevEl: '.swiper-prev-style2'
1063        },
1064        breakpoints: {
1065            1199: {
1066                spaceBetween: 60
1067            },
1068            960: {
1069                spaceBetween: 30
1070            },
1071            767: {
1072                spaceBetween: 15
1073            }
1074        },
1075        on: {
1076            resize: function () {
1077                swiperAutoSlide.update();
1078            }
1079        }
1080    });
1081
1082    if ($(window).width() > 767) {
1083        var swiperBottomScrollbarFull = new Swiper('.swiper-bottom-scrollbar-full', {
1084            allowTouchMove: true,
1085            slidesPerView: 'auto',
1086            grabCursor: true,
1087            preventClicks: false,
1088            spaceBetween: 30,
1089            keyboardControl: true,
1090            speed: 1000,
1091            pagination: {
1092                el: null
1093            },
1094            scrollbar: {
1095                el: '.swiper-scrollbar',
1096                draggable: true,
1097                hide: false,
1098                snapOnRelease: true
1099            },
1100            mousewheel: {
1101                enable: true
1102            },
1103            keyboard: {
1104                enabled: true
1105            },
1106            navigation: {
1107                nextEl: '.swiper-button-next',
1108                prevEl: '.swiper-button-prev'
1109            }
1110        });
1111    }
1112
1113    var swiperAutoHieght = new Swiper('.swiper-auto-height-container', {
1114        allowTouchMove: true,
1115        effect: 'fade',
1116        loop: true,
1117        autoHeight: true,
1118        pagination: {
1119            el: '.swiper-auto-height-pagination',
1120            clickable: true
1121        },
1122        autoplay: {
1123            delay: 3000
1124        },
1125        navigation: {
1126            nextEl: '.swiper-button-next',
1127            prevEl: '.swiper-button-prev'
1128        },
1129        on: {
1130            resize: function () {
1131                swiperAutoHieght.update();
1132            }
1133        }
1134    });
1135
1136    var swiperMultyRow = new Swiper('.swiper-multy-row-container', {
1137        allowTouchMove: true,
1138        slidesPerView: 4,
1139        spaceBetween: 15,
1140        pagination: {
1141            el: '.swiper-multy-row-pagination',
1142            clickable: true
1143        },
1144        autoplay: {
1145            delay: 3000,
1146            disableOnInteraction: true
1147        },
1148        navigation: {
1149            nextEl: '.swiper-portfolio-next',
1150            prevEl: '.swiper-portfolio-prev'
1151        },
1152        breakpoints: {
1153            991: {
1154                slidesPerView: 2
1155            },
1156            767: {
1157                slidesPerView: 1
1158            }
1159        },
1160        on: {
1161            resize: function () {
1162                swiperMultyRow.update();
1163            }
1164        }
1165    });
1166
1167    var swiperBlog = new Swiper('.swiper-blog', {
1168        allowTouchMove: true,
1169        slidesPerView: "auto",
1170        centeredSlides: true,
1171        spaceBetween: 15,
1172        preventClicks: false,
1173        loop: true,
1174        loopedSlides: 3,
1175        pagination: {
1176            el: '.swiper-blog-pagination',
1177            clickable: true
1178        },
1179        autoplay: {
1180            delay: 5000,
1181            disableOnInteraction: true
1182        },
1183        navigation: {
1184            nextEl: '.swiper-button-next',
1185            prevEl: '.swiper-button-prev'
1186        },
1187        on: {
1188            resize: function () {
1189                swiperBlog.update();
1190            }
1191        }
1192    });
1193
1194    var swiperPresentation = new Swiper('.swiper-presentation', {
1195        allowTouchMove: true,
1196        slidesPerView: 4,
1197        centeredSlides: true,
1198        spaceBetween: 30,
1199        preventClicks: true,
1200        loop: true,
1201        loopedSlides: 6,
1202        pagination: {
1203            el: '.swiper-presentation-pagination',
1204            clickable: true
1205        },
1206        autoplay: {
1207            delay: 3000,
1208            disableOnInteraction: true
1209        },
1210        keyboard: {
1211            enabled: true
1212        },
1213        navigation: {
1214            nextEl: '.swiper-button-next',
1215            prevEl: '.swiper-button-prev'
1216        },
1217        breakpoints: {
1218            991: {
1219                spaceBetween: 15,
1220                slidesPerView: 2
1221            },
1222            767: {
1223                slidesPerView: 1
1224            }
1225        },
1226        on: {
1227            resize: function () {
1228                swiperPresentation.update();
1229            }
1230        }
1231    });
1232
1233    var resizeId;
1234
1235    $(window).resize(function () {
1236        if ($(".swiper-auto-slide").length > 0 && swiperAutoSlide) {
1237            $swiperAutoSlideIndex = swiperAutoSlide.activeIndex;
1238            swiperAutoSlide.detachEvents();
1239            swiperAutoSlide.destroy(true, false);
1240            swiperAutoSlide = undefined;
1241            $(".swiper-auto-slide .swiper-wrapper").css("transform", "").css("transition-duration", "");
1242            $(".swiper-auto-slide .swiper-slide").css("margin-right", "");
1243
1244            setTimeout(function () {
1245                swiperAutoSlide = new Swiper('.swiper-auto-slide', {
1246                    allowTouchMove: true,
1247                    slidesPerView: 'auto',
1248                    centeredSlides: true,
1249                    spaceBetween: 80,
1250                    preventClicks: false,
1251                    mousewheelControl: true,
1252                    observer: true,
1253                    speed: 1000,
1254                    pagination: {
1255                        el: null
1256                    },
1257                    scrollbar: {
1258                        el: '.swiper-scrollbar',
1259                        draggable: true,
1260                        hide: false,
1261                        snapOnRelease: true
1262                    },
1263                    autoplay: {
1264                        delay: 3000
1265                    },
1266                    keyboard: {
1267                        enabled: true
1268                    },
1269                    navigation: {
1270                        nextEl: '.swiper-next-style2',
1271                        prevEl: '.swiper-prev-style2'
1272                    },
1273                    breakpoints: {
1274                        1199: {
1275                            spaceBetween: 60
1276                        },
1277                        960: {
1278                            spaceBetween: 30
1279                        },
1280                        767: {
1281                            spaceBetween: 15
1282                        }
1283                    },
1284                    on: {
1285                        resize: function () {
1286                            swiperAutoSlide.update();
1287                        }
1288                    }
1289                });
1290
1291                swiperAutoSlide.slideTo($swiperAutoSlideIndex, 1000, false);
1292            }, 1000);
1293        }
1294
1295        if ($(".swiper-bottom-scrollbar-full").length > 0) {
1296            clearTimeout(resizeId);
1297            resizeId = setTimeout(doneResizing, 1000);
1298        }
1299
1300        /* update all swiper on window resize */
1301
1302        setTimeout(function () {
1303            if ($('.swiper-full-screen').length > 0 && swiperFull) {
1304                swiperFull.update();
1305            }
1306
1307            if ($('.swiper-auto-fade').length > 0 && swiperAutoFade) {
1308                swiperAutoFade.update();
1309            }
1310
1311            if ($('.swiper-slider-second').length > 0 && swiperSecond) {
1312                swiperSecond.update();
1313            }
1314
1315            if ($('.swiper-slider-third').length > 0 && swiperThird) {
1316                swiperThird.update();
1317            }
1318
1319            if ($('.swiper-number-pagination').length > 0 && swiperNumber) {
1320                swiperNumber.update();
1321            }
1322
1323            if ($('.swiper-vertical-pagination').length > 0 && swiperVerticalPagination) {
1324                swiperVerticalPagination.update();
1325            }
1326
1327            if ($('.swiper-slider-clients').length > 0 && swiperClients) {
1328                swiperClients.update();
1329            }
1330
1331            if ($('.swiper-slider-clients-second').length > 0 && swiperClients2) {
1332                swiperClients2.update();
1333            }
1334
1335            if ($('.swiper-three-slides').length > 0 && swiperThreeSlides) {
1336                swiperThreeSlides.update();
1337            }
1338
1339            if ($('.swiper-four-slides').length > 0 && swiperFourSlides) {
1340                swiperFourSlides.update();
1341            }
1342
1343            if ($('.swiper-four0-slides').length > 0 && swiperFour0Slides) {
1344                swiperFour0Slides.update();
1345            }
1346
1347            if ($('.swiper-four2-slides').length > 0 && swiperFour2Slides) {
1348                swiperFour2Slides.update();
1349            }
1350
1351            if ($('.swiper-four3-slides').length > 0 && swiperFour3Slides) {
1352                swiperFour3Slides.update();
1353            }
1354
1355            if ($('.swiper-four4-slides').length > 0 && swiperFour4Slides) {
1356                swiperFour4Slides.update();
1357            }
1358
1359            if ($('.swiper-ptwo-slides').length > 0 && swiperPtwoSlides) {
1360                swiperPtwoSlides.update();
1361            }
1362
1363            if ($('.swiper-pthree-slides').length > 0 && swiperPthreeSlides) {
1364                swiperPthreeSlides.update();
1365            }
1366
1367            if ($('.swiper-pfour-slides').length > 0 && swiperPfourSlides) {
1368                swiperPfourSlides.update();
1369            }
1370
1371            if ($('.swiper-pfive-slides').length > 0 && swiperPfiveSlides) {
1372                swiperPfiveSlides.update();
1373            }
1374
1375            if ($('.swiper-psix-slides').length > 0 && swiperPsixSlides) {
1376                swiperPsixSlides.update();
1377            }
1378
1379            if ($('.swiper-demo-header-style').length > 0 && swiperDemoHeaderStyle) {
1380                swiperDemoHeaderStyle.update();
1381            }
1382
1383            if ($('.swiper-auto-slide').length > 0 && swiperAutoSlide) {
1384                swiperAutoSlide.update();
1385            }
1386
1387            if ($('.swiper-auto-height-container').length > 0 && swiperAutoHieght) {
1388                swiperAutoHieght.update();
1389            }
1390
1391            if ($('.swiper-multy-row-container').length > 0 && swiperMultyRow) {
1392                swiperMultyRow.update();
1393            }
1394
1395            if ($('.swiper-blog').length > 0 && swiperBlog) {
1396                swiperBlog.update();
1397            }
1398
1399            if ($('.swiper-presentation').length > 0 && swiperPresentation) {
1400                swiperPresentation.update();
1401            }
1402
1403        }, 500);
1404        if (isIE()) {
1405            setTimeout(function () {
1406                if ($('.swiper-full-screen').length > 0 && swiperFull) {
1407                    swiperFull.update();
1408                }
1409
1410                if ($('.swiper-auto-fade').length > 0 && swiperAutoFade) {
1411                    swiperAutoFade.update();
1412                }
1413
1414                if ($('.swiper-slider-second').length > 0 && swiperSecond) {
1415                    swiperSecond.update();
1416                }
1417
1418                if ($('.swiper-slider-third').length > 0 && swiperThird) {
1419                    swiperThird.update();
1420                }
1421
1422                if ($('.swiper-number-pagination').length > 0 && swiperNumber) {
1423                    swiperNumber.update();
1424                }
1425
1426                if ($('.swiper-vertical-pagination').length > 0 && swiperVerticalPagination) {
1427                    swiperVerticalPagination.update();
1428                }
1429
1430                if ($('.swiper-slider-clients').length > 0 && swiperClients) {
1431                    swiperClients.update();
1432                }
1433
1434                if ($('.swiper-slider-clients-second').length > 0 && swiperClients2) {
1435                    swiperClients2.update();
1436                }
1437
1438                if ($('.swiper-three-slides').length > 0 && swiperThreeSlides) {
1439                    swiperThreeSlides.update();
1440                }
1441
1442                if ($('.swiper-four-slides').length > 0 && swiperFourSlides) {
1443                    swiperFourSlides.update();
1444                }
1445
1446                if ($('.swiper-four0-slides').length > 0 && swiperFour0Slides) {
1447                    swiperFour0Slides.update();
1448                }
1449
1450                if ($('.swiper-four2-slides').length > 0 && swiperFour2Slides) {
1451                    swiperFour2Slides.update();
1452                }
1453
1454                if ($('.swiper-four3-slides').length > 0 && swiperFour3Slides) {
1455                    swiperFour3Slides.update();
1456                }
1457
1458                if ($('.swiper-four4-slides').length > 0 && swiperFour4Slides) {
1459                    swiperFour4Slides.update();
1460                }
1461
1462                if ($('.swiper-ptwo-slides').length > 0 && swiperPtwoSlides) {
1463                    swiperPtwoSlides.update();
1464                }
1465
1466                if ($('.swiper-pthree-slides').length > 0 && swiperPthreeSlides) {
1467                    swiperPthreeSlides.update();
1468                }
1469
1470                if ($('.swiper-pfour-slides').length > 0 && swiperPfourSlides) {
1471                    swiperPfourSlides.update();
1472                }
1473
1474                if ($('.swiper-pfive-slides').length > 0 && swiperPfiveSlides) {
1475                    swiperPfiveSlides.update();
1476                }
1477
1478                if ($('.swiper-psix-slides').length > 0 && swiperPsixSlides) {
1479                    swiperPsixSlides.update();
1480                }
1481
1482                if ($('.swiper-demo-header-style').length > 0 && swiperDemoHeaderStyle) {
1483                    swiperDemoHeaderStyle.update();
1484                }
1485
1486                if ($('.swiper-auto-slide').length > 0 && swiperAutoSlide) {
1487                    swiperAutoSlide.update();
1488                }
1489
1490                if ($('.swiper-auto-height-container').length > 0 && swiperAutoHieght) {
1491                    swiperAutoHieght.update();
1492                }
1493
1494                if ($('.swiper-multy-row-container').length > 0 && swiperMultyRow) {
1495                    swiperMultyRow.update();
1496                }
1497
1498                if ($('.swiper-blog').length > 0 && swiperBlog) {
1499                    swiperBlog.update();
1500                }
1501
1502                if ($('.swiper-presentation').length > 0 && swiperPresentation) {
1503                    swiperPresentation.update();
1504                }
1505
1506            }, 500);
1507        }
1508
1509    });
1510
1511    function doneResizing() {
1512        if (swiperBottomScrollbarFull) {
1513            swiperBottomScrollbarFull.detachEvents();
1514            swiperBottomScrollbarFull.destroy(true, true);
1515            swiperBottomScrollbarFull = undefined;
1516        }
1517
1518        $(".swiper-bottom-scrollbar-full .swiper-wrapper").css("transform", "").css("transition-duration", "");
1519        $(".swiper-bottom-scrollbar-full .swiper-slide").css("margin-right", "");
1520        $('.swiper-bottom-scrollbar-full .swiper-wrapper').removeAttr('style');
1521        $('.swiper-bottom-scrollbar-full .swiper-slide').removeAttr('style');
1522
1523        if ($(window).width() > 767) {
1524            setTimeout(function () {
1525                swiperBottomScrollbarFull = new Swiper('.swiper-bottom-scrollbar-full', {
1526                    allowTouchMove: true,
1527                    slidesPerView: 'auto',
1528                    grabCursor: true,
1529                    preventClicks: false,
1530                    spaceBetween: 30,
1531                    keyboardControl: true,
1532                    speed: 1000,
1533                    pagination: {
1534                        el: null
1535                    },
1536                    scrollbar: {
1537                        el: '.swiper-scrollbar',
1538                        draggable: true,
1539                        hide: false,
1540                        snapOnRelease: true
1541                    },
1542                    mousewheel: {
1543                        enable: true
1544                    },
1545                    keyboard: {
1546                        enabled: true
1547                    },
1548                    navigation: {
1549                        nextEl: '.swiper-button-next',
1550                        prevEl: '.swiper-button-prev'
1551                    }
1552                });
1553            }, 500);
1554        }
1555    }
1556
1557    /*==============================================================
1558     smooth scroll
1559     ==============================================================*/
1560
1561    var scrollAnimationTime = 1200, scrollAnimation = 'easeInOutExpo';
1562    $(document).on('click.smoothscroll', 'a.scrollto', function (event) {
1563        event.preventDefault();
1564        var target = this.hash;
1565        if ($(target).length != 0) {
1566            $('html, body').stop()
1567                .animate({
1568                    'scrollTop': $(target)
1569                        .offset()
1570                        .top
1571                }, scrollAnimationTime, scrollAnimation, function () {
1572                    window.location.hash = target;
1573                });
1574        }
1575    });
1576
1577    /*==============================================================
1578     humburger menu one page navigation
1579     ==============================================================*/
1580
1581    if ($('.full-width-pull-menu').length > 0) {
1582        $(document).on('click', '.full-width-pull-menu .inner-link', function (e) {
1583            //$('body').removeClass('overflow-hidden position-fixed');
1584            $(".full-width-pull-menu .close-button-menu").trigger("click");
1585            var _this = $(this);
1586            setTimeout(function () {
1587                var target = _this.attr("href");
1588                if ($(target).length > 0) {
1589                    $('html, body').stop()
1590                        .animate({
1591                            'scrollTop': $(target).offset().top
1592                        });
1593                }
1594            }, 500);
1595        });
1596    }
1597
1598    // Inner links
1599    if ($('.navbar-top').length > 0 || $('.navbar-scroll-top').length > 0 || $('.navbar-top-scroll').length > 0) {
1600        $('.inner-link').smoothScroll({
1601            speed: 900,
1602            offset: 0
1603        });
1604    } else {
1605        $('.inner-link').smoothScroll({
1606            speed: 1000,
1607            offset: -180
1608        });
1609    }
1610
1611    $('.section-link').smoothScroll({
1612        speed: 900,
1613        offset: 1
1614    });
1615
1616    /*==============================================================*/
1617    //PieChart For Onepage - START CODE
1618    /*==============================================================*/
1619    if ($('.chart1').length > 0) {
1620        $('.chart1').appear();
1621        $('.chart1').easyPieChart({
1622            barColor: '#929292',
1623            trackColor: '#d9d9d9',
1624            scaleColor: false,
1625            easing: 'easeOutBounce',
1626            scaleLength: 1,
1627            lineCap: 'round',
1628            lineWidth: 3, //12
1629            size: 150, //110
1630            animate: {
1631                duration: 2000,
1632                enabled: true
1633            },
1634            onStep: function (from, to, percent) {
1635                $(this.el).find('.percent').text(Math.round(percent));
1636            }
1637        });
1638        $(document.body).on('appear', '.chart1', function (e) {
1639            // this code is executed for each appeared element
1640            if (!$(this).hasClass('appear')) {
1641                $(this).addClass('appear');
1642                $(this).data('easyPieChart').update(0).update($(this).data('percent'));
1643            }
1644        });
1645    }
1646
1647    if ($('.chart2').length > 0) {
1648        $('.chart2').appear();
1649        $('.chart2').easyPieChart({
1650            easing: 'easeOutCirc',
1651            barColor: '#ff214f',
1652            trackColor: '#c7c7c7',
1653            scaleColor: false,
1654            scaleLength: 1,
1655            lineCap: 'round',
1656            lineWidth: 2, //12
1657            size: 120, //110
1658            animate: {
1659                duration: 2000,
1660                enabled: true
1661            },
1662            onStep: function (from, to, percent) {
1663                $(this.el).find('.percent').text(Math.round(percent));
1664            }
1665        });
1666        $(document.body).on('appear', '.chart2', function (e) {
1667            // this code is executed for each appeared element
1668            if (!$(this).hasClass('appear')) {
1669                $(this).addClass('appear');
1670                $(this).data('easyPieChart').update(0).update($(this).data('percent'));
1671            }
1672        });
1673    }
1674
1675    if ($('.chart3').length > 0) {
1676        $('.chart3').appear();
1677        $('.chart3').easyPieChart({
1678            easing: 'easeOutCirc',
1679            barColor: '#ff214f',
1680            trackColor: '',
1681            scaleColor: false,
1682            scaleLength: 1,
1683            lineCap: 'round',
1684            lineWidth: 3, //12
1685            size: 140, //110
1686            animate: {
1687                duration: 2000,
1688                enabled: true
1689            },
1690            onStep: function (from, to, percent) {
1691                $(this.el).find('.percent').text(Math.round(percent));
1692            }
1693        });
1694        $(document.body).on('appear', '.chart3', function (e) {
1695            // this code is executed for each appeared element
1696            if (!$(this).hasClass('appear')) {
1697                $(this).addClass('appear');
1698                $(this).data('easyPieChart').update(0).update($(this).data('percent'));
1699            }
1700        });
1701    }
1702
1703    /*==============================================================
1704     portfolio filter
1705     ==============================================================*/
1706    var $portfolio_filter = $('.portfolio-grid');
1707    $portfolio_filter.imagesLoaded(function () {
1708        $portfolio_filter.isotope({
1709            layoutMode: 'masonry',
1710            itemSelector: '.grid-item',
1711            percentPosition: true,
1712            masonry: {
1713                columnWidth: '.grid-sizer'
1714            }
1715        });
1716        $portfolio_filter.isotope();
1717    });
1718
1719    // Default filter selector start code
1720
1721    var $active_grid_selector = $('.portfolio-filter > li.active > a');
1722    var selector = $active_grid_selector.attr('data-filter');
1723    $portfolio_filter.find('.grid-item').removeClass('animated').css("visibility", ""); // avoid problem to filter after sorting
1724    $portfolio_filter.isotope({ filter: selector });
1725
1726    // Default filter selector end code
1727
1728    var $grid_selectors = $('.portfolio-filter > li > a');
1729    $grid_selectors.on('click', function () {
1730        $grid_selectors.parent().removeClass('active');
1731        $(this).parent().addClass('active');
1732        var selector = $(this).attr('data-filter');
1733        $portfolio_filter.find('.grid-item').removeClass('animated').css("visibility", ""); // avoid problem to filter after sorting
1734        $portfolio_filter.find('.grid-item').each(function () {
1735            /* remove perticular element from WOW array when you don't want animation on element after DOM lead */
1736            wow.removeBox(this);
1737            $(this).css("-webkit-animation", "none");
1738            $(this).css("-moz-animation", "none");
1739            $(this).css("-ms-animation", "none");
1740            $(this).css("animation", "none");
1741        });
1742        $portfolio_filter.isotope({ filter: selector });
1743        return false;
1744    });
1745    $(window).resize(function () {
1746        if (!isMobile && !isiPhoneiPad) {
1747            $portfolio_filter.imagesLoaded(function () {
1748                setTimeout(function () {
1749                    $portfolio_filter.find('.grid-item').removeClass('wow').removeClass('animated'); // avoid problem to filter after window resize
1750                    $portfolio_filter.isotope('layout');
1751                }, 300);
1752            });
1753        }
1754    });
1755    var $blog_filter = $('.blog-grid');
1756    $blog_filter.imagesLoaded(function () {
1757        $blog_filter.isotope({
1758            layoutMode: 'masonry',
1759            itemSelector: '.grid-item',
1760            percentPosition: true,
1761            masonry: {
1762                columnWidth: '.grid-sizer'
1763            }
1764        });
1765    });
1766    $(window).resize(function () {
1767        setTimeout(function () {
1768            $blog_filter.find('.grid-item').removeClass('wow').removeClass('animated'); // avoid problem to filter after window resize
1769            $blog_filter.isotope('layout');
1770        }, 300);
1771    });
1772
1773    /*==============================================================
1774     lightbox gallery
1775     ==============================================================*/
1776    $('.lightbox-gallery').magnificPopup({
1777        delegate: 'a',
1778        type: 'image',
1779        tLoading: 'Loading image #%curr%...',
1780        mainClass: 'mfp-fade',
1781        fixedContentPos: true,
1782        closeBtnInside: false,
1783        gallery: {
1784            enabled: true,
1785            navigateByImgClick: true,
1786            preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
1787        }
1788    });
1789    $('.lightbox-products').magnificPopup({
1790        delegate: 'a',
1791        type: 'image',
1792        tLoading: 'Loading image #%curr%...',
1793        mainClass: 'mfp-fade',
1794        fixedContentPos: false,
1795        closeBtnInside: false,
1796        closeOnBgClick: true,
1797        gallery: {
1798            enabled: true,
1799            navigateByImgClick: true,
1800            preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
1801        },
1802        callbacks: {
1803            open: function () {
1804                jQuery('body').addClass('noscroll');
1805            },
1806            close: function () {
1807                jQuery('body').removeClass('noscroll');
1808            }
1809        }
1810    });
1811    $('.lightbox-products-2').magnificPopup({
1812        delegate: 'a',
1813        type: 'image',
1814        tLoading: 'Loading image #%curr%...',
1815        mainClass: 'mfp-fade',
1816        fixedContentPos: false,
1817        closeBtnInside: false,
1818        closeOnBgClick: true,
1819        gallery: {
1820            enabled: true,
1821            navigateByImgClick: true,
1822            preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
1823        },
1824        callbacks: {
1825            open: function () {
1826                jQuery('body').addClass('noscroll');
1827            },
1828            close: function () {
1829                jQuery('body').removeClass('noscroll');
1830            }
1831        }
1832    });
1833    $('.lightbox-products-3').magnificPopup({
1834        delegate: 'a',
1835        type: 'image',
1836        tLoading: 'Loading image #%curr%...',
1837        mainClass: 'mfp-fade',
1838        fixedContentPos: false,
1839        closeBtnInside: false,
1840        closeOnBgClick: true,
1841        gallery: {
1842            enabled: true,
1843            navigateByImgClick: true,
1844            preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
1845        },
1846        callbacks: {
1847            open: function () {
1848                jQuery('body').addClass('noscroll');
1849            },
1850            close: function () {
1851                jQuery('body').removeClass('noscroll');
1852            }
1853        }
1854    });
1855
1856    $('.lightbox-products-4').magnificPopup({
1857        delegate: 'a',
1858        type: 'image',
1859        tLoading: 'Loading image #%curr%...',
1860        mainClass: 'mfp-fade',
1861        fixedContentPos: false,
1862        closeBtnInside: false,
1863        closeOnBgClick: true,
1864        gallery: {
1865            enabled: true,
1866            navigateByImgClick: true,
1867            preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
1868        },
1869        callbacks: {
1870            open: function () {
1871                jQuery('body').addClass('noscroll');
1872            },
1873            close: function () {
1874                jQuery('body').removeClass('noscroll');
1875            }
1876        }
1877    });
1878    $('.lightbox-products-5').magnificPopup({
1879        delegate: 'a',
1880        type: 'image',
1881        tLoading: 'Loading image #%curr%...',
1882        mainClass: 'mfp-fade',
1883        fixedContentPos: false,
1884        closeBtnInside: false,
1885        closeOnBgClick: true,
1886        gallery: {
1887            enabled: true,
1888            navigateByImgClick: true,
1889            preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
1890        },
1891        callbacks: {
1892            open: function () {
1893                jQuery('body').addClass('noscroll');
1894            },
1895            close: function () {
1896                jQuery('body').removeClass('noscroll');
1897            }
1898        }
1899    });
1900    $('.lightbox-products-6').magnificPopup({
1901        delegate: 'a',
1902        type: 'image',
1903        tLoading: 'Loading image #%curr%...',
1904        mainClass: 'mfp-fade',
1905        fixedContentPos: false,
1906        closeBtnInside: false,
1907        closeOnBgClick: true,
1908        gallery: {
1909            enabled: true,
1910            navigateByImgClick: true,
1911            preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
1912        },
1913        callbacks: {
1914            open: function () {
1915                jQuery('body').addClass('noscroll');
1916            },
1917            close: function () {
1918                jQuery('body').removeClass('noscroll');
1919            }
1920        }
1921    });
1922    $('.lightbox-products-7').magnificPopup({
1923        delegate: 'a',
1924        type: 'image',
1925        tLoading: 'Loading image #%curr%...',
1926        mainClass: 'mfp-fade',
1927        fixedContentPos: false,
1928        closeBtnInside: false,
1929        closeOnBgClick: true,
1930        gallery: {
1931            enabled: true,
1932            navigateByImgClick: true,
1933            preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
1934        },
1935        callbacks: {
1936            open: function () {
1937                jQuery('body').addClass('noscroll');
1938            },
1939            close: function () {
1940                jQuery('body').removeClass('noscroll');
1941            }
1942        }
1943    });
1944    $('.lightbox-products-8').magnificPopup({
1945        delegate: 'a',
1946        type: 'image',
1947        tLoading: 'Loading image #%curr%...',
1948        mainClass: 'mfp-fade',
1949        fixedContentPos: false,
1950        closeBtnInside: false,
1951        closeOnBgClick: true,
1952        gallery: {
1953            enabled: true,
1954            navigateByImgClick: true,
1955            preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
1956        },
1957        callbacks: {
1958            open: function () {
1959                jQuery('body').addClass('noscroll');
1960            },
1961            close: function () {
1962                jQuery('body').removeClass('noscroll');
1963            }
1964        }
1965    });
1966    $('.lightbox-products-9').magnificPopup({
1967        delegate: 'a',
1968        type: 'image',
1969        tLoading: 'Loading image #%curr%...',
1970        mainClass: 'mfp-fade',
1971        fixedContentPos: false,
1972        closeBtnInside: false,
1973        closeOnBgClick: true,
1974        gallery: {
1975            enabled: true,
1976            navigateByImgClick: true,
1977            preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
1978        },
1979        callbacks: {
1980            open: function () {
1981                jQuery('body').addClass('noscroll');
1982            },
1983            close: function () {
1984                jQuery('body').removeClass('noscroll');
1985            }
1986        }
1987    });
1988    /* for group gallery */
1989    var lightboxgallerygroups = {};
1990    $('.lightbox-group-gallery-item').each(function () {
1991        var id = $(this).attr('data-group');
1992        if (!lightboxgallerygroups[id]) {
1993            lightboxgallerygroups[id] = [];
1994        }
1995        lightboxgallerygroups[id].push(this);
1996    });
1997    $.each(lightboxgallerygroups, function () {
1998        $(this).magnificPopup({
1999            type: 'image',
2000            closeOnContentClick: true,
2001            closeBtnInside: false,
2002            gallery: { enabled: true }
2003        });
2004    });
2005
2006    $('.lightbox-portfolio').magnificPopup({
2007        delegate: '.gallery-link',
2008        type: 'image',
2009        tLoading: 'Loading image #%curr%...',
2010        mainClass: 'mfp-fade',
2011        fixedContentPos: true,
2012        closeBtnInside: false,
2013        gallery: {
2014            enabled: true,
2015            navigateByImgClick: false,
2016            preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
2017        }
2018    });
2019    /*==============================================================
2020     single image lightbox - zoom animation
2021     ==============================================================*/
2022    $('.single-image-lightbox').magnificPopup({
2023        type: 'image',
2024        closeOnContentClick: true,
2025        fixedContentPos: true,
2026        closeBtnInside: false,
2027        mainClass: 'mfp-no-margins mfp-with-zoom', // class to remove default margin from left and right side
2028        image: {
2029            verticalFit: true
2030        },
2031        zoom: {
2032            enabled: true,
2033            duration: 300 // don't foget to change the duration also in CSS
2034        }
2035    });
2036    /*==============================================================
2037     zoom gallery
2038     ==============================================================*/
2039    $('.zoom-gallery').magnificPopup({
2040        delegate: 'a',
2041        type: 'image',
2042        mainClass: 'mfp-with-zoom mfp-img-mobile',
2043        fixedContentPos: true,
2044        closeBtnInside: false,
2045        image: {
2046            verticalFit: true,
2047            titleSrc: function (item) {
2048                return item.el.attr('title');
2049            }
2050        },
2051        gallery: {
2052            enabled: true
2053        },
2054        zoom: {
2055            enabled: true,
2056            duration: 300, // don't foget to change the duration also in CSS
2057            opener: function (element) {
2058                return element.find('img');
2059            }
2060        }
2061    });
2062    /*==============================================================*/
2063    //Modal popup - START CODE
2064    /*==============================================================*/
2065    $('.modal-popup').magnificPopup({
2066        type: 'inline',
2067        preloader: false,
2068        // modal: true,
2069        blackbg: true,
2070        callbacks: {
2071            open: function () {
2072                $('html').css('margin-right', 0);
2073            }
2074        }
2075    });
2076    $(document).on('click', '.popup-modal-dismiss', function (e) {
2077        e.preventDefault();
2078        $.magnificPopup.close();
2079    });
2080
2081    /*==============================================================*/
2082    //Modal popup - zoom animation - START CODE
2083    /*==============================================================*/
2084    $('.popup-with-zoom-anim').magnificPopup({
2085        type: 'inline',
2086        fixedContentPos: false,
2087        fixedBgPos: true,
2088        overflowY: 'auto',
2089        closeBtnInside: true,
2090        preloader: false,
2091        midClick: true,
2092        removalDelay: 300,
2093        blackbg: true,
2094        mainClass: 'my-mfp-zoom-in'
2095    });
2096
2097    $('.popup-with-move-anim').magnificPopup({
2098        type: 'inline',
2099        fixedContentPos: false,
2100        fixedBgPos: true,
2101        overflowY: 'auto',
2102        closeBtnInside: true,
2103        preloader: false,
2104        midClick: true,
2105        removalDelay: 300,
2106        blackbg: true,
2107        mainClass: 'my-mfp-slide-bottom'
2108    });
2109
2110    /*==============================================================
2111     popup with form
2112     ==============================================================*/
2113    $('.popup-with-form').magnificPopup({
2114        type: 'inline',
2115        preloader: false,
2116        closeBtnInside: false,
2117        fixedContentPos: true,
2118        focus: '#name',
2119        callbacks: {
2120            beforeOpen: function () {
2121                if ($(window).width() < 700) {
2122                    this.st.focus = false;
2123                } else {
2124                    this.st.focus = '#name';
2125                }
2126            }
2127        }
2128    });
2129    /*==============================================================
2130     video magnific popup
2131     ==============================================================*/
2132
2133    $('.popup-youtube, .popup-vimeo, .popup-googlemap').magnificPopup({
2134        disableOn: 700,
2135        type: 'iframe',
2136        mainClass: 'mfp-fade',
2137        removalDelay: 160,
2138        preloader: false,
2139        fixedContentPos: "auto",
2140        closeBtnInside: false
2141    });
2142    /*==============================================================
2143     ajax magnific popup for onepage portfolio
2144     ==============================================================*/
2145    $('.ajax-popup').magnificPopup({
2146        type: 'ajax',
2147        alignTop: true,
2148        fixedContentPos: true,
2149        overflowY: 'scroll', // as we know that popup content is tall we set scroll overflow by default to avoid jump
2150        callbacks: {
2151            open: function () {
2152                $('.navbar .collapse').removeClass('show');
2153                $('.navbar a.dropdown-toggle').addClass('collapsed');
2154            }
2155        }
2156    });
2157
2158    /*==============================================================
2159     mega menu width 
2160     ===============================================================*/
2161    $("ul.mega-menu-full").each(function (idx, elm) {
2162        var megaMenuWidth = 0;
2163        $(this).children('li').each(function (idx, elm) {
2164            var LIheight = 0;
2165            megaMenuWidth += $(this).outerWidth();
2166        });
2167        $(this).width(megaMenuWidth + 95);
2168        megaMenuWidth = 0;
2169    });
2170    /*==============================================================
2171     fit videos
2172     ==============================================================*/
2173    $(".fit-videos").fitVids();
2174
2175    /*==============================================================
2176     form to email
2177     ==============================================================*/
2178    $("#success-subscribe-newsletter").hide();
2179    $("#success-subscribe-newsletter2").hide();
2180    $("#success-contact-form").hide();
2181    $("#success-project-contact-form").hide();
2182    $("#success-contact-form-2").hide();
2183    $("#success-contact-form-3").hide();
2184    $("#success-project-contact-form-4").hide();
2185
2186    //Subscribe newsletter form
2187    $(document).on("click", '#button-subscribe-newsletter', function () {
2188        var error = ValidationsubscribenewsletterForm();
2189        if (error) {
2190            $.ajax({
2191                type: "POST",
2192                url: "email-templates/subscribe-newsletter.php",
2193                data: $("#subscribenewsletterform").serialize(),
2194                success: function (result) {
2195                    // Un-comment below code to redirect user to thank you page.
2196                    //window.location.href="thank-you.html";
2197
2198                    $('input[type=text],textarea').each(function () {
2199                        $(this).val('');
2200                    });
2201                    $("#success-subscribe-newsletter").html(result);
2202                    $("#success-subscribe-newsletter").fadeIn("slow");
2203                    $('#success-subscribe-newsletter').delay(4000).fadeOut("slow");
2204                }
2205            });
2206        }
2207    });
2208
2209    function ValidationsubscribenewsletterForm() {
2210        var error = true;
2211        $('#subscribenewsletterform input[type=text]').each(function (index) {
2212            if (index == 0) {
2213                if (!(/(.+)@(.+){2,}\.(.+){2,}/.test($(this).val()))) {
2214                    $("#subscribenewsletterform").find("input:eq(" + index + ")").addClass("required-error");
2215                    error = false;
2216                } else {
2217                    $("#subscribenewsletterform").find("input:eq(" + index + ")").removeClass("required-error");
2218                }
2219            }
2220
2221        });
2222        return error;
2223    }
2224
2225    $(document).on("click", '#button-subscribe-newsletter2', function () {
2226        var error = ValidationsubscribenewsletterForm2();
2227        if (error) {
2228            $.ajax({
2229                type: "POST",
2230                url: "email-templates/subscribe-newsletter.php",
2231                data: $("#subscribenewsletterform2").serialize(),
2232                success: function (result) {
2233                    // Un-comment below code to redirect user to thank you page.
2234                    //window.location.href="thank-you.html";
2235
2236                    $('input[type=text],textarea').each(function () {
2237                        $(this).val('');
2238                    });
2239                    $("#success-subscribe-newsletter2").html(result);
2240                    $("#success-subscribe-newsletter2").fadeIn("slow");
2241                    $('#success-subscribe-newsletter2').delay(4000).fadeOut("slow");
2242
2243
2244                }
2245            });
2246        }
2247    });
2248
2249    function ValidationsubscribenewsletterForm2() {
2250        var error = true;
2251        $('#subscribenewsletterform2 input[type=text]').each(function (index) {
2252            if (index == 0) {
2253                if (!(/(.+)@(.+){2,}\.(.+){2,}/.test($(this).val()))) {
2254                    $("#subscribenewsletterform2").find("input:eq(" + index + ")").addClass("required-error");
2255                    error = false;
2256                } else {
2257                    $("#subscribenewsletterform2").find("input:eq(" + index + ")").removeClass("required-error");
2258                }
2259            }
2260        });
2261        return error;
2262    }
2263
2264    //Contact us form
2265    $(document).on("click", '#contact-us-button', function () {
2266        var error = ValidationContactForm();
2267        if (error) {
2268            $.ajax({
2269                type: "POST",
2270                url: "email-templates/contact.php",
2271                data: $("#contact-form").serialize(),
2272                success: function (result) {
2273                    // Un-comment below code to redirect user to thank you page.
2274                    //window.location.href="thank-you.html";
2275
2276                    $('input[type=text],textarea').each(function () {
2277                        $(this).val('');
2278                    });
2279                    $("#success-contact-form").html(result);
2280                    $("#success-contact-form").fadeIn("slow");
2281                    $('#success-contact-form').delay(4000).fadeOut("slow");
2282                }
2283            });
2284        }
2285    });
2286    function ValidationContactForm() {
2287        var error = true;
2288        $('#contact-form input[type=text]').each(function (index) {
2289            if (index == 0) {
2290                if ($(this).val() == null || $(this).val() == "") {
2291                    $("#contact-form").find("input:eq(" + index + ")").addClass("required-error");
2292                    error = false;
2293                } else {
2294                    $("#contact-form").find("input:eq(" + index + ")").removeClass("required-error");
2295                }
2296            } else if (index == 1) {
2297                if (!(/(.+)@(.+){2,}\.(.+){2,}/.test($(this).val()))) {
2298                    $("#contact-form").find("input:eq(" + index + ")").addClass("required-error");
2299                    error = false;
2300                } else {
2301                    $("#contact-form").find("input:eq(" + index + ")").removeClass("required-error");
2302                }
2303            }
2304
2305        });
2306        return error;
2307    }
2308
2309    //Contact us form 2
2310    $('#contact-us-button-2').on("click", function () {
2311        var error = ValidationContactForm2();
2312        if (error) {
2313            $.ajax({
2314                type: "POST",
2315                url: "email-templates/contact.php",
2316                data: $("#contact-form-2").serialize(),
2317                success: function (result) {
2318                    // Un-comment below code to redirect user to thank you page.
2319                    //window.location.href="thank-you.html";
2320
2321                    $('input[type=text],textarea').each(function () {
2322                        $(this).val('');
2323                    });
2324                    $("#success-contact-form-2").html(result);
2325                    $("#success-contact-form-2").fadeIn("slow");
2326                    $('#success-contact-form-2').delay(4000).fadeOut("slow");
2327                }
2328            });
2329        }
2330    });
2331    function ValidationContactForm2() {
2332        var error = true;
2333        $('#contact-form-2 input[type=text]').each(function (index) {
2334            if (index == 0) {
2335                if ($(this).val() == null || $(this).val() == "") {
2336                    $("#contact-form-2").find("input:eq(" + index + ")").addClass("required-error");
2337                    error = false;
2338                } else {
2339                    $("#contact-form-2").find("input:eq(" + index + ")").removeClass("required-error");
2340                }
2341            } else if (index == 1) {
2342                if (!(/(.+)@(.+){2,}\.(.+){2,}/.test($(this).val()))) {
2343                    $("#contact-form-2").find("input:eq(" + index + ")").addClass("required-error");
2344                    error = false;
2345                } else {
2346                    $("#contact-form-2").find("input:eq(" + index + ")").removeClass("required-error");
2347                }
2348            }
2349        });
2350        return error;
2351    }
2352
2353    //Contact us form 3
2354
2355    $(document).on("click", '#contact-us-button-3', function () {
2356        var error = ValidationContactForm3();
2357        if (error) {
2358            $.ajax({
2359                type: "POST",
2360                url: "email-templates/contact.php",
2361                data: $("#contact-form-3").serialize(),
2362                success: function (result) {
2363                    // Un-comment below code to redirect user to thank you page.
2364                    //window.location.href="thank-you.html";
2365                    $('input[type=text],textarea').each(function () {
2366                        $(this).val('');
2367                    });
2368                    $("#success-contact-form-3").html(result);
2369                    $("#success-contact-form-3").fadeIn("slow");
2370                    $('#success-contact-form-3').delay(4000).fadeOut("slow");
2371                }
2372            });
2373        }
2374    });
2375    function ValidationContactForm3() {
2376        var error = true;
2377        $('#contact-form-3 input[type=text]').each(function (index) {
2378            if (index == 0) {
2379                if ($(this).val() == null || $(this).val() == "") {
2380                    $("#contact-form-3").find("input:eq(" + index + ")").addClass("required-error");
2381                    error = false;
2382                } else {
2383                    $("#contact-form-3").find("input:eq(" + index + ")").removeClass("required-error");
2384                }
2385            } else if (index == 1) {
2386                if (!(/(.+)@(.+){2,}\.(.+){2,}/.test($(this).val()))) {
2387                    $("#contact-form-3").find("input:eq(" + index + ")").addClass("required-error");
2388                    error = false;
2389                } else {
2390                    $("#contact-form-3").find("input:eq(" + index + ")").removeClass("required-error");
2391                }
2392            }
2393
2394        });
2395        return error;
2396    }
2397
2398    //Project Contact us form
2399    $(document).on("click", '#project-contact-us-button', function (e) {
2400        e.preventDefault();
2401        var error = ValidationProjectContactForm();
2402        if (error) {
2403            $('.required-guidance').removeClass('required-guidance-error');
2404            $.ajax({
2405                type: "POST",
2406                url: "email-templates/project-contact.php",
2407                data: $("#project-contact-form").serialize(),
2408                success: function (result) {
2409                    // Un-comment below code to redirect user to thank you page.
2410                    window.location.href = "thank-you.html";
2411
2412                    $('input[type=text],textarea').each(function () {
2413                        $(this).val('');
2414                    });
2415                    $("#success-project-contact-form").html(result);
2416                    $("#success-project-contact-form").fadeIn("slow");
2417                    $('#success-project-contact-form').delay(4000).fadeOut("slow");
2418                }
2419            });
2420        } else {
2421            $('.required-guidance').addClass('required-guidance-error');
2422            var speed = 1000;
2423
2424            var href = $("#contact");
2425
2426            var target_pos = $(href == "#" || href == "" ? 'html' : href);
2427
2428            var position = target_pos.offset().top - 150;
2429
2430            $('body,html').animate({ scrollTop: position }, speed, 'swing');
2431        }
2432    });
2433    function ValidationProjectContactForm() {
2434        var error = true;
2435
2436        var contact_item_val = $('#budget').val();
2437        if (contact_item_val) {
2438            $("#budget").removeClass("required-error");
2439            $(".select-style").removeClass("border-color-transparent");
2440        } else {
2441            $("#budget").addClass("required-error");
2442            $(".select-style").addClass("border-color-transparent");
2443            error = false;
2444        }
2445
2446        $('#project-contact-form input[type=text]').each(function (index) {
2447            if (index == 0) {
2448                if ($(this).val() == null || $(this).val() == "") {
2449                    $("#project-contact-form").find("input:eq(" + index + ")").addClass("required-error");
2450                    error = false;
2451                } else {
2452                    $("#project-contact-form").find("input:eq(" + index + ")").removeClass("required-error");
2453                }
2454            } else if (index == 3) {
2455                if (!(/^\d{2,4}-\d{3,4}-\d{3,4}$/.test($(this).val()))) {
2456                    $("#project-contact-form").find("input:eq(" + index + ")").addClass("required-error");
2457                    error = false;
2458                } else {
2459                    $("#project-contact-form").find("input:eq(" + index + ")").removeClass("required-error");
2460                }
2461            } else if (index == 4) {
2462                if (!(/(.+)@(.+){2,}\.(.+){2,}/.test($(this).val()))) {
2463                    $("#project-contact-form").find("input:eq(" + index + ")").addClass("required-error");
2464                    error = false;
2465                } else {
2466                    $("#project-contact-form").find("input:eq(" + index + ")").removeClass("required-error");
2467                }
2468            } else if (index == 5) {
2469                if ($(this).val() == null || $(this).val() == "") {
2470                    $("#project-contact-form").find("input:eq(" + index + ")").addClass("required-error");
2471                    error = false;
2472                } else {
2473                    $("#project-contact-form").find("input:eq(" + index + ")").removeClass("required-error");
2474                }
2475            }
2476
2477            var comment_val = $('#comment').val();
2478            if (comment_val) {
2479                $("#comment").removeClass("required-error");
2480            } else {
2481                $("#comment").addClass("required-error");
2482                error = false;
2483            }
2484        });
2485        return error;
2486    }
2487    $.getByteLength = function (value) {
2488        return encodeURIComponent(value).replace(/%../g, 'x').length;
2489    };
2490
2491    $('textarea.comment').on('keypress compositionend paste drop', function (e) {
2492        var base_max_len = 800;
2493        var MAX_BLEN = $(this).attr('maxbytelength');
2494        var value = $(this).val();
2495        var valueByteLen = $.getByteLength(value);
2496        if (valueByteLen > MAX_BLEN) {
2497            switch (e.type) {
2498                case 'compositionend':
2499                    var imeData = e.originalEvent.data;
2500                    $(this).val(value.substr(0, value.length - imeData.length));
2501                    break;
2502            }
2503        }
2504        switch (e.type) {
2505            case 'keypress':
2506                if ($.getByteLength(e.key) == 1 && valueByteLen + 1 > MAX_BLEN) {
2507                    //e.preventDefault(); e.stopPropagation();
2508                    $(this).val(value + "\n");
2509                    MAX_BLEN = Number(MAX_BLEN) + Number(base_max_len);
2510                    $(this).attr('maxbytelength', MAX_BLEN);
2511                }
2512                break;
2513            case 'paste':
2514                var pasted = (window.clipboardData && window.clipboardData.getData)
2515                    ? window.clipboardData.getData('Text')
2516                    : e.originalEvent.clipboardData.getData('text/plain');
2517                var futureByteLen = valueByteLen + $.getByteLength(pasted);
2518                if (futureByteLen > MAX_BLEN) {
2519                    //e.preventDefault(); e.stopPropagation();
2520                    $(this).val(value + "\n");
2521                    MAX_BLEN = Number(MAX_BLEN) + Number(base_max_len);
2522                    $(this).attr('maxbytelength', MAX_BLEN);
2523                }
2524                break;
2525            case 'drop':
2526                var dropped = e.originalEvent.dataTransfer.getData("text/plain");
2527                var futureByteLen = valueByteLen + $.getByteLength(dropped);
2528                if (futureByteLen > MAX_BLEN) {
2529                    //e.preventDefault(); e.stopPropagation();
2530                    $(this).val(value + "\n");
2531                    MAX_BLEN = Number(MAX_BLEN) + Number(base_max_len);
2532                    $(this).attr('maxbytelength', MAX_BLEN);
2533                }
2534                break;
2535        }
2536    });
2537    //Project Contact us form 2
2538    $(document).on("click", '#project-contact-us-4-button', function () {
2539        var error = ValidationProjectContactForm4();
2540        if (error) {
2541            $.ajax({
2542                type: "POST",
2543                url: "email-templates/project-contact.php",
2544                data: $("#project-contact-form-4").serialize(),
2545                success: function (result) {
2546                    // Un-comment below code to redirect user to thank you page.
2547                    //window.location.href="thank-you.html";
2548
2549                    $('input[type=text],textarea').each(function () {
2550                        $(this).val('');
2551                    });
2552                    $("#success-project-contact-form-4").html(result);
2553                    $("#success-project-contact-form-4").fadeIn("slow");
2554                    $('#success-project-contact-form-4').delay(4000).fadeOut("slow");
2555                }
2556            });
2557        }
2558    });
2559    function ValidationProjectContactForm4() {
2560        var error = true;
2561        $('#project-contact-form-4 input[type=text]').each(function (index) {
2562            if (index == 0) {
2563                if ($(this).val() == null || $(this).val() == "") {
2564                    $("#project-contact-form-4").find("input:eq(" + index + ")").addClass("required-error");
2565                    error = false;
2566                } else {
2567                    $("#project-contact-form-4").find("input:eq(" + index + ")").removeClass("required-error");
2568                }
2569            } else if (index == 2) {
2570                if (!(/(.+)@(.+){2,}\.(.+){2,}/.test($(this).val()))) {
2571                    $("#project-contact-form-4").find("input:eq(" + index + ")").addClass("required-error");
2572                    error = false;
2573                } else {
2574                    $("#project-contact-form-4").find("input:eq(" + index + ")").removeClass("required-error");
2575                }
2576            }
2577        });
2578        return error;
2579    }
2580
2581    /*==============================================================
2582     wow animation - on scroll
2583     ==============================================================*/
2584    var wow = new WOW({
2585        boxClass: 'wow',
2586        animateClass: 'animated',
2587        offset: 0,
2588        mobile: false,
2589        live: true
2590    });
2591    $(window).imagesLoaded(function () {
2592        wow.init();
2593    });
2594    /*==============================================================
2595     counter
2596     ==============================================================*/
2597    $(function ($) {
2598        animatecounters();
2599    });
2600    function animatecounters() {
2601        $('.timer').each(count);
2602        function count(options) {
2603            var $this = $(this);
2604            options = $.extend({}, options || {}, $this.data('countToOptions') || {});
2605            $this.countTo(options);
2606        }
2607    }
2608    /* ===================================
2609     counter number reset while scrolling
2610     ====================================== */
2611    $('.timer').appear();
2612    $(document.body).on('appear', '.timer', function (e) {
2613        // this code is executed for each appeared element
2614        if (!$(this).hasClass('appear')) {
2615            animatecounters();
2616            $(this).addClass('appear');
2617        }
2618    });
2619    $('.countdown').countdown($('.countdown').attr("data-enddate")).on('update.countdown', function (event) {
2620        $(this).html(event.strftime('' + '<div class="counter-container"><div class="counter-box first"><div class="number">%-D</div><span>Day%!d</span></div>' + '<div class="counter-box"><div class="number">%H</div><span>Hours</span></div>' + '<div class="counter-box"><div class="number">%M</div><span>Minutes</span></div>' + '<div class="counter-box last"><div class="number">%S</div><span>Seconds</span></div></div>'));
2621    });
2622
2623    /* ===================================
2624     left nav
2625     ====================================== */
2626    $(document).on('click', '.right-menu-button', function (e) {
2627        $('body').toggleClass('left-nav-on');
2628    });
2629
2630    /*==============================================================*/
2631    //    hamburger menu 
2632    /*==============================================================*/
2633    $(document).on('click', '.btn-hamburger', function () {
2634        $('.hamburger-menu').toggleClass('show-menu');
2635        $('body').removeClass('show-menu');
2636    });
2637
2638    /*==============================================================*/
2639    //sidebar nav open
2640    /*==============================================================*/
2641    $(document).on('click', '#mobileToggleSidenav', function () {
2642        $(this).closest('nav').toggleClass('sidemenu-open');
2643    });
2644
2645    /*=================================
2646     //justified Gallery
2647     =================================*/
2648    $(document).imagesLoaded(function () {
2649        if ($(".justified-gallery").length > 0) {
2650            $(".justified-gallery").justifiedGallery({
2651                rowHeight: 400,
2652                maxRowHeight: false,
2653                captions: true,
2654                margins: 10,
2655                waitThumbnailsLoad: true
2656            });
2657        }
2658    });
2659
2660    $('.atr-nav').on("click", function () {
2661        $(".atr-div").append("<a class='close-cross' href='#'>X</a>");
2662        $(".atr-div").animate({
2663            width: "toggle"
2664        });
2665    });
2666
2667    $('.close-cross').on("click", function () {
2668        $(".atr-div").hide();
2669    });
2670
2671    var menuRight = document.getElementById('cbp-spmenu-s2'),
2672        showRightPush = document.getElementById('showRightPush'),
2673        body = document.body;
2674    if (showRightPush) {
2675        showRightPush.onclick = function () {
2676            classie.toggle(this, 'active');
2677            if (menuRight)
2678                classie.toggle(menuRight, 'cbp-spmenu-open');
2679        };
2680    }
2681
2682    var test = document.getElementById('close-pushmenu');
2683    if (test) {
2684        test.onclick = function () {
2685            classie.toggle(this, 'active');
2686            if (menuRight)
2687                classie.toggle(menuRight, 'cbp-spmenu-open');
2688        };
2689    }
2690
2691    //blog page header animation
2692    $(".blog-header-style1 li").hover(function () {
2693        $('.blog-header-style1 li.blog-column-active').removeClass('blog-column-active');
2694        $(this).addClass('blog-column-active');
2695    }, function () {
2696        $(this).removeClass('blog-column-active');
2697        $('.blog-header-style1 li:first-child').addClass('blog-column-active');
2698    });
2699
2700    /*==============================================================*/
2701    //big menu open close start
2702    /*==============================================================*/
2703    $('.big-menu-open').on("click", function () {
2704        $('.big-menu-right').addClass("open");
2705    });
2706
2707    $('.big-menu-close').on("click", function () {
2708        $('.big-menu-right').removeClass("open");
2709    });
2710
2711    /*==============================================================
2712     instagramfeed
2713     ==============================================================*/
2714    if ($('#instaFeed-style1').length != 0) {
2715
2716        var token = 'IGQVJVNWh1dnBlVkRkNzl4TjU5djIxT24yZAjNaOUxNU0tBZAklNcnlCUnF6eFBJUzFJS1dHNWdLMjRyNmFtZAzF0S05BMVFBTWZABYVVNN0Rvd19QbHNya19TODMtUC1uWXN2a0I2aVpTbWt4S0hvSEI5ZAgZDZD';
2717
2718        $.ajax({
2719            url: 'https://graph.instagram.com/me/media?fields=id,media_type,media_url,timestamp,permalink,comments_count,like_count&access_token=' 
2719+ token,
2720            type: 'GET',
2721            success: function (response) {
2722
2723                var num_photos = 8; // how much photos do you want to get
2724
2725                for (var x in response.data) {
2726                    if (x < num_photos) {
2727                        if (response.data[x]['media_type'] == 'IMAGE') {
2728                            var link = response.data[x]['permalink'],
2729                                image = response.data[x]['media_url'],
2730                                likes = response.data[x]['like_count'],
2731                                comments = response.data[x]['comments_count'],
2732                                html = '';
2733
2734                            html += '<div class="col-lg-3 col-md-6 instafeed-style1">';
2735                            html += '<a class="insta-link" href="' + link + '" target="_blank">';
2736                            html += '<img src="' + image + '" class="insta-image" />';
2737                            html += '<div class="insta-counts">';
2738                            if ((likes != '' && likes != undefined) || (comments != '' && comments != undefined)) {
2739                                if (likes != '' && likes != undefined) {
2740                                    html += '<span><i class="ti-heart"></i> <span class="count-number">' + likes + '</span></span>';
2741                                }
2742                                if (comments != '' && comments != undefined) {
2743                                    html += '<span><i class="ti-comment"></i> <span class="count-number">' + comments + '</span></span>';
2744                                }
2745                            } else {
2746                                html += '<span class="mr-0"><i class="ti-instagram"></i></span>';
2747                            }
2748                            html += '</div>';
2749                            html += '</a>';
2750                            html += '</div>';
2751
2752                            $('#instaFeed-style1').append(html);
2753                        }
2754                    }
2755                }
2756            },
2757            error: function (data) {
2758
2759                var html = '<div class="col-12"><span class=text-center>No Images Found</span></div>';
2760                $('#instaFeed-style1').append(html);
2761            }
2762        });
2763    }
2764
2765    if ($('#instaFeed-aside').length != 0) {
2766
2767        var token = 'IGQVJVNWh1dnBlVkRkNzl4TjU5djIxT24yZAjNaOUxNU0tBZAklNcnlCUnF6eFBJUzFJS1dHNWdLMjRyNmFtZAzF0S05BMVFBTWZABYVVNN0Rvd19QbHNya19TODMtUC1uWXN2a0I2aVpTbWt4S0hvSEI5ZAgZDZD'; // learn how to obtain it below
2768
2769        $.ajax({
2770            url: 'https://graph.instagram.com/me/media?fields=id,media_type,media_url,timestamp,permalink,comments_count,like_count&access_token=' 
2770+ token,
2771            type: 'GET',
2772            success: function (response) {
2773
2774                var num_photos = 6; // how much photos do you want to get
2775
2776                for (var x in response.data) {
2777                    if (x < num_photos) {
2778                        if (response.data[x]['media_type'] == 'IMAGE') {
2779                            var link = response.data[x]['permalink'],
2780                                image = response.data[x]['media_url'],
2781                                likes = response.data[x]['like_count'],
2782                                comments = response.data[x]['comments_count'],
2783                                html = '';
2784
2785                            html += '<li><figure>';
2786                            html += '<a href="' + link + '" target="_blank">';
2787                            html += '<img src="' + image + '" class="insta-image" />';
2788                            if (likes != '' && likes != undefined) {
2789                                html += '<span class="insta-counts">';
2790                                html += '<i class="ti-heart"></i>' + likes;
2791                                html += '</span>';
2792                            } else {
2793                                html += '<span class="insta-counts"><i class="ti-instagram"></i></span>';
2794                            }
2795                            html += '</a>';
2796                            html += '</figure></li>';
2797
2798                            $('#instaFeed-aside').append(html);
2799                        }
2800                    }
2801                }
2802            },
2803            error: function (data) {
2804
2805                var html = '<div class="col-12"><span class=text-center>No Images Found</span></div>';
2806                $('#instaFeed-aside').append(html);
2807            }
2808        });
2809    }
2810
2811    if ($('#instaFeed-footer').length != 0) {
2812
2813        var token = 'IGQVJVNWh1dnBlVkRkNzl4TjU5djIxT24yZAjNaOUxNU0tBZAklNcnlCUnF6eFBJUzFJS1dHNWdLMjRyNmFtZAzF0S05BMVFBTWZABYVVNN0Rvd19QbHNya19TODMtUC1uWXN2a0I2aVpTbWt4S0hvSEI5ZAgZDZD'; // learn how to obtain it below
2814
2815        $.ajax({
2816            url: 'https://graph.instagram.com/me/media?fields=id,media_type,media_url,timestamp,permalink,comments_count,like_count&access_token=' 
2816+ token,
2817            type: 'GET',
2818            success: function (response) {
2819
2820                var num_photos = 6; // how much photos do you want to get
2821
2822                for (var x in response.data) {
2823                    if (x < num_photos) {
2824                        if (response.data[x]['media_type'] == 'IMAGE') {
2825                            var link = response.data[x]['permalink'],
2826                                image = response.data[x]['media_url'],
2827                                likes = response.data[x]['like_count'],
2828                                comments = response.data[x]['comments_count'],
2829                                html = '';
2830
2831                            html += '<li><figure>';
2832                            html += '<a href="' + link + '" target="_blank">';
2833                            html += '<img src="' + image + '" class="insta-image" />';
2834                            if (likes != '' && likes != undefined) {
2835                                html += '<span class="insta-counts">';
2836                                html += '<i class="ti-heart"></i><span>' + likes + '</span>';
2837                                html += '</span>';
2838                            } else {
2839                                html += '<span class="insta-counts"><i class="ti-instagram"></i></span>';
2840                            }
2841                            html += '</a>';
2842                            html += '</figure></li>';
2843
2844                            $('#instaFeed-footer').append(html);
2845                        }
2846                    }
2847                }
2848            },
2849            error: function (data) {
2850
2851                var html = '<div class="col-12"><span class=text-center>No Images Found</span></div>';
2852                $('#instaFeed-footer').append(html);
2853            }
2854        });
2855    }
2856
2857    /*==============================================================*/
2858    //revolution Start 
2859    /*==============================================================*/
2860    /* ================================
2861     home-creative-studio
2862     ================================*/
2863    if ($("#rev_slider_151_1").revolution == undefined) {
2864        revslider_showDoubleJqueryError("#rev_slider_151_1");
2865    } else {
2866        $("#rev_slider_151_1").show().revolution({
2867            sliderType: "standard",
2868            jsFileLocation: "revolution/js/",
2869            sliderLayout: "fullscreen",
2870            dottedOverlay: "none",
2871            delay: 9000,
2872            navigation: {
2873                keyboardNavigation: "off",
2874                keyboard_direction: "vertical",
2875                mouseScrollNavigation: "off",
2876                mouseScrollReverse: "default",
2877                onHoverStop: "off",
2878                touch: {
2879                    touchenabled: "on",
2880                    swipe_threshold: 75,
2881                    swipe_min_touches: 1,
2882                    swipe_direction: "horizontal",
2883                    drag_block_vertical: false
2884                },
2885                arrows: {
2886                    style: "uranus",
2887                    enable: true,
2888                    hide_onmobile: false,
2889                    hide_over: 479,
2890                    hide_onleave: false,
2891                    tmp: '',
2892                    left: {
2893                        h_align: "left",
2894                        v_align: "center",
2895                        h_offset: 0,
2896                        v_offset: 0
2897                    },
2898                    right: {
2899                        h_align: "right",
2900                        v_align: "center",
2901                        h_offset: 0,
2902                        v_offset: 0
2903                    }
2904                }
2905            },
2906            responsiveLevels: [1240, 1024, 778, 480],
2907            visibilityLevels: [1240, 1024, 778, 480],
2908            gridwidth: [1240, 1024, 778, 480],
2909            gridheight: [868, 768, 960, 720],
2910            lazyType: "none",
2911            scrolleffect: {
2912                blur: "on",
2913                maxblur: "20",
2914                on_slidebg: "on",
2915                direction: "top",
2916                multiplicator: "2",
2917                multiplicator_layers: "2",
2918                tilt: "10",
2919                disable_on_mobile: "off"
2920            },
2921            parallax: {
2922                type: "scroll",
2923                origo: "slidercenter",
2924                speed: 400,
2925                levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 46, 47, 48, 49, 50, 51, 55]
2926            },
2927            shadow: 0,
2928            spinner: "spinner3",
2929            stopLoop: "off",
2930            stopAfterLoops: -1,
2931            stopAtSlide: -1,
2932            shuffle: "off",
2933            autoHeight: "off",
2934            fullScreenAutoWidth: "off",
2935            fullScreenAlignForce: "off",
2936            fullScreenOffsetContainer: "",
2937            fullScreenOffset: "0px",
2938            hideThumbsOnMobile: "off",
2939            hideSliderAtLimit: 0,
2940            hideCaptionAtLimit: 0,
2941            hideAllCaptionAtLilmit: 0,
2942            debugMode: false,
2943            fallbacks: {
2944                simplifyAll: "off",
2945                nextSlideOnWindowFocus: "off",
2946                disableFocusListener: false
2947            }
2948        });
2949    }
2950
2951    /* ================================
2952     home-classic-web-agency
2953     ================================*/
2954    if ($("#rev_slider_1174_1").revolution == undefined) {
2955        revslider_showDoubleJqueryError("#rev_slider_1174_1");
2956    } else {
2957        $("#rev_slider_1174_1").show().revolution({
2958            sliderType: "hero",
2959            jsFileLocation: "revolution/js/",
2960            sliderLayout: "fullscreen",
2961            dottedOverlay: "none",
2962            delay: 9000,
2963            navigation: {
2964            },
2965            responsiveLevels: [1240, 1024, 778, 480],
2966            visibilityLevels: [1240, 1024, 778, 480],
2967            gridwidth: [1240, 1024, 778, 480],
2968            gridheight: [868, 768, 960, 720],
2969            lazyType: "none",
2970            parallax: {
2971                type: "scroll",
2972                origo: "slidercenter",
2973                speed: 400,
2974                levels: [10, 15, 20, 25, 30, 35, 40, -10, -15, -20, -25, -30, -35, -40, -45, 55]
2975            },
2976            shadow: 0,
2977            spinner: "off",
2978            autoHeight: "off",
2979            fullScreenAutoWidth: "off",
2980            fullScreenAlignForce: "off",
2981            fullScreenOffsetContainer: "",
2982            disableProgressBar: "on",
2983            hideThumbsOnMobile: "off",
2984            hideSliderAtLimit: 0,
2985            hideCaptionAtLimit: 0,
2986            hideAllCaptionAtLilmit: 0,
2987            debugMode: false,
2988            fallbacks: {
2989                simplifyAll: "off",
2990                disableFocusListener: false
2991            }
2992        });
2993    }
2994
2995    /* ================================
2996     home-classic-corporate
2997     ================================*/
2998    if ($("#rev_slider_1078_1").revolution == undefined) {
2999        revslider_showDoubleJqueryError("#rev_slider_1078_1");
3000    } else {
3001        $("#rev_slider_1078_1").show().revolution({
3002            sliderType: "standard",
3003            jsFileLocation: "revolution/js/",
3004            sliderLayout: "fullscreen",
3005            dottedOverlay: "none",
3006            delay: 9000,
3007            navigation: {
3008                keyboardNavigation: "on",
3009                keyboard_direction: "horizontal",
3010                mouseScrollNavigation: "off",
3011                mouseScrollReverse: "default",
3012                onHoverStop: "off",
3013                touch: {
3014                    touchenabled: "on",
3015                    swipe_threshold: 75,
3016                    swipe_min_touches: 1,
3017                    swipe_direction: "horizontal",
3018                    drag_block_vertical: false
3019                }
3020                ,
3021                arrows: {
3022                    style: "zeus",
3023                    enable: true,
3024                    hide_onmobile: true,
3025                    hide_under: 600,
3026                    hide_onleave: true,
3027                    hide_delay: 200,
3028                    hide_delay_mobile: 1200,
3029                    tmp: '<div class="tp-title-wrap">  	<div class="tp-arr-imgholder"></div> </div>',
3030                    left: {
3031                        h_align: "left",
3032                        v_align: "center",
3033                        h_offset: 30,
3034                        v_offset: 0
3035                    },
3036                    right: {
3037                        h_align: "right",
3038                        v_align: "center",
3039                        h_offset: 30,
3040                        v_offset: 0
3041                    }
3042                }
3043                ,
3044                bullets: {
3045                    enable: true,
3046                    hide_onmobile: false,
3047                    hide_under: 300,
3048                    style: "hermes",
3049                    hide_onleave: false,
3050                    hide_delay: 200,
3051                    hide_delay_mobile: 1200,
3052                    direction: "horizontal",
3053                    h_align: "center",
3054                    v_align: "bottom",
3055                    h_offset: 0,
3056                    v_offset: 30,
3057                    space: 8,
3058                    tmp: '<span class="tp-bullet-img-wrap">  <span class="tp-bullet-image"></span></span><span class="tp-bullet-title">{{title}}</span>'
3059                }
3060            },
3061            viewPort: {
3062                enable: true,
3063                outof: "pause",
3064                visible_area: "80%",
3065                presize: false
3066            },
3067            responsiveLevels: [1240, 1024, 778, 480],
3068            visibilityLevels: [1240, 1024, 778, 480],
3069            gridwidth: [1240, 1024, 778, 480],
3070            gridheight: [600, 600, 500, 400],
3071            lazyType: "none",
3072            parallax: {
3073                type: "mouse",
3074                origo: "slidercenter",
3075                speed: 2000,
3076                levels: [2, 3, 4, 5, 6, 7, 12, 16, 10, 50, 46, 47, 48, 49, 50, 55]
3077            },
3078            shadow: 0,
3079            spinner: "off",
3080            stopLoop: "off",
3081            stopAfterLoops: -1,
3082            stopAtSlide: -1,
3083            shuffle: "off",
3084            autoHeight: "off",
3085            hideThumbsOnMobile: "off",
3086            hideSliderAtLimit: 0,
3087            hideCaptionAtLimit: 0,
3088            hideAllCaptionAtLilmit: 0,
3089            debugMode: false,
3090            fallbacks: {
3091                simplifyAll: "off",
3092                nextSlideOnWindowFocus: "off",
3093                disableFocusListener: false
3094            }
3095        });
3096    }
3097
3098    /* ================================
3099     home-creative-minimalist-portfolio
3100     ================================*/
3101
3102    if ($("#rev_slider_26_1").revolution == undefined) {
3103        revslider_showDoubleJqueryError("#rev_slider_26_1");
3104    } else {
3105        $("#rev_slider_26_1").show().revolution({
3106            sliderType: "standard",
3107            jsFileLocation: "revolution/js/",
3108            sliderLayout: "fullscreen",
3109            dottedOverlay: "none",
3110            delay: 9000,
3111            navigation: {
3112                keyboardNavigation: "on",
3113                keyboard_direction: "horizontal",
3114                mouseScrollNavigation: "off",
3115                mouseScrollReverse: "default",
3116                onHoverStop: "off",
3117                touch: {
3118                    touchenabled: "on",
3119                    touchOnDesktop: "on",
3120                    swipe_threshold: 75,
3121                    swipe_min_touches: 1,
3122                    swipe_direction: "horizontal",
3123                    drag_block_vertical: false
3124                }
3125                ,
3126                arrows: {
3127                    style: "uranus",
3128                    enable: false,
3129                    hide_onmobile: true,
3130                    hide_under: 778,
3131                    hide_onleave: false,
3132                    tmp: '',
3133                    left: {
3134                        h_align: "left",
3135                        v_align: "center",
3136                        h_offset: 15,
3137                        v_offset: 0
3138                    },
3139                    right: {
3140                        h_align: "right",
3141                        v_align: "center",
3142                        h_offset: 15,
3143                        v_offset: 0
3144                    }
3145                }
3146                ,
3147                bullets: {
3148                    enable: true,
3149                    hide_onmobile: false,
3150                    style: "hermes",
3151                    hide_onleave: false,
3152                    direction: "horizontal",
3153                    h_align: "center",
3154                    v_align: "bottom",
3155                    h_offset: 0,
3156                    v_offset: 30,
3157                    space: 6,
3158                    tmp: ''
3159                }
3160            },
3161            responsiveLevels: [1240, 1025, 778, 480],
3162            visibilityLevels: [1240, 1025, 778, 480],
3163            gridwidth: [1240, 1025, 778, 480],
3164            gridheight: [868, 768, 960, 720],
3165            lazyType: "none",
3166            parallax: {
3167                type: "scroll",
3168                origo: "slidercenter",
3169                speed: 2000,
3170                levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 46, 47, 48, 49, 50, 51, 55],
3171            },
3172            shadow: 0,
3173            spinner: "off",
3174            stopLoop: "off",
3175            stopAfterLoops: -1,
3176            stopAtSlide: -1,
3177            shuffle: "off",
3178            autoHeight: "off",
3179            fullScreenAutoWidth: "off",
3180            fullScreenAlignForce: "off",
3181            fullScreenOffsetContainer: "",
3182            fullScreenOffset: "0px",
3183            hideThumbsOnMobile: "off",
3184            hideSliderAtLimit: 0,
3185            hideCaptionAtLimit: 0,
3186            hideAllCaptionAtLilmit: 0,
3187            debugMode: false,
3188            fallbacks: {
3189                simplifyAll: "off",
3190                nextSlideOnWindowFocus: "off",
3191                disableFocusListener: false,
3192            }
3193        });
3194    }
3195
3196    /*==============================================================*/
3197    //magnificPopup Start 
3198    /*==============================================================*/
3199    $('.header-search-form').magnificPopup({
3200        mainClass: 'mfp-fade',
3201        closeOnBgClick: true,
3202        preloader: false,
3203        // for white backgriund
3204        fixedContentPos: false,
3205        closeBtnInside: false,
3206        callbacks: {
3207            open: function () {
3208                setTimeout(function () {
3209                    $('.search-input').focus();
3210                }, 500);
3211                $('#search-header').parent().addClass('search-popup');
3212                if (!isMobile) {
3213                    $('body').addClass('overflow-hidden');
3214                    //$('body').addClass('position-fixed');
3215                    $('body').addClass('width-100');
3216                    document.onmousewheel = ScrollStop;
3217                } else {
3218                    $('body, html').on('touchmove', function (e) {
3219                        e.preventDefault();
3220                    });
3221                }
3222            },
3223            close: function () {
3224                if (!isMobile) {
3225                    $('body').removeClass('overflow-hidden');
3226                    //$('body').removeClass('position-fixed');
3227                    $('body').removeClass('width-100');
3228                    $('#search-header input[type=text]').each(function (index) {
3229                        if (index == 0) {
3230                            $(this).val('');
3231                            $("#search-header").find("input:eq(" + index + ")").css({ "border": "none", "border-bottom": "2px solid rgba(255,255,255,0.5)" });
3232                        }
3233                    });
3234                    document.onmousewheel = ScrollStart;
3235                } else {
3236                    $('body, html').unbind('touchmove');
3237                }
3238            }
3239        }
3240    });
3241
3242    $("input.search-input").on("keypress", function (event) {
3243        if (event.which == 13 && !isMobile) {
3244            $("button.search-button").trigger("click");
3245            event.preventDefault();
3246        }
3247    });
3248
3249    $("input.search-input").on("keyup", function (event) {
3250        if ($(this).val() == null || $(this).val() == "") {
3251            $(this).css({ "border": "none", "border-bottom": "2px solid red" });
3252        } else {
3253            $(this).css({ "border": "none", "border-bottom": "2px solid rgba(255,255,255,0.5)" });
3254        }
3255    });
3256
3257    $("form.search-form, form.search-form-result").submit(function (event) {
3258        var error = validationSearchForm();
3259        if (error) {
3260            var action = $(this).attr('action');
3261            action = action == '#' || action == '' ? 'blog-grid-3columns.html' : action;
3262            action = action + '?' + $(this).serialize();
3263            window.location = action;
3264        }
3265
3266        event.preventDefault();
3267    });
3268
3269    $(document).on("click", '.navbar .navbar-collapse a.dropdown-toggle, .accordion-style1 .panel-heading a, .accordion-style2 .panel-heading a, .accordion-style3 .panel-heading a, .toggles .panel-heading a, .toggles-style2 .panel-heading a, .toggles-style3 .panel-heading a, a.carousel-control, .nav-tabs a[data-toggle="tab"], a.shopping-cart', function (e) {
3270        e.preventDefault();
3271    });
3272
3273    $(document).on('touchstart click', 'body', function (e) {
3274        if ($(window).width() < 992) {
3275            if (!$('.navbar-collapse').has(e.target).is('.navbar-collapse') && $('.navbar-collapse').hasClass('show') && !$(e.target).hasClass('navbar-toggle')) {
3276                $('.navbar-collapse').collapse('hide');
3277            }
3278        } else {
3279            if (!$('.navbar-collapse').has(e.target).is('.navbar-collapse') && $('.navbar-collapse').hasClass('show')) {
3280                $('.navbar-collapse').find('a.dropdown-toggle').addClass('collapsed');
3281                $('.navbar-collapse').find('ul.dropdown-menu').removeClass('show');
3282                $('.navbar-collapse a.dropdown-toggle').removeClass('active');
3283            }
3284        }
3285    });
3286
3287    $('.navbar-collapse a.dropdown-toggle').on('touchstart', function (e) {
3288        $('.navbar-collapse a.dropdown-toggle').not(this).removeClass('active');
3289        if ($(this).hasClass('active'))
3290            $(this).removeClass('active');
3291        else
3292            $(this).addClass('active');
3293    });
3294
3295    $('button.navbar-toggle').on("click", function (e) {
3296        if (isMobile) {
3297            $(".cart-content").css('opacity', '0');
3298            $(".cart-content").css('visibility', 'hidden');
3299        }
3300    });
3301
3302    $('a.dropdown-toggle').on("click", function (e) {
3303        if (isMobile) {
3304            $(".cart-content").css('opacity', '0');
3305            $(".cart-content").css('visibility', 'hidden');
3306        }
3307    });
3308
3309    $(document).on('touchstart click', '.navbar-collapse [data-toggle="dropdown"]', function (event) {
3310
3311        var $innerLinkLI = $(this).parents('ul.navbar-nav').find('li.dropdown a.inner
3311-link').parent('li.dropdown');
3312        if (!$(this).hasClass('inner-link') && !$(this).hasClass('dropdown-toggle') && $innerLinkLI.hasClass('show')) {
3313            $innerLinkLI.removeClass('show');
3314        }
3315        var target = $(this).attr('target');
3316        if ($(window).width() <= 991 && $(this).attr('href') && $(this).attr('href').indexOf("#") <= -1 && !$(event.target).is('i')) {
3317            if (event.ctrlKey || event.metaKey) {
3318                window.open($(this).attr('href'), "_blank");
3319                return false;
3320            } else if (!target)
3321                window.location = $(this).attr('href');
3322            else
3323                window.open($(this).attr('href'), target);
3324
3325        } else if ($(window).width() > 991 && $(this).attr('href').indexOf("#") <= -1) {
3326            if (event.ctrlKey || event.metaKey) {
3327                window.open($(this).attr('href'), "_blank");
3328                return false;
3329            } else if (!target)
3330                window.location = $(this).attr('href');
3331            else
3332                window.open($(this).attr('href'), target);
3333
3334        } else if ($(window).width() <= 991 && $(this).attr('href') && $(this).attr('href').length > 1 && $(this).attr('href').indexOf("#") >= 0 && $(this).hasClass('inner-link')) {
3335            $(this).parents('ul.navbar-nav').find('li.dropdown').not($(this).parent('.dropdown')).removeClass('show');
3336            if ($(this).parent('.dropdown').hasClass('show')) {
3337                $(this).parent('.dropdown').removeClass('show');
3338            } else {
3339                $(this).parent('.dropdown').addClass('show');
3340            }
3341            $(this).toggleClass('active');
3342        }
3343    });
3344
3345    /* ===================================
3346     skillbar
3347     ====================================== */
3348    $('.skillbar').appear();
3349    $('.skillbar').skillBars({
3350        from: 0,
3351        speed: 4000,
3352        interval: 100,
3353        decimals: 0
3354    });
3355
3356    $(document.body).on('appear', '.skillbar', function (e) {
3357        // this code is executed for each appeared element
3358        if (!$(this).hasClass('appear')) {
3359            $(this).addClass('appear');
3360            $(this).find('.skillbar-bar').css("width", "0%");
3361            $(this).skillBars({
3362                from: 0,
3363                speed: 4000,
3364                interval: 100,
3365                decimals: 0
3366            });
3367        }
3368    });
3369
3370    /*==============================================================*/
3371    //Set Resize Header Menu - START CODE
3372    /*==============================================================*/
3373    $('nav.full-width-pull-menu ul.panel-group li.dropdown a.dropdown-toggle').on("click", function (e) {
3374        if ($(this).parent('li').find('ul.dropdown-menu').length > 0) {
3375            if ($(this).parent('li').hasClass('show')) {
3376                $(this).parent('li').removeClass('show');
3377            } else {
3378                $(this).parent('li').addClass('show');
3379            }
3380        }
3381    });
3382    $(document).on('click', '.tab-sec-up a.nav-link', function (e) {
3383        $('.tab-sec-middle a.nav-link').removeClass('active');
3384        $('.tab-sec-down a.nav-link').removeClass('active');
3385
3386        return false;
3387    });
3388    $(document).on('click', '.tab-sec-middle a.nav-link', function (e) {
3389        $('.tab-sec-up a.nav-link').removeClass('active');
3390        $('.tab-sec-down a.nav-link').removeClass('active');
3391
3392        return false;
3393    });
3394    $(document).on('click', '.tab-sec-down a.nav-link', function (e) {
3395        $('.tab-sec-up a.nav-link').removeClass('active');
3396        $('.tab-sec-middle a.nav-link').removeClass('active');
3397
3398        return false;
3399    });
3400    /*==============================================================*/
3401    //accordion  - START CODE
3402    /*==============================================================*/
3403    $('.accordion-style1 .collapse').on('show.bs.collapse', function () {
3404        var id = $(this).attr('id');
3405        $('a[href="#' + id + '"]').closest('.panel-heading').addClass('active-accordion');
3406        $('a[href="#' + id + '"] .panel-title span').html('<i class="ti-minus"></i>');
3407    });
3408
3409    $('.accordion-style1 .collapse').on('hide.bs.collapse', function () {
3410        var id = $(this).attr('id');
3411        $('a[href="#' + id + '"]').closest('.panel-heading').removeClass('active-accordion');
3412        $('a[href="#' + id + '"] .panel-title span').html('<i class="ti-plus"></i>');
3413    });
3414
3415    $(document).on('click', '.nav.navbar-nav a.inner-link', function (e) {
3416        $(this).parents('ul.navbar-nav').find('a.inner-link').removeClass('active');
3417        var $this = $(this);
3418        $(this).parents('.navbar-collapse').collapse('hide');
3419
3420        setTimeout(function () {
3421            $this.addClass('active');
3422        }, 1000);
3423    });
3424
3425    $('.accordion-style2 .collapse').on('show.bs.collapse', function () {
3426        var id = $(this).attr('id');
3427        $('a[href="#' + id + '"]').closest('.panel-heading').addClass('active-accordion');
3428        $('a[href="#' + id + '"] .panel-title').find('i').addClass('fa-angle-up').removeClass('fa-angle-down');
3429    });
3430
3431    $('.accordion-style2 .collapse').on('hide.bs.collapse', function () {
3432        var id = $(this).attr('id');
3433        $('a[href="#' + id + '"]').closest('.panel-heading').removeClass('active-accordion');
3434        $('a[href="#' + id + '"] .panel-title').find('i').removeClass('fa-angle-up').addClass('fa-angle-down');
3435    });
3436
3437    $('.accordion-style3 .collapse').on('show.bs.collapse', function () {
3438        var id = $(this).attr('id');
3439        $('a[href="#' + id + '"]').closest('.panel-heading').addClass('active-accordion');
3440        $('a[href="#' + id + '"] .panel-title').find('i').addClass('fa-angle-up').removeClass('fa-angle-down');
3441    });
3442
3443    $('.accordion-style3 .collapse').on('hide.bs.collapse', function () {
3444        var id = $(this).attr('id');
3445        $('a[href="#' + id + '"]').closest('.panel-heading').removeClass('active-accordion');
3446        $('a[href="#' + id + '"] .panel-title').find('i').removeClass('fa-angle-up').addClass('fa-angle-down');
3447    });
3448
3449    /*==============================================================*/
3450    //toggles  - START CODE
3451    /*==============================================================*/
3452    $('.toggles .collapse').on('show.bs.collapse', function () {
3453        var id = $(this).attr('id');
3454        $('a[href="#' + id + '"]').closest('.panel-heading').addClass('active-accordion');
3455        $('a[href="#' + id + '"] .panel-title span').html('<i class="ti-minus"></i>');
3456    });
3457
3458    $('.toggles .collapse').on('hide.bs.collapse', function () {
3459        var id = $(this).attr('id');
3460        $('a[href="#' + id + '"]').closest('.panel-heading').removeClass('active-accordion');
3461        $('a[href="#' + id + '"] .panel-title span').html('<i class="ti-plus"></i>');
3462    });
3463
3464    $('.toggles-style2 .collapse').on('show.bs.collapse', function () {
3465        var id = $(this).attr('id');
3466        $('a[href="#' + id + '"]').closest('.panel-heading').addClass('active-accordion');
3467        $('a[href="#' + id + '"] .panel-title span').html('<i class="fa fa-angle-up"></i>');
3468    });
3469
3470    $('.toggles-style2 .collapse').on('hide.bs.collapse', function () {
3471        var id = $(this).attr('id');
3472        $('a[href="#' + id + '"]').closest('.panel-heading').removeClass('active-accordion');
3473        $('a[href="#' + id + '"] .panel-title span').html('<i class="fas fa-angle-down"></i>');
3474    });
3475
3476    /* ===================================
3477     blog hover box
3478     ====================================== */
3479    $(document).on("mouseenter", ".blog-post-style4 .grid-item", function (e) {
3480        $(this).find("figcaption .blog-hover-text").slideDown(300);
3481    });
3482    $(document).on("mouseleave", ".blog-post-style4 .grid-item", function (e) {
3483        $(this).find("figcaption .blog-hover-text").slideUp(300);
3484    });
3485    SetResizeContent();
3486
3487    var $allNonRatinaImages = $("img:not([data-rjs])");
3488    $allNonRatinaImages.attr('data-no-retina', '');
3489
3490    /*==============================================================*/
3491    //demo button  - START CODE
3492    /*==============================================================*/
3493    /*var $buythemediv = '<div class="buy-theme alt-font md-display-none">
3493<a href="https://themeforest.net/item/pofo-creative-agency-corporate-and-portfolio-multipurpose-template/20645944?ref=themezaa" target="_blank"><i class="ti-shopping-cart"></i><span>Buy Theme</span></a></div><div class="all-demo alt-font md-display-none"><a href="mailto:[email protected]?subject=POFO - Creative Agency, Corporate and Portfolio Multi-purpose Template - Quick Question"><i class="ti-email"></i><span>Quick Question?</span></a></div>';
3494    $('body').append($buythemediv);*/
3495
3496    $(document).on("touchstart", ".sidebar-wrapper", function () {
3497        clearOpen();
3498    });
3499
3500    var getNav = $("nav.navbar.bootsnav"), getIn = getNav.find("ul.nav").data("in"), getOut = getNav.find("ul.nav").data("out");
3501    function clearOpen() {
3502        $('li.dropdown').removeClass("on").removeClass("show");
3503        $(".dropdown-menu").stop().fadeOut('fast');
3504        $(".dropdown-menu").removeClass(getIn);
3505        $(".dropdown-menu").addClass(getOut);
3506    }
3507    /*
3508    $('.nav-tabs').find('a').on('shown.bs.tab', function (e) {
3509
3510
3511    });
3512    */
3513});
3514/* ===================================
3515 END READY
3516 ====================================== */
3517
3518/* ===================================
3519 START Page Load
3520 ====================================== */
3521$(document).on('load', function () {
3522    var hash = window.location.hash.substr(1);
3523    if (hash != "") {
3524        setTimeout(function () {
3525            $(document).imagesLoaded(function () {
3526                var scrollAnimationTime = 1200,
3527                    scrollAnimation = 'easeInOutExpo';
3528                var target = '#' + hash;
3529                if ($(target).length > 0) {
3530
3531                    $('html, body').stop()
3532                        .animate({
3533                            'scrollTop': $(target).offset().top
3534                        }, scrollAnimationTime, scrollAnimation, function () {
3535                            window.location.hash = target;
3536                        });
3537                }
3538            });
3539        }, 500);
3540    }
3541
3542    fullScreenHeight();
3543
3544});

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.