PageSourceSearch

https://ad-sniper.com/js/main.js

js ad-sniper.com collected 2026-10-01 14:50:31 UTC 3,970 bytes, 131 lines download raw bytes

1$(document).ready(function(){
2
3
4
5	
6	function setCookie(name, value, days) {
7	    var d = new Date;
8	    d.setTime(d.getTime() + 24*60*60*1000*days);
9	    document.cookie = name + "=" + value + ";path=/;expires=" + d.toGMTString();
10	}       
11	function getCookie (cookie_name) {
12	    var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );
13	    if (results)
14	        return ( unescape ( results[2] ) );
15	    else
16	    return null;
17	}
18	function deleteCookie(name) {
19	    document.cookie.split(";").forEach(function(el) {
20	        el = el.split("=")[0].trim();
21	        if(!el.indexOf(name)) {
22	            var date = new Date(0);
23	            document.cookie = el + "=; path=/; expires=" + date.toUTCString();
24	        }
25	    });
26	}
27
28
29
30	var opt_out = '<br><br><p><b>You have activated opt-out function, interest-based ads have been disabled. You can restore settings to their original defaults via <a>opt-in</a> function.</b></p>';
31	var opt_out2 = '<p><b>You can disable interest-based ads via activation <a>opt-out</a> function. In such a way you forbid us to use your cookies for analysis of your interests (please note that in this case you don’t turn off ads completely).</b></p>';
32
33	if(getCookie('0_adv') == null) {
34		console.log('none');
35		$('.opt-out').html(opt_out);
36		$('.block_cookies').fadeIn();
37	} else {
38		$('.opt-out').html(opt_out2);
39	}
40	$(document).on("click", ".button_cookies", function() {
41		if(getCookie('0_adv') == null) {
42			$('.opt-out').html(opt_out2);
43			$('.block_cookies').fadeOut();
44			setCookie('0_close_popup','true', 365);
45        	setCookie('0_adv','true', 365);
46		}
47	});
48	$(document).on("click", ".opt-out a", function() {
49		if(getCookie('0_adv') != null) {
50			deleteCookie('0_close_popup');
51        	deleteCookie('0_adv');
52        	$('.opt-out').html(opt_out);
53        	$('.block_cookies').fadeIn();
54		} else if (getCookie('0_adv') == null) {
55			setCookie('0_close_popup','true', 365);
56        	setCookie('0_adv','true', 365);
57        	$('.opt-out').html(opt_out2);
58        	$('.block_cookies').fadeOut();
59		}
60	});
61
62
63
64
65	// $(".tmenu a").css('background','blue');
66
67
68	map_init();
69	function map_init() {
70		var styles = [
71		  {
72		    "stylers": [
73		      { "saturation": -100 },
74		      { "invert_lightness": true },
75				  { "lightness": 15 }
76		    ]
77		  }
78		];
79		var position = {lat: 55.755185, lng: 37.59577509999997};
80		var styledMap = new google.maps.StyledMapType(styles,
81			{name: "dark"});
82		var mapOptions = {
83		    zoom: 17,
84				center: position,
85		    mapTypeControlOptions: {
86		      mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'map_style']
87		    },
88			disableDefaultUI: true,
89			scrollwheel: false
90		};
91		var map = new google.maps.Map(document.getElementById('map'),
92			mapOptions);
93
94		var marker = new google.maps.Marker({
95		    position: position,
96		    map: map,
97		    icon: pinSymbol("#6b6b6b"),
98		    title: ''
99		});
100
101		map.mapTypes.set('map_style', styledMap);
102		map.setMapTypeId('map_style');
103	}
104	function pinSymbol(color) {
105	    return {
106	        path: 'M 0,0 C -2,-20 -10,-22 -10,-30 A 10,10 0 1,1 10,-30 C 10,-22 2,-20 0,0 z M -2,-30 a 2,2 0 1,1 4,0 2,2 0 1,1 -4,0',
107	        fillColor: color,
108	        fillOpacity: 1,
109	        strokeColor: '#ccc',
110	        strokeWeight: 1,
111	        scale: 1.1,
112	   };
113	}
114
115	$('body')
116		.on('click', '.contacts_recall.active_welcome', function(event) {
117				$('.active_welcome').removeClass('active_welcome').addClass('active_form').find('input[name=phone]').focus().val( $('input[name=phone]').attr('placeholder') );
118				$('.contacts_recall_icon').css('top', -93 + 'px');
119			})
120		.on('submit', '.contacts_recall.active_form', function(event) {
121			$('.active_form').removeClass('active_form').addClass('active_echo');
122			$('.contacts_recall_icon').css('top', 0 + 'px');
123			return false
124		});
125// $('.next-arrow').on('click',function(){
126// 				$(".main").moveDown();
127// 			});
128// 			$('.next-arrow.up').click(function(){
129// 				$(".main").moveUp();
130// 			});
131});

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.