GoToShop.by - Акции и скидки супермаркетов Беларуси

  • 2022-01-05Date de collecte
  • 2022-02-15Mise à jour
GoToShop.by - Акции и скидки супермаркетов Беларуси
  • Adresse du site Web:gotoshop.by
  • IP du serveur:104.21.9.165
  • Description du site:Скидки на продукты, стройматериалы, электронику и бытовую технику, косметику, одежду, товары для детей и др.

nom de domaine:gotoshop.byÉvaluation

sur 500~20000

nom de domaine:gotoshop.bycouler

27

nom de domaine:gotoshop.byBon ou Mauvais

Soyez intelligent. Bicco Changlong

site Internet:GoToShop.by - Акции и скидки супермаркетов БеларусиPoids

1

site Internet:GoToShop.by - Акции и скидки супермаркетов БеларусиIP

104.21.9.165

site Internet:GoToShop.by - Акции и скидки супермаркетов Беларусиteneur

SkidkaOnline.by-АкцииискидкисупермаркетовБеларуси.bottom-n{display:none;}.container:before,.container:after{display:table;content:"";}.container:after{clear:both;}body{position:relative;background-color:#f7f7f8;color:#000;margin:0;}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto;}/*@media(min-width:768px){.container{width:751px;}}@media(min-width:992px){.container{width:751px;}}*/@media(max-width:1080px){.cities-content-container{display:block;}.cities-sidebar{display:none;}}@media(min-width:1200px){.container{width:1101px;}}@media(min-width:1700px){.container{width:1451px;/*4колонкиакций*/}}#header{background:#72B728;padding:0010px0;}.logo{padding:10px10px00;margin:0;float:left;}.logoa{display:block;text-decoration:none;}.logoaspan{color:#FFFFFF;display:block;font-size:15px;line-height:22px;}.nbar-inverse{background-color:#222;border:none;}.nbar{height:50px;}.shops-slider.shops-slider-inner{overflow:hidden;padding:010px;/*отступдлятени*/}.shops-slider.shops-slider-innerul{/*overflow:visible!important;*//*этозачем?*/width:px;position:relative;margin:0;padding:0;transform:translate3d(0,0,0);}.shops-slider.shops-slider-innerulli{background:#FFFFFF;float:left;margin:35px9px10px0;text-align:center;list-style:none;position:relative;}/*.shops-slider.shops-slider-inner.he-f-shopsulli{opacity:0.6;}.shops-slider.shops-slider-inner.he-f-shopsulli.c-0{opacity:1;}*/.shops-slider.shops-slider-innerulli.imea{display:block;height:60px;padding:5px00;width:60px;}.shops-slider.shops-slider-innerulli.imeadiv{display:inline-block;}.shops-slider.shops-slider-innerulli.imeaimg{height:50px!important;width:50px!important;display:none;}.shops-slider.shops-slider-innerullih3{font-size:12px;left:0;line-height:21px;position:absolute;top:-27px;z-index:100;padding:0;margin:0;border-radius:2px;}.shops-slider.shops-slider-innerullih3a{display:block;padding:04px;text-decoration:none;white-space:nowrap;color:#;}.shops-slider.shops-slider-innerulli.shop-discounts,.shops-pe.shops-slider.shop.shop-discounts{display:none;}#headera:hover,#headera:focus{text-decoration:none;}#header.slogan{float:left;margin:65px0040px;}#header.selectors-wrapper{padding:10px000;}#header.selectors-wrapper.visitor-city{color:#;font-size:18px;font-weight:600;line-height:24px;}#header.selectors-wrapper.selectors{padding:2px00;}#header.selectors-wrapper.selector{float:left;margin:013px10px0;}#header.selectors-wrapper.selector:last-child{margin-bottom:0;}#header.selectors-wrapper.selector>label{float:left;color:#fff;display:block;font-size:12px;font-weight:400;line-height:24px;margin:7px05px0;}#header.selectors-wrapper.dropdown{float:left;width:282px;margin:010px00;}#header.selectors-wrapper.dropdown.search{float:none;}#header.selectors-wrapper.dropdown.btn,#header.selectors-wrapper.dropdown.btn-group{width:100%;margin-bottom:0;}#header.selectors-wrapper.dropdown.btn-filter-discounts-apply,#header.selectors-wrapper.dropdown.btn-filter-discounts-clear{width:auto;}@media(max-width:1199px){#header.selectors-wrapperlabel{display:none;}}@media(min-width:768px){#header.selectors-wrapper{margin:000400px;}}@media(min-width:992px){#header.selectors-wrapper{margin:000400px;}}@media(min-width:1200px){#header.selectors-wrapper{margin:000400px;}}.hidden{display:none!important;}@media(max-width:767px){.hidden-xs{display:none!important;}}/*призагрузкестраницыпрячемнекоторыеэлементычтобыстраницавыгляделанормально*/.sidebar-menu,.modal,.popover,.nbar.container,.dropdown-menu,#header.selectors-wrapper,/*.form-filters,*//*.selected-shop,*/footer,.fixed-tabs,#back-to-top,.more-discounts-wrapper,.main-product-cats,.selected-shop-info.ratings,.add-shop-to-forites,.delete-shop-from-forites{display:none;}.visible-xs-block{display:none!important;}@media(max-width:767px){.visible-xs-block{display:block!important;}}/*анимацияпризагрузкестраницы*/.discounts.item{width:338px;display:inline-block;vertical-align:top;text-align:center;margin-top:15px;margin-right:20px;position:relative;height:500px;}.discounts.item:before{background-color:#fff;position:absolute;left:0;top:0;width:100%;height:500px;content:'';}@keyframesanimate{from{transition:none;}to{background-color:#f6f7f8;transition:all0.3sease-out;}}.shops-sliderulli.imea,.discounts.item:before{animation-name:animate;animation-duration:2s;animation-iteration-count:infinite;animation-timing-function:linear;}.ads{padding:15px020px0;text-align:center;overflow:hidden;}.ads-item,.welcome-item{font-size:12px;padding:0;display:inline-block;/*min-height:340px;*//*250pxмало,яндексобрезается*/}.ads-item-repeat-catalogs{min-height:467px;}.ads.ads-item,.welcome2.welcome-item{/*min-height:340px;*/border:1pxsolid#ccc;background-color:#fff;margin:0024px0;vertical-align:top;width:338px;display:none;float:left;}@media(min-width:768px){.ads.ads-item.ads-item-1,.ads.ads-item.ads-item-2,.welcome2.welcome-1,.welcome2.welcome-2{display:block;}.ads.ads-item.ads-item-2,.welcome2.welcome-2{float:right;}.form-inline.search.form-control{width:380px;}}@media(min-width:1200px){.ads.ads-item.ads-item-3,.welcome2.welcome-3{display:block;float:right;}.ads.ads-item.ads-item-1,.welcome2.welcome-1{margin-right:23px;}.ads.ads-item.ads-item-2,.welcome2.welcome-2{float:left;}.form-inline.search.form-control{width:470px;}}@media(min-width:1700px){.ads.ads-item.ads-item-4,.welcome2.welcome-4{display:block;float:right;}.ads.ads-item.ads-item-2,.welcome2.welcome-2{margin-right:23px;}.ads.ads-item.ads-item-3,.welcome2.welcome-3{float:left;}}.selected-shop{padding:25px025px;}.selected-shop.selected-shop-info{margin-left:160px;min-height:155px;}.selected-shop.selected-shop-infoh2,.slider-shops-hover.shop-discountsh2{font-size:20px;font-weight:400;line-height:20px;margin:0;padding:0010px;background:00;display:block;color:#000;}.selected-shop.selected-shop-logo{float:left;}.selected-shop.ime{background:#fff;padding:20px;margin:0015px;}.selected-shop.selected-shop-infoh3,.slider-shops-hover.shop-discountsh3{font-size:14px;font-weight:400;line-height:24px;padding:005px;margin:0;}.discounts-carouselul{width:px;position:relative;margin:0;padding:0;transform:translate3d(0,0,0);}.discounts-carouselulli{float:left;margin:09px00;list-style:none;position:relative;width:410px;}.discounts-carouselullia,.slider-shops-hover.shop-discountslia{max-width:250px;/*white-space:nowrap;*/overflow:hidden;display:inline-block;text-overflow:ellipsis;vertical-align:middle;}.discounts-carouselulli:last-child{margin-right:0;}.discounts-carouselulli.discount-item,.slider-shops-hover.shop-discountsulli{padding:007px0;display:list-item;list-style-position:outside;margin-left:15px;}.discounts-carouselulli.discount-itemsmall,.slider-shops-hover.shop-discountslismall{display:inline-block;font-size:12px;vertical-align:middle;}.added-today{padding:03px;border-radius:3px;/*background:red;*/background:#72B728;color:#fff;visibility:hidden;}.added-today.viewed{background:#ccc;display:none!important;}.discounts-carouselulli.discount-itemstrong,.slider-shops-hover.shop-discountslistrong{display:block;font-size:12px;font-weight:normal;color:#999;}@media(max-width:845px){.selected-shop.selected-shop-info{margin-left:0;clear:left;}}.form-filters{border-bottom:1pxsolid#dbe2e8;padding:15px0;margin:0;}.pull-right{float:right!important;}.pull-left{float:left!important;}/*Кнопкуфильтрпрячемивсефильтрыпоказываемдлябольшихэкранов*//*@media(min-width:733px){*//*#filters{*//*display:block;*//*}*//*.btn-show-filters{*//*display:none!important;*//*}*//*}*/.clearfix:before,.clearfix:after{display:table;content:"";}.clearfix:after{clear:both;}/*Прячемпереключательколонокдляэкрановбольшечем610Можетпеределатьдо750????!!!*/@media(min-width:610px){.cols-switch{display:none;}}@media(max-width:319px){/*Прячемпереключательколонокдляоченьузкихэкрановменьшечем320*/.cols-switch{display:none;}}@media(min-width:768px){.form-inline.form-group{display:inline-block;}}.collapse{display:none;}/*fallback*/@font-face{font-family:'MaterialIcons';font-style:normal;font-weight:400;src:url(/fonts/syl0-zNym6YjUruM-QrEh7-nyTnjDwKNJ_190FjpZIvDmUSVOK7BDJ_vb9vUSzq3wzLK-P0J-V_Zs-QtQth3-jOcbTCVpeRL2w5rwZu2rIelXxc.woff2)format('woff2');}.material-icons{font-family:'MaterialIcons';font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased;} (function(){'usestrict';functionaa(a){varb=0;returnfunction(){returnb0;){//idiomforstring.startsWithif(pars[i].lastIndexOf(prefix,0)!==-1){pars.splice(i,1);}}url=urlparts[0]+(pars.length>0?'?'+pars.join('&'):"");returnurl;}else{returnurl;}},s:[],enableProductsQuantity:1,loadAdsense:function(){if($('.adsbygoogle:not([data-adsbygoogle-status])').length){//невызывать,еслиужезагруженареклама$('.adsbygoogle:not([data-adsbygoogle-status])').each(function(i,el){//вызыватьнужностолько,сколькоблоковбезрекламы//какиетоошибки,рекламаневсяпоказываетсябывает(внизу4блока)//удалениерекламы,котораяневидна,чтобыошибокнебылоif($(el).width()==0){$(el).remove();}else{try{(adsbygoogle=window.adsbygoogle||[]).push({});//вызовадсенсрекламы}catch(e){}}});}}};//window.addEventListener('load',async()=>{//if('serviceWorker'innigator){//try{//constreg=awaitnigatorGoToShop.by - Акции и скидки супермаркетов Беларуси.serviceWorker.register("/sw.js");//console.log('Serviceworkerregistersuccess',reg);//}catch(e){//cGoToShop.by - Акции и скидки супермаркетов Беларусиonsole.log('Serviceworkerregisterfail');//}//}//});varscriptsStarted=false;functionstartScripts(){if(typeofjQuery=='undefined'||scriptsStarted==true){return;}scriptsStarted=true;/*if('serviceWorker'innigator){try{constreg=nigator.serviceWorker.register("/sw.js?3");console.log('Serviceworkerregistersuccess',reg);}catch(e){console.log('Serviceworkerregisterfail');}}*///swубираем,иззанегосайттормозитвозможноif('serviceWorker'innigator){nigator.serviceWorker.getRegistrations().then(function(registrations){for(letregistrationofregistrations){registration.unregister()}}).catch(function(err){console.log('ServiceWorkerregistrationfailed:',err);});}//показываетзначкинаакциях"Новая"т.е.акциядобавленасегодняинепросмотренапользователемvarupdateAddedToday=function(){vardiscountsViewedArr=(($.cookie('discounts_viewed'))?$.cookie('discounts_viewed').split(','):[]);for(vari=0;i100){bttBtn.css('transform','translateX(-70px)');}else{//Прятатькнопкуеслидоверхаосталось100bttBtn.css('transform','translateX(0px)');}*/if(st>lastScrollTop)$('BODY').removeClass('scroll-t').addClass('scroll-b');else$('BODY').removeClass('scroll-b').addClass('scroll-t');//прячем/показываемнавбар//varnbarT=parseInt(nbar.css('top'));//varnbarT=parseInt(nbar.css('transform'));vartr=nbar.css('transform'),trArr=tr.split(','),nbarT=0;if(trArr[5])nbarT=parseInt(trArr[5]);if(st>lastScrollTop){//Скролвниз.ПрячемнавбаркаквандроидnbarT=-1*(nbarT-(st-lastScrollTop));if(nbarT>nbarH)nbarT=nbarH;nbar.css('transform','translateY('+(-1*nbarT)+'px)');}else{//Сроллвверх.ПоказываемкаквандроидnbarT=nbarT+(lastScrollTop-st);if(nbarT>0)nbar.css('transform','translateY(0)');elseif(nbarTdocumentW){l=l-((l+hoverW)-documentW)-40;}sliderHover.css('left',l);sliderHover.css('top',t);});$('BODY').on('mouseoverclick','.shops-slider',function(){$('BODY').addClass('shops-slider-hover');});$('BODY').on('mouselee','.shops-slider',function(){$('.slider-shops-hover').hide();$('BODY').removeClass('shops-slider-hover');});$('BODY').on('click','.slider-shops-hover.btn-modal-close',function(e){e.preventDefault();$('.slider-shops-hover').hide();$('BODY').removeClass('shops-slider-hover');});varApi=newfunction(){varthisClass=this;thisClass.get=function(url,data,callback){varurlParams='';for(varpropertyNameindata){urlParams+=(urlParams=='')?'':'&';urlParams+=propertyName+'='+data[propertyName];}if(urlParams!=''){url+='?'+urlParams;}url=dcorecng.websiteurl.replace('account.','')+url;varxhr=jQuery.ajax({type:"GET",xhrFields:{withCredentials:true},beforeSend:function(request){},url:url}).done(function(data){if(callback){callback(data);}}).fail(function(jqXHR,textStatus){if(jqXHR.responseJSON){if(callback){callback(jqXHR.responseJSON);}}else{vardata={error:jqXHR.status,error_description:jqXHR.statusText};if(callback){callback(data);}}});returnxhr;};thisClass.post=function(url,data,callback){varpostData={};for(varpropertyNameindata){postData[propertyName]=data[propertyName];}url=dcorecng.websiteurl.replace('account.','')+url;varxhr=jQuery.ajax({type:"POST",beforeSend:function(request){},url:url,data:postData}).done(function(data){if(callback){callback(data);}}).fail(function(jqXHR,textStatus){if(jqXHR.responseJSON){if(callback){callback(jqXHR.responseJSON);}}else{vardata={error:jqXHR.status,error_description:jqXHR.statusText};if(callback){callback(data);}}});returnxhr;};thisClass.delete=function(url,data,callback){vardeleteData={};for(varpropertyNameindata){deleteData[propertyName]=data[propertyName];}varparamsStr=jQuery.param(deleteData);if(paramsStr){url+='?'+paramsStr;}url=dcorecng.websiteurl.replace('account.','')+url;varxhr=jQuery.ajax({type:'DELETE',beforeSend:function(request){},url:url,data:deleteData}).done(function(data){if(callback){callback(data);}}).fail(function(jqXHR,textStatus){if(jqXHR.responseJSON){if(callback){callback(jqXHR.responseJSON);}}else{vardata={error:jqXHR.status,error_description:jqXHR.statusText};if(callback){callback(data);}}});returnxhr;};thisClass.put=function(url,data,callback){varputData={};for(varpropertyNameindata){putData[propertyName]=data[propertyName];}url+='?'+jQuery.param(putData);url=dcorecng.websiteurl.replace('account.','')+url;varxhr=jQuery.ajax({type:'PUT',xhrFields:{withCredentials:true},beforeSend:function(request){},url:url,data:putData}).done(function(data){if(callback){callback(data);}}).fail(function(jqXHR,textStatus){if(jqXHR.responseJSON){if(callback){callback(jqXHR.responseJSON);}}else{vardata={error:jqXHR.status,error_description:jqXHR.statusText};if(callback){callback(data);}}});returnxhr;};};$('BODY').on('keyupcutpaste','.search-city-input',function($e){varspecialKeyCodeMap={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down",16:"shift",17:"ctrl",18:"alt"};if(specialKeyCodeMap[$e.which||$e.keyCode]){return;}varval=$(this).val();if(val==''){}Api.get('/apiv2/cities/',{fields:'id,name,slug,state,region,diff,capital',name:val},function(response){varhtml='';if(response.error){html='error';}else{if(response.cities.length>0){vari,j,temparray,chunk=Math.round(response.cities.length/3)+1;for(i=0,j=response.cities.length;iwindowWidth){l=windowWidth-(w+50);}tc.notesList.css({'display':'block','top':t,'left':l});if(!$('[type="radio"]:checked',tc.notesList).length){$('[type="radio"]:first',tc.notesList).attr('checked','checked');}};tc.bodyClick=function(){tc.hideListsChooser();tc.hideModalCreateNewListForm();tc.hideModalEditListForm();tc.hideModalListLink();};tc.notesListsClick=function(e){e.stopPropation();};tc.notesListsCloseBtnClick=function(e){tc.hideListsChooser();};tc.addProductToMynotes=function(btn){tc.notesBtn=$(btn);tc.productId=parseInt(tc.notesBtn.attr('rel'));if(tc.notesBtn.attr('data-basket')=='1'){tc.deleteProductFromMynotes();}else{if(dcorecng.user.askListBeforeAdd==1){mynotesLists.showListsChooser({top:$(btn).offset().top+$(btn).height(),left:$(btn).offset().left+$(btn).width(),});}else{tc.addProductToMynotesList();}}};tc.notesListsAddBtnClick=function(e){if(!$('[name="noteslist"]:checked').length){$(tc.showFormBtnSelector).click();$('.add-list-form').prepend('Создайтесписокдлядобавленияизбранного');}else{tc.addListId=$('[name="noteslist"]:checked').val();tc.addProductToMynotesList();}};tc.notesListsReplaceBtnClick=function(e){tc.replaceMynotesList();e.preventDefault();};tc.replaceMynotesList=function(){tc.forceCreate=true;if($('.add-list-form').is(':visible')){$('.add-list-form').submit();}else{$('.edit-list-form').submit();}};tc.notesListsRecoveryBtnClick=function(e){tc.recoveryMynotesList();e.preventDefault();};tc.recoveryMynotesList=function(){vardata={status:1,};vart=$('.add-list-form');$('.messes',t).remove();Api.put('/apiv3/users/'+dcorecng.user.id+'/noteslists/'+tc.addListId+'/',data,function(response){$('.has-error',t).removeClass('has-error');$('.form-element-errors',t).remove();$('[type="submit"]',t).button('reset');if(response.error){$(t).prepend(''+response.error_description+'');}else{tc.inputName.val('');tc.hideModalCreateNewListForm();tc.afterMynoteslistCreate(response.list);}});};tc.afterMynoteslistCreate=function(list){if($('BODY').hasClass('notes-pe')&&!$('BODY').hasClass('list-pe')){window.location.reload();}else{varnotesListsUl=$('.notes-lists-chooser.notes-lists');varnotesListNewLi='';notesListNewLi+='';notesListNewLi+=''+list.name+'';notesListNewLi+='';notesListsUl.prepend(notesListNewLi);$('[name="noteslist"]').prop("checked",false);$('[name="noteslist"][value="'+list.id+'"]').prop("checked",true);window.updateData();}};tc.deleteProductFromMynotes=function(){vardata={city_id:dcorecng.cityId,product_id:tc.productId};Api.delete('/apiv3/users/'+dcorecng.user.id+'/notes/',data,function(response){if(response.error){}else{tc.notesBtn.attr('data-basket','0');tc.notesBtn.attr('data-original-title','Добавитьвизбранное');tc.notesBtn.removeClass('active');$('.tooltip.tooltip-inner').text('Добавитьвизбранное');if($('BODY').hasClass('notes-pe')&&!$('BODY').hasClass('list-pe')){$('.discounts.item[data-id="'+tc.productId+'"]').hide(300,function(){$(this).remove();$(window).resize();});}$('.mynotes-count').html(response.totalCount);tc.notesBtn.popover('destroy');varoptions={content:'УдаленоизИзбранное',html:true,template:'',placement:'bottom'};tc.notesBtn.popover(options);tc.notesBtn.popover('show');setTimeout(function(){tc.notesBtn.popover('destroy');},2000);}});};tc.addProductToMynotesList=function(){vardata={city_id:dcorecng.cityId,product_id:tc.productId};if(tc.addListId!=false){data.list_id=tc.addListId;}if(dcorecng.user.askListBeforeAdd==1){varaskListCheckbox=$('.notes-lists-chooser[name="ask_list_before_add"]');if(askListCheckbox.length&&askListCheckbox.is(':checked')){data.ask_list_before_add=0;dcorecng.user.askListBeforeAdd=0;}}Api.post('/apiv3/users/'+dcorecng.user.id+'/notes/',data,function(response){if(response.error){varoptions={content:'Ошибкадобавлениявизбранное'+response.error_description+'',html:true,template:'',placement:'bottom'};tc.notesBtn.popover(options);tc.notesBtn.popover('show');setTimeout(function(){tc.notesBtn.popover('destroy');},5000);}else{tc.notesBtn.attr('data-basket','1');tc.notesBtn.attr('data-original-title','Удалить');tc.notesBtn.addClass('active');$('.tooltip.tooltip-inner').text('Удалить');tc.notesBtn.popover('destroy');varoptions={content:'ДобавленовИзбранное',html:true,template:'',placement:'bottom'};tc.notesBtn.popover(options);tc.notesBtn.popover('show');setTimeout(function(){tc.notesBtn.popover('destroy');},2000);$('.mynotes-count').html(response.totalCount);}tc.addListId=false;tc.productId=false;if(data.ask_list_before_add==0){$('.notes-lists-chooser').remove();}});tc.hideListsChooser();};tc.notesListsEditNameBtnClick=function(e){e.preventDefault();e.stopPropation();if($('.popover.edit-list-modal').is(':visible')){tc.hideModalEditListForm();}else{tc.showEditListFormBtn=$(this);tc.listNameSelector=$(this).attr('data-list-name');tc.notesListId=$(this).attr('data-list-id');tc.showModalEditListForm();}};$('body').on('click',tc.showFormBtnSelector,tc.newListBtnClick);$('body').on('submit','.add-list-form',tc.newListFromSubmit);$('body').on('submit','.edit-list-form',tc.editListNameFromSubmit);$('body').on('click','.notes-lists-chooser',tc.notesListsClick);$('body').on('click','.notes-lists-close-btn',tc.notesListsCloseBtnClick);$('body').on('click','.notes-lists-add-btn',tc.notesListsAddBtnClick);$(document).on('keypress',function(e){if(e.which==13){if($('.notes-lists-add-btn').is(':visible')){$('.notes-lists-add-btn').click();}}});$('body').on('click','.notes-lists-recovery-btn',tc.notesListsRecoveryBtnClick);$('body').on('click','.notes-lists-replace-btn',tc.notesListsReplaceBtnClick);$('body').on('click',tc.bodyClick);$('body').on('click','.new-list-modal,.edit-list-modal,.list-link-modal',function(e){e.stopPropation();});$('body').on('click','.edit-list-btn',tc.notesListsEditNameBtnClick);$('body').on('click','.list-link-btn',tc.showListLinkBtnClick);};varmynotesLists=newMynotesLists;functionshopsSelectorClass(){vartc=this;tc.csel='.choose-shops';tc.ssnsel='.selected-shops-field';tc.sLoaded=false;tc.sFLoaded=false;tc.urlhash='shooseshopsopen';tc.chooseShopBtnClick=function(e){varform=$(this).parents('form');varinputShops=$('.selected-shops-field',form);inputShops.attr("data-prevvalue",inputShops.val());varchooseShops=$(tc.csel,form);if(chooseShops.is(":visible")){tc.hideChooseShops();}else{varc=$('.choose-shop-wrap',form);varcityId=$(this).attr('data-cityid');if(!cityId){cityId=dcorecng.cityId;}tc.loadShops(c,cityId);tc.showChooseShops();}e.preventDefault();};tc.cancelBtnClick=function(e){if($(tc.csel).hasClass('open')){console.log('cancelBtnClickhidemodal');varform=$(this).parents('form');vart=$('.selected-shops-field',form);$(t).val($(t).attr("data-prevvalue"));tc.hideChooseShops();}};tc.submitBtnClick=function(e){e.preventDefault();e.stopPropation();varform=$(this).parents('form');varc=$('.choose-shop-wrap',form);vart=$('.selected-shops-field',c);varsc=$('input[name="shops[]"]:checked',c);vars=$('input[name="shops[]"]',c);varh=$(".choose-shop-link.selected-shops-name",c);varr='',r2='';console.log(t);console.log(sc);console.log(s);if(sc.length&&sc.length0){varshopsHtml='';for(varkey2inresponse2.shops){shopsHtml+=tc.getShopHTML(response2.shops[key2]);}$('.category[data-id="0"]',shopsWrap).removeClass('hidden');$('.category[data-id="0"]ul',shopsWrap).html(shopsHtml);}tc.sFLoaded=true;if(tc.sLoaded){tc.setChecked(c);}});};tc.loadShops=function(c,cityId){varshopsWrap=$('.choose-shops.wrap',c);tc.sLoaded=false;tc.sFLoaded=false;varurl='/apiv2/categories/';vardata={city_id:cityId,limit:999,fields:'id,name'};shopsWrap.html('').addClass('loader-icon').attr('data-cityid',cityId);shopsWrap.html('Выбрать/Отменитьвсемагазины');Api.get(url,data,function(response){if(response.totalCount>0){shopsWrap.append(tc.getShopsCategoryHTML(0,'Любимые'));varloaded=0;for(varkeyinresponse.categories){varcat=response.categories[key];varcI=cat.id;varcN=cat.name;shopsWrap.append(tc.getShopsCategoryHTML(cI,cN));varurl2='/apiv3/shops/';vardata2={city_id:cityId,status:1,category_id:cI,limit:999,fields:'id,name,ime,ime50,categories_id'};Api.get(url2,data2,function(response2){if(response2.totalCount>0){varshopsHtml='';for(varkey2inresponse2.shops){varcI=response2.shops[key2].categories_id;shopsHtml+=tc.getShopHTML(response2.shops[key2]);}$('.category[data-id="'+cI+'"]',shopsWrap).removeClass('hidden');$('.category[data-id="'+cI+'"]ul',shopsWrap).html(shopsHtml);}loaded++;if(response.totalCount==loaded){tc.sLoaded=true;tc.loadForiteShops(c,cityId);if(tc.sFLoaded){tc.setChecked(c);}}});}}shopsWrap.removeClass('loader-icon');});};tc.getSelectedShops=function(c){return$(tc.ssnsel,c).val();};tc.getFShopsIds=function(c){varv=[];$('.category[data-id="0"][name="shops[]"]',c).each(function(){v.push($(this).val());});returnv;};tc.setChecked=function(c){varfSIs=tc.getFShopsIds(c);for(vari=0;i0){varuserIdInput=$('[name="users_id"]');varitemsHTML='';for(vari=0;i0){varbtnTextObj=$('.btn.text',btnGroup);varselectedBrandsIdsStr=$(btnTextObj).attr('data-ids');varselectedBrandsIds=[];if(selectedBrandsIdsStr){selectedBrandsIds=selectedBrandsIdsStr.split(',')}varitemsHTML=dcorecng.brandsDropdown.getItemsHTML(response.brands,selectedBrandsIds,searchVal);dropdownContainer.html(itemsHTML);}else{dropdownContainer.html("Ничегоненайдено");}}elseif(response.cities){if(response.totalCount>0){varbtnTextObj=$('.btn.text',btnGroup),selectedCitiesIdsStr=$(btnTextObj).attr('data-ids');selectedCitiesIds=[];if(selectedCitiesIdsStr){selectedCitiesIds=selectedCitiesIdsStr.split(',');}varitemsHTML=dcorecng.citiesDropdown.getItemsHTML(response.cities,selectedCitiesIds,searchVal,input);dropdownContainer.html(itemsHTML);}else{dropdownContainer.html("Ничегоненайдено");}}else{dropdownContainer.html(response);}clearTimeout(t);input.removeClass('loading');});});$('.btn-group-search').each(function(){varactiveItem=$('.dropdown-menu.inner.active',this);if(activeItem.length){activeItem.trigger('click');}});$(window).on('popstate',function(e){if(dcorecng.isTouchDevice){$('.btn-group-search.open.btn-modal-close').trigger('click');$('.btn-group-usernotifications.open.btn-modal-close').trigger('click');}});$('BODY').on('click','.btn-group-search.btn-filter-discounts-select',function(e){varbtnGroup=$(this).parents('.btn-group-search');input=$('.typeahead,.typeahead-api',btnGroup);input.attr('data-prevvalue',input.attr('data-ids'));$(btnGroup).trigger('click');$('BODY').removeClass('modal-open');e.preventDefault();});$('BODY').on('click','.btn-group-search.btn-filter-discounts-cancel',function(e){varwrapper=$(this).parents('.btn-group-search');$('.btn-modal-close',wrapper).trigger('click');e.preventDefault();});$('BODY').on('click','.btn-modal-close',function(e){varbtnGroup=$(this).parents('.btn-group-search');if(!btnGroup.length){btnGroup=$(this).parents('.btn-group-usernotifications');}varinput=$('.typeahead,.typeahead-api',btnGroup);if(input.length){varprevValue=input.attr('data-prevvalue');if(prevValue){varids=prevValue.split(',');varexclusionSelector='.removable-item[data-id!="'+ids.join('"][data-id!="')+'"].glyphicon';$(exclusionSelector,btnGroup).trigger('click');varcheckboxSelector='.select-tree[type="checkbox"]:not(:checked)[value="'+ids.join('"],.select-tree[type="checkbox"]:not(:checked)[value="')+'"]';console.log(checkboxSelector);$(checkboxSelector).trigger('click');}else{$('.removable-item.glyphicon',btnGroup).trigger('click');}}$('.dropdown-toggle',btnGroup).trigger('click');e.preventDefault();});$('BODY').on('click','.btn-group-search.dropdown-menu.open',function(e){if(dcorecng.isTouchDevice){e.preventDefault();e.stopPropation();}});$('BODY').on('click','.cities-filter-dropdown.dropdown-menua,.close-submenu-on-select.dropdown-menua',function(e){varbtnGroup=$(this).parents('.btn-group-search:first');$(btnGroup).trigger('click');$('BODY').removeClass('modal-open');});})(jQuery);(function($){$('BODY').off('click','.select-treeli');$('BODY').off('click','.select-treelia');$('BODY').off('click','.select-treeliaspan');$('BODY').off('click','.select-tree[type="checkbox"]');$('BODY').on('click','.select-treeli,.btn-search-categoriesh6',function(e){e.preventDefault();e.stopPropation();});$('BODY').on('click','.select-treelia',function(e){e.preventDefault();e.stopPropation();});varCategoriesDropdown=function(){this.getCategoriesIdsStr=function(wrapper,productIndex){varcategoriesInputs=$('[name^="products['+productIndex+'][productcategories]"]',wrapper);varcategoriesIds='';if(categoriesInputs.length){categoriesInputs.each(function(){categoriesIds+=(categoriesIds=='')?'':',';categoriesIds+=$(this).val();});}returncategoriesIds;};this.getCategoriesText=function(wrapper,productIndex){varcategoriesInputs=$('[name^="products['+productIndex+'][productcategories]"]',wrapper);varcategoriesText='';if(categoriesInputs.length){categoriesInputs.each(function(){vartext=$(this).attr('data-title');varchildrens=$(this).attr('data-child');categoriesText+=(categoriesText=='')?'':',';if(childrens==0){categoriesText+='';}categoriesText+=text;if(childrens==0){categoriesText+='';}});}returncategoriesText;};this.getItemsHTML=function(pcategories,showCheckboxes,selectedCategoriesIds,searchText){varitemsHTML='';for(vari=0;i0&&!showCheckboxes);if(pcategory.children>0){itemClass+=(itemClass=='')?'':'';itemClass+='parent';}if(heChildrens){itemClass+=(itemClass=='')?'':'';itemClass+='open';}itemHTML+='';itemHTML+='';if(pcategory.children>0){itemHTML+='';itemHTML+='';}else{if(!showCheckbox){itemHTML+='';}}if(showCheckbox){varchecked=(selectedCategoriesIds&&(jQuery.inArray(pcategory.id,selectedCategoriesIds)!=-1));itemHTML+='';}varname=pcategory.name;if(searchText){searchText=(searchText+'').replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\\|\:])/g,"\\$1");name=name.replace(newRegExp("("+searchText+")",'gi'),"$1");}itemHTML+=''+name+'';itemHTML+='';if(heChildrens){itemHTML+='';itemHTML+=dcorecng.categoriesDropdown.getItemsHTML(pcategory.childcats,showCheckboxes,selectedCategoriesIds,searchText);itemHTML+='';}itemHTML+='';itemsHTML+=itemHTML;}returnitemsHTML;};};dcorecng.categoriesDropdown=newCategoriesDropdown;$('BODY').on('click','.select-treeliaspan',function(e){varspan=$(this);vara=span.parent('a');varli=a.parent('li');varproductCategoryId=a.attr('data-id');varchildren=parseInt(a.attr('data-child'));varproductItem=li.parents('.product-item');varwrapper=$(this).parents('.btn-group-search:first');if(children==0){$('[type="checkbox"]',li).click();returnfalse;}varsubUl=$('ul',li);if(subUl.length){li.toggleClass('open');returnfalse;}else{li.append('');li.addClass('open');subUl=$('ul',li);}if(children>0){varurl='/apiv2/pcategories/';vardata={};varinput=$('input.typeahead-api',wrapper);varparams=input.attr('data-params');if(params){varparamsArray=params.split('&');for(vari=0;i0){if(response.pcategories){varitemsHTML='';varsearchText=false;for(vari=0;i0&&!showCheckboxes);if(pcategory.children>0){itemClass+=(itemClass=='')?'':'';itemClass+='parent';}itemHTML+='';itemHTML+='';if(pcategory.children>0){itemHTML+='';itemHTML+='';}else{if(!showCheckbox){itemHTML+='';}}if(showCheckbox){varchecked=(selectedCategoriesIds&&(jQuery.inArray(pcategory.id,selectedCategoriesIds)!=-1));itemHTML+='';}varname=pcategory.name;if(searchText){searchText=(searchText+'').replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\\|\:])/g,"\\$1");name=name.replace(newRegExp("("+searchText+")",'gi'),"$1");}itemHTML+=''+name+'';itemHTML+='';itemHTML+='';itemsHTML+=itemHTML;}subUl.html(itemsHTML);}}else{subUl.html(""+"Ничегоненайдено"+"");}});}e.preventDefault();});$('BODY').on('click','.select-tree[type="checkbox"]',function(e){varcurrentCategoryId=$(this).val();varcurrentCategoryTitle=$(this).next('.text').text();vara=$(this).parents('a:first');varwrapper=$(this).parents('.btn-group-search:first');varproductWrapper=$(this).parents('.product-item:first');if(productWrapper.length){varproductIndex=productWrapper.attr('data-product');}else{varproductIndex=0;}if($(this).is(':checked')){$(wrapper).append('');$('.dropdown-menu-removable',wrapper).append(''+currentCategoryTitle+'');}else{$('[name="products['+productIndex+'][productcategories]['+currentCategoryId+']"]').remove();$('.dropdown-menu-removable.removable-item[data-id="'+currentCategoryId+'"]').remove();}varcategoriesIds=dcorecng.categoriesDropdown.getCategoriesIdsStr(wrapper,productIndex);varcategoriesText=dcorecng.categoriesDropdown.getCategoriesText(wrapper,productIndex);varbtnTextObj=$('.btn.text',wrapper);varinput=$('.typeahead-api',wrapper);if(categoriesText==''){btnTextObj.text(btnTextObj.attr('data-text'));}else{if(!btnTextObj.attr('data-text')){btnTextObj.attr('data-text',btnTextObj.text());}btnTextObj.html(categoriesText);}btnTextObj.attr('data-ids',categoriesIds);input.attr('data-ids',categoriesIds);varopenTree=false;varli=$(this).parents('li:first');if(li.hasClass('parent')&&!li.hasClass('open')){openTree=true;}if(openTree){$('span',a).click();}e.stopPropation();});$('BODY').on('click','.btn-search-categories.removable-item',function(e){e.stopPGoToShop.by - Акции и скидки супермаркетов Беларусиropation();});$('BODY').on('click','.btn-search-categories.removable-item.glyphicon',function(e){varremovable=$(this).parents('.removable-item');varwrapper=$(this).parents('.btn-group-search');varproductWrapper=$(this).parents('.product-item:first');if(productWrapper.length){varproductIndex=productWrapper.attr('data-product');}else{varproductIndex=0;}varcategoryId=removable.attr('data-id');varcheckbox=$('.dropdown-menu.inner[type="checkbox"][value="'+categoryId+'"]',wrapper);if(checkbox.length){checkbox.prop('checked',false);}else{}varcategoriesInputs=$('[name^="products['+productIndex+'][productcategories]['+categoryId+']"]');categoriesInputs.remove();removable.remove();varcategoriesIds=dcorecng.categoriesDropdown.getCategoriesIdsStr(wrapper,productIndex);varcategoriesText=dcorecng.categoriesDropdown.getCategoriesText(wrapper,productIndex);varbtnTextObj=$('.btn.text',wrapper);if(categoriesText==''){btnTextObj.text(btnTextObj.attr('data-text'));}else{if(!btnTextObj.attr('data-text')){btnTextObj.attr('data-text',btnTextObj.text());}btnTextObj.html(categoriesText);}btnTextObj.attr('data-ids',categoriesIds);e.stopPropation();});$('BODY').on('click','.btn-group-search.btn-filter-discounts-apply',function(e){if($(this).attr('data-catslug')){varpathname=location.pathname;pathname=pathname.replace('/'+$(this).attr('data-catslug')+'/','/');}else{varpathname=location.pathname;}varcurrentUrl=location.protocol+'/'+'/'+location.host+pathname;varparams='';if(dcorecng.originalState.indexOf('?')!=-1){varrequest={};varpairs=dcorecng.originalState.substring(dcorecng.originalState.indexOf('?')+1).split('&');for(vari=0;i0&&searchVal.lengtharrow_back_iosВыберитедатуarrow_back_iosВыберитекатегории

Placer:GoToShop.by - Акции и скидки супермаркетов БеларусиSignaler

En cas de violation du site, veuillez cliquer sur SignalerSignaler