1 2var offsetCalc=100;if(jQuery('.fl-page-nav-right-transparent')){offsetCalc=0;} 3var FLBuilderLayoutConfig={isRtl:true,anchorLinkAnimations:{duration:1000,easing:'swing',offset:offsetCalc},paths:{home:'http://www.vilna.co.il',pluginUrl:'http://www.vilna.co.il/wp-content/plugins/wipi-builder/',wpAjaxUrl:'http://www.vilna.co.il/wp-admin/admin-ajax.php'}};(function($){if(typeof FLBuilderLayout!='undefined'){return;} 4FLBuilderLayout={init:function() 5{FLBuilderLayout._destroy();FLBuilderLayout._initClasses();FLBuilderLayout._initBackgrounds();if(0===$('.fl-builder-edit').length){FLBuilderLayout._initAnchorLinks();FLBuilderLayout._initHash();FLBuilderLayout._initModuleAnimations();FLBuilderLayout._initForms();}},refreshGalleries:function(element) 6{var $element='undefined'==typeof element?$('body'):$(element),mfContent=$element.find('.fl-mosaicflow-content'),wmContent=$element.find('.fl-gallery'),mfObject=null;if(mfContent){mfObject=mfContent.data('mosaicflow');if(mfObject){mfObject.columns=$([]);mfObject.columnsHeights=[];mfContent.data('mosaicflow',mfObject);mfContent.mosaicflow('refill');}} 7if(wmContent){wmContent.trigger('refreshWookmark');}},_destroy:function() 8{var win=$(window);win.off('scroll.fl-bg-parallax');win.off('resize.fl-bg-video');},_isTouch:function() 9{if(('ontouchstart'in window)||(window.DocumentTouch&&document instanceof DocumentTouch)){return true;} 10return false;},_isMobile:function() 11{return/Mobile|Android|Silk\/|Kindle|BlackBerry|Opera Mini|Opera Mobi|webOS/i.test(navigator.userAgent);},_initClasses:function() 12{var body=$('body');if(body.hasClass('archive')){return;} 13body.addClass('wipi-builder');if(FLBuilderLayout._isTouch()){body.addClass('fl-builder-touch');} 14if(FLBuilderLayout._isMobile()){body.addClass('fl-builder-mobile');}}
14,_initBackgrounds:function() 15{var win=$(window);if($('.fl-row-bg-parallax').length>0&&!FLBuilderLayout._isMobile()){FLBuilderLayout._scrollParallaxBackgrounds();FLBuilderLayout._initParallaxBackgrounds();win.on('scroll.fl-bg-parallax',FLBuilderLayout._scrollParallaxBackgrounds);} 16if($('.fl-bg-video').length>0){FLBuilderLayout._initBgVideos();FLBuilderLayout._resizeBgVideos();win.on('resize.fl-bg-video',FLBuilderLayout._resizeBgVideos);}},_initParallaxBackgrounds:function() 17{$('.fl-row-bg-parallax').each(FLBuilderLayout._initParallaxBackground);},_initParallaxBackground:function() 18{var row=$(this),content=row.find('.fl-row-content-wrap'),src=row.data('parallax-image'),loaded=row.data('parallax-loaded'),img=new Image();if(loaded){return;} 19else if(typeof src!='undefined'){$(img).on('load',function(){content.css('background-image','url('+src+')');row.data('parallax-loaded',true);});img.src=src;}},_scrollParallaxBackgrounds:function() 20{$('.fl-row-bg-parallax').each(FLBuilderLayout._scrollParallaxBackground);},_scrollParallaxBackground:function() 21{var win=$(window),row=$(this),content=row.find('.fl-row-content-wrap'),speed=row.data('parallax-speed'),offset=content.offset(),yPos=-((win.scrollTop()-offset.top)/speed);content.css('background-position','center '+yPos+'px');},_initBgVideos:function() 22{$('.fl-bg-video').each(FLBuilderLayout._initBgVideo);},_initBgVideo:function() 23{var wrap=$(this),width=wrap.data('width'),height=wrap.data('height'),mp4=wrap.data('mp4'),mp4Type=wrap.data('mp4-type'),webm=wrap.data('webm'),webmType=wrap.data('webm-type'),youtube=wrap.data('youtube'),fallback=wrap.data('fallback'),loaded=wrap.data('loaded'),fallbackTag='',videoTag=null,mp4Tag=null,webmTag=null,youtubeTag=null;if(loaded){return;} 24else if(!FLBuilderLayout._isMobile()){videoTag=$('<video autoplay loop muted preload></video>');if('undefined'!=typeof mp4){mp4Tag=$('<source />');mp4Tag.attr('src',mp4);mp4Tag.attr('type',mp4Type);if('undefined'==typeof webm){mp4Tag.on('error',FLBuilderLayout._videoBgSourceError);} 25videoTag.append(mp4Tag);} 26if('undefined'!=typeof webm){webmTag=$('<source />');webmTag.attr('src',webm);webmTag.attr('type',webmType);if('undefined'!=typeof mp4){webmTag.on('error',FLBuilderLayout._videoBgSourceError);} 27videoTag.append(webmTag);} 28if('undefined'!=typeof youtube){var elId=wrap.data('player-id');if('undefined'==typeof YT){var tag=document.createElement('script');tag.src="https://www.youtube.com/player_api";var firstScriptTag=document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);} 29var player;window['onYouTubePlayerAPIReady']=function(){player=new YT.Player(elId,{height:'720',width:'1280',videoId:youtube,playerVars:{playlist:youtube,controls:0,loop:1,modestbranding:1,playsinline:1,showinfo:0,rel:0,start:0,iv_load_policy:3,disablekb:0,cc_load_policy:0,origin:FLBuilderLayoutConfig.paths.home},events:{'onReady':function(){FLBuilderLayout._resizeBgVideos();player.mute();player.playVideo();}}});} 30videoTag=$('<!-- Youtube Video -->');} 31wrap.append(videoTag);} 32else if(''!==fallback){fallbackTag=$('<div></div>');fallbackTag.addClass('fl-bg-video-fallback');fallbackTag.css('background-image','url('+fallback+')');wrap.append(fallbackTag);} 33wrap.data('loaded',true);},_videoBgSourceError:function(e) 34{var source=$(e.target),wrap=source.closest('.fl-bg-video'),vid=wrap.find('video iframe'),fallback=wrap.data('fallback'),fallbackTag='';if(''!==fallback){fallbackTag=$('<div></div>');fallbackTag.addClass('fl-bg-video-fallback');fallbackTag.css('background-image','url('+fallback+')');wrap.append(fallbackTag);vid.remove();}},_resizeBgVideos:function() 35{$('.fl-bg-video').each(function(){FLBuilderLayout._resizeBgVideo.apply(this);if($(this).parent().find('img').length>0){$(this).parent().imagesLoaded($.proxy(FLBuilderLayout._resizeBgVideo,this));}});},_resizeBgVideo:function() 36{if(0===$(this).find('video, iframe').length){return;} 37var wrap=$(this),wrapHeight=wrap.outerHeight(),wrapWidth=wrap.outerWidth(),vid=wrap.find('video, iframe'),vidHeight=wrap.data('height'),vidWidth=wrap.data('width'),newWidth=wrapWidth,newHeight=Math.round(vidHeight*wrapWidth/vidWidth),newLeft=0,newTop=0;if(vidHeight===''||vidWidth===''){vid.css({'left':'0px','top':'0px','width':newWidth+'px'});} 38else{if(newHeight<wrapHeight){newHeight=wrapHeight;newWidth=Math.round(vidWidth*wrapHeight/vidHeight);newLeft=-((newWidth-wrapWidth)/2);} 39else{newTop=-((newHeight-wrapHeight)/2);}
40vid.css({'left':newLeft+'px','top':newTop+'px','height':newHeight+'px','width':newWidth+'px'});}},_initModuleAnimations:function() 41{if(typeof jQuery.fn.waypoint!=='undefined'){$('.fl-animation').waypoint({offset:'80%',handler:FLBuilderLayout._doModuleAnimation});}},_doModuleAnimation:function() 42{var module=$(this),delay=parseFloat(module.data('animation-delay'));if(!isNaN(delay)&&delay>0){setTimeout(function(){module.addClass('fl-animated');},delay*1000);} 43else{module.addClass('fl-animated');}},_initHash:function() 44{var hash=window.location.hash.replace('#','').split('/').shift(),element=null,tabs=null,responsiveLabel=null,tabIndex=null,label=null;if(''!==hash){element=$('#'+hash);if(element.length>0){if(element.hasClass('fl-accordion-item')){setTimeout(function(){element.find('.fl-accordion-button').trigger('click');},100);} 45if(element.hasClass('fl-tabs-panel')){setTimeout(function(){tabs=element.closest('.fl-tabs');responsiveLabel=element.find('.fl-tabs-panel-label');tabIndex=responsiveLabel.data('index');label=tabs.find('.fl-tabs-labels .fl-tabs-label[data-index='+tabIndex+']');if(responsiveLabel.is(':visible')){responsiveLabel.trigger('click');} 46else{FLBuilderLayout._scrollToElement(label);label.trigger('click');}},100);}}}},_initAnchorLinks:function() 47{$('a').each(FLBuilderLayout._initAnchorLink);},_initAnchorLink:function() 48{var link=$(this),href=link.attr('href'),loc=window.location,id=null,element=null;if('undefined'!=typeof href&&href.indexOf('#')>-1){if(loc.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&loc.hostname==this.hostname){try{id=href.split('#').pop();element=$('#'+id);if(element.length>0){if(link.hasClass('fl-scroll-link')||element.hasClass('fl-row')||element.hasClass('fl-col')||element.hasClass('fl-module')){$(link).on('click',FLBuilderLayout._scrollToElementOnLinkClick);} 49if(element.hasClass('fl-accordion-item')){$(link).on('click',FLBuilderLayout._scrollToAccordionOnLinkClick);} 50if(element.hasClass('fl-tabs-panel')){$(link).on('click',FLBuilderLayout._scrollToTabOnLinkClick);}}} 51catch(e){}}}},_scrollToElementOnLinkClick:function(e,callback) 52{var element=$('#'+$(this).attr('href').split('#').pop());FLBuilderLayout._scrollToElement(element,callback);e.preventDefault();},_scrollToElement:function(element,callback) 53{var config=FLBuilderLayoutConfig.anchorLinkAnimations,dest=0,win=$(window),doc=$(document);if(element.length>0){if(element.offset().top>doc.height()-win.height()){dest=doc.height()-win.height();} 54else{dest=element.offset().top-config.offset;} 55$('html, body').animate({scrollTop:dest},config.duration,config.easing,function(){if('undefined'!=typeof callback){callback();} 56if(history.pushState){history.pushState(null,null,'#'+element.attr('id'));} 57else{window.location.hash=element.attr('id');}});}},_scrollToAccordionOnLinkClick:function(e) 58{var element=$('#'+$(this).attr('href').split('#').pop());if(element.length>0){var callback=function(){if(element){element.find('.fl-accordion-button').trigger('click');element=false;}};FLBuilderLayout._scrollToElementOnLinkClick.call(this,e,callback);}},_scrollToTabOnLinkClick:function(e) 59{var element=$('#'+$(this).attr('href').split('#').pop()),tabs=null,label=null,responsiveLabel=null;if(element.length>0){tabs=element.closest('.fl-tabs');responsiveLabel=element.find('.fl-tabs-panel-label');tabIndex=responsiveLabel.data('index');label=tabs.find('.fl-tabs-labels .fl-tabs-label[data-index='+tabIndex+']');if(responsiveLabel.is(':visible')){var callback=function(){if(element){responsiveLabel.trigger('click');element=false;}};FLBuilderLayout._scrollToElementOnLinkClick.call(this,e,callback);} 60else{FLBuilderLayout._scrollToElement(label);label.trigger('click');} 61e.preventDefault();}},_initForms:function() 62{if(!FLBuilderLayout._hasPlaceholderSupport){$('.fl-form-field input').each(FLBuilderLayout._initFormFieldPlaceholderFallback);} 63$('.fl-form-field input').on('focus',FLBuilderLayout._clearFormFieldError);},_hasPlaceholderSupport:function() 64{var input=document.createElement('input');return'undefined'!=input.placeholder;},_initFormFieldPlaceholderFallback:function() 65{var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if('undefined'!=placeholder&&''===val){field.val(placeholder);field.on('focus',FLBuilderLayout._hideFormFieldPlaceholderFallback);
65field.on('blur',FLBuilderLayout._showFormFieldPlaceholderFallback);}},_hideFormFieldPlaceholderFallback:function() 66{var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if(val==placeholder){field.val('');}},_showFormFieldPlaceholderFallback:function() 67{var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if(''===val){field.val(placeholder);}},_clearFormFieldError:function() 68{var field=$(this);field.removeClass('fl-form-error');field.siblings('.fl-form-error-message').hide();}};$(function(){FLBuilderLayout.init();});})(jQuery);(function($){$(function(){$('.fl-embed-video').fitVids();});})(jQuery);(function($){FLBuilderContactFormAdvanced=function(settings) 69{this.settings=settings;this.nodeClass='.fl-node-'+settings.id;this._init();};FLBuilderContactFormAdvanced.prototype={settings:{},nodeClass:'',_init:function() 70{$(this.nodeClass+' .fl-button').click($.proxy(this._submit,this));$(this.nodeClass+' select.has-placeholder').change(this._removeSelectPlaceholder);},_submit:function(e) 71{var theForm=$(this.nodeClass+' .fl-contact-form-advanced'),submit=$(this.nodeClass+' .fl-button'),inputs=$(this.nodeClass+' .fl-input'),input_form_data={},ajaxurl=FLBuilderLayoutConfig.paths.wpAjaxUrl,email_regex=/\S+@\S+\.\S+/,digits_regex=/\d+/,isValid=true,postId=theForm.closest('.fl-builder-content').data('post-id'),templateId=theForm.data('template-id'),templateNodeId=theForm.data('template-node-id'),nodeId=theForm.closest('.fl-module').data('node');e.preventDefault();if(submit.hasClass('fl-disabled')){return;} 72inputs.each(function(){var valid=true;switch($(this).data('validation')){default:case'none':break;case'required':if($(this).attr('type')=='checkbox'){if(!$(this).is(':checked')){valid=false;}}else{if($(this).val()===''){valid=false;}} 73break;case'email':if($(this).val()===''||!email_regex.test($(this).val())){valid=false;} 74break;case'digits':if($(this).val()===''||!digits_regex.test($(this).val())){valid=false;} 75break;} 76if(!valid){isValid=false;$(this).closest('.fl-input-group').addClass('fl-error');}else if($(this).closest('.fl-input-group').hasClass('fl-error')){$(this).closest('.fl-input-group').removeClass('fl-error');}});if(!isValid){return false;} 77else{submit.addClass('fl-disabled');input_form_data=inputs.serializeArray();$.each(input_form_data,function(index,value){var el=$('#'+value.name);if(!el.length){el=$('.'+value.name+':first');} 78input_form_data[index].label=el.data('label').trim();});$.post(ajaxurl,{action:'fl_builder_email_advanced',fields:input_form_data,post_id:postId,template_id:templateId,template_node_id:templateNodeId,node_id:nodeId},$.proxy(this._submitComplete,this));}},_submitComplete:function(response) 79{var urlField=$(this.nodeClass+' .fl-success-url'),noMessage=$(this.nodeClass+' .fl-success-none');if(response==='1'){$(this.nodeClass+' .fl-send-error').fadeOut();if(urlField.length>0){window.location.href=urlField.val();} 80else if(noMessage.length>0){noMessage.fadeIn();} 81else{$(this.nodeClass+' .fl-contact-form').hide();$(this.nodeClass+' .fl-success-msg').fadeIn();}} 82else{$(this.nodeClass+' .fl-button').removeClass('fl-disabled');$(this.nodeClass+' .fl-send-error').fadeIn();return false;}},_removeSelectPlaceholder:function(){if($(this).val().length>0){$(this).removeClass('has-placeholder');}}};})(jQuery);(function($){$(function(){new FLBuilderContactFormAdvanced({id:'5c48b14a4d623'});});})(jQuery);var wpAjaxUrl='http://www.vilna.co.il/wp-admin/admin-ajax.php';var flBuilderUrl='http://www.vilna.co.il/wp-content/plugins/wipi-builder/';
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.