PageSourceSearch

https://www.ville-serignan.fr/wp-content/plugins/instagram-feed-pr…/assets/js/elementor-preview.js?ver=6.3.4

js ville-serignan.fr collected 2026-10-02 10:58:34 UTC 1,982 bytes, 93 lines download raw bytes

1'use strict';
2
3
4var InstagramFeedElementor = window.InstagramFeedElementor || ( function( document, window, $ ) {
5
6	var vars = {};
7
8	var app = {
9
10		init: function() {
11			app.events();
12		},
13
14		events: function() {
15
16			$( window ).on('elementor/frontend/init', function ( $scope ) {
17
18				elementorFrontend.hooks.addAction('frontend/element_ready/sbi-widget.default', app.frontendWidgetInit);
19				if( 'undefined' !== typeof elementor ){
20					elementor.hooks.addAction( 'panel/open_editor/widget/sbi-widget', app.widgetPanelOpen );
21				}
22
23			});
24
25		},
26
27		SbiInitWidget: function() {
28			setTimeout(function(){
29				window.sbi_init();
30			}, 1000)
31			jQuery('body').find('.sbi_lightbox').each(function(index, el){
32				if( index != 0 )
33					jQuery(el).remove();
34			});
35			jQuery('body').find('.sbi_lightboxOverlay').each(function(index, el){
36				if( index != 0 )
37					jQuery(el).remove();
38			});
39
40			//window.parent.window[0].cff_init($(window.parent.window[0]).find('.cff'));
41
42		},
43
44		registerWidgetEvents: function( $scope ) {
45			$scope
46				.on( 'change', '.sb-elementor-cta-feedselector', app.selectFeedInPreview );
47
48		},
49
50		frontendWidgetInit : function( $scope ){
51			app.SbiInitWidget();
52			app.registerWidgetEvents( $scope );
53		},
54
55		findFeedSelector: function( event ) {
56
57			vars.$select = event && event.$el ?
58				event.$el.closest( '#elementor-controls' ).find( 'select[data-setting="feed_id"]' ) :
59				window.parent.jQuery( '#elementor-controls select[data-setting="feed_id"]' );
60		},
61
62
63		selectFeedInPreview : function( event ){
64
65			vars.feedId = $( this ).val();
66
67			app.findFeedSelector();
68
69			vars.$select.val( vars.feedId ).trigger( 'change' );
70
71		},
72
73
74		widgetPanelOpen: function( panel, model ) {
75			panel.$el.find( '.elementor-control.elementor-control-feed_id' ).find( 'select' ).on( 'change', function(){
76				setTimeout(function(){
77					app.SbiInitWidget();
78				}, 400)
79			});
80		},
81
82
83
84	};
85
86	return app;
87
88
89
90}( document, window, jQuery ) );
91
92
93InstagramFeedElementor.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.