PageSourceSearch

https://www.amicoblu.it/web/js/homeNetwork.js

js amicoblu.it collected 2026-10-07 03:39:27 UTC 1,156 bytes, 61 lines download raw bytes

1// JavaScript Document
2var homeNetwork = new function(){
3
4	this.network = '';
5	this.loading = false;
6	this.num_loading_error = 0;
7	this.callbacks = []
8	
9	this.run = function (callback) {
10	
11		var self = this;
12		
13		if (!self.network && !self.loading){
14		
15			self.loading = true;
16				
17			$.getJSON('/ctrlServlet/_network.php', {lingua:VariablesApp.lingua, mcd:VariablesApp.mcd})
18			.done(function(json){
19			
20				self.network = json;
21				self.loading = false;
22				callback.call();
23				self.num_loading_error = 0;
24				
25				for (var i in self.callbacks){
26					self.callbacks[i].call();
27				}
28			
29			})
30			.fail(function(json){
31				
32				self.num_loading_error++;
33				
34				if (self.num_loading_error < 2){
35					self.loading = false;
36					self.run();
37				}else{
38					console.log('network fail');
39					//alert("Si è verificato un errore. La preghiamo di ricaricare la pagina.\n\nIn caso accadesse nuovamente, le saremmo grati se contattasse l'amministrazione del sito");
40				}
41				
42			});
43			
44		}else if (self.loading){
45			self.callbacks.push( callback );
46		}else{
47			
48			callback.call();
49		}
50	}
51	
52	this.returnNetwork = function(){
53		return this.network;
54	}
55
56
57
58
59
60
61}

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.