PageSourceSearch

https://www.schneehoehen.de/rendercontrol/js/ads.js

js schneehoehen.de collected 2026-10-01 12:20:50 UTC 2,500 bytes, 68 lines download raw bytes

1/** <SCRIPTFILTER>
2<DEPEND>
3/static/js/lib/sm/failsafe.js
4</DEPEND>
5
6<FAILSAFE>
7
8</FAILSAFE>
9</SCRIPTFILTER> **/
10
11generate_google = (function(w, d){return{
12	init: function (state, portal, zones) {
13		if(state == false){
14			var script = document.createElement('script');
15			var script_string = "";
16			var head = document.getElementsByTagName('head')[0];
17			var zone_sizes = "";
18			var zone_position = "";
19			
20			script_string += "googletag.cmd.push(function() {\n";
21			
22			for(var i = 0; i < zones.length; i++){
23				zone_sizes = "[";
24				for(var j = 0; j < zones[i]['sizes'].length; j++){
25					zone_sizes += "[" +zones[i]['sizes'][j]+ "]";
26					
27					if(j != zones[i]['sizes'].length-1){
28						zone_sizes += ",";
29					}
30				}
31				zone_sizes += "]";
32				
33				if(zones[i]['position']){
34					zone_position = ".setTargeting('adPos', ['"+zones[i]['position']+"'])";
35				}
36				
37				script_string += "\tgoogletag.defineSlot('" +portal[0]+portal[1]+ "',"+zone_sizes+", '"+zones[i]['id']+"').addService(googletag.pubads()).setTargeting('adName', ['"+zones[i]['name']+"'])"+zone_position+";\n";
38				// reset counter
39				zone_position = ""; 
40			}
41			
42			//script_string += "\n\tgoogletag.pubads().enableSingleRequest();\n";
43			script_string += "\tgoogletag.pubads().collapseEmptyDivs();\n";
44			
45			script_string += "\n\tgoogletag.pubads().setTargeting('portal', ['"+portal[1]+"']);\n";
46			
47			script_string += "\n\tgoogletag.pubads().setTargeting('category', ['"+targets[0]['value']+"']);";
48			script_string += "\n\tgoogletag.pubads().setTargeting('section', ['"+targets[1]['value']+"']);";
49			script_string += "\n\tgoogletag.pubads().setTargeting('page', ['"+targets[2]['value']+"']);";
50			script_string += "\n\tgoogletag.pubads().setTargeting('country', ['"+targets[3]['value']+"']);";
51			script_string += "\n\tgoogletag.pubads().setTargeting('region', ['"+targets[4]['value']+"']);";
52			script_string += "\n\tgoogletag.pubads().setTargeting('area', ['"+targets[5]['value']+"']);";
53			script_string += "\n\tgoogletag.pubads().setTargeting('city', ['"+targets[6]['value']+"']);";
54			script_string += "\n\tgoogletag.pubads().setTargeting('language', ['"+targets[7]['value']+"']);";
55			
56			// TODO: Wenn Service enabled ... Seite futsch. -.-
57			script_string += "\n\tgoogletag.enableServices();";
58			
59			script_string += "\n});";
60			
61			script.text = script_string;
62			
63			head.appendChild(script);
64
65			state = true;
66		}
67	}
68}})(window, document)

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.