/** ** Эта статья нужна для работы корзины в многостраничном режиме. Этот режим используется, если на вкладке "Цены" выбран пункт "ничего не делать при открытии страницы" и после этого выполнена нарезка static_site_new.bat . Если этот режим не используется, то содержимое данной статьи можно удалить. Саму статью удалять не следует ***/
var wasSeenStr = "";var wasSeenCap = "";var wasSeenId = "";var wasArr = [];function replaceAll(string, search, replace) { return string.split(search).join(replace);}
if(document.querySelector('.tc-tagged-\\%24\\%3A\\%2FNote')){
wasSeenCap=document.querySelector(".tc-tagged-\\%24\\%3A\\%2FNote tw .item_caption").innerHTML;
wasSeenId=document.querySelector(".tc-tagged-\\%24\\%3A\\%2FNote").getAttribute("data-tiddler-title");
};
if (isLocalStorageAvailable()) {
wasSeenStr=localStorage.getItem("LSwasSeen") || "";
if (wasSeenStr.indexOf(wasSeenId+"||") < 0 && wasSeenId!=""){
localStorage.setItem("LSwasSeen", wasSeenStr+"++"+wasSeenId+"||"+wasSeenCap);
};
if(wasSeenStr!="" && document.querySelector(".liline")){
function wasDel() {
document.querySelector(".liline").innerHTML="";
localStorage.setItem("LSwasSeen", "");
};
wasArr = wasSeenStr.split("++");
for(var i=0;i < wasArr.length;i++) {
wasArr[i] = wasArr[i].split("||")[0];
};
wasSeenStr=replaceAll(wasSeenStr, '++', '');
wasSeenStr="смотреть открытые:" + wasSeenStr.substring(4)+ "" + '';
document.querySelector(".liline").innerHTML=wasSeenStr;
};
};
var search_text="";if (document.querySelector('.swiper-wrapper') || document.querySelector('.cb-image-grid')){var script = document.createElement('script');script.src = "https://heeg.ru/swiper-min.js";document.head.appendChild(script);script.onload = function() {var swiper=new Swiper(".swiper-container",{lazy:!0,pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}});setTimeout(function() {swiper2init()},400);};};if (document.querySelector('.search_field')){var script = document.createElement('script');script.src = "search_base.html";document.head.appendChild(script);};var script3 = document.createElement('script');script3.src = "https://heeg.ru/test/js/sweet-alert.js";script3.type = "text/javascript";document.head.appendChild(script3);var mycss3 = document.createElement('link');mycss3.href="https://heeg.ru/test/js/sweet-alert.css";mycss3.rel="stylesheet";document.head.appendChild(mycss3);/******************************************************************************************************** * goods filters ********************************************************************************************************/var arrObjects = [];var blocks = [];function goodsFilter(a) {if(typeof a == "undefined"){a=document.querySelector(".tc-tiddler-frame")};var offs=a;if(offs.querySelector(".tovarblock")){arrObjects = [];var tovarblocks = offs.querySelectorAll( ".tovarblock" ); for( let n = 0; n < tovarblocks.length; n++){ blocks = tovarblocks[n].querySelectorAll( ".simpleCart_shelfItem" ); for( let i = 0; i < blocks.length; i++){ ARR_items = blocks[i].querySelectorAll('[class^="item_"]');arrObjects[i] = {};var currclass =""; var curritem =""; var curritemval="";for (let t = 0; t < ARR_items.length; t++) {currclass=ARR_items[t].getAttribute('class'); curritemval=ARR_items[t].innerHTML;if(isNaN(curritemval)){curritem =curritemval}else{curritem =parseFloat(curritemval)};arrObjects[i][currclass] = curritem; };tovarblocks[n].setAttribute('t','1');}} }; function arrayFilter(arr, pattern) { return arr.filter(function(el) { return pattern.some(function(mask) { return Object.keys(mask).every(function(key) { return mask[key](el[key]) }) }) })};function filterG(str, nnn){var pagNum=parseFloat("99999");var pn=0;var PN=pagNum;var pattern = eval('[{' + str + '}]');let usersFilter = arrayFilter(arrObjects, pattern);let curfilter=usersFilter.map(el => el.item_name);var sortnotfound = document.createElement('div');sortnotfound.className = "sortnotfound";sortnotfound.innerHTML = "Ничего не найдено. Уточните выбор по параметрам.";if(offs.querySelector(".sortnotfound")){offs.querySelector(".sortnotfound").outerHTML="";}if (!curfilter[0]){offs.querySelector(".tovarblock").append(sortnotfound)}; for( let i = 0; i < blocks.length; i++){ blocks[i].style.display = 'none';blocks[i].setAttribute("num", "hide");} for( let ig = 0; ig < curfilter.length; ig++){var arritemss=offs.querySelectorAll("[id='"+curfilter[ig]+"']"); for( let i = 0; i < arritemss.length; i++){ arritemss[i].removeAttribute('style');if(pagNum-ig>0){}else{pagNum=pagNum+PN; pn=pn+1;};arritemss[i].setAttribute("num", pn+1);}};pagstylenum(nnn, pn+2);}; function handler1(t, n) {if( document.querySelector('div[data-tiddler-title="'+n+'"] .pagination input[id="'+n+'1"]')){document.querySelector('div[data-tiddler-title="'+n+'"] .pagination input[id="'+n+'1"]').checked = true;pagstyle(n, "1");} if(t=="reset"){filterG("", n)}else{var myparametr=t.querySelectorAll('div [class^="parametr"]');var myNparametr=t.querySelectorAll('div [class^="nparametr"]');var pricefrom=t.querySelector(".parametr-price .pricefrom").value || 0;var priceto=t.querySelector(".parametr-price .priceto").value || 9999999999;var numberfrom=0;var numberto=9999999999;var myvaluesii="";for (let l = 0, length = myNparametr.length; l < length; l++) {numberfrom=myNparametr[l].querySelector(".numberfrom").value || 0;numberto=myNparametr[l].querySelector(".numberto").value || 9999999999;myvaluesii=myvaluesii+"'item_"+myNparametr[l].getAttribute("class")+"'"+": f => f >="+numberfrom+" && f <="+numberto+","};for (let k = 0, length = myparametr.length; k < length; k++) {var myvalues=myparametr[k].querySelectorAll('label input:checked + a');var myvaluesi="";for (let i = 0, length = myvalues.length; i < length; i++) {myvaluesi=myvaluesi+"'"+myvalues[i].innerHTML+"'"+",";}
if( myvaluesi!=""){
myvaluesii=myvaluesii+"'"+"item_"+myparametr[k].getAttribute("class")+"' : a => a && "+" ["+myvaluesi.slice(0, -1)+"].some(f => (a+'').split(',').map(function(name) {return name.trim()}).indexOf(f) != -1) ,";
}
}filterG(myvaluesii+"item_price: f => f >="+pricefrom+" && f <="+priceto, n);}}; var elementss = offs.querySelectorAll('div[class="parametrs"]');for (let i = 0, length = elementss.length; i < length; i++) {let ei=elementss[i];if(ei.hasAttribute("tt")){}else{var nn=ei.getAttribute("n");var Nelementss =elementss[i].querySelectorAll('div[class^="nparametr"]');for (let g = 0, length = Nelementss.length; g < length; g++) {Nelementss[g].querySelector('.numberfrom').onkeyup = function() {handler1(this.parentElement.parentElement.parentElement.parentElement, nn)};Nelementss[g].querySelector('.numberto').onkeyup = function() {handler1(this.parentElement.parentElement.parentElement.parentElement, nn)};};ei.querySelector('.parametr-price .pricefrom').onkeyup = function() {handler1(this.parentElement.parentElement.parentElement.parentElement, nn)};ei.querySelector('.parametr-price .priceto').onkeyup = function() {handler1(this.parentElement.parentElement.parentElement.parentElement, nn)};ei.querySelector('button[type="reset"]').onclick = function() {handler1('reset', nn)};ei.addEventListener("change" , function() {handler1(this, nn)});}ei.setAttribute("tt","1");};};function pagstylenum(name, value){if(document.querySelector('.pagination #pagnum-'+name)){document.querySelector('.pagination #pagnum-'+name).innerHTML='div[data-tiddler-title="'+name+'"] .pagination label:nth-of-type(n+'+value+') { opacity:0.5; pointer-events: none;}';}}/******************************************************************************************************** * goods sort ********************************************************************************************************/function goodsSort(a) {if(typeof a == "undefined"){a=document.querySelector(".tc-tiddler-frame")};var offs=a;if(offs.querySelector(".ordersel")){var divselect= offs.querySelectorAll(".ordersel");for (let i = 0, length = divselect.length; i < length; i++) {if(divselect[i].hasAttribute("t")){}else{divselect[i].addEventListener('change', function () { var ordersel= event.target.value;var n=a.getAttribute("data-tiddler-title");if(document.querySelector('div[data-tiddler-title="'+n+'"] .pagination input[id="'+n+'1"]')){document.querySelector('div[data-tiddler-title="'+n+'"] .pagination input[id="'+n+'1"]').checked = true;pagstyle(n, "1");};var sortarr = ordersel.slice(0, -1).split('[');var order=1;if(sortarr[0].substring(0, 1)=="!"){order=-1}; arrObjects=arrObjects.sort(compare("item_"+sortarr[1], order));var h=0;var pn2=0;var pagNum=parseFloat("99999");var PN=pagNum;arrObjects.forEach(function(item, i, arrObjects) {if(offs.querySelector("[id='"+item.item_name+"']")){offs.querySelector('.tovarblock').appendChild(offs.querySelector("tw[id='"+item.item_name+"']"));if(offs.querySelector("[id='"+item.item_name+"']").getAttribute("style")!="display: none;"){if(pagNum-h>0){}else{pagNum=pagNum+PN; pn2=pn2+1;}h=h+1;offs.querySelector("[id='"+item.item_name+"']").setAttribute("num", pn2+1);}}});});divselect[i].setAttribute("t","1");}}};function compare(field, order) {return function comparator(x, y) { var a = x[field], b = y[field];if(isNaN(a) && isNaN(b)){}else{a =parseFloat(a); b =parseFloat(b);}; return a < b ? -order : a > b ? order : 0; }; }};document.querySelector('.selectDost').addEventListener('change', function () { simpleCart.initializeView(); simpleCart.load(); simpleCart.update();});/******************************************************************************************************** * pagination ********************************************************************************************************/function pagination(){if (document.querySelector('.pagination input[l="0"]')) { document.querySelectorAll('.pagination input[l="0"]').forEach((elem) => { elem.addEventListener("change", function(event) {pagstyle(event.target.name, event.target.value);up(); }); elem.setAttribute("l", "1"); });}}function pagstyle(name, value){if( document.querySelector('.pagination #pag-'+name)){document.querySelector('.pagination #pag-'+name).innerHTML='div[data-tiddler-title="'+name+'"] #razdel .tovarblock tw:not([num="'+value+'"]){display:none;}';};}var arrObjectsGoogle = [];var google = { visualization: { Query: { setResponse:function setResponse(data){ var currGoog="";var currfind="";for (var ik=0; ik
"+arrayItem.text.replace(//g,'>')+""; document.querySelector('.comblock').append(div);};});} } } };function comblock(){var commtable="https://docs.google.com/spreadsheets/d/1yQ7NUzWpjiI6U0bgYMukFlaczLMHvPeEqYspFC4gS94/edit?usp=drivesdk";if(document.querySelector('.comblock') && document.querySelector('.comm-target')){var dataURL ="https://docs.google.com/spreadsheets/d/"+commtable.split('/').reverse()[1]+"/gviz/tq?sheet=1&tq="+encodeURIComponent("Where F='"+document.querySelector('.comm-target').getAttribute('comments-block') +"'");};var script3 = document.createElement('script');script3.src = dataURL;document.head.appendChild(script3);}comblock(); var ostchek = "no";if(ostchek=="yes"){if(document.getElementById('razdel')){var dataURL ="https://docs.google.com/spreadsheets/d/"+ "13yh0Q9JQ0iO3gzfANkvK7YGkhZXv3BqPVVIG1z_O29o"+"/gviz/tq?sheet=goods&tq="+encodeURIComponent("Where C='"+document.getElementById('razdel').getAttribute('razdel') +"'");}else{var dataURL = "https://docs.google.com/spreadsheets/d/"+ "13yh0Q9JQ0iO3gzfANkvK7YGkhZXv3BqPVVIG1z_O29o"+"/gviz/tq?sheet=goods&tq="+encodeURIComponent("Where "+search_text.slice(0, -3));}var script2 = document.createElement('script');script2.src = dataURL;document.head.appendChild(script2);};if(document.querySelector(".ordersel")){document.querySelector('.ordersel').addEventListener('change', function () {var ordersel= document.querySelector('.ordersel').value;var sortarr = ordersel.slice(0, -2).slice(1).split('[');var order=1;if(sortarr[0].substring(0, 1)=="!"){order=-1}; arrObjects=arrObjects.sort(compare("item_"+sortarr[1], order));arrObjects.forEach(function(item, i, arrObjects) {document.querySelector('.tovarblock').appendChild(document.getElementById(item.item_name));});});}; function compare(field, order) { return function comparator(x, y) { var a = x[field], b = y[field]; return a < b ? -order : a > b ? order : 0; }; }; if(document.querySelector(".tm-send-comment")){document.querySelector(".tm-send-comment").onclick = function(event) {tmsendcomment();};};function tmsendcomment(){var dddd = new Date(); dddd.setHours(dddd.getHours() + 3);var randomNumber = ('00000' + Math.floor(Math.random()*10001)).slice(-5);var fullDate=dddd.toISOString();var fullOrder=fullDate+"_"+randomNumber;var re = /^[\w-\.]+@[\w-]+\.[a-z]{2,14}$/i;var evtT=document.querySelector('.comm-target').getAttribute('comments-block');var commName=document.querySelector('div[comments-block="'+evtT+'"] input.userFFc').value.trim();var commTel=document.querySelector('div[comments-block="'+evtT+'"] input.userIIc').value.trim();var commEmail=document.querySelector('div[comments-block="'+evtT+'"] input.userOOc').value.trim();var commComm=document.querySelector('div[comments-block="'+evtT+'"] textarea.userCCc').value;if (commName == ""){ swal(" ", "Заполните, пожалуйста, Ваше Имя.", "warning"); return;}if (re.test(commEmail) || commEmail=="") {} else{ swal(" ", "Заполните, пожалуйста, Ваш e-mail ПРАВИЛЬНО или оставьте поле пустым.", "warning"); return;}if (commComm == ""){ swal(" ", "Поле комментариев пустое", "warning"); return;}function puttoform(formname) {document.querySelector('form[target="'+formname+'"] [aria-label="comments_name"]').value=commName;let formsEm=document.querySelector('form[target="'+formname+'"] [aria-label="comments_email"]');if (commEmail=="") {formsEm.value="nomail@nomail.com";}else if(formname=="comments_private_iframe"){formsEm.value=commEmail}else{formsEm.value="yesmail@yesmail.com"}let formsTel=document.querySelector('form[target="'+formname+'"] [aria-label="comments_telephone"]');if (commTel=="") {formsTel.value="no"}else if(formname=="comments_private_iframe"){formsTel.value=commTel}else{formsTel.value="yes"}document.querySelector('form[target="'+formname+'"] [aria-label="client_comments_2"]').value=commComm;document.querySelector('form[target="'+formname+'"] [aria-label="comments_number"]').value= "$:/temp/_comment_"+fullOrder;if(formname=="comments_private_iframe"){document.querySelector('form[target="'+formname+'"] [aria-label="comments_page_url"]').value="https://heeg.ru/shop2_4.html?id="+"13yh0Q9JQ0iO3gzfANkvK7YGkhZXv3BqPVVIG1z_O29o"+"#"+evtT;}else{document.querySelector('form[target="'+formname+'"] [aria-label="comments_page_url"]').value=evtT;};};puttoform("comments_iframe"); puttoform("comments_private_iframe");document.querySelector('[name="rsubmitcomm"]').click();document.querySelector('[name="rsubmitcommpr"]').click();swal(" ", "Ваш комментарий отправлен.", "success");document.querySelector('[target="comments_iframe"]').reset();document.querySelector('[target="comments_private_iframe"]').reset();let div = document.createElement('div');div.className = "comm"; div.innerHTML =""+commName+""+ dddd.toLocaleString()+"
"+commComm+""; document.querySelector('.comblock').append(div);document.querySelector('div[comments-block="'+evtT+'"] textarea.userCCc').value="";} if(document.querySelector(".ContactFormSubmit")){document.querySelector(".ContactFormSubmit").onclick = function(event) {ContactFormSubmit();};};function ContactFormSubmit(){var re = /^[\w-\.]+@[\w-]+\.[a-z]{2,14}$/i; var myMail = document.querySelector('.userOO_form').value; var valid = re.test(myMail);document.querySelector('[aria-label^="name"]').value=document.querySelector('.userFF_form').value;document.querySelector('[aria-label^="telephone"]').value=document.querySelector('.userII_form').value;document.querySelector('[aria-label^="email"]').value=document.querySelector('.userOO_form').value;document.querySelector('[aria-label^="client_comments"]').value=document.querySelector('.userCC_form').value;document.querySelector('[aria-label^="order_number"]').value="Z_Запрос из контактной формы";document.querySelector('[aria-label^="link_for_your_order"]').value="https:\\\\heeg.ru";if (document.querySelector('.userFF_form').value === ""){ swal(" ", "Заполните, пожалуйста, Ваше Имя.", "warning"); return;}if (document.querySelector('.userII_form').value === ""){ swal(" ", "Заполните, пожалуйста, Ваш Телефон.", "warning"); return;}if (document.querySelector('.userOO_form').value=="") {document.querySelector('[aria-label^="email"]').value="Радио База • ";}if (valid || document.querySelector('.userOO_form').value=="") {} else{ swal(" ", "Заполните, пожалуйста, Ваш e-mail ПРАВИЛЬНО или оставьте поле пустым.", "warning"); return;}document.querySelector('[name="rsubmit"]').click();swal(" ", "Спасибо за ваш запрос. Мы обязательно свяжемся с вами.", "success");document.querySelector('[target="my_iframe"]').reset();};document.querySelector('.selectDost').addEventListener('change', function () {simpleCart.initialize();}); var serchEl = document.querySelectorAll('.mysearch'); for (let i = 0; i < serchEl.length; i++) { serchEl[i].addEventListener('keydown', function(e) { if (e.keyCode === 13) { window.location="search.html?search="+ encodeURI(this.value);} }); }; var search_barEl = document.querySelectorAll('.start_search_bar'); for (let i = 0; i < search_barEl.length; i++) {search_barEl[i].onclick = function(event) {window.location="search.html?search="+ encodeURI(serchEl[i].value);}; }; var empty_sEl = document.querySelectorAll('.empty_search'); for (let i = 0; i < empty_sEl.length; i++) {empty_sEl[i].onclick = function(event) {serchEl[i].value="";}; };function getUrlVars() { var vars = {}; var parts = window.location.href.replace(/[?&|?#]+([^=&|^=#]+)=([^&|^#]*)/gi, function(m,key,value) { vars[key] = value; }); return vars;};var HEEGreadyState="onload";var corsmax=0;var corscurrent=0;function isLocalStorageAvailable() { var test2 = 'test2'; try { localStorage.setItem(test2, test2); return true; } catch(e) { return false; }}function a(i){var text="";for (var k = 0; k < i; k++){text=text+" ";}return text;}function stickmenu() {if (document.getElementById('aside1')){var a = document.querySelector('#aside1'), b = null; window.addEventListener('scroll', Ascroll, false);document.body.addEventListener('scroll', Ascroll, false); function Ascroll() { if (b == null) { var Sa = getComputedStyle(a, ""), s = ""; for (var i = 0; i < Sa.length; i++) { if (Sa[i].indexOf('box-sizing') == 0 || Sa[i].indexOf('overflow') == 0 || Sa[i].indexOf('padding') == 0 || Sa[i].indexOf('border') == 0 || Sa[i].indexOf('outline') == 0 || Sa[i].indexOf('box-shadow') == 0 || Sa[i].indexOf('background') == 0) { s += Sa[i] + ': ' +Sa.getPropertyValue(Sa[i]) + '; ' } } b = document.querySelector('#stick'); a.style.padding = '0'; a.style.border = '0'; } if (a.getBoundingClientRect().top <= 0) { b.className = 'sticky'; } else { b.className = 'sticky2'; }}}}function setAttr(prmName,val) { var res = ' '; var d = location.href.split("#")[0].split("?"); var base = d[0]; var query = d[1]; if(query) { var params = query.split("&"); for(var i = 0; i < params.length; i++) { var keyval = params[i].split("="); if(keyval[0] != prmName) { res += params[i] + '&'; } } } res += prmName + '=' + val;window.history.pushState(null, null, base + '?' + res); return false;}var disqus_developer = 1;var strlocat3 = window.location.toString();var pinframe=0;var currhash=window.location.hash; if (window.parent.frames.length > 0) { pinframe=1; }setTimeout(function(){HEEGreadyState="isload"; stickmenu();var elements = document.querySelectorAll('.tw-table-of-contents-top>ul');document.querySelector(".tw-table-of-contents-top>ul").onclick = function(event) { for (var i = 0; i < elements.length; i++) {elements[i].className="hover"; }};document.querySelector(".tw-table-of-contents-top>ul").onmouseover = function(event) { for (var i = 0; i < elements.length; i++) {elements[i].className="hover"; }};},2000);function addSpaces(nStr){ nStr += ' '; x = nStr.split('.'); x1 = x[0]; x2 = x.length > 1 ? '.' + x[1] : ' '; var rgx = /(\d+)(\d{3})/; while (rgx.test(x1)) { x1 = x1.replace(rgx, '$1' + ' ' + '$2'); } return x1 + x2;}var valuta = "руб.";var noliq = "0" ;var noMail="Радио База • ";var quantityName = "шт." ;var refer= "["+ decodeURI(document.location).split('#')[0].split('?')[1]+"]";if(refer=="[undefined]"){refer=" ";}var userCook="";var noMailVal=0;var NextId=1,Custom="Custom",PayPal="PayPal",Email="Email",AustralianDollar=AUD="AUD",CanadianDollar=CAD="CAD",CzechKoruna=CZK="CZK",DanishKrone=DKK="DKK",Euro=EUR="EUR",HongKongDollar=HKD="HKD",HungarianForint=HUF="HUF",IsraeliNewSheqel=ILS="ILS",JapaneseYen=JPY="JPY",MexicanPeso=MXN="MXN",NorwegianKrone=NOK="NOK",NewZealandDollar=NZD="NZD",PolishZloty=PLN="PLN",PoundSterling=GBP="GBP",SingaporeDollar=SGD="SGD",SwedishKrona=SEK="SEK",SwissFranc=CHF="CHF",USDollar=USD="USD";RussianRUB=RUB="RUB";function Cart(){ var me = this; /* member variables */ me.Version = '2.0.1'; me.Shelf = new Shelf(); me.items = {}; me.isLoaded = false; me.pageIsReady = false; me.quantity = 0; me.total = 0; me.taxRate = 0; me.taxCost = 0; me.shippingFlatRate = 0; me.shippingTotalRate = 0; me.shippingQuantityRate = 0; me.shippingRate = 0; me.shippingCost = 0; me.currency ="RUB"; me.checkoutTo = PayPal; me.email = "neandroid.ru@gmail.com"; me.merchantId = "";me.saleRate = "0.6"; me.cartHeaders = ['Name','Price','Quantity','Total']; /* cart headers: you can set these to which ever order you would like, and the cart will display the appropriate headers and item info. any field you have for the items in the cart can be used, and 'Total' will automatically be price*quantity. there are keywords that can be used: 1) "_input" - the field will be a text input with the value set to the given field. when the user changes the value, it will update the cart. this can be useful for quantity. (ie "Quantity_input") 2) "increment" - a link with "+" that will increase the item quantity by 1 3) "decrement" - a link with "-" that will decrease the item quantity by 1 4) "remove" - a link that will remove the item from the cart 5) "_image" or "Image" - the field will be an img tag with the src set to the value. You can simply use "Image" if you set a field in the items called "Image". If you have a field named something else, like "Thumb", you can add the "_image" to create the image tag (ie "Thumb_image"). 6) "_noHeader" - this will skip the header for that field (ie "increment_noHeader") */ /****************************************************** add/remove items to cart ******************************************************/ me.add = function () { var me=this; /* load cart values if not already loaded */ if( !me.pageIsReady ) { me.initializeView(); me.update(); } if( !me.isLoaded ) { me.load(); me.update(); } var newItem = new CartItem(); /* check to ensure arguments have been passed in */ if( !arguments || arguments.length === 0 ){ error( 'No values passed for item.'); return; } var argumentArray = arguments; if( arguments[0] && typeof( arguments[0] ) != 'string' && typeof( arguments[0] ) != 'number' ){ argumentArray = arguments[0]; } newItem.parseValuesFromArray( argumentArray ); newItem.checkQuantityAndPrice(); /* if the item already exists, update the quantity */ if( me.hasItem(newItem) ) { var id=me.hasItem(newItem); me.items[id].quantity= parseInt(me.items[id].quantity,10) + parseInt(newItem.quantity,10);if(me.items[id].ostatok){ostatok=parseFloat(me.items[id].ostatok.replace(/\s/g, ""));}else{ostatok=""};if(ostatok
"+quantityName+" | "+ShowVm3T+ShowMkgT+"Цена "+valuta+ " | Стоим. "+valuta+ " |
---|