1$(function(){ 2 3 4 $('.swiper-container').each(function () { 5 Slider($(this)); 6 }); 7 var siteClass = 'site_vision'; 8 9 function createClass() { 10 $.each($('.special-settings li'), function(){ 11 var curElem = $(this); 12 13 if (curElem.hasClass('active')) { 14 siteClass = siteClass + ' ' + curElem.attr('data-class'); 15 } 16 }); 17 } 18 19 $('.special-settings li').on({ 20 'click':function(){ 21 var curElem = $(this), 22 parentElem = curElem.parent(), 23 allElem = parentElem.find('li'), 24 site = $('body'); 25 26 if (!curElem.hasClass('active')) { 27 allElem.removeClass('active'); 28 curElem.addClass('active'); 29 site.removeClass('site_vision site_size1 site_size2 site_size3 site_color1 site_color2 site_color3 site_img site_img-not'); 30 siteClass = 'site_vision'; 31 createClass(); 32 site.addClass(siteClass); 33 Cookies.set('mode', 'visually impaired'); 34 Cookies.set('mode_setting', site.attr('class')); 35 } 36 } 37 }); 38 39 $('.vision').on({ 40 'click':function(){ 41 var allSite = $('body'); 42 if (allSite.hasClass('site_vision')) { 43 allSite.removeClass(); 44 Cookies.remove('mode'); 45 46 } else { 47 48 siteClass = 'site_vision'; 49 createClass(); 50 $('body').addClass(siteClass); 51 Cookies.set('mode', 'visually impaired'); 52 Cookies.set('mode_setting', allSite.attr('class')); 53 check_active(); 54 } 55 56 return false; 57 } 58 }); 59 60 if(Cookies.get('mode')=='visually impaired') { 61 $('body').addClass(Cookies.get('mode_setting')); 62 check_active(); 63 } 64 65 function check_active() { 66 if($('body').hasClass('site_size1')) 67 $('.special-settings__size-1').addClass('active'); 68 else 69 $('.special-settings__size-1').removeClass('active'); 70 71 if($('body').hasClass('site_size2')) 72 $('.special-settings__size-2').addClass('active'); 73 else 74 $('.special-settings__size-2').removeClass('active'); 75 76 if($('body').hasClass('site_size3')) 77 $('.special-settings__size-3').addClass('active'); 78 else 79 $('.special-settings__size-3').removeClass('active'); 80 81 if($('body').hasClass('site_color1')) 82 $('.special-settings__color-white').addClass('active'); 83 else 84 $('.special-settings__color-white').removeClass('active'); 85 86 if($('body').hasClass('site_color2')) 87 $('.special-settings__color-yellow').addClass('active'); 88 else 89 $('.special-settings__color-yellow').removeClass('active'); 90 91 if($('body').hasClass('site_color3')) 92 $('.special-settings__color-blue').addClass('active'); 93 else 94 $('.special-settings__color-blue').removeClass('active'); 95 }; 96 97} ); 98 99$(window).on({ 100 load: function () { 101 102 103 } 104}); 105 106/*! 107 * JavaScript Cookie v2.0.2 108 * https://github.com/js-cookie/js-cookie 109 * 110 * Copyright 2006, 2015 Klaus Hartl 111 * Released under the MIT license 112 */ 113(function (factory) { 114 if (typeof define === 'function' && define.amd) { 115 define(factory); 116 } else if (typeof exports === 'object') { 117 module.exports = factory(); 118 } else { 119 var _OldCookies = window.Cookies; 120 var api = window.Cookies = factory(window.jQuery); 121 api.noConflict = function () { 122 window.Cookies = _OldCookies; 123 return api; 124 }; 125 } 126}(function () { 127 function extend () { 128 var i = 0; 129 var result = {}; 130 for (; i < arguments.length; i++) { 131 var attributes = arguments[ i ]; 132 for (var key in attributes) { 133 result[key] = attributes[key]; 134 } 135 } 136 return result; 137 } 138 139 function init (converter) { 140 function api (key, value, attributes) { 141 var result; 142 143 // Write 144 145 if (arguments.length > 1) { 146 attributes = extend({ 147 path: '/' 148 }, api.defaults, attributes); 149 150 if (typeof attributes.expires === 'number') { 151 var expires = new Date(); 152 expires.setMilliseconds(expires.getMilliseconds() + attributes.expires * 864e+5); 153 attributes.expires = expires; 154 } 155 156 try { 157 result = JSON.stringify(value); 158 if (/^[\{\[]/.test(result)) { 159 value = result; 160 } 161 } catch (e) {} 162 163 value = encodeURIComponent(String(value)); 164 value = value.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent); 165 166 key = encodeURIComponent(String(key)); 167 key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent); 168 key = key.replace(/[\(\)]/g, escape); 169 170 return (document.cookie = [ 171 key, '=', value, 172 attributes.expires && '; expires=' + attributes.expires.toUTCString(), // use expires attribute, max-age is not supported by IE 173 attributes.path && '; path=' + attributes.path, 174 attributes.domain && '; domain=' + attributes.domain, 175 attributes.secure ? '; secure' : '' 176 ].join('')); 177 } 178 179 // Read 180 181 if (!key) { 182 result = {}; 183 } 184 185 // To prevent the for loop in the first place assign an empty array 186 // in case there are no cookies at all. Also prevents odd result when 187 // calling "get()" 188 var cookies = document.cookie ? document.cookie.split('; ') : []; 189 var rdecode = /(%[0-9A-Z]{2})+/g; 190 var i = 0; 191 192 for (; i < cookies.length; i++) { 193 var parts = cookies[i].split('='); 194 var name = parts[0].replace(rdecode, decodeURIComponent); 195 var cookie = parts.slice(1).join('='); 196 197 if (cookie.charAt(0) === '"') { 198 cookie = cookie.slice(1, -1); 199 } 200 201 cookie = converter && converter(cookie, name) || cookie.replace(rdecode, decodeURIComponent); 202 203 if (this.json) { 204 try { 205 cookie = JSON.parse(cookie); 206 } catch (e) {} 207 } 208 209 if (key === name) { 210 result = cookie; 211 break; 212 } 213 214 if (!key) { 215 result[name] = cookie; 216 } 217 } 218 219 return result; 220 } 221 222 api.get = api.set = api; 223 api.getJSON = function () { 224 return api.apply({ 225 json: true 226 }, [].slice.call(arguments)); 227 }; 228 api.defaults = {}; 229 230 api.remove = function (key, attributes) { 231 api(key, '', extend(attributes, { 232 expires: -1 233 })); 234 }; 235 236 api.withConverter = init; 237 238 return api; 239 } 240 241 return init(); 242})); 243 244/* End */ 245 246 247var Slider = function (obj) { 248 249 //private properties 250 var _self = this, 251 _obj = obj; 252 253 //private methods 254 var _addEvents = function () { 255 256 }, 257 _init = function () { 258 _addEvents(); 259 }; 260 261 262 if (_obj.hasClass('promo__wrap')) { 263 var _slider1 = new Swiper(_obj, { 264 nextButton: '.promo__next', 265 prevButton: '.promo__prev', 266 pagination: '.promo__pagination', 267 loop: true, 268 speed: 2000,
269 autoplay: 3000, 270 autoplayDisableOnInteraction: false, 271 effect: 'fade' 272 273 }); 274 275 } 276 277 //public properties 278 279 //public methods 280 281 _init(); 282}; 283 284$(function(){ 285 286 $('#right_col_main table').wrap("<div class='table-over-mobile'></div>"); 287 288 $('.open-nav').on('click', function(){ 289 if( $('#top_mn').is(':visible') ){ 290 $('#top_mn').slideUp(); 291 $(this).removeClass('js-switch-nav'); 292 }else{ 293 $('#top_mn').slideDown(); 294 $(this).addClass('js-switch-nav'); 295 } 296 }); 297});
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.