1/* 2***************************************************** 3* WEBMAN'S WORDPRESS THEME FRAMEWORK 4* Created by WebMan - www.webmandesign.eu 5* Copyright by WebMan - www.webmandesign.eu 6* 7* Theme scripts 8***************************************************** 9*/ 10 11/** 12 * @since 1.0 13 * @version 3.0 14 */ 15 16var browserWidth=document.body.clientWidth,autoAccordionDuration="undefined"==typeof autoAccordionDuration?5e3:autoAccordionDuration;jQuery.fn.nospam=function(){return this.each(function(){var a=null,b=jQuery(this);a=jQuery(this).is("a[data-address]")?b.data("address").split("").reverse().join("").replace("[at]","@").replace(/\//g,"."):b.text().split("").reverse().join("").replace("[at]","@").replace(/\//g,"."),a&&(b.is("a[data-address]")?(b.attr("href","mailto:"+a),b.text(a)):b.text(a))})},jQuery(function(){function a(){var a="(-webkit-min-device-pixel-ratio: 1.5),(-moz-min-device-pixel-ratio: 1.5),(-o-min-device-pixel-ratio: 3/2),(min-device-pixel-ratio: 1.5),(min-resolution: 1.5dppx)";return window.devicePixelRatio>1||window.matchMedia&&window.matchMedia(a).matches}function k(){if(j===!0){var a=jQuery("div.accordion-wrapper.auto > ul"),b=a.children().length,c=a.find("li.active"),d=c.index()+1,e=(d+1)%b;a.find("li").eq(e-1).find(".accordion-heading").trigger("click")}}function o(){""==m.val()?m.val(n):n==m.val()&&m.val("")}function s(){p.isotope({layoutMode:q,isOriginLeft:"rtl"!=jQuery("html").attr("dir"),transformsEnabled:"rtl"!=jQuery("html").attr("dir")}),jQuery(".wrap-filter a").on("click",function(a){a.preventDefault();var b=jQuery(this),c=b.data("filter");b.closest(".filterable-content").find(".filter-this").isotope({filter:c,transformsEnabled:"rtl"!=jQuery("html").attr("dir")}),b.addClass("active").parent("li").siblings("li").find("a").removeClass("active")}),jQuery(".filter-this .toggle-wrapper").click(function(){jQuery(".filter-this").isotope("reLayout")})}function z(){v.masonry({itemSelector:"article",isRTL:"rtl"==jQuery("html").attr("dir"),isOriginLeft:"rtl"!=jQuery("html").attr("dir")})}jQuery(".no-js").removeClass("no-js"),jQuery(".lie8 img[height]").removeAttr("height"),jQuery("html.lie8 .price-spec li:nth-child(even)").addClass("even"),jQuery(".top-of-page").hide(),jQuery('.top-of-page, a[href="#top"]').on("click",function(a){a.preventDefault(),jQuery("html, body").animate({scrollTop:0},400)}),jQuery(window).scroll(function(){var a=jQuery(window).scrollTop();a>200?jQuery(".top-of-page").fadeIn():jQuery(".top-of-page").fadeOut()}),a()&&jQuery(".logo img").data("hidpi")&&jQuery(".logo img").attr("src",jQuery(".logo img").data("hidpi")),jQuery(".image-container a").hover(function(){jQuery(this).find(".overlay").stop().animate({top:0},250)},function(){jQuery(this).find(".overlay").stop().animate({top:"150%"},250)}),jQuery(".column.last, hr").after('<div class="clear" />'),jQuery(".wpcf7 p, .wpcf7 span").each(function(){""==jQuery.trim(jQuery(this).html())&&jQuery(this).remove()}),"rtl"!=jQuery("html").attr("dir")?jQuery('.widget_product_search input[type="search"]').css({paddingRight:jQuery('.widget_product_search input[type="submit"]').outerWidth()+10}):jQuery('.widget_product_search input[type="search"]').css({paddingLeft:jQuery('.widget_product_search input[type="submit"]').outerWidth()+10}),jQuery(".nav-main li ul").parent().find("> .inner").append('<ins class="mobile-submenu-open wmicon-down" />'),browserWidth>767&&(jQuery(".nav-main li, .top-bar li").hover(function(){jQuery(this).find("> ul").stop(!0,!0).fadeIn(300)},function(){jQuery(this).find("> ul").stop(!0,!0).fadeOut(100)}),jQuery(".wm-sub-pages a, .widget_archive a, .widget_categories a, .widget_links a, .widget_meta a, .widget_pages a, .widget_nav_menu a, .widget_nav_menu .inner, .sitemap .no-menu a, ul.sub-pages a, .widget_login a, .widget_product_categories a").hover(function(){var a=jQuery(this);a.closest(".wrap").parent().hasClass("top-bar")||a.parent().hasClass("widget-title")||a.parent().hasClass("text-holder")||a.stop().animate({textIndent:5},150)},function(){jQuery(this).stop().animate({textIndent:0},150)})),jQuery(".nav-main .mobile-menu").on("click",function(){jQuery(".nav-main .menu").toggle().toggleClass("active")}),jQuery(window).on("resize orientationchange",function(){browserWidth=document.body.clientWidth,function(){768>browserWidth?(jQuery(".nav-main .menu").hasClass("active")||jQuery(".nav-main .menu").hide(),jQuery(".nav-main .mobile-menu").show()):(jQuery(".nav-main .menu").show(),jQuery(".nav-main .mobile-menu").hide())}()}),jQuery(".mobile-submenu-open").on("click",function(a){a.preventDefault();var b=jQuery(this).toggleClass("active");b.parent().next("ul").toggle()});var b=jQuery("#video-slider.has-cover");if(b.find(".video-container").hide(),b.prev(".video-cover").click(function(){var a=jQuery(this),c=a.closest(".slider").height(a.height()),d=b.find(".video-container iframe").attr("src");a.fadeOut(400,function(){c.find(".video-slider .video-container").fadeIn(250,function(){c.animate({height:jQuery(this).find("iframe").height()},250,function(){jQuery(this).height("auto")})})}),d+=-1==d.indexOf("?")?"?autoplay=1":"&autoplay=1",b.find(".video-container iframe").attr("src",d)}),jQuery().prettyPhoto){var c='a[href*=".gif"], a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".mov"], a[href*=".swf"], .lightbox, a.modal, a[data-modal], a[data-target="modal"], a[rel^="prettyPhoto"], a[rel^="lightbox"]',d={show_title:!1,theme:"pp_default",slideshow:6e3,deeplinking:!0,overlay_gallery:!1,social_tools:!1};jQuery(".gallery, .tiled-gallery, .wm-slideshow").each(function(){var a=jQuery(this),b=a.find(c),d="gallery"+Math.floor(100*Math.random()+1);b.attr({rel:"prettyPhoto["+d+"]",title:function(){return jQuery(this).find("img").attr("title")}})}),jQuery("a[data-rel]").each(function(){var a=jQuery(this);a.attr("rel",a.data("rel"))}),jQuery(c).not(".no-lightbox").prettyPhoto(d),jQuery('a[rel^="prettyPhoto"]').prettyPhoto(d)}if(jQuery("a.email-nospam").nospam(),jQuery("div.tabs-wrapper").length){!function(){var a=jQuery("div.tabs-wrapper > ul");i=0,a.each(function(){var b="";e=jQuery(this),tabsCount=e.children("li").length,e.find(".tab-heading").each(function(){i++;var c=jQuery(this),e=(c.closest("li").attr("id","tab-item-"+i),c.html()),f=tabsCount===i?" last":"";c.addClass("hide"),b+=c.closest("div.tabs-wrapper").hasClass("fullwidth")?'<li class="column col-1'+tabsCount+f+' no-margin"><a href="#tab-item-'+i+' ">'+e+"</a></li>":'<li><a href="#tab-item-'+i+'">'+e+"</a></li>"}),e.before('<ul class="tabs clearfix">'+b+"</ul>")})}();
16var e=jQuery(".tabs "),f=jQuery(".tabs + ul");if(e.find("li:first-child").addClass("active"),f.children().hide(),f.find("li:first-child").show(),e.on("click","a",function(a){a.preventDefault();var b=jQuery(this),c=b.attr("href").replace(/.*#(.*)/,"#$1");b.parent().addClass("active").siblings("li").removeClass("active"),jQuery("li"+c).fadeIn().siblings("li").hide()}),jQuery("div.tabs-wrapper.vertical.tour").length){jQuery('<div class="tour-nav"><span class="prev" data-index="-1"></span><span class="next" data-index="1"></span></div>').prependTo(".tabs-wrapper.tour ul.tabs + ul > li");var g=jQuery(".tabs-wrapper.tour ul.tabs li.active").next("li").html();jQuery(".tour-nav .next").html(g),jQuery(".tour-nav .next a").prepend('<i class="wmicon-right-circle"></i> '),jQuery(".tabs-wrapper.tour ul.tabs a").click(function(){var a=jQuery(this).closest(".tabs-wrapper"),b=a.find("ul.tabs li.active"),c=b.prev("li"),d=b.next("li");c.length?(a.find(".tour-nav .prev").html(c.html()).attr("data-index",c.index()),a.find(".tour-nav .prev a").append(' <i class="wmicon-left-circle"></i>')):a.find(".tour-nav .prev").html(""),d.length?(a.find(".tour-nav .next").html(d.html()).attr("data-index",d.index()),a.find(".tour-nav .next a").prepend('<i class="wmicon-right-circle"></i> ')):a.find(".tour-nav .next").html("")}),jQuery(".tour-nav span").on("click",function(a){a.preventDefault();var b=jQuery(this),c=b.closest(".tabs-wrapper"),d=b.data("index"),e=c.find("ul.tabs li").eq(d).prev("li"),f=c.find("ul.tabs li").eq(d).next("li");targetTab=b.find("a").attr("href"),c.find("ul.tabs li").eq(d).addClass("active").siblings("li").removeClass("active"),c.find("li"+targetTab).fadeIn().siblings("li").hide(),e.length?(c.find(".tour-nav .prev").html(e.html()).attr("data-index",e.index()),c.find(".tour-nav .prev a").append(' <i class="wmicon-left-circle"></i>')):c.find(".tour-nav .prev").html(""),f.length?(c.find(".tour-nav .next").html(f.html()).attr("data-index",f.index()),c.find(".tour-nav .next a").prepend('<i class="wmicon-right-circle"></i> ')):c.find(".tour-nav .next").html("")})}}if(jQuery(".accordion-wrapper").length){!function(){var a=jQuery("div.accordion-wrapper > ul > li");a.each(function(){jQuery(this).find(".accordion-heading").siblings().wrapAll('<div class="accordion-content" />')})}(),jQuery(".accordion-content").slideUp(),jQuery("div.accordion-wrapper > ul > li:first-child .accordion-content").slideDown().parent().addClass("active"),jQuery(".accordion-heading").click(function(){var a=jQuery(this);a.next(".accordion-content").slideDown().parent().addClass("active").siblings("li").removeClass("active"),a.closest(".accordion-wrapper").find("li:not(.active) > .accordion-content").slideUp()});var h=jQuery("div.accordion-wrapper.auto > ul"),j=!0;h.hover(function(){j=!1},function(){j=!0}),setInterval(k,autoAccordionDuration)}jQuery("div.toggle-wrapper").length&&(function(){var a=jQuery("div.toggle-wrapper");a.each(function(){jQuery(this).find("> .toggle-heading").siblings().wrapAll('<div class="toggle-content" />')})}(),jQuery("div.toggle-wrapper div.toggle-wrapper").not(".active").find("> div.toggle-content").hide(),jQuery("div.toggle-wrapper").find("> div.toggle-content").slideUp(),jQuery("div.toggle-wrapper.active").find("> div.toggle-content").slideDown(),jQuery(".toggle-heading").click(function(){jQuery(this).next("div.toggle-content").slideToggle().parent().toggleClass("active")})),jQuery('iframe[src*="youtube.com"]').each(function(){var b=jQuery(this).attr("src");b+=-1==b.indexOf("?")?"?wmode=transparent":"&wmode=transparent",jQuery(this).attr("src",b)}),jQuery(".breadcrumbs.animated-form .form-search").width(120),jQuery('.breadcrumbs.animated-form input[type="text"]').focus(function(){jQuery(this).closest(".form-search").width(200)}).blur(function(){jQuery(this).closest(".form-search").stop().animate({width:120},250)}).hover(function(){jQuery(this).closest(".form-search").stop().animate({width:200},250)},function(){var a=jQuery(this);a.is(":focus")||a.closest(".form-search").stop().animate({width:120},250)});var m=jQuery('.ie .form-search input[type="text"]'),n=m.attr("placeholder");if(o(),m.change(function(){o()}),m.focus(function(){o()}),jQuery().isotope){var p=jQuery(".filter-this"),q=p.data("layout-mode");if(p.hasClass("wrap-projects")){var r=p.find("article:first-child").outerWidth();p.width("101%").find("article").width(r)}jQuery("html").hasClass("ie")?s():p.imagesLoaded(function(){s()})}if(jQuery().bxSlider){if("rtl"!=jQuery("html").attr("dir"))var t="horizontal";else var t="fade";browserWidth>767&&jQuery(".scrollable").each(function(){var b=jQuery(this),c=b.children().eq(0).outerWidth(!0),d=c-b.children().eq(0).outerWidth(),e=b.data("columns")?b.data("columns"):3,f=b.hasClass("stack")?e:1,g=b.data("time")?b.data("time"):4e3;b.bxSlider({auto:b.hasClass("auto"),pause:g,minSlides:e,maxSlides:e,slideWidth:c,slideMargin:d,moveSlides:f,pager:!1,autoHover:!0,useCSS:!1})}),jQuery(".wrap-testimonials-shortcode[data-time]").length&&function(){var a=jQuery(".wrap-testimonials-shortcode[data-time] > div");a.each(function(){var b=jQuery(this),c=b.parent().data("time")+500;b.bxSlider({mode:t,pause:c,auto:!0,autoHover:!0,controls:!1,adaptiveHeight:!0,useCSS:!1})})}(),jQuery(".simple-slider[data-time]").length&&function(){var a=jQuery(".simple-slider[data-time]");a.each(function(){var b=jQuery(this),c=b.data("time")+500;b.bxSlider({mode:t,pause:c,auto:!0,autoHover:!0,controls:!0,pager:!1,adaptiveHeight:!0,useCSS:!1})})}()}if(jQuery(".gallery-columns .column").hover(function(){jQuery(this).find(".gallery-caption").stop().animate({bottom:"-120%"})},function(){jQuery(this).find(".gallery-caption").stop().animate({bottom:0})}),jQuery().masonry){var u=jQuery(".gallery.masonry-container");u.each(function(){var b=jQuery(this),c=b.find("figure:first-child").outerWidth()-2;b.width("105%").find("figure").css({width:c+"px"}),jQuery("html").hasClass("ie")?b.masonry({itemSelector:"figure",isRTL:"rtl"==jQuery("html").attr("dir"),isOriginLeft:"rtl"!=jQuery("html").attr("dir")}):b.imagesLoaded(function(){b.masonry({itemSelector:"figure",isRTL:"rtl"==jQuery("html").attr("dir"),isOriginLeft:"rtl"!=jQuery("html").attr("dir")})})})}if(jQuery().masonry){var v=jQuery(".list-articles.masonry-container"),w=v.find("article:first-child"),x=w.outerWidth()-2,y=w.outerWidth(!0)-x;"rtl"!=jQuery("html").attr("dir")?v.width("110%").find("article").css({width:x+"px",marginRight:y}):v.width(v.width()+y).find("article").css({width:x+"px",marginLeft:y}),jQuery("html").hasClass("ie")?z():v.imagesLoaded(function(){z()})}jQuery().bxSlider&&jQuery(".project-slider").length&&function(){var a=jQuery(".project-slider > ul");a.each(function(){var b=jQuery(this);b.data("time")+500,b.bxSlider({mode:t,auto:!0,autoHover:!0,controls:!0,adaptiveHeight:!0,pagerCustom:"#project-slider-pager"})})}()});
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.