1/** 2* Copyright (c) 2007-2014 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com 3* Licensed under MIT 4* @author Ariel Flesler 5* @version 1.4.11 6*/ 7;(function(a){if(typeof define==='function'&&define.amd){define(['jquery'],a)}else{a(jQuery)}}(function($){var j=$.scrollTo=function(a,b,c){return $(window).scrollTo(a,b,c)};j.defaults={axis:'xy',duration:parseFloat($.fn.jquery)>=1.3?0:1,limit:true};j.window=function(a){return $(window)._scrollable()};$.fn._scrollable=function(){return this.map(function(){var a=this,isWin=!a.nodeName||$.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!isWin)return a;var b=(a.contentWindow||a).document||a.ownerDocument||a;return/webkit/i.test(navigator.userAgent)||b.compatMode=='BackCompat'?b.body:b.documentElement})};$.fn.scrollTo=function(f,g,h){if(typeof g=='object'){h=g;g=0}if(typeof h=='function')h={onAfter:h};if(f=='max')f=9e9;h=$.extend({},j.defaults,h);g=g||h.duration;h.queue=h.queue&&h.axis.length>1;if(h.queue)g/=2;h.offset=both(h.offset);h.over=both(h.over);return this._scrollable().each(function(){if(f==null)return;var d=this,$elem=$(d),targ=f,toff,attr={},win=$elem.is('html,body');switch(typeof targ){case'number':case'string':if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(targ)){targ=both(targ);break}targ=$(targ,this);if(!targ.length)return;case'object':if(targ.is||targ.style)toff=(targ=$(targ)).offset()}var e=$.isFunction(h.offset)&&h.offset(d,targ)||h.offset;$.each(h.axis.split(''),function(i,a){var b=a=='x'?'Left':'Top',pos=b.toLowerCase(),key='scroll'+b,old=d[key],max=j.max(d,a);if(toff){attr[key]=toff[pos]+(win?0:old-$elem.offset()[pos]);if(h.margin){attr[key]-=parseInt(targ.css('margin'+b))||0;attr[key]-=parseInt(targ.css('border'+b+'Width'))||0}attr[key]+=e[pos]||0;if(h.over[pos])attr[key]+=targ[a=='x'?'width':'height']()*h.over[pos]}else{var c=targ[pos];attr[key]=c.slice&&c.slice(-1)=='%'?parseFloat(c)/100*max:c}if(h.limit&&/^\d+$/.test(attr[key]))attr[key]=attr[key]<=0?0:Math.min(attr[key],max);if(!i&&h.queue){if(old!=attr[key])animate(h.onAfterFirst);delete attr[key]}});animate(h.onAfter);function animate(a){$elem.animate(attr,g,h.easing,a&&function(){a.call(this,targ,h)})}}).end()};j.max=function(a,b){var c=b=='x'?'Width':'Height',scroll='scroll'+c;if(!$(a).is('html,body'))return a[scroll]-$(a)[c.toLowerCase()]();var d='client'+c,html=a.ownerDocument.documentElement,body=a.ownerDocument.body;return Math.max(html[scroll],body[scroll])-Math.min(html[d],body[d])};function both(a){return $.isFunction(a)||typeof a=='object'?a:{top:a,left:a}};return j})); 8 9 10 11$(function(){ 12 $("a.fancybox").fancybox({ 13 'transitionIn' : 'elastic', 14 'transitionOut' : 'elastic', 15 'speedIn' : 600, 16 'speedOut' : 200, 17 'titlePosition' : 'inside', 18 'overlayShow' : true 19 }); 20 21 $(".frame").fancybox({ 22 'hideOnOverlayClick': true, 23 'opacity' : true, 24 'centerOnScroll' : true, 25 'margin' : 0, 26 'padding' : 0, 27 'width' : 450, 28 'autoScale' : false, 29 'transitionIn' : 'none', 30 'transitionOut' : 'none', 31 'type' : 'iframe' 32 }); 33}); 34 35/* Ðобавление в коÑÐ·Ð¸Ð½Ñ */ 36function addCard(target) { 37 $(target).ajaxSubmit({ 38 url: '/basket/add.html', 39 success: function(data) { 40 $.fancybox({ 41 'hideOnOverlayClick': true, 42 'opacity' : true, 43 'centerOnScroll' : true, 44 'margin' : 0, 45 'padding' : 0, 46 'width' : 450, 47 'autoScale' : false, 48 'transitionIn' : 'none', 49 'transitionOut' : 'none', 50 'type' : 'html', 51 'content' : data 52 }); 53 54 $.get('/basket/show.html', function(data){ 55 $('#basket').html(data); 56 }); 57 } 58 }); 59} 60 61/* Ðобавление в коÑÐ·Ð¸Ð½Ñ */ 62function addCardOneClick(target) { 63 $(target).ajaxSubmit({ 64 url: '/oneclick/add.html', 65 success: function(data) { 66 $.fancybox({ 67 'hideOnOverlayClick': true, 68 'opacity' : true, 69 'centerOnScroll' : true, 70 'margin' : 0, 71 'padding' : 0, 72 'width' : 450, 73 'autoScale' : false, 74 'transitionIn' : 'none', 75 'transitionOut' : 'none', 76 'type' : 'iframe', 77 'href' : '/oneclick/form.html' 78 }); 79 80 $.get('/basket/show.html', function(data){ 81 $('#basket').html(data); 82 }); 83 } 84 }); 85} 86 87/* Hide version 1.0 */ 88function base64_decode( data ) { 89 var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
89+/="; 90 var o1, o2, o3, h1, h2, h3, h4, bits, i=0, enc=''; 91 92 do { 93 h1 = b64.indexOf(data.charAt(i++)); 94 h2 = b64.indexOf(data.charAt(i++)); 95 h3 = b64.indexOf(data.charAt(i++)); 96 h4 = b64.indexOf(data.charAt(i++)); 97 bits = h1<<18 | h2<<12 | h3<<6 | h4; 98 o1 = bits>>16 & 0xff; 99 o2 = bits>>8 & 0xff; 100 o3 = bits & 0xff; 101 102 if (h3 == 64) enc += String.fromCharCode(o1); 103 else if (h4 == 64) enc += String.fromCharCode(o1, o2); 104 else enc += String.fromCharCode(o1, o2, o3); 105 } while (i < data.length); 106 return enc; 107} 108 109$(document).ready(function(){ 110 $('.hi_link').each(function() { 111 var link_id = $(this).attr("id"); 112 if (link_id == undefined) { 113 link_id = ''; 114 } else { 115 link_id = 'id="' + link_id + '"'; 116 } 117 118 link_class = 'class="' + $(this).attr("class") + '"'; 119 120 $(this).replaceWith('<a ' + link_class + ' ' + link_id + ' href="' + base64_decode($(this).attr("rel")) + '">' + $(this).html() + '</a>'); 121 }); 122 123}); 124 125(function($){ 126 $(document).ready(function(){ 127 128 $(".left_menu__sub_scroll").mCustomScrollbar({ 129 theme:"3d-thick", 130 axis:"y", 131 setWidth: 671, 132 setHeight: 425, 133 scrollbarPosition : "inside", 134 scrollButtons:{ enable: true } 135 }); 136 137// $(".best_price_slider").mCustomScrollbar({ 138// axis:"x", 139// theme:"light-3", 140// advanced:{autoExpandHorizontalScroll:true}, 141// scrollButtons:{ enable: true } 142// }); 143 144 }); 145})(jQuery); 146 147 148 149// генеÑаÑÐ¸Ñ Ð¿ÑокÑÑÑки блока в Ð¼ÐµÐ½Ñ 150//$(document).ready(function(){ 151// var blocks = $('.left_menu__sub'); 152// blocks.each(function () { 153// var height = $(this).height(); 154// if (height > 500) { 155// $(this).addClass('par_scroll'); 156// }; 157// }); 158//}); 159 160
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.