1(function (e) { 2 e.fn.hoverIntent = function (t, n, r) { 3 var i = { 4 interval: 100, 5 sensitivity: 7, 6 timeout: 0 7 }; 8 if (typeof t === "object") { 9 i = e.extend(i, t) 10 } else if (e.isFunction(n)) { 11 i = e.extend(i, { 12 over: t, 13 out: n, 14 selector: r 15 }) 16 } else { 17 i = e.extend(i, { 18 over: t, 19 out: t, 20 selector: n 21 }) 22 } 23 var s, o, u, a; 24 var f = function (e) { 25 s = e.pageX; 26 o = e.pageY 27 }; 28 var l = function (t, n) { 29 n.hoverIntent_t = clearTimeout(n.hoverIntent_t); 30 if (Math.abs(u - s) + Math.abs(a - o) < i.sensitivity) { 31 e(n).off("mousemove.hoverIntent", f); 32 n.hoverIntent_s = 1; 33 return i.over.apply(n, [t]) 34 } else { 35 u = s; 36 a = o; 37 n.hoverIntent_t = setTimeout(function () { 38 l(t, n) 39 }, i.interval) 40 } 41 }; 42 var c = function (e, t) { 43 t.hoverIntent_t = clearTimeout(t.hoverIntent_t); 44 t.hoverIntent_s = 0; 45 return i.out.apply(t, [e]) 46 }; 47 var h = function (t) { 48 var n = jQuery.extend({}, t); 49 var r = this; 50 if (r.hoverIntent_t) { 51 r.hoverIntent_t = clearTimeout(r.hoverIntent_t) 52 } 53 if (t.type == "mouseenter") { 54 u = n.pageX; 55 a = n.pageY; 56 e(r).on("mousemove.hoverIntent", f); 57 if (r.hoverIntent_s != 1) { 58 r.hoverIntent_t = setTimeout(function () { 59 l(n, r) 60 }, i.interval) 61 } 62 } else { 63 e(r).off("mousemove.hoverIntent", f); 64 if (r.hoverIntent_s == 1) { 65 r.hoverIntent_t = setTimeout(function () { 66 c(n, r) 67 }, i.timeout) 68 } 69 } 70 }; 71 return this.on({ 72 "mouseenter.hoverIntent": h, 73 "mouseleave.hoverIntent": h 74 }, i.selector) 75 } 76})(jQuery); 77jQuery.easing['jswing'] = jQuery.easing['swing']; 78jQuery.extend(jQuery.easing, { 79 def: 'easeOutQuad', 80 swing: function (x, t, b, c, d) { 81 return jQuery.easing[jQuery.easing.def](x, t, b, c, d) 82 }, 83 easeInQuad: function (x, t, b, c, d) { 84 return c * (t /= d) * t + b 85 }, 86 easeOutQuad: function (x, t, b, c, d) { 87 return -c * (t /= d) * (t - 2) + b 88 }, 89 easeInOutQuad: function (x, t, b, c, d) { 90 if ((t /= d / 2) < 1) return c / 2 * t * t + b; 91 return -c / 2 * ((--t) * (t - 2) - 1) + b 92 }, 93 easeInCubic: function (x, t, b, c, d) { 94 return c * (t /= d) * t * t + b 95 }, 96 easeOutCubic: function (x, t, b, c, d) { 97 return c * ((t = t / d - 1) * t * t + 1) + b 98 }, 99 easeInOutCubic: function (x, t, b, c, d) { 100 if ((t /= d / 2) < 1) return c / 2 * t * t * t + b; 101 return c / 2 * ((t -= 2) * t * t + 2) + b 102 }, 103 easeInQuart: function (x, t, b, c, d) { 104 return c * (t /= d) * t * t * t + b 105 }, 106 easeOutQuart: function (x, t, b, c, d) { 107 return -c * ((t = t / d - 1) * t * t * t - 1) + b 108 }, 109 easeInOutQuart: function (x, t, b, c, d) { 110 if ((t /= d / 2) < 1) return c / 2 * t * t * t * t + b; 111 return -c / 2 * ((t -= 2) * t * t * t - 2) + b 112 }, 113 easeInQuint: function (x, t, b, c, d) { 114 return c * (t /= d) * t * t * t * t + b 115 }, 116 easeOutQuint: function (x, t, b, c, d) { 117 return c * ((t = t / d - 1) * t * t * t * t + 1) + b 118 }, 119 easeInOutQuint: function (x, t, b, c, d) { 120 if ((t /= d / 2) < 1) return c / 2 * t * t * t * t * t + b; 121 return c / 2 * ((t -= 2) * t * t * t * t + 2) + b 122 }, 123 easeInSine: function (x, t, b, c, d) { 124 return -c * Math.cos(t / d * (Math.PI / 2)) + c + b 125 }, 126 easeOutSine: function (x, t, b, c, d) { 127 return c * Math.sin(t / d * (Math.PI / 2)) + b 128 }, 129 easeInOutSine: function (x, t, b, c, d) { 130 return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b 131 }, 132 easeInExpo: function (x, t, b, c, d) { 133 return (t == 0) ? b : c * Math.pow(2, 10 * (t / d - 1)) + b 134 }, 135 easeOutExpo: function (x, t, b, c, d) { 136 return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b 137 }, 138 easeInOutExpo: function (x, t, b, c, d) { 139 if (t == 0) return b; 140 if (t == d) return b + c; 141 if ((t /= d / 2) < 1) return c / 2 * Math.pow(2, 10 * (t - 1)) + b; 142 return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b 143 }, 144 easeInCirc: function (x, t, b, c, d) { 145 return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b 146 }, 147 easeOutCirc: function (x, t, b, c, d) { 148 return c * Math.sqrt(1 - (t = t / d - 1) * t) + b 149 }, 150 easeInOutCirc: function (x, t, b, c, d) { 151 if ((t /= d / 2) < 1) return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b; 152 return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b 153 }, 154 easeInElastic: function (x, t, b, c, d) { 155 var s = 1.70158; 156 var p = 0; 157 var a = c; 158 if (t == 0) return b; 159 if ((t /= d) == 1) return b + c; 160 if (!p) p = d * .3; 161 if (a < Math.abs(c)) { 162 a = c; 163 var s = p / 4 164 } else var s = p / (2 * Math.PI) * Math.asin(c / a); 165 return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b 166 }, 167 easeOutElastic: function (x, t, b, c, d) { 168 var s = 1.70158; 169 var p = 0; 170 var a = c; 171 if (t == 0) return b; 172 if ((t /= d) == 1) return b + c; 173 if (!p) p = d * .3; 174 if (a < Math.abs(c)) { 175 a = c; 176 var s = p / 4 177 } else var s = p / (2 * Math.PI) * Math.asin(c / a); 178 return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b 179 }, 180 easeInOutElastic: function (x, t, b, c, d) { 181 var s = 1.70158; 182 var p = 0; 183 var a = c; 184 if (t == 0) return b; 185 if ((t /= d / 2) == 2) return b + c; 186 if (!p) p = d * (.3 * 1.5); 187 if (a < Math.abs(c)) { 188 a = c; 189 var s = p / 4 190 } else var s = p / (2 * Math.PI) * Math.asin(c / a); 191 if (t < 1) return -.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b; 192 return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * .5 + c + b 193 }, 194 easeInBack: function (x, t, b, c, d, s) { 195 if (s == undefined) s = 1.70158; 196 return c * (t /= d) * t * ((s + 1) * t - s) + b 197 }, 198 easeOutBack: function (x, t, b, c, d, s) { 199 if (s == undefined) s = 1.70158;
200 return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b 201 }, 202 easeInOutBack: function (x, t, b, c, d, s) { 203 if (s == undefined) s = 1.70158; 204 if ((t /= d / 2) < 1) return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b; 205 return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b 206 }, 207 easeInBounce: function (x, t, b, c, d) { 208 return c - jQuery.easing.easeOutBounce(x, d - t, 0, c, d) + b 209 }, 210 easeOutBounce: function (x, t, b, c, d) { 211 if ((t /= d) < (1 / 2.75)) { 212 return c * (7.5625 * t * t) + b 213 } else if (t < (2 / 2.75)) { 214 return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b 215 } else if (t < (2.5 / 2.75)) { 216 return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b 217 } else { 218 return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b 219 } 220 }, 221 easeInOutBounce: function (x, t, b, c, d) { 222 if (t < d / 2) return jQuery.easing.easeInBounce(x, t * 2, 0, c, d) * .5 + b; 223 return jQuery.easing.easeOutBounce(x, t * 2 - d, 0, c, d) * .5 + c * .5 + b 224 } 225}); 226(function (a) { 227 a.fn.extend({ 228 actual: function (b, k) { 229 var c, d, h, g, f, j, e, i; 230 if (!this[b]) { 231 throw '$.actual => The jQuery method "' + b + '" you called does not exist' 232 } 233 h = a.extend({ 234 absolute: false, 235 clone: false, 236 includeMargin: undefined 237 }, k); 238 d = this; 239 if (h.clone === true) { 240 e = function () { 241 d = d.filter(":first").clone().css({ 242 position: "absolute", 243 top: -1000 244 }).appendTo("body") 245 }; 246 i = function () { 247 d.remove() 248 } 249 } else { 250 e = function () { 251 c = d.parents().andSelf().filter(":hidden"); 252 g = h.absolute === true ? { 253 position: "absolute", 254 visibility: "hidden", 255 display: "block" 256 } : { 257 visibility: "hidden", 258 display: "block" 259 }; 260 f = []; 261 c.each(function () { 262 var m = {}, 263 l; 264 for (l in g) { 265 m[l] = this.style[l]; 266 this.style[l] = g[l] 267 } 268 f.push(m) 269 }) 270 }; 271 i = function () { 272 c.each(function (m) { 273 var n = f[m], 274 l; 275 for (l in g) { 276 this.style[l] = n[l] 277 } 278 }) 279 } 280 } 281 e(); 282 j = /(outer)/g.test(b) ? d[b](h.includeMargin) : d[b](); 283 i(); 284 return j 285 } 286 }) 287})(jQuery); 288(function ($) { 289 $.timer = function (func, time, autostart) { 290 this.set = function (func, time, autostart) { 291 this.init = true; 292 if (typeof func == 'object') { 293 var paramList = ['autostart', 'time']; 294 for (var arg in paramList) { 295 if (func[paramList[arg]] != undefined) { 296 eval(paramList[arg] + " = func[paramList[arg]]") 297 } 298 }; 299 func = func.action 300 } 301 if (typeof func == 'function') { 302 this.action = func 303 } 304 if (!isNaN(time)) { 305 this.intervalTime = time 306 } 307 if (autostart && !this.active) { 308 this.active = true; 309 this.setTimer() 310 } 311 return this 312 }; 313 this.once = function (time) { 314 var timer = this; 315 if (isNaN(time)) { 316 time = 0 317 } 318 window.setTimeout(function () { 319 timer.action() 320 }, time); 321 return this 322 }; 323 this.play = function (reset) { 324 if (!this.active) { 325 if (reset) { 326 this.setTimer() 327 } else { 328 this.setTimer(this.remaining) 329 } 330 this.active = true 331 } 332 return this 333 }; 334 this.pause = function () { 335 if (this.active) { 336 this.active = false; 337 this.remaining -= new Date() - this.last; 338 this.clearTimer() 339 } 340 return this 341 }; 342 this.stop = function () { 343 this.active = false; 344 this.remaining = this.intervalTime; 345 this.clearTimer(); 346 return this 347 }; 348 this.toggle = function (reset) { 349 if (this.active) { 350 this.pause() 351 } else if (reset) { 352 this.play(true) 353 } else { 354 this.play() 355 } 356 return this 357 }; 358 this.reset = function () { 359 this.active = false; 360 this.play(true); 361 return this 362 }; 363 this.clearTimer = function () { 364 window.clearTimeout(this.timeoutObject) 365 }; 366 this.setTimer = function (time) { 367 var timer = this; 368 if (typeof this.action != 'function') { 369 return 370 } 371 if (isNaN(time)) { 372 time = this.intervalTime 373 } 374 this.remaining = time; 375 this.last = new Date(); 376 this.clearTimer(); 377 this.timeoutObject = window.setTimeout(function () { 378 timer.go() 379 }, time) 380 }; 381 this.go = function () { 382 if (this.active) { 383 this.action(); 384 this.setTimer() 385 } 386 }; 387 if (this.init) { 388 return new $.timer(func, time, autostart) 389 } else { 390 this.set(func, time, autostart); 391 return this 392 } 393 } 394})(jQuery); 395$('li,a', '.sidebox ul.cat-tree').removeAttr('id').removeAttr('ondblclick').removeAttr('class'); 396$('.sidebox ul.cat-tree li,.sidebox .gTable').each(function () { 397 var $this = $(this); 398 $this.html($this.html().replace(/ /g, '')) 399}); 400$('.sidebox ul.cat-tree:first').addClass('ut-menu ut-vmenu'); 401$('.sidebox ul.cat-tree').removeAttr('style').removeClass('cat-tree'); 402$(function ($) { 403 404 var sw = window.innerWidth; 405 breakpoint = 979, 406 mobile = false; 407 408 409 function $ulight(parent, url, hlclass) { 410 var ls = $(parent).find("a").get(), 411 o = null, 412 l = 0; 413 for (var j in ls) { 414 if (ls[j].href && url.indexOf(ls[j].href) >= 0) { 415 if (!o || l < ls[j].href.length) { 416 o = ls[j]; 417 l = ls[j].href.length 418 } 419 } 420 } 421 if (o) $(o).addClass(hlclass) 422 } 423 $ulight($('#catmenu')[0], document.location.href + '/', 'current-item'); 424 var parentLi = $('#catmenu ul li:has(ul)').addClass('item-parent'); 425 if (!$('#catmenu').hasClass('nav-mobi')) { 426 var config = { 427 interval: 0, 428 over: function () { 429 if (mobile) return false; 430 $('> ul', this).animate({ 431 visibility: 'toggle', 432 opacity: 'toggle' 433 }, 200) 434 }, 435 timeout: 100, 436 out: function () { 437 if (mobile) return false; 438 $('> ul', this).animate({ 439 visibility: 'toggle', 440 opacity: 'toggle' 441 }, 200) 442 } 443 }; 444 parentLi.hoverIntent(config); 445 } 446 447 448 function nav_transform() { 449 if (!mobile) { 450 $('#catmenu').removeAttr('class'); 451 return 452 } else { 453 $('#catmenu').addClass('nav-mobi'); 454 } 455 } 456 sw = window.innerWidth; 457 mobile = (sw > breakpoint) ? false : true; 458 nav_transform(); 459 $(window).resize(function () { 460 sw = window.innerWidth; 461 mobile = (sw > breakpoint) ? false : true; 462 nav_transform() 463 });
464 465 466 $('> a', parentLi).after('<em>+</em>'); 467 468 function changeMenuIcon() { 469 if (window.innerWidth > 961) { 470 $('#catmenu li.uWithSubmenu em').html('+'); 471 $('#catmenu li.uWithSubmenu ul').hide(); 472 } 473 }; 474 475 changeMenuIcon(); 476 $(window).resize(function () { 477 changeMenuIcon(); 478 }); 479 480 $('> em', parentLi).click(function () { 481 if ($(this).text() == '+') { 482 $(this).parent().addClass('over'); 483 $(this).next().show(); 484 $(this).text('-') 485 } else if ($(this).text() == '-') { 486 $(this).parent().removeClass('over'); 487 $(this).next().hide(); 488 $(this).text('+') 489 } 490 return false 491 }); 492 493}); 494 495$(function ($) { 496 var sdLi = $('.sidebox ul li:has(ul)').addClass('item-parent'); 497 $(sdLi).each(function () { 498 $(this).prepend('<em>+</em>'); 499 $('em', this).css('top', $(this).actual('outerHeight') / 2 - $('em', this).actual('outerHeight') / 2) 500 }); 501 $('> em', sdLi).click(function () { 502 if ($(this).siblings('ul').is(':hidden') == true) { 503 $(this).siblings('ul').slideDown(500, 'easeOutExpo'); 504 $(this).text('-') 505 } else { 506 $(this).siblings('ul').slideUp(500, 'easeInExpo'); 507 $(this).text('+') 508 } 509 }); 510 var config = { 511 interval: 0, 512 over: function () { 513 $(this).prev().addClass('hover') 514 }, 515 timeout: 0, 516 out: function () { 517 $(this).prev().removeClass('hover') 518 } 519 }; 520 $('> a', sdLi).hoverIntent(config) 521}); 522$(function ($) { 523 if ($('#slider').length) { 524 $('#slider').append('<div id="slide-thmbs"></div>'); 525 $('#slider .slide').each(function (i, e) { 526 var slIm = $('.slide-img img', e); 527 $('#slide-thmbs').append('<div class="slide-thmb"><div style="background:url(' + slIm.attr('src') + ');"></div>'); 528 if (i == 0) { 529 $(e).addClass('active'); 530 $('.slide-thmb').addClass('active') 531 } 532 slIm.replaceWith('<div class="slide-nimg"><div style="background:url(' + slIm.attr('src') + ');"></div>') 533 }); 534 $('.slide-thmb').each(function (i, e) { 535 $(e).click(function () { 536 $('.slide-thmb,.slide').removeClass('active'); 537 $(e).addClass('active'); 538 $('.slide').eq(i).addClass('active') 539 }) 540 }); 541 var slideId = 2; 542 $slides = $('#slider .slide'); 543 $thumbs = $('#slide-thmbs .slide-thmb'); 544 545 function updateTimer() { 546 $slides.removeClass('active'); 547 $thumbs.removeClass('active'); 548 slideId++; 549 if (slideId >= $slides.length) { 550 slideId = 0 551 } 552 $slides.eq(slideId).stop(true, false).addClass('active'); 553 $thumbs.eq(slideId).stop(true, false).addClass('active') 554 } 555 $.Timer = $.timer(updateTimer, slideTime, true).once(); 556 $('#slider').hover(function () { 557 $.Timer.stop() 558 }, function () { 559 $.Timer.play() 560 }) 561 } 562}); 563$(function () { 564 $('.eTitle').wrapInner('<span class="title-span"></span>') 565}); 566$('.site-n a').click(function (e) { 567 if ($(e.target).hasClass('uz-signs')) { 568 e.preventDefault() 569 } 570}); 571$("#catmenu ul ul li:only-child").addClass('only-child'); 572$('#order-add-but').parent().addClass('add-goods'); 573$('#order-add-but').parent().siblings().addClass('add-goods-siblings');
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.