PageSourceSearch

https://ostseeimmo.de/wp-content/plugins/ogulo-360-tour/public/js/ogulo-360-tour-public.js?ver=1.0.19

js ostseeimmo.de collected 2026-10-07 04:59:55 UTC 2,145 bytes, 85 lines download raw bytes

1jQuery(function($) {
2 
3    window.Ogulo360 = {};
4 
5    Ogulo360.init = function() {
6        Ogulo360.cacheSelectors();
7        Ogulo360.onLoadEventHandler();
8    }
9 
10    Ogulo360.cacheSelectors = function() {
11        // Initialize variables and use in whole script
12        Ogulo360.mainbody = $('body');
13        Ogulo360.main = $('.ogulo_tour_handler');
14        Ogulo360.body = $('.ogulo_tour_handler_inner');
15        Ogulo360.active = 'active';
16        Ogulo360.hidden = 'hidden';
17       
18    }
19 	
20 	Ogulo360.onLoadEventHandler = function() {
21 		
22 		loadDefaultTrigger();
23 	}
24
25    var loadDefaultTrigger = function( e ){
26  
27    	var is_page = Ogulo360.body.length;
28    	
29    	if(is_page > 0){
30 			loadFrontTours();
31    	}
32    	
33    };
34
35    var loadFrontTours = function( e ){
36    	var tour_slugs=[];
37    	Ogulo360.body.each(function(index, value){
38    		var eachTour = $(this);
39    		var slug = eachTour.attr('id').replace('tour-id-','');
40    		var width = eachTour.attr('data-tour-width');
41    		var height = eachTour.attr('data-tour-height');
42    		if(tour_slugs.indexOf(slug+'|'+width+'|'+height) === -1){
43		        tour_slugs.push(slug+'|'+width+'|'+height);
44		    }
45    		
46    	});
47
48    	if(tour_slugs.length > 0){
49    		for (var i = 0; i < tour_slugs.length; i++) {
50    			
51    			
52		    	$.ajax({
53					url: oguloJSObject.ajaxurl,
54					type: 'post',
55					data: {
56						'action' : 'load_front_tours',
57						'nonce'	 : oguloJSObject.nonce,
58						'tour'	 : tour_slugs[i]
59					},
60					success: function( res ) {
61						
62			    		var obj = JSON.parse(res);
63			    		if(obj.success){
64			    			//console.log('.tour-id-'+obj.success.tour_id+'//'+obj.success.tour_id+'//'+Ogulo360.mainbody.find('.tour-id-'+obj.success.tour_id).length);
65			    			var tour_container = Ogulo360.mainbody.find('.tour-id-'+obj.tour.tour_id);
66			    			tour_container.parent().removeClass('before');
67			    			tour_container.html(obj.success.embed);
68			    		}
69			    		else{
70			    			Ogulo360.mainbody.find('.tour-id-'+obj.tour.tour_id).find('p').text(obj.error);
71			    		}
72					}
73				});
74		    	
75    		}
76    		
77    	}
78    	
79    };
80
81    
82
83    Ogulo360.init();
84 
85});

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.