1var $=jQuery.noConflict();var Project={iOS:!!navigator.userAgent.match(/iP(hone|od|ad)/i),init:function() 2{$('html').removeClass('no-js');Project.mobileMenu();Project.newsletterMobile();Project.newsletterPopup();Project.searchForm();Project.homePostSocial();Project.submenu();Project.homeBannerSlider();Project.postCarousel();Project.masonry();Project.weeklyEditPost();Project.navFix();Project.selects();Project.search_clear();Project.contact();},commentForm:function() 3{var form=$('#commentform'),textFields=$('#author').add('#comment'),emailField=$('#email'),flag=true,emailRegex=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(!textFields.length&&!emailField.length){return;} 4$('.comments-area').removeClass('init');form.on('submit',function(){textFields.each(function(){if(!$(this).val()){flag=false;$(this).parent().removeClass('valid').addClass('error');}else{$(this).parent().removeClass('error').addClass('valid');}});if(!emailRegex.test(emailField.val())){flag=false;emailField.parent().removeClass('valid').addClass('error');}else{emailField.parent().removeClass('error').addClass('valid');} 5if(!flag){flag=true;return false;}});},mobileMenu:function() 6{$('.hamburger').click(function(e){e.preventDefault();$('.main-mobile-header .menu').slideToggle();});$('.menu .outfits-wrapper > a').on('click',function(e){e.preventDefault();$(this).next('.sub-menu').slideToggle(600);$(this).toggleClass('clicked');});},mobilePostClick:function() 7{$('.outfits .post').on('click',function(e){var that=$(this);if(WURFL.is_mobile){if(!that.find('header').hasClass('visible')){e.preventDefault();that.find('header').addClass('visible');that.find('.post-inner').addClass('visible');}else{e.preventDefault();Project.weeklyEditPostMobile(that);}}});},navFix:function() 8{var $pagination=$('.nav-links .page-numbers');if(($pagination.first().hasClass('prev')&&$pagination.eq(2).hasClass('dots'))||$pagination.next('.current').text()==="4"){$pagination.eq(1).remove();} 9if($pagination.last().hasClass('next')&&$pagination.eq(-3).hasClass('dots')){$pagination.eq(-2).remove();}},newsletterMobile:function() 10{$('.newsletter-trigger').on("click",function(e){$(this).siblings('form').toggleClass('visible');});},newsletterPopup:function() 11{$('.mc4wp-success [href="#close"]').on('click',function(e){e.preventDefault();$(this).parents('.mc4wp-success').addClass('unvisible');});},searchForm:function() 12{$('.search-trigger').on('click',function(e){e.preventDefault();$(this).hide();$(this).siblings('form').show();});},homePostSocial:function() 13{if($('.home-post').length>0){$('.home-post .addtoany_share_save_container').each(function(){$(this).appendTo($(this).parents('.home-post').find('.share-wrapper'));});}},contact:function() 14{$('.contact-wrapper > p').on('click',function(e){$(this).parent().find('div').toggleClass('visible');});},submenu:function() 15{$('.outfits-link > a').on('click',function(e){if(!WURFL.is_mobile){e.preventDefault();$(this).parent().find('.sub-menu').toggleClass('visible');}});$(document).mouseup(function(e) 16{var container=$(".sub-menu");if(!container.is(e.target)&&container.has(e.target).length===0) 17{$('.sub-menu').removeClass('visible');}});},weeklyEditPostMobile:function() 18{$('.weekly-edit-post').click(function(e){var elem=$(this);var lightboxId=elem.attr('href');$('.weekly-edit-posts').find('#'+lightboxId+'').addClass('visible');$('body').addClass('lightbox-visible');});$('.weekly-lightbox-close').click(function(e){e.preventDefault();$(this).parent().removeClass('visible');$('.post header').removeClass('visible');$('body').removeClass('lightbox-visible');});},weeklyEditPost:function() 19{$('.weekly-edit-post').click(function(e){e.preventDefault();var lightboxId=$(this).attr('href');$('.weekly-edit-posts').find('#'+lightboxId+'').addClass('visible');$('body').addClass('lightbox-visible');});$('.weekly-lightbox-close').click(function(e){e.preventDefault();$(this).parent().removeClass('visible');$('body').removeClass('lightbox-visible');});},homeBannerSlider:function()
20{if($('.home-carousel-inner ').length){$('.home-carousel-inner ').slick({slidesToShow:1,slidesToScroll:1,arrows:false,infinite:true,centerMode:true,touchMove:false,swipe:false,autoplay:false,dots:false,responsive:[{breakpoint:1199,settings:{slidesToShow:1,slidesToScroll:1,centerMode:false}}]});}},postCarousel:function() 21{if($('.post-carousel').length){$('.post-carousel').slick({slidesToShow:4,slidesToScroll:4,arrows:true,infinite:true,speed:1000,autoplay:true,autoplaySpeed:4000,dots:false,responsive:[{breakpoint:767,settings:{arrows:false}}]});}},masonry:function() 22{$('.posts').masonry({itemSelector:'.post',percentPosition:true,columnWidth:'.grid-sizer',gutter:0});},selects:function() 23{if($('select').length){$('select').fancySelect({includeBlank:true});var mySelect=$('.category-filter .fancy-select'),otherSelect=$('.by-category-mobile .fancy-select');mySelect.fancySelect();otherSelect.fancySelect();if(Project.iOS){$('.category-filter select').on('change',goToCategory);$('.by-category-mobile select').on('change',goToCategory);}else{mySelect.on('change.fs',goToCategory);otherSelect.on('change.fs',goToCategory);} 24function goToCategory(){Project.preventZoom();if(Project.iOS){var categoryUrl=$(this).val();}else{var categoryUrl=$(this).find('.options').find('.selected').attr('data-raw-value');} 25window.location.href=categoryUrl;}}},search_clear:function() 26{$('.clear-btn').click(function(){$(this).parent().css('opacity',0);})},zoomDisable:function(){$('head').find('meta[name=viewport]').remove();$('head').prepend('<meta name="viewport"'+'content="width=device-width, initial-scale=1.0, user-scalable=0" />');},zoomEnable:function(){$('head').find('meta[name=viewport]').remove();$('head').prepend('<meta name="viewport"'+'content="width=device-width, initial-scale=1.0, user-scalable=1" />');},preventZoom:function(){if(Project.iOS){$("input, select, .fancy-select, .fancy-select .trigger").on({'touchstart':function(){Project.zoomDisable()}}).on({'touchend':function(){setTimeout(Project.zoomEnable,500)}});}}};$(document).ready(function(){Project.init();});
26$(window).load(function(){Project.commentForm();});
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.