WELCOME TO PORTO OPENCART
ОДЯГ
- Одяг для танців на виступи
' $("head").append(css_tpl)});$(window).load(function(){var css_tpl='' $("head").append(css_tpl)});$(document).ready(function(){if($(window).width()>992){$('#image').elevateZoom({zoomType:"inner",cursor:"pointer",zoomWindowFadeIn:500,zoomWindowFadeOut:750});var z_index=0;$(document).on('click','.open-popup-image',function(){$('.popup-gallery').magnificPopup('open',z_index);return!1});$('.thumbnails a, .thumbnails-carousel a').click(function(){var smallImage=$(this).attr('data-image');var largeImage=$(this).attr('data-zoom-image');var ez=$('#image').data('elevateZoom');$('#ex1').attr('href',largeImage);ez.swaptheimage(smallImage,largeImage);z_index=$(this).index('.thumbnails a, .thumbnails-carousel a');return!1})}else{$(document).on('click','.open-popup-image',function(){$('.popup-gallery').magnificPopup('open',0);return!1})}});$(document).ready(function(){$(".thumbnails-carousel").owlCarousel({autoPlay:6000,navigation:!0,navigationText:['',''],items:4,margin:10,})});$(document).ready(function(){$('.set-rating i').hover(function(){var rate=$(this).data('value');var i=0;$('.set-rating i').each(function(){i++;if(i<=rate){$(this).addClass('active')}else{$(this).removeClass('active')}})}) $('.set-rating i').mouseleave(function(){var rate=$('input[name="rating"]:checked').val();rate=parseInt(rate);i=0;$('.set-rating i').each(function(){i++;if(i<=rate){$(this).addClass('active')}else{$(this).removeClass('active')}})}) $('.set-rating i').click(function(){$('input[name="rating"]:nth('+($(this).data('value')-1)+')').prop('checked',!0)})});function capchaCallback(params){$('#callback .btn.btn-primary').prop("disabled",!1)} gtag('event','view_item',{'value':235,'items':[{"id":574,"google_business_vertical":"retail"}]});$('select[name=\'recurring_id\'], input[name="quantity"]').change(function(){$.ajax({url:'index.php?route=product/product/getRecurringDescription',type:'post',data:$('input[name=\'product_id\'], input[name=\'quantity\'], select[name=\'recurring_id\']'),dataType:'json',beforeSend:function(){$('#recurring-description').html('')},success:function(json){$('.alert, .text-danger').remove();if(json.success){$('#recurring-description').html(json.success)}}})});$('#button-cart').on('click',function(){$.ajax({url:'index.php?route=checkout/cart/add',type:'post',data:$('#product input[type=\'text\'], #product input[type=\'hidden\'], #product input[type=\'radio\']:checked, #product input[type=\'checkbox\']:checked, #product select, #product textarea'),dataType:'json',beforeSend:function(){$('#button-cart').button('loading')},complete:function(){$('#button-cart').button('reset')},success:function(json){$('.alert, .text-danger').remove();$('.form-group').removeClass('has-error');if(json.error){if(json.error.option){for(i in json.error.option){var element=$('#input-option'+i.replace('_','-'));if(element.parent().hasClass('input-group')){element.parent().after('
'+json.error.option[i]+'
')}else{element.after('
'+json.error.option[i]+'
')}}} if(json.error.recurring){$('select[name=\'recurring_id\']').after('
'+json.error.recurring+'
')} $('.text-danger').parent().addClass('has-error')} if(json.success){$.notify({message:json.success,target:'_blank'},{element:'body',position:null,type:"info",allow_dismiss:!0,newest_on_top:!1,placement:{from:"top",align:"right"},offset:20,spacing:10,z_index:2031,delay:5000,timer:1000,url_target:'_blank',mouse_over:null,animate:{enter:'animated fadeInDown',exit:'animated fadeOutUp'},onShow:null,onShown:null,onClose:null,onClosed:null,icon_type:'class',template:'
'+'
×
'+'
{2}
'+'
'+'
'+'
'+'
'+'
'});$('#mini-cart #cart_content').load('index.php?route=common/cart/info #cart_content_ajax');$('#mini-cart #total_item_ajax').load('index.php?route=common/cart/info #total_item')}},error:function(xhr,ajaxOptions,thrownError){alert(thrownError+"\r\n"+xhr.statusText+"\r\n"+xhr.responseText)}})});$('.date').datetimepicker({pickTime:!1});$('.datetime').datetimepicker({pickDate:!0,pickTime:!0});$('.time').datetimepicker({pickDate:!1});$('button[id^=\'button-upload\']').on('click',function(){var node=this;$('#form-upload').remove();$('body').prepend('
');$('#form-upload input[name=\'file\']').trigger('click');timer=setInterval(function(){if($('#form-upload input[name=\'file\']').val()!=''){clearInterval(timer);$.ajax({url:'index.php?route=tool/upload',type:'post',dataType:'json',data:new FormData($('#form-upload')[0]),cache:!1,contentType:!1,processData:!1,beforeSend:function(){$(node).button('loading')},complete:function(){$(node).button('reset')},success:function(json){$('.text-danger').remove();if(json.error){$(node).parent().find('input').after('
'+json.error+'
')} if(json.success){alert(json.success);$(node).parent().find('input').attr('value',json.code)}},error:function(xhr,ajaxOptions,thrownError){alert(thrownError+"\r\n"+xhr.statusText+"\r\n"+xhr.responseText)}})}},500)});$('#review').delegate('.pagination a','click',function(e){e.preventDefault();$('#review').fadeOut('slow');$('#review').load(this.href);$('#review').fadeIn('slow')});$('#review').load('index.php?route=product/product/review&product_id=574');$('#button-review').on('click',function(){$.ajax({url:'index.php?route=product/product/write&product_id=574',type:'post',dataType:'json',data:$("#form-review").serialize(),beforeSend:function(){$('#button-review').button('loading')},complete:function(){$('#button-review').button('reset')},success:function(json){$('.alert-success, .alert-danger').remove();if(json.error){$('#review').after('
'+json.error+'
')} if(json.success){$('#review').after('
'+json.success+'
');$('input[name=\'name\']').val('');$('textarea[name=\'text\']').val('');$('input[name=\'rating\']:checked').prop('checked',!1)}}})});$(document).ready(function(){$('.popup-gallery').magnificPopup({delegate:'a.popup-image',type:'image',tLoading:'Loading image #%curr%...',mainClass:'mfp-with-zoom',gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'
The image #%curr%
could not be loaded.',titleSrc:function(item){return item.el.attr('title')}}})});var ajax_price=function(){$.ajax({type:'POST',url:'index.php?route=product/liveprice/index',data:$('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info select, .product-info textarea'),dataType:'json',success:function(json){if(json.success){change_price('#price-special',json.new_price.special);change_price('#price-tax',json.new_price.tax);change_price('#price-old',json.new_price.price)}}})} var change_price=function(id,new_price){$(id).html(new_price)} $('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\'], .product-info input[type=\'checkbox\'], .product-info select, .product-info textarea, .product-info input[name=\'quantity\']').on('change',function(){ajax_price()});$.fn.tabs=function(){var selector=this;this.each(function(){var obj=$(this);$(obj.attr('href')).hide();$(obj).click(function(){$(selector).removeClass('selected');$(selector).each(function(i,element){$($(element).attr('href')).hide()});$(this).addClass('selected');$($(this).attr('href')).show();return!1})});$(this).show();$(this).first().click()};$('#tabs a').tabs();(function(w,d,u){var s=d.createElement('script');s.async=!0;s.src=u+'?'+(Date.now()/60000|0);var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h)})(window,document,'https://cdn.bitrix24.ua/b5233501/crm/site_button/loader_2_whnim3.js');(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=!0;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f)})(window,document,'script','dataLayer','GTM-5DB9KJL');function elementInViewPort(elem){var $elem=$(elem);var top=$elem.offset().top;var height=$elem.height();return insideViewPort(top,height)} function insideViewPort(top,height){var bottom=top+height;var $window=$(window);var viewport_top=$window.scrollTop();var viewport_height=$window.height();var viewport_bottom=viewport_top+viewport_height;return(top>=viewport_top&&top
viewport_top&&bottom<=viewport_bottom)||(height>viewport_height&&top<=viewport_top&&bottom>=viewport_bottom)} jQuery(document).ready(function($){jQuery('img').each(function(){if(elementInViewPort(this)===!1){jQuery(this).addClass('lazy');jQuery(this).attr('data-src',jQuery(this).attr('src'));jQuery(this).attr('src','')}});$('.lazy').Lazy()});$('.mobile-toggle').click(function(){console.log('clicked');let el=document.querySelector('body');el.classList.add('opened-menu')});$('#mobile-menu-overlay').click(function(){console.log('removed');let el=document.querySelector('body');el.classList.remove('opened-menu')});function capchaCallback(params){$('#callback .btn.btn-primary').prop("disabled",!1)}