1okay.max_order_amount=50;$(document).on('click','.fn_view_all',function(e){$(this).closest('.fn_view_content').toggleClass('opened');$('.fn_view_all').not($(this)).html('ÐивиÑиÑÑ Ð²Ñе');$('.fn_view_all').not($(this)).closest('.fn_view_content').removeClass('opened');if($(this).closest('.fn_view_content').hasClass('opened')){$(this).html('ÐгоÑнÑÑи')}else{$(this).html('ÐивиÑиÑÑ Ð²Ñе')} 2return!1});okay.is_preorder=1;var form_enter_name="ÐведÑÑÑ Ñм'Ñ";var form_enter_last_name="ÐведÑÑÑ Ð¿ÑÑзвиÑе";var form_enter_phone="ÐведÑÑÑ Ð½Ð¾Ð¼ÐµÑ";var form_error_captcha="ÐевÑÑно введена капÑа";var form_enter_email="ÐведÑÑÑ email";var form_enter_password="ÐведÑÑÑ Ð¿Ð°ÑолÑ";var form_enter_message="ÐведÑÑÑ Ð¿Ð¾Ð²ÑдомленнÑ";if($(".fn_validate_product").length>0){$(".fn_validate_product").validate({rules:{name:"required",text:"required",captcha_code:"required"},messages:{name:form_enter_name,text:form_enter_message,captcha_code:form_error_captcha}})} 3if($(".fn_validate_callback").length>0){$(".fn_validate_callback").validate({rules:{callback_name:"required",callback_phone:"required",captcha_code:"required"},messages:{callback_name:form_enter_name,callback_phone:form_enter_phone,captcha_code:form_error_captcha}})} 4if($(".fn_validate_subscribe").length>0){$(".fn_validate_subscribe").validate({rules:{subscribe_email:"required",},messages:{subscribe_email:form_enter_email}})} 5if($(".fn_validate_post").length>0){$(".fn_validate_post").validate({rules:{name:"required",text:"required",captcha_code:"required"},messages:{name:form_enter_name,text:form_enter_message,captcha_code:form_error_captcha}})} 6if($(".fn_validate_feedback").length>0){$(".fn_validate_feedback").validate({rules:{name:"required",email:{required:!0,email:!0},message:"required",captcha_code:"required"},messages:{name:form_enter_name,email:form_enter_email,message:form_enter_message,captcha_code:form_error_captcha}})} 7if($(".fn_validate_cart").length>0){$(".fn_validate_cart").validate({rules:{name:"required",last_name:"required",phone:"required",email:{required:!0,email:!0},captcha_code:"required"},messages:{name:form_enter_name,last_name:form_enter_last_name,phone:form_enter_phone,email:form_enter_email,captcha_code:form_error_captcha}});var submitted_cart=!1;$('.fn_validate_cart').on('submit',function(){if($('.fn_validate_cart').valid()===!0){if(submitted_cart===!0){return!1}else{submitted_cart=!0}}})} 8if($(".fn_validate_login").length>0){$(".fn_validate_login").validate({rules:{email:"required",password:"required",},messages:{email:form_enter_email,password:form_enter_password}})} 9if($(".fn_validate_register").length>0){$(".fn_validate_register").validate({rules:{name:"required",last_name:"required",phone:"required",email:{required:!0,email:!0},password:"required",captcha_code:"required"},messages:{name:form_enter_name,last_name:form_enter_last_name,phone:form_enter_phone,email:form_enter_email,captcha_code:form_error_captcha,password:form_enter_password}})} 10$(document).on('mouseover','.product_preview__name_link',function(){var add_name=$(this).closest('div').data('additional_name');if(add_name!==''){$(this).children('.fn_product_name').text(add_name)}});$(document).on('mouseout','.product_preview__name_link',function(){var p_name=$(this).closest('div').data('name');if(p_name!==''){$(this).children('.fn_product_name').text(p_name)}});document.addEventListener('DOMContentLoaded',function(){function setCookie(name,value,expires,path,domain,secure){if('number'===typeof expires){expires=new Date(new Date().getTime()+expires*86400000)} 11document.cookie=name+"="+value+((expires)?"; expires="+expires.toUTCString():"")+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"")+((secure)?"; secure":"")} 12$(document).on('click','a.language',function(){let lang_sufix=$(this).data('href_lang');if(lang_sufix!=''){setCookie('user_custom_language',lang_sufix,365,'/',document.location.hostname,'')}})});if($(".fn_share").length>0){jsSocials.shares.odnoklassniki={"label":"ok","logo":"fa fa-odnoklassniki","shareUrl":"https:\/\/connect.ok.ru\/dk?st.cmd=WidgetSharePreview&st.shareUrl={url}&title={title}"};$(".fn_share").jsSocials({showLabel:!1,showCount:!1,shares:["twitter","facebook","googleplus","linkedin"]})} 13let ratingBlock=$(".fn_rating");if(ratingBlock.length>0){$(function(){ratingBlock.rater({postHref:ratingBlock.data('rating_post_url')})});$.fn.rater=function(options){var opts=$.extend({},$.fn.rater.defaults,options);return this.each(function(){var $this=$(this);var $on=$this.find('.rating_starOn');var $off=$this.find('.rating_starOff');opts.size=$on.height();if(opts.rating==undefined)opts.rating=$on.width()/opts.size;$off.mousemove(function(e){var left=e.clientX-$off.offset().left;var width=$off.width()-($off.width()-left);width=Math.ceil(width/(opts.size/opts.step))*opts.size/opts.step;$on.width(width)}).hover(function(e){$on.addClass('rating_starHover')},function(e){$on.removeClass('rating_starHover');$on.width(opts.rating*opts.size)}).click(function(e){var r=Math.round($on.width()/$off.width()*(opts.units*opts.step))/opts.step;$off.unbind('click').unbind('mousemove').unbind('mouseenter').unbind('mouseleave');$off.css('cursor','default');$on.css('cursor','default');opts.id=$this.attr('id');$.fn.rater.rate($this,opts,r)}).css('cursor','pointer');$on.css('cursor','pointer')})};$.fn.rater.defaults={postHref:location.href,units:5,step:1};$.fn.rater.rate=function($this,opts,rating){var $on=$this.find('.rating_starOn');var $off=$this.find('.rating_starOff');$off.fadeTo(600,0.4,function(){$.ajax({url:opts.postHref,type:"POST",data:'id='+opts.id+'&rating='+rating,complete:function(req){if(req.status==200){opts.rating=parseFloat(req.responseText);if(opts.rating>0){opts.rating=parseFloat(req.responseText);$off.fadeTo(200,0.1,function(){$on.removeClass('rating_starHover').width(opts.rating*opts.size);var $count=$this.find('.rating_count');$count.text(parseInt($count.text())+1);$this.find('.rating_value').text(opts.rating.toFixed(1));$off.fadeTo(200,1)})}else if(opts.rating==-1){$off.fadeTo(200,0.6,function(){$this.find('.rating_text').text('')})}else{$off.fadeTo(200,0.6,function(){$this.find('.rating_text').text('')})}}else{alert(req.responseText);$on.removeClass('rating_starHover').width(opts.rating*opts.size);$this.rater(opts);$off.fadeTo(2200,1)}}})})}} 14if($('.variant1').val()>0){$('.fn_variant_[data-variant="'+$('.variant1').val()+'"]').addClass('fn_active_variant')}else{let variants=document.querySelectorAll('.fn_variant_');let first_variant=variants[0];first_variant.className+=' fn_active_variant'} 15$('.input_amount[name="amount"]').on('change',function(){var price=parseFloat(String($(this).data('price')).replaceAll(' ','').replaceAll(',','.'));
15var formatted=Number(price*$(this).val()).toLocaleString('uk-UA');if(formatted.toString().indexOf(',')===-1){formatted=formatted.toString()+',00'} 16if(formatted.toString().match(/,\d$/)){formatted=formatted.toString()+'0'} 17$('.fn_price').text(formatted)});$('.fn_variant_').on('click',function(e){e.preventDefault();if($('.fn_variant_').hasClass('fn_active_variant'))$('.fn_variant_').removeClass('fn_active_variant');$(this).addClass('fn_active_variant');let selected_variant_id=$(this).attr('data-variant');$('.variant1').val(selected_variant_id);let price_variant=$(this).attr('data-price');$('.product_price .fn_price').text(price_variant);let cprice_variant=$(this).attr('data-cprice');$('.product_price .fn_old_price').text(cprice_variant);$('.old_price').hide();if(cprice_variant){$('.old_price').show()} 18let sku_variant=$(this).attr('data-sku');$('.fn_sku').text(sku_variant);let stock=$(this).attr('data-stock');if(stock==0){$('.fn_not_stock').removeClass('hidden');$('.fn_in_stock').addClass('hidden')}else{$('.fn_in_stock').removeClass('hidden');$('.fn_not_stock').addClass('hidden')} 19if(stock==0&&okay.is_preorder){$('.fn_is_preorder').removeClass('hidden');$('.fn_is_stock, .fn_not_preorder').addClass('hidden')}else if(stock==0&&!okay.is_preorder){$('.fn_not_preorder').removeClass('hidden');$('.fn_is_stock, .fn_is_preorder').addClass('hidden')}else{$('.fn_is_stock').removeClass('hidden');$('.fn_is_preorder, .fn_not_preorder').addClass('hidden')} 20let status=$(this).attr('data-third_status');if(status==1&&stock==0){$('.fn_not_stock, .fn_in_stock').addClass('hidden');$('.fn_is_stock').removeClass('hidden');$('.third_status ').removeClass('hidden')}else{$('.third_status ').addClass('hidden')} 21var amount=$('.input_amount[name="amount"]');amount.data('max',stock).val(1).data('price',$(this).attr('data-price'));var fastOrder=$('.fn_fast_order_button');if((status==1&&stock==0)||stock>0){fastOrder.show()}else{fastOrder.hide()}})
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.