PageSourceSearch

https://www.hamsousvarsberg.fr/wp-content/cache/autoptimize/autopt…954c4600c70f67250ec670493049.php?ver=4.14.0

js hamsousvarsberg.fr collected 2026-10-02 23:02:22 UTC 3,990 bytes, 15 lines download raw bytes

1'use strict';var CustomFacebookFeedElementor=window.CustomFacebookFeedElementor||(function(document,window,$){var vars={};var app={init:function(){app.events();},events:function(){var registerHooks=function(){elementorFrontend.hooks.addAction('frontend/element_ready/cff-widget.default',app.frontendWidgetInit);elementorFrontend.hooks.addAction('frontend/element_ready/sb-facebook-feed.default',app.scheduleMasonryHeal);if('undefined'!==typeof elementor){elementor.hooks.addAction('panel/open_editor/widget/cff-widget',app.widgetPanelOpen);}};if(window.elementorFrontend&&window.elementorFrontend.hooks){registerHooks();}else{$(window).on('elementor/frontend/init',registerHooks);}},CffInitWidget:function(){if(typeof window.cff_init==='function'){window.cff_init();if(jQuery('#cff.cff-lb').length&&jQuery('#cff-lightbox-wrapper').length==0)cffLightbox();}
2app.scheduleMasonryHeal();},scheduleMasonryHeal:function(){if(!app.isChromium()){return;}
3app.healMasonry();setTimeout(app.healMasonry,500);setTimeout(app.healMasonry,1500);app.startMasonryObserver();},_masonryObserverStarted:false,startMasonryObserver:function(){if(app._masonryObserverStarted){return;}
4if(!window.MutationObserver||!document.body){return;}
5app._masonryObserverStarted=true;var t;var mo=new MutationObserver(function(){clearTimeout(t);t=setTimeout(app.healMasonry,250);});mo.observe(document.body,{childList:true,subtree:true});},isChromium:function(){return/Chrome\//.test(navigator.userAgent)||/Edg\//.test(navigator.userAgent);},MASONRY_COLLAPSED_HEIGHT_PX:50,recomputeMasonry:function($wrap,$cff){var wrap=$wrap.get(0);wrap.style.height='';wrap.style.minHeight='';if(typeof $wrap.masonry!=='function'){return;}
6var itemSelector=$cff.find('.cff-album-item').length&&!$cff.find('.cff-item').length?'.cff-album-item, .cff-likebox':'.cff-new, .cff-item, .cff-likebox';try{if($wrap.data('masonry')){$wrap.masonry('destroy');}
7$wrap.masonry({itemSelector:itemSelector,transitionDuration:0,percentPosition:true});app.patchItemFilter($wrap.data('masonry'));$wrap.masonry('reloadItems');$wrap.masonry('layout');}catch(e){}},patchItemFilter:function(inst){if(!inst||inst._cffItemFilterPatched){return;}
8inst._cffItemFilterPatched=true;inst._filterFindItemElements=function(elems){var selector=this.options.itemSelector;var found=[];Array.prototype.forEach.call(elems||[],function(el){if(!el||el.nodeType!==1){return;}
9if(!selector){found.push(el);return;}
10if(el.matches&&el.matches(selector)){found.push(el);}
11var kids=el.querySelectorAll?el.querySelectorAll(selector):[];for(var i=0;i<kids.length;i++){found.push(kids[i]);}});return found;};},healMasonry:function(){if(!app.isChromium()){return;}
12jQuery('.cff.cff-masonry-js').each(function(){var $cff=jQuery(this);if($cff.hasClass('cff-masonry-css')){return;}
13var $wrap=$cff.find('.cff-posts-wrap').first();if(!$wrap.length||!$wrap.children().length){return;}
14if($wrap.height()>app.MASONRY_COLLAPSED_HEIGHT_PX){return;}
15app.recomputeMasonry($wrap,$cff);$wrap.find('img').each(function(){if(!this.complete){this.addEventListener('load',function(){try{$wrap.masonry('reloadItems');$wrap.masonry('layout');}catch(e){}},{once:true});}});});},registerWidgetEvents:function($scope){$scope.on('change','.sb-elementor-cta-feedselector',app.selectFeedInPreview);},frontendWidgetInit:function($scope){app.CffInitWidget();app.registerWidgetEvents($scope);},findFeedSelector:function(event){vars.$select=event&&event.$el?event.$el.closest('#elementor-controls').find('select[data-setting="feed_id"]'):window.parent.jQuery('#elementor-controls select[data-setting="feed_id"]');},selectFeedInPreview:function(event){vars.feedId=$(this).val();app.findFeedSelector();vars.$select.val(vars.feedId).trigger('change');},widgetPanelOpen:function(panel,model){panel.$el.find('.elementor-control.elementor-control-feed_id').find('select').on('change',function(){setTimeout(function(){app.CffInitWidget();},4000)});},};return app;}(document,window,jQuery));CustomFacebookFeedElementor.init();

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.