function open_panel(){$("#popup-content").animate({right:"0px"},400,function(){$("#inq-btn").fadeOut()})}function close_panel(){$("#popup-content").animate({right:"-342px"},400,function(){$("#inq-btn").fadeIn(),null!=quickContact&&quickContact.resetForm()})}!function(e){e(function(){e(document).off("click.bs.tab.data-api",'[data-hover="tab"]'),e(document).on("mouseenter.bs.tab.data-api",'[data-toggle="tab"], [data-hover="tab"]',function(){e(this).parents(".expertise_nav").length>0&&e(this).tab("show")}),e(document).ready(function(){e(".mm_menu.expertise .container").mouseleave(function(){e(".expertise_nav.nav.nav-tabs li").removeClass("active"),e(".mm_menu.expertise .tab-content div").removeClass("active"),e(".mm_menu.expertise .tab-content div:first-child").addClass("active")})})})}(jQuery),window.Modernizr=function(e,t,n){function i(e){y.cssText=e}function o(e,t){return typeof e===t}function a(e,t){return!!~(""+e).indexOf(t)}function r(e,t){for(var i in e){var o=e[i];if(!a(o,"-")&&y[o]!==n)return"pfx"!=t||o}return!1}function s(e,t,i){for(var a in e){var r=t[e[a]];if(r!==n)return i===!1?e[a]:o(r,"function")?r.bind(i||t):r}return!1}function l(e,t,n){var i=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+b.join(i+" ")+i).split(" ");return o(t,"string")||o(t,"undefined")?r(a,t):(a=(e+" "+j.join(i+" ")+i).split(" "),s(a,t,n))}var c,d,u,p="2.6.2",m={},h=!0,f=t.documentElement,v="modernizr",g=t.createElement(v),y=g.style,w=({}.toString,"Webkit Moz O ms"),b=w.split(" "),j=w.toLowerCase().split(" "),x={},C=[],k=C.slice,Q={}.hasOwnProperty;u=o(Q,"undefined")||o(Q.call,"undefined")?function(e,t){return t in e&&o(e.constructor.prototype[t],"undefined")}:function(e,t){return Q.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError;var n=k.call(arguments,1),i=function(){if(this instanceof i){var o=function(){};o.prototype=t.prototype;var a=new o,r=t.apply(a,n.concat(k.call(arguments)));return Object(r)===r?r:a}return t.apply(e,n.concat(k.call(arguments)))};return i}),x.csstransitions=function(){return l("transition")};for(var _ in x)u(x,_)&&(d=_.toLowerCase(),m[d]=x[_](),C.push((m[d]?"":"no-")+d));return m.addTest=function(e,t){if("object"==typeof e)for(var i in e)u(e,i)&&m.addTest(i,e[i]);else{if(e=e.toLowerCase(),m[e]!==n)return m;t="function"==typeof t?t():t,"undefined"!=typeof h&&h&&(f.className+=" "+(t?"":"no-")+e),m[e]=t}return m},i(""),g=c=null,function(e,t){function n(e,t){var n=e.createElement("p"),i=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x",i.insertBefore(n.lastChild,i.firstChild)}function i(){var e=g.elements;return"string"==typeof e?e.split(" "):e}function o(e){var t=v[e[h]];return t||(t={},f++,e[h]=f,v[f]=t),t}function a(e,n,i){if(n||(n=t),d)return n.createElement(e);i||(i=o(n));var a;return a=i.cache[e]?i.cache[e].cloneNode():m.test(e)?(i.cache[e]=i.createElem(e)).cloneNode():i.createElem(e),a.canHaveChildren&&!p.test(e)?i.frag.appendChild(a):a}function r(e,n){if(e||(e=t),d)return e.createDocumentFragment();n=n||o(e);for(var a=n.frag.cloneNode(),r=0,s=i(),l=s.length;r",c="hidden"in e,d=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(e){c=!0,d=!0}}();var g={elements:u.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:u.shivCSS!==!1,supportsUnknownElements:d,shivMethods:u.shivMethods!==!1,type:"default",shivDocument:l,createElement:a,createDocumentFragment:r};e.html5=g,l(t)}(this,t),m._version=p,m._domPrefixes=j,m._cssomPrefixes=b,m.testProp=function(e){return r([e])},m.testAllProps=l,f.className=f.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(h?" js "+C.join(" "):""),m}(this,this.document),function(e,t,n){function i(e){return"[object Function]"==v.call(e)}function o(e){return"string"==typeof e}function a(){}function r(e){return!e||"loaded"==e||"complete"==e||"uninitialized"==e}function s(){var e=g.shift();y=1,e?e.t?h(function(){("c"==e.t?p.injectCss:p.injectJs)(e.s,0,e.a,e.x,e.e,1)},0):(e(),s()):y=0}function l(e,n,i,o,a,l,c){function d(t){if(!m&&r(u.readyState)&&(w.r=m=1,!y&&s(),u.onload=u.onreadystatechange=null,t)){"img"!=e&&h(function(){j.removeChild(u)},50);for(var i in _[n])_[n].hasOwnProperty(i)&&_[n][i].onload()}}var c=c||p.errorTimeout,u=t.createElement(e),m=0,v=0,w={t:i,s:n,e:a,a:l,x:c};1===_[n]&&(v=1,_[n]=[]),"object"==e?u.data=n:(u.src=n,u.type=e),u.width=u.height="0",u.onerror=u.onload=u.onreadystatechange=function(){d.call(this,v)},g.splice(o,0,w),"img"!=e&&(v||2===_[n]?(j.insertBefore(u,b?null:f),h(d,c)):_[n].push(u))}function c(e,t,n,i,a){return y=0,t=t||"j",o(e)?l("c"==t?C:x,e,t,this.i++,n,i,a):(g.splice(this.i++,0,e),1==g.length&&s()),this}function d(){var e=p;return e.loader={load:c,i:0},e}var u,p,m=t.documentElement,h=e.setTimeout,f=t.getElementsByTagName("script")[0],v={}.toString,g=[],y=0,w="MozAppearance"in m.style,b=w&&!!t.createRange().compareNode,j=b?m:f.parentNode,m=e.opera&&"[object Opera]"==v.call(e.opera),m=!!t.attachEvent&&!m,x=w?"object":m?"script":"img",C=m?"script":x,k=Array.isArray||function(e){return"[object Array]"==v.call(e)},Q=[],_={},S={timeout:function(e,t){return t.length&&(e.timeout=t[0]),e}};p=function(e){function t(e){var t,n,i,e=e.split("!"),o=Q.length,a=e.pop(),r=e.length,a={url:a,origUrl:a,prefixes:e};for(n=0;ni?i/n:1),a=(t.y-e.offset().top-i/2)*(i>n?n/i:1),r=Math.round((Math.atan2(a,o)*(180/Math.PI)+180)/90+3)%4;return r},_getStyle:function(e){var t,n,i={left:"0px",top:"-100%"},o={left:"0px",top:"100%"},a={left:"-100%",top:"0px"},r={left:"100%",top:"0px"},s={top:"0px"},l={left:"0px"};switch(e){case 0:t=this.options.inverse?o:i,n=s;break;case 1:t=this.options.inverse?a:r,n=l;break;case 2:t=this.options.inverse?i:o,n=s;break;case 3:t=this.options.inverse?r:a,n=l}return{from:t,to:n}},_applyAnimation:function(t,n,i){e.fn.applyStyle=this.support?e.fn.css:e.fn.animate,t.stop().applyStyle(n,e.extend(!0,[],{duration:i+"ms"}))}};var i=function(e){t.console&&t.console.error(e)};e.fn.hoverdir=function(t){var n=e.data(this,"hoverdir");if("string"==typeof t){var o=Array.prototype.slice.call(arguments,1);this.each(function(){return n?e.isFunction(n[t])&&"_"!==t.charAt(0)?void n[t].apply(n,o):void i("no such method '"+t+"' for hoverdir instance"):void i("cannot call methods on hoverdir prior to initialization; attempted to call method '"+t+"'")})}else this.each(function(){n?n._init():n=e.data(this,"hoverdir",new e.HoverDir(t,this))});return n}}(jQuery,window);var quickContact=null;jQuery(document).ready(function(e){function t(){e("[data-fancybox]").fancybox({youtube:{controls:0,showinfo:0,params:{autoplay:1,rel:0}},afterLoad:function(e,t){t.$content.css({overflow:"visible",background:"#000"})},onUpdate:function(e,t){var n,i,o=16/9,a=t.$content;a&&(a.hide(),n=t.$slide.width(),i=t.$slide.height()-100,i*o>n?i=n/o:n=i*o,a.css({width:n,height:i}).show())}})}function n(){var t=!e(".cd-dropdown").hasClass("dropdown-is-active");e(".cd-dropdown").toggleClass("dropdown-is-active",t),e(".cd-dropdown-trigger").toggleClass("dropdown-is-active",t),t||e(".cd-dropdown").one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){e(".has-children ul").addClass("is-hidden"),e(".move-out").removeClass("move-out"),e(".is-active").removeClass("is-active")})}function i(e){var t=/^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;return!!t.test(e)}e(window).scroll(function(){e(this).scrollTop()>70?(e("#header").addClass("fadeInDown stickyheader"),e(".head-top").css("display","none")):(e("#header").removeClass("fadeInDown stickyheader"),e(".head-top").css("display","block"))}),e(window).scroll(function(){e(this).scrollTop()>70?e("#tabMenu").addClass("fadeInDown stickytab"):e("#tabMenu").removeClass("fadeInDown stickytab")}),e(".smoothscroll").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var t=e(this.hash);if(t=t.length?t:e("[name="+this.hash.slice(1)+"]"),t.length)return e("html,body").animate({scrollTop:t.offset().top-150},1e3),!1}}),e(".carousel").swipe({swipe:function(t,n,i,o,a,r){"left"==n&&e(this).carousel("next"),"right"==n&&e(this).carousel("prev")},allowPageScroll:"vertical"}),e(".cd-dropdown").height(e(window).height()),e(window).resize(function(){e(".cd-dropdown").height(e(window).height())}),e(".recent-post-wrapper").each(function(){var t=e(this);e.ajax({url:"https://www.weblineindia.com/wp-json/wp/v2/posts?per_page=3",type:"GET",dataType:"json",beforeSend:function(){t.html('
Loading Recent Posts
'),t.find(".loading-image").show()},complete:function(){t.find(".loading-image").hide()},success:function(e){var n="";for(var i in e)n+="
"+e[i].title.rendered+"

"+e[i].title.rendered+"

"+e[i].excerpt.rendered+"Read more
";t.append(n)}})});var o="https://www.weblineindia.com/wp-admin/admin-ajax.php";e(".project-slider:not(.related-projects)").each(function(){var t=e(this);t.wrap("
"),t.parent().prepend('

Our Latest Projects

'),t.parent().append('');var n=t.data("catid"),i=t.data("limit");jQuery.ajax({url:o,type:"post",data:{action:"get_portfolio",category:n,limit:i},success:function(e){t.html(e),t.owlCarousel({autoPlay:200,loop:!1,items:5,slideBy:"page",dots:!1,nav:!0,navContainer:".project-slider",navText:['',''],responsiveClass:!0,responsive:{0:{items:1},480:{items:2},979:{items:3},1023:{items:4},1025:{items:4},1400:{items:5},1600:{items:5}}})}})});var a="https://www.weblineindia.com/wp-admin/admin-ajax.php";e(".testimonial-slider").each(function(){var n=e(this),i=n.data("catid"),o=n.data("type"),r=n.data("limit");jQuery.ajax({url:a,type:"post",data:{action:"get_testimonial",category:i,type:o,limit:r},success:function(e){n.html(e),n.owlCarousel({dots:!1,loop:!0,autoHeight:!0,stopOnHover:!0,autoPlay:2e3,navContainer:".testimonial",navText:['',''],items:1,margin:10,dots:!0,responsive:{0:{items:1,nav:!1,dots:!0},600:{items:1,nav:!1},1e3:{items:1}}}),t()}})}),t(),e("#casestudy_downloadform").validate({rules:{txtname:{required:!0},txtemail:{required:!0,email:!0}},submitHandler:function(t){var n="https://www.weblineindia.com/wp-admin/admin-ajax.php",i=e("#download-casestudy");return jQuery(".errorMsg",i).html(""),jQuery(".successMsg",i).html(""),user_name=jQuery("#txtname",i).val(),user_email=jQuery("#txtemail",i).val(),checkSubscribe=jQuery("#checkSubscribe",i).prop("checked"),post_id=jQuery("#postid",i).val(),nonce=jQuery("#wli-nonce",i).val(),jQuery.ajax({type:"POST",url:n,data:{action:"download_casestudy",name:user_name,email:user_email,subscribe:checkSubscribe,security:nonce,postID:post_id},success:function(e,t,n){var o=jQuery.parseJSON(e);1==o.status?(jQuery(".successMsg",i).html(o.message),jQuery("#casestudy_downloadform",i).hide()):jQuery(".errorMsg",i).html(o.message)},error:function(){}}),!1}}),e("#download-casestudy").on("hidden.bs.modal",function(){var t=e("#download-casestudy");jQuery(".errorMsg",t).html(""),jQuery(".successMsg",t).html(""),jQuery("#casestudy_downloadform",t).show(),e("#casestudy_downloadform").trigger("reset")}),e(".related-projects").owlCarousel({autoPlay:200,loop:!0,items:5,responsiveClass:!0,responsive:{0:{items:1,nav:!1},480:{items:2,nav:!1},979:{items:3,nav:!1},1023:{items:4,loop:!1},1025:{items:4,loop:!1},1400:{items:5,loop:!1},1600:{items:5,loop:!1}}}),e("#team-slider").owlCarousel({autoPlay:4e3,items:4,responsive:{0:{items:1,nav:!1},480:{items:2,nav:!1},768:{items:3,nav:!1},1024:{items:4,nav:!1},1200:{items:4,loop:!1}}}),e("#customer-slider").imagesLoaded(function(){e("#customer-slider").owlCarousel({dots:!1,autoplay:!0,autoplayTimeout:2e3,loop:!0,items:8,margin:10,responsive:{0:{items:3,nav:!1},767:{items:3,nav:!1},768:{items:4,nav:!1},1024:{items:8,nav:!1}}})}),e("#technology-slider").owlCarousel({transitionStyle:"fade",navigation:!1,dots:!1,autoPlay:!0,loop:!0,autoplayTimeout:2e3,items:5,responsive:{320:{items:2,nav:!1},767:{items:3,nav:!1},900:{items:4,nav:!1},1200:{items:5}}}),e("#colleagues-slider").owlCarousel({autoPlay:!0,autoplayTimeout:5e3,loop:!0,items:1,nav:!1}),e("#video-black-slider").owlCarousel({center:!0,items:3,loop:!0,margin:10,nav:!0,autoplay:!0,autoplayTimeout:5e3,dots:!1,lazyLoad:!0,navContainer:"#video-black-slider",navText:['',''],responsive:{0:{items:1},767:{items:3}}}),(new WOW).init(),e(".cd-dropdown-trigger").on("click",function(e){e.preventDefault(),n()}),e(".cd-dropdown .cd-close").on("click",function(e){e.preventDefault(),n()}),e(".has-children").children("a").on("click",function(t){t.preventDefault();var n=e(this);n.next("ul").removeClass("is-hidden").end().parent(".has-children").parent("ul").addClass("move-out")});var r=e(".cd-dropdown-wrapper").hasClass("open-to-left")?"left":"right";e(".cd-dropdown-content").menuAim({activate:function(t){e(t).children().addClass("is-active").removeClass("fade-out"),0==e(".cd-dropdown-content .fade-in").length&&e(t).children("ul").addClass("fade-in")},deactivate:function(t){e(t).children().removeClass("is-active"),(0==e("li.has-children:hover").length||e("li.has-children:hover").is(e(t)))&&(e(".cd-dropdown-content").find(".fade-in").removeClass("fade-in"),e(t).children("ul").addClass("fade-out"))},exitMenu:function(){return e(".cd-dropdown-content").find(".is-active").removeClass("is-active"),!0},submenuDirection:r}),e(".go-back").on("click",function(){var t=e(this);e(this).parent("ul").parent(".has-children").parent("ul");t.parent("ul").addClass("is-hidden").parent(".has-children").parent("ul").removeClass("move-out")}),e(".cd-dropdown-trigger,.cd-close").click(function(){e("body").toggleClass("mobile-body")}),e(function(){e(".services_listing .service-tile").each(function(){e(this).hoverdir()})}),e(".carousel").carousel({interval:4e3,pause:null}),e(".blog-grid").length&&e(".blog-grid").imagesLoaded(function(){e(".blog-grid").masonry({itemSelector:".blog-grid-items",columnWidth:".blog-grid-items",resize:!0})});var s="";e(".testimonial-grid").length&&e(".testimonial-grid").imagesLoaded(function(){s=e(".testimonial-grid").masonry({itemSelector:".grid-item"})}),e(".testimonial-tab .nav-tabs a").on("shown.bs.tab",function(t){var n=e(t.target).attr("href");"#other_testimonials"==n&&s.masonry("layout")}),void 0!=e.infinitescroll&&e(".portfolio-grid").infinitescroll({navSelector:"ul.pagination",nextSelector:"ul.pagination a:first",itemSelector:".portfolio-grid div.portfolio-content",loadingText:"Load new portfolio",loading:{img:"/wp-content/themes/weblineindia/img/ajax-loader.gif",finishedMsg:"No more results found.",msgText:"",selector:".loadmore-block"},errorCallback:function(){}},function(t){var n=e(t).css("opacity",0);n.animate({opacity:1}),e(".portfolio-grid").append(e(n))}),e("#contact").validate({rules:{name:{required:!0,maxlength:100},email:{required:!0,email:!0},phone:{maxlength:25},projdescription:{required:!0}},errorPlacement:function(e,t){return!0},highlight:function(t){e(t).parent("div").addClass("error")},unhighlight:function(t){e(t).parent("div").removeClass("error")},onfocusout:function(t){return tmpval=e(t).val().trim(),""==tmpval?e(t).siblings(".formlabel").removeClass("labelup"):e(t).siblings(".formlabel").addClass("labelup"),!0}});var l="https://www.weblineindia.com/wp-admin/admin-ajax.php";jQuery(".subscribeBtn").click(function(){var e=jQuery(this).closest("div.subscribeform");return email=jQuery(".txtEmail",e).val(),0==jQuery.trim(email).length?(jQuery(".errorMsg",e).html("Please Enter Valid Email ID."),!1):i(email)?(jQuery.ajax({type:"POST",url:l,data:{action:"subscribe_newsletter",email:email},beforeSend:function(){jQuery(".nbw_loader",e).show()},success:function(t,n,i){var o=jQuery.parseJSON(t);1==o.flag?jQuery(".formin",e).fadeOut(600,function(){jQuery(".successMsg",e).html(o.msg).show()}):jQuery(".errorMsg",e).html(o.msg),jQuery(".nbw_loader",e).hide()},error:function(){jQuery(".errorMsg".container).html("Something went wrong. Please try again."),jQuery(".nbw_loader",e).hide()}}),!1):(jQuery(".errorMsg",e).html("Invalid Email ID."),!1)}),quickContact=e("#quick-contact").validate({rules:{name:{required:!0},email:{required:!0,email:!0},projdescription:{required:!0}},submitHandler:function(t){var n=e("#popup-content"),i="https://www.weblineindia.com/quick-contact-submit.php";return name=jQuery(".name",n).val(),email=jQuery(".email",n).val(),phone=jQuery(".phone",n).val(),skypeid=jQuery(".skype",n).val(),projdescription=jQuery(".project_desc",n).val(),jQuery.ajax({type:"POST",url:i,data:{name:name,email:email,phone:phone,skypeid:skypeid,projdescription:projdescription},beforeSend:function(){jQuery(".btn-quick-submit",n).hide(),jQuery(".errorMsg",n).html("").hide(),jQuery("#loader",n).html('
Loading Recent Posts
').show()},complete:function(){e("#loader",n).hide(),jQuery(".btn-quick-submit",n).show()},success:function(e,t,i){var o=JSON.parse(e);1==o.status?window.location="/thank-you.html":jQuery(".errorMsg",n).html(o.message).show()},error:function(){jQuery(".errorMsg",n).html("Something went wrong. Please try again.").show()}}),!1}})}),function(e){e.fn.scrollToTop=function(t){var n={speed:800};return t&&e.extend(n,{speed:t}),this.each(function(){var t=e(this);e(window).scroll(function(){e(this).scrollTop()>100?t.fadeIn():t.fadeOut()}),t.click(function(t){t.preventDefault(),e("body, html").animate({scrollTop:0},n.speed)})})},e("#toTop").scrollToTop()}(jQuery),$(document).ready(function(){var e=$(document).height()/3,t=$(window).height()/2,n=0;e-=t,$(window).scroll(function(){0==n&&$(window).scrollTop()>e&&(n=1,open_panel())})});