PageSourceSearch

https://ehoosha.com/themes/core/read-comfort/init.js

js ehoosha.com collected 2026-10-03 18:09:39 UTC 1,332 bytes, 34 lines download raw bytes

1$(function () {
2	// запихтваем кнопку если нет .. 
3	if(!$('body').find('#cr_version_link').length)
4		$('body').append('<div id="cr_version_link">Версия для слабовидящих</div>');
5	// инициализация кнопки .. 
6	//$('#cr_version_link').specialVersion({'base-style': IR.theme_path+'/core/read-comfort/css/styles.css'});
7	$('#cr_version_link').specialVersion({'base-style': '/themes/core/read-comfort/css/styles.css'});
8
9	// елси есть настройки (верия уже используется .. )
10	if($.cookie('sver-initLinkId')&&( $.cookie('sver-size')|| $.cookie('sver-color')|| $.cookie('sver-bgColor'))){
11		$.fn.specialVersion('init',{
12			'default-background' : $.cookie('sver-bgColor'),
13			'default-text-color' : $.cookie('sver-color'),
14			'default-text-size' : $.cookie('sver-size')
15		}, $('#'+$.cookie('sver-initLinkId')));
16		$('body').addClass('enable-vison');
17	};
18
19
20	
21	$('body').on('specialVersion',function(e,m){
22		if ('changeParams'==m && !$('body').hasClass('enable-vison'))
23			$('body').addClass('enable-vison');
24		if (m=='return'){
25			$('body').removeClass('enable-vison');
26			$('body #cr_version_link').removeAttr('style');
27		}
28			
29	});
30	$('body').on('click','#cr_version_link',function(){	
31		//$('body').toggleClass('enable-vison');
32	});
33		
34});

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.