PageSourceSearch

https://bashnl.ru/local/templates/b/libs/vision/vision.js

js bashnl.ru collected 2026-10-02 07:17:20 UTC 9,232 bytes, 276 lines download raw bytes

1
2$(function(){
3
4
5    $('.open-vision').on('click',function(){
6        $('.panel-visually').css('display','block');
7        $(this).css('display','none');
8        $('.close-vision').css('display','flex');
9        $('body').addClass('ision-active');
10        if( $.cookie('default') === 'on' ){
11            defaultBg();
12            defaultFonts();
13            $('body').addClass('vision-active');
14            console.log($('body'))
15        }
16        open();
17        window.location.reload();
18    });
19    function open(){
20        $.cookie('VisionOpen','on',{
21            expires: 30,
22            path: '/'
23        });
24        return false;
25    }
26    function close(){
27        $.cookie('VisionOpen',null,{
28            expires: 30,
29            path: '/'
30        });
31        return false;
32    }
33
34
35    $('.close-vision').on('click',function(){
36        $(this).css('display','none');
37        $('.open-vision').css('display','block');
38        $('.panel-visually').css('display','none');
39        //$('body').removeClass('vision-active');
40        close();
41        window.location.reload();
42    });
43
44
45    if( $.cookie('VisionOpen') === 'on' ){
46        $('.panel-visually').css('display','block');
47        $('.open-vision').css('display','none');
48        $('.close-vision').css('display','flex');
49        $('body').addClass('vision-active');
50        if( $.cookie('default') == 'on' ){
51            defaultBg();
52            defaultFonts();
53            $('body').addClass('vision-active');
54        }else{
55            //$('body').removeClass('vision-active');
56        }
57        if ($.cookie("fonts")=="small"){smallFont();}
58        if ($.cookie("fonts")=="medium"){mediumFont();}
59        if ($.cookie("fonts")=="big"){bigFont();}
60        if ($.cookie("img")=="on"){onImg();}
61        if ($.cookie("img")=="off"){offImg();}
62        if ($.cookie("bg")=="white"){whiteBg();}
63        if ($.cookie("bg")=="black"){blackBg();}
64        if ($.cookie("bg")=="birch"){birchBg();}
65        if ($.cookie("bg")=="brown"){brownBg();}
66    }
67
68
69
70
71
72
73    // $('.select-font ul li a').click(function(){
74    // 	$(this).addClass('active');
75    // 	$('.select-font ul li a').not($(this)).removeClass('active');
76    // });
77    //
78    // $('.select-color ul li a').click(function(){
79    // 	$(this).addClass('active');
80    // 	$('.select-color ul li a').not($(this)).removeClass('active');
81    // });
82    //
83    // $('.select-img ul li a').click(function(){
84    // 	$(this).addClass('active');
85    // 	$('.select-img ul li a').not($(this)).removeClass('active');
86    // });
87
88
89    /*========================== FONTS CLICK  =====================================*/
90    $('.small-font').click(function(){
91        smallFont();
92
93    });
94    $('.medium-font').click(function(){
95        mediumFont();
96
97    });
98    $('.big-font').click(function(){
99        bigFont();
100
101    });
102    /*========================== END FONTS CLICK  =====================================*/
103
104    /*========================== IMAGES CLICK  =====================================*/
105    $('.open-img').click(function(e){
106        e.preventDefault();
107        onImg();
108
109    });
110    $('.close-img').click(function(e){
111        e.preventDefault();
112        offImg();
113
114
115    });
116    /*========================== END IMAGES CLICK  =====================================*/
117
118    /*========================== BGC CLICK  =====================================*/
119    $('.white-bg').click(function(e){
120        e.preventDefault();
121        whiteBg();
122
123    });
124    $('.black-bg').click(function(e){
125        e.preventDefault();
126        blackBg();
127
128    });
129    $('.birch-bg').click(function(e){
130        e.preventDefault();
131        birchBg();
132
133    });
134    $('.brown-bg').click(function(e){
135        e.preventDefault();
136        brownBg();
137
138    });
139    /*========================== END BGC CLICK  =====================================*/
140
141}); /* document ready */
142/*========================== FONTS  =====================================*/
143function smallFont (){
144    if( $.cookie('VisionOpen') === 'on' ){
145        default2();
146        $('table, table td, table th, p, div, span, a, b, strong, h1, h2, h3, h4').not($('.not li a')).removeClass('medium-fonts big-fonts').addClass('small-fonts');
147        $.cookie('fonts','small',{
148            expires: 30,
149            path: '/'
150        });
151
152    }
153
154}
155function mediumFont (){
156    if( $.cookie('VisionOpen') === 'on' ){
157        default2();
158        $('table, table td, table th, p, div, span, a, b, strong, h1, h2, h3, h4').not($('.not li a')).removeClass('small-fonts big-fonts').addClass('medium-fonts');
159        $.cookie('fonts','medium',{
160            expires: 30,
161            path: '/'
162        });
163
164    }
165
166}
167function bigFont (){
168    if( $.cookie('VisionOpen') === 'on' ){
169        default2();
170        $('table, table td, table th, p, div, span, a, b, strong, h1, h2, h3, h4').not($('.not li a')).removeClass('small-fonts medium-fonts').addClass('big-fonts');
171        $.cookie('fonts','big',{
172            expires: 30,
173            path: '/'
174        });
175
176    }
177
178}
179/*========================== FONTS END =====================================*/
180
181/*========================== IMAGES  =====================================*/
182function onImg(){
183    if( $.cookie('VisionOpen') === 'on' ){
184        default2();
185        $('img, .logo-bg, .gismeteo, #bgh, body.on-brown-bg .top-slider.flexslider .slides > li, .main-carousel__item, .list-news__item--img a').removeClass('off-img').addClass('on-img');
186        $.cookie('img','on',{
187            expires: 30,
188            path: '/'
189        });
190    }
191}
192
193function offImg(){
194    if( $.cookie('VisionOpen') === 'on' ){
195        default2();
196        $('img, .logo-bg, .gismeteo, #bgh, body.on-brown-bg .top-slider.flexslider .slides > li, .main-carousel__item, .list-news__item--img a').removeClass('on-img').addClass('off-img');
197        $.cookie('img','off',{
198            expires: 30,
199            path: '/'
200        });
201    }
202}
203// /*========================== IMAGES END  =====================================*/
204//
205/*========================== BACKGROUND  =====================================*/
206function whiteBg(){
207    if( $.cookie('VisionOpen') === 'on' ){
208        default2();
209        $('body , table, table td, table th, p, div, span, a, b, strong, h1, h2, h3, h4, li, footer, .submenu, .caousel-banners__section, section, ul, legend, .btn, .read').not('.container, .row, [class^="col-"], .owl-dots').removeClass('on-black-bg  on-birch-bg on-brown-bg').addClass('on-w
209hite-bg');
210        $.cookie('bg','white',{
211            expires: 30,
212            path: '/'
213        });
214
215    }
216
217}
218function blackBg(){
219    if( $.cookie('VisionOpen') === 'on' ){
220        default2();
221        $('body , table, table td, table th, p, div, span, a, b, strong, h1, h2, h3, h4, li, footer, .submenu, .caousel-banners__section, section, ul, legend, .btn, .read').not('.container, .row, [class^="col-"], .owl-dots').removeClass('on-white-bg  on-birch-bg on-brown-bg').addClass('on-black-bg');
222        $.cookie('bg','black',{
223            expires: 30,
224            path: '/'
225        });
226
227    }
228
229}
230function birchBg(){
231    if( $.cookie('VisionOpen') === 'on' ){
232        default2();
233        $('body , table, table td, table th, p, div, span, a, b, strong, h1, h2, h3, h4, li, footer, .submenu, .caousel-banners__section, section, ul, legend, .btn, .read').not('.container, .row, [class^="col-"], .owl-dots').removeClass('on-white-bg  on-black-bg on-brown-bg').addClass('on-birch-bg');
234        $.cookie('bg','birch',{
235            expires: 30,
236            path: '/'
237        });
238
239    }
240
241}
242function brownBg(){
243    if( $.cookie('VisionOpen') === 'on' ){
244        default2();
245        $('body , table, table td, table th, p, div, span, a, b, strong, h1, h2, h3, h4, li, footer, .submenu, .caousel-banners__section, section, ul, legend, .btn, .read').not('.container, .row, [class^="col-"], .owl-dots').removeClass('on-white-bg on-black-bg on-birch-bg').addClass('on-brown-bg');
246        $.cookie('bg','brown',{
247            expires: 30,
248            path: '/'
249        });
250
251    }
252
253}
254/*========================== END BACKGROUND  =====================================*/
255function defaultFonts(){
256    $('.header-bottom > div, .sb-menu > li > a, .search-form input[type="text"], .header-menu > li > a, .center, .footer').removeClass('small-fonts big-fonts').addClass('medium-fonts');
257    $.cookie('defaultFonts','on',{
258        expires: 30,
259        path: '/'
260    });
261}
262function defaultBg(){
263    $('#body, table, .news-list-date, .expresslab ,.copyright ,body, .top-bg, .header-mid, .header-mid, .header-gallery, .header-menu, .header-bottom, .sb-el-title, .sb-el > ul li a, .footer, .msg-preview, .sb-el>ul, .wrapper, .msg-list > ul > li > div, .adr, .msg-title, .msg-list').removeClass('on-black-bg  on-birch-bg on-brown-bg').addClass('on-white-bg');
264    $.cookie('defaultBg','on',{
265        expires: 30,
266        path: '/'
267    });
268}
269function default2(){
270    $.cookie('default', null);
271
272}
273$.cookie('default','on',{
274    expires: 30,
275    path: '/'
276})

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.