PageSourceSearch

https://prometey-spb.org/light/light.js?15907486984353

js prometey-spb.org collected 2026-09-30 09:54:16 UTC 4,353 bytes, 129 lines download raw bytes

1
2function light_on(){ setCookie(1, 'theme_type', 'light',1); console.log('light_on'); }
3function light_off(){ setCookie(2, 'theme_type', '',1);  console.log('light_off'); }
4
5function setCookie(cookie_type, cookie_name, cookie_value,reload){
6	$.post( location.origin+"/light/cookie.php", { theme_light: 1, cookie_type: cookie_type, cookie_name: cookie_name, cookie_value: cookie_value }, function( data ) {
7		if(reload == 1){window.location.reload(true);}
8	});
9
10}
11
12function fontHeight(height){
13	var size = 1;
14	if(height == 1){size = 1;}
15	if(height == 2){size = 1.5;}
16	if(height == 3){size = 2;}
17
18    $('#font_height div').removeClass('act');
19    $('#font_height div#font_height_'+height).addClass('act');
20    $('body').css('line-height',+size);
21	setCookie(1, 'theme_type_height', height);
22}
23
24function fontKern(kern){
25    $('#font_kern div').removeClass('act');
26    $('#font_kern div#kern_font_'+kern).addClass('act');
27    $('body').css('letter-spacing',+kern+'px');
28	if(kern==4){$('#header_contacts').css('letter-spacing','2.5px');}else{$('#header_contacts').css('letter-spacing',+kern+'px');}
29
30    setCookie(1, 'theme_type_kern', kern);
31}
32
33function imgOffOn(type){
34    setCookie(1, 'theme_type_img', type);
35    if(type == 1){
36       $('#hold').show();
37       $('body img').not('.tools').show();
38       $('.alt').detach();
39       $('#img_out').removeClass('act');
40	   $('#img_in').addClass('act');
41    }
42    if(type == 0){
43	   $('#hold').hide();
44	   $('body img').not('.tools, #logo_img img, .vk img').each(function(){
45		var alt=$(this).attr('alt');
46		if(alt){$(this).after('<p class="alt">'+alt+'</p>');}
47		$(this).hide();
48	   });
49	   $('#img_in').removeClass('act');
50	   $('#img_out').addClass('act');
51    }
52}
53function fontSize(kof){
54	setCookie(1, 'theme_type_font_kof', kof);
55	$('.font_plus div').removeClass('act');
56	$('.font_plus div#font_plus_'+kof).addClass('act');
57	var size = 16;
58	if(kof == 1){size = 16;}
59	if(kof == 2){size = 22;}
60	if(kof == 3){size = 26;}
61
62    $('body').css('font-size',''+size+"px");
63    $('span, p, ol, ul').css('font-size',''+size+"px");
64    $('.menu.content table td a').css('font-size',"18px");
65
66
67	setCookie(1, 'theme_type_font_size', size);
68
69}
70function fontFamily(kof){
71
72	$('#family div').removeClass('act');
73	$('#family div#family_'+kof).addClass('act');
74
75	if(kof == 1){family = 'Arial';}
76	if(kof == 2){family = 'Times New Roman';}
77
78    $('body').css('font-family',''+family+'');
79    setCookie(1, 'theme_type_family', kof);
80}
81function fontColor(col){
82	$('#font_color div').removeClass('act');
83	$('#font_color div#tools_font_'+col).addClass('act');
84if(col==1){var color='000'; var bg='fff'; var bg_rgb = '255,255,255';
85           $('a#webanatomy div').addClass('white');
86           $('a#webanatomy div').removeClass('black');
87          }
88if(col==2){var color='fff'; var bg='000'; var bg_rgb = '0,0,0';
89           $('a#webanatomy div').addClass('black');
90           $('a#webanatomy div').removeClass('white');
91          }
92if(col==3){var color='063462'; var bg='9dd1ff'; var bg_rgb='157,209,255';
93           $('a#webanatomy div').addClass('white');
94           $('a#webanatomy div').removeClass('black');
95          }
96
97	/**/
98	$('ol,ul,p').css('color','#'+color);
99	$('font').css('color','#'+color);
100	$('body').css('color','#'+color);
101	$('body a').css('color','#'+color);
102	/*setTimeout(function(){$('#begun a').css('color','#'+color);},1000);*/
103
104	$('body').css('background','#'+bg);
105
106	$('body').css('border-color','#'+color);
107	$('th, hr, td').css('border-color','#'+bg);
108    /**/
109	$('h2 span, .fancybox-wrap table tr td, .forma_obrah #zag').css('color','#'+color);
110	$('span, dd, b, strong, .forma_obrah #pre_text').css('color','#'+color);
111	$('span, input, textarea').css('background','#'+bg);
112
113	$('.b-horizontal-sub-menu, input, textarea').css('border-color','#'+color);
114	$('#header_contacts').css('background','rgba('+bg_rgb+',0.35)');
115	$('.menu, .submenu, .submenu_item').css('background','#'+color);
116	$('.menu-btns_link, .submenu_link').css('color','#'+bg);
117
118
119
120	setCookie(1, 'theme_type_color', color);
121	setCookie(1, 'theme_type_bg', bg);
122	setCookie(1, 'theme_type_sheme', col);
123}
124
125$(function(){
126$.post( location.origin+"/light/light.php",{},function(data){
127    $('body').prepend(data);
128});
129})

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.