if(!$.browser) $.browser = {};
body { direction: ltr; text-align: left; font-size: 14px; }
body:lang(he) { direction: rtl; text-align: right; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.1rem; }
.float-back, .pull-back { float: right; }
.float-back:lang(he), .pull-back:lang(he) { float: left; }
.float-forward, .pull-forward { float: left; }
.float-forward:lang(he), .pull-forward:lang(he) { float: right; }
.text-forward { text-align: left; }
.text-forward:lang(he) { text-align: right; }
.text-back { text-align: right; }
.text-back:lang(he) { text-align: left; }
.clickable, .cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
@media only screen {
img.logo { max-width: clamp(20%, 250px, 50%); max-height: 150px; }
#sale img { width: clamp(100px, 100%, 150px); max-width: 150px; max-height: 90px; }
#header .img-thumbnail { max-width: 100%; max-height: 150px; }
}
/* xs-only */
@media only screen and (max-width: 767px) {
.border.shadow-sm {
border: none!important;
box-shadow: none!important;
}
tr.cc-page-item >td:first-child {
border-top: 1px solid #dee2e6;
}
tr.cc-page-item td {
padding: .25rem .75rem;
}
tr.cc-page-item .form-control {
display: inline-block;
width: auto;
}
#product-images-row
{
display: block!important;
}
}
/* md */
@media only screen and (min-width: 768px) {
.logo { max-height: 150px; }
.logo img { max-height: 150px; }
}
.d-initial { display: initial; }
.d-thead { display:table-header-group!important; }
.d-tbody { display:table-row-group!important; }
.d-tfoot { display:table-footer-group!important; }
/* sm */
@media (min-width: 576px) {
.d-sm-initial { display:initial!important; }
thead.d-sm-initial, .d-sm-thead { display:table-header-group!important; }
tbody.d-sm-initial, .d-sm-tbody { display:table-row-group!important; }
tfoot.d-sm-initial, .d-sm-tfoot { display:table-footer-group!important; }
}
/* md */
@media (min-width: 768px) {
.d-md-initial { display:initial!important; }
thead.d-md-initial, .d-md-thead { display:table-header-group!important; }
tbody.d-md-initial, .d-md-tbody { display:table-row-group!important; }
tfoot.d-md-initial, .d-md-tfoot { display:table-footer-group!important; }
}
/* lg */
@media (min-width: 992px) {
.d-lg-initial { display:initial!important; }
thead.d-lg-initial, .d-lg-thead { display:table-header-group!important; }
tbody.d-lg-initial, .d-lg-tbody { display:table-row-group!important; }
tfoot.d-lg-initial, .d-lg-tfoot { display:table-footer-group!important; }
}
/* xl */
@media (min-width: 1200px) {
.d-xl-initial { display:initial!important; }
thead.d-xl-initial, .d-xl-thead { display:table-header-group!important; }
tbody.d-xl-initial, .d-xl-tbody { display:table-row-group!important; }
tfoot.d-xl-initial, .d-xl-tfoot { display:table-footer-group!important; }
}
.box-title {
/*text-shadow: rgba(0,0,0,.2) 1px 2px;*/
margin-top: .25rem;
line-height: 1.5rem;
}
#box-payment {
background-position: top 10px left 15px;
background-image:url(https://app.icount.co.il/images/icons/ssl.svg);
background-repeat: no-repeat; background-size:auto 3em;
}
.form-check {
line-height: 24px;
padding-top: 7px;
padding-bottom: 7px;
}
.form-check>input[type=checkbox],
.form-check>input[type=radio] {
margin-top: 7px;
}
.rounded {
padding-bottom: 1rem;
}
.w-5 { width: 5% !important; }
.w-10 { width: 10% !important; }
.w-15 { width: 15% !important; }
.w-20 { width: 20% !important; }
.w-25 { width: 20% !important; }
.w-30 { width: 30% !important; }
.w-33 { width: 33%; }
.w-40 { width: 40% !important; }
.w-60 { width: 60% !important; }
.w-70 { width: 70% !important; }
.w-80 { width: 80% !important; }
.w-90 { width: 90% !important; }
.mw-5 { max-width: 5%; }
.mw-10 { max-width: 10%; }
.mw-15 { max-width: 15%; }
.mw-20 { max-width: 20%; }
.mw-25 { max-width: 25%; }
.mw-30 { max-width: 30%; }
.mw-33 { max-width: 33%; }
.mw-40 { max-width: 40%; }
.mw-50 { max-width: 50%; }
.mw-66 { max-width: 66%; }
.mw-67 { max-width: 67%; }
.mw-70 { max-width: 70%; }
.mw-80 { max-width: 80%; }
.mw-90 { max-width: 90%; }
.w-inherit { width: inherit!important; }
.mw-inherit { max-width: inherit!important; }
.mh-inherit { max-height: inherit!important; }
.hidden, .hideme, .cc-bill-hidden { display: none!important; }
.cc-bill-free { margin: clamp(50px, 33%, 100px) auto; }
.text-right-always { text-align: right!important; }
.ltr { direction: ltr!important; }
.rtl { direction: rtl!important; }
.sum { display: inline-block; }
.sum .decimals { font-size: 0.6em; color: #999; }
.currency-icon { font-size: 0.8em; }
.btn .sum .decimals { color: inherit; }
.btn.rounded { border-radius: 30px!important; padding-bottom: .5rem; }
.btn-success {
background-color: #82AD3A;
border: none;
}
.btn-success:hover {
background-color: #82AD3A;
box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.17);
}
.btn-success:focus, .btn-success:not(:disabled):not(.disabled):active, .btn-success:not(:disabled):not(.disabled).active, .btn-success:not(:disabled):not(.disabled):active:focus, .btn-success:not(:disabled):not(.disabled).active:focus, .btn-success:active:hover, .btn-success.active:hover, .show>.btn-success.dropdown-toggle, .show>.btn-success.dropdown-toggle:focus, .show>.btn-success.dropdown-toggle:hover {
background-color: #82AD3A;
box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.17);
}
input[type=number].nospin
{
-moz-appearance: textfield;
}
input[type=number].nospin::-webkit-outer-spin-button,
input[type=number].nospin::-webkit-inner-spin-button
{
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
margin: 0;
}
.comment { font-size: 0.8em; line-height: 0.8em; color: #999; }
del, del * { text-decoration: line-through red; }
/*
.table-bordered.rounded tr:first th:first, .table-bordered.rounded tr:first td:first { border-top-left-radius: inherit; }
.table-bordered.rounded tr:first th:last, .table-bordered.rounded tr:first td:last { border-top-right-radius: inherit; }
.table-bordered.rounded tr:last th:first, .table-bordered.rounded tr:last td:first { border-bottom-left-radius: inherit; }
.table-bordered.rounded tr:last th:last, .table-bordered.rounded tr:last td:last { border-bottom-right-radius: inherit; }
*/
var LANG = “he”;
var decimals = 2;
var is_tax_exempt = true;
var is_export = false;
var vat = 0;
var total_sum = 0; // total sum of items
var total_vat = 0; // total vat for items
var total_with_vat = 0; // total of items including vat
var delivery_method = ”;
var shipping_fee = 0; // shipping fee
var coupon = null;
var discount = 0; // discount (from coupon code)
var grand_total = 0; // real total for payment (after shipping and discount)
var total_orig = 0; // total of items including vat based on list-price
var currency_id = “5”;
var currency_icon = “\u20aa”;
var max_payments = “1”;
var max_payments_advanced = “1”;
var installments_interest_rate = 0
function price_with_vat(price)
{
if(is_tax_exempt || is_export) return price;
return Math.round(price * (1 + vat/100) * 1000) / 1000;
}
function price_before_vat(price)
{
if(is_tax_exempt || is_export) return price;
return Math.round(price / (1 + vat/100) * 1000) / 1000;
}
function price_with_currency_sign(price)
{
return icount_display_sum(price, currency_icon, 2);
}
var delivery_method_pricelist = null;
function onchange_delivery_method()
{
delivery_method = $(‘#delivery_method’).val();
var delivery_price = 0;
var self_pickup = false;
if(delivery_method.length>0 && delivery_method_pricelist[delivery_method]!==undefined)
{
delivery_price = Number(delivery_method_pricelist[delivery_method][‘price’]);
self_pickup = delivery_method_pricelist[delivery_method][‘self_pickup’];
}
shipping_fee = delivery_price;
if(self_pickup)
{
$(‘#box-shipping’).hide();
$(‘#box-shipping .form-control’).prop(‘disabled’, true);
}
else
{
$(‘#box-shipping .form-control’).prop(‘disabled’, false);
$(‘#box-shipping’).show();
}
reevaluate_empty_required(‘#box-shipping’);
$(‘.box:visible’).removeClass(‘ml-lg-4’);
$(‘.box:visible’).not(‘:first’).addClass(‘ml-lg-4’);
recalc_cc_page();
}
function onchange_item_quantity(select_quantity)
{
recalc_cc_page();
}
function onchange_cc_numofpayments()
{
recalc_cc_page();
}
function onchange_item_price(rownum)
{
var min = 5.00;
var price = $(‘#item_price_’ + rownum).val();
if(price < min)
{
price = min;
$('#item_price_' + rownum).val(price);
}
var price_incl = price_with_vat(price);
$('#item_price_incl_' + rownum).val(price_incl);
recalc_cc_page();
}
function onchange_item_price_incl(rownum)
{
var min = 5;
var price_incl = $('#item_price_incl_' + rownum).val();
if(price_incl 0 ? “\u05d7\u05d9\u05e0\u05dd” : ”);
}
var hide_cc_bill = false;
if(coupon != null)
{
discount = 0;
var coupon_info = ‘הנחה: ‘;
if(coupon.type == ‘percent_discount’)
{
discount = grand_total * Number(coupon.value) / 100;
coupon_info += coupon.value + ‘%’
}
else if(coupon.type == ‘sum_discount’)
{
discount = Number(coupon.value);
coupon_info += price_with_currency_sign(coupon.value);
}
grand_total -= discount;
//show_grand_total = true;
//var discount_html = ‘הנחה: ‘ + price_with_currency_sign(discount);
//$(‘#page-discount’).html(discount_html).show();
$(‘#total-discount’).html(price_with_currency_sign(-1 * discount));
$(‘#coupon-info’).html(coupon_info);
if(grand_total==0) hide_cc_bill = true;
}
else
{
//$(“#page-discount”).html(”).hide();
$(‘#total-discount’).html(”);
$(‘#coupon-info’).html(”);
}
if(hide_cc_bill)
{
$(‘.cc-bill’).find(‘input,select’).prop(‘disabled’, true);
$(‘.cc-bill’).addClass(‘cc-bill-hidden’);
$(‘#btn-paynow’).addClass(‘cc-bill-free’).html(“\u05dc\u05dc\u05d0 \u05d7\u05d9\u05d5\u05d1”);
}
else
{
$(‘.cc-bill’).find(‘input,select’).prop(‘disabled’, false);
$(‘.cc-bill’).removeClass(‘cc-bill-hidden’);
$(‘#btn-paynow’).removeClass(‘cc-bill-free’).html(“\u05ea\u05e8\u05d5\u05dd” + ‘‘);
}
reevaluate_empty_required(‘.cc-bill’);
var num_payments = Number($(‘#cc-installments’).val());
if(!num_payments) num_payments = 1;
var interest_rate = isNaN(installments_interest_rate) ? 0 : installments_interest_rate;
if(max_payments_advanced)
{
var max_payments_real = max_payments ? max_payments : 1;
var max_payments_advanced_type = typeof max_payments_advanced;
if(max_payments_advanced_type == ‘object’)
{
for(var min_sum in max_payments_advanced)
{
if(1*grand_total>=1*min_sum)
{
max_payments_real = Number(max_payments_advanced[min_sum]);
}
if(window.DEBUG) console.log({
min_sum: min_sum,
grand_total: grand_total,
is_greater: grand_total>=min_sum,
max_payments_if_greater: max_payments_advanced[min_sum],
max_payments_real: max_payments_real,
});
}
}
else if(max_payments_advanced_type==’number’ || max_payments_advanced_type==’string’ && /^[1-9][0-9]+$/.test(max_payments_advanced))
{
max_payments_real = Number(max_payments_advanced);
}
if(num_payments > max_payments_real) num_payments = max_payments_real;
$(‘#cc-installments’).empty();
for(var i=1, i_effective_rate=i_rate=interest_rate; i1 && i_rate)
{
if(/^[+-]/.test(i_rate))
{
i_effective_rate += Number(i_rate);
}
else
{
i_effective_rate = Number(i_rate);
}
if(i_effective_rate)
{
i_title = i_title + ‘ ‘ + “\u05d1\u05ea\u05d5\u05e1\u05e4\u05ea \u05e2\u05de\u05dc\u05ea \u05e1\u05dc\u05d9\u05e7\u05d4 \u05e9\u05dc” + ‘ ‘ + price_with_currency_sign(grand_total * i_effective_rate/100);
}
}
//console.log({i:i,i_rate:i_rate,i_effective_rate});
if(i==num_payments) interest_rate = i_effective_rate;
$(‘#cc-installments’).append(” + i_title + ”);
}
$(‘#cc-installments’).val(num_payments);
if(max_payments_real>1)
$(‘#cc-installments-container’).removeClass(‘hidden’);
else
$(‘#cc-installments-container’).addClass(‘hidden’);
}
if(num_payments>1 && interest_rate>0)
{
var interest_total = grand_total * (interest_rate/100);
//console.log({num_payments:num_payments,interest_rate:interest_rate,grand_total:grand_total,interest_total:interest_total});
grand_total = 1*grand_total + interest_total;
$(‘#cc-page-interest’).find(‘.interest-rate’).html(interest_rate);
$(‘#cc-page-interest’).find(‘.interest-total’).html(price_with_currency_sign(interest_total));
$(‘#cc-page-interest’).removeClass(‘hidden’);
}
else
{
$(‘#cc-page-interest’).addClass(‘hidden’);
}
//$(‘#page-total’).html(price_with_currency_sign(total_sum));
//$(‘#page-totalvat’).html(price_with_currency_sign(total_vat));
$(‘#page-totalwithvat, #second_ttl’).html(price_with_currency_sign(grand_total));
if(show_grand_total)
{
var grand_total_html = ‘לתשלום: ‘ + price_with_currency_sign(grand_total);
$(‘#page-grand-total’).html(grand_total_html).show();
}
else
{
$(‘#page-grand-total’).html(”).hide();
}
if(grand_total)
{
$(‘.paynow-sum’).html(‘ ‘ + price_with_currency_sign(grand_total));
}
else
{
$(‘.paynow-sum’).html(”);
}
if(grand_total < total_orig)
{
var orig_price_html ='(במקום ' + price_with_currency_sign(total_orig) + ')';
$('#product-list-price').html(orig_price_html).show();
}
else
{
$('#product-list-price').html('').hide();
}
}
function _recalc_based_on_code()
{
var code = $("#provided_code").val();
$("#provided_code").removeClass('is-invalid is-valid');
if(code.length == 0)
{
coupon = null;
recalc_cc_page();
}
else
{
strbui('
‘);
$.post(“https:\/\/app.icount.co.il\/m\/49a08\/c65417p38u6034108a3\/pm5e8236u2rh4mcttt4tt3vrb1\/ajax”,{
a:’code_check’,
ci:”65417″,
cp:”38″,
provided_code:code
},function(data){
if(parse_public_ajax_response(data))
{
coupon = data;
$(“#provided_code”).addClass(‘is-valid’);
}
else
{
coupon = null;
//$(“#provided_code”).val(”);
$(“#provided_code”).addClass(‘is-invalid’);
}
recalc_cc_page();
},”json”);
}
return false;
}
function parse_public_ajax_response(data)
{
if(console.log) console.log(‘data’, data);
unbui();
var status = false;
var action = undefined;
var message = undefined;
var title = undefined;
var url = undefined;
var redirect = false;
var iframe = false;
if(typeof data === ‘undefined’) status = false;
else if(typeof data === ‘boolean’) status = data;
else
{
if(typeof data.status === ‘undefined’) status = false;
else if(typeof data.status === ‘boolean’) status = data.status;
else status = /^(ok|yes|true|success)/i.test(data.status);
if(typeof data.action !== ‘undefined’) action = data.action;
if(typeof data.message !== ‘undefined’) message = data.message;
if(typeof data.title !== ‘undefined’) title = data.title;
if(typeof data.url !== ‘undefined’ && data.url.length>0)
{
url = data.url;
if(typeof data.redirect === ‘boolean’) redirect = data.redirect;
if(typeof data.iframe === ‘boolean’) iframe = data.iframe;
}
}
if(console.log) console.log({
status: status,
action: action,
message: message,
title: title,
url: url,
redirect: redirect,
iframe: iframe
});
if(status && action==’bill’ && data.docnum)
{
}
if(message)
{
if(typeof message !== ‘string’) message = message.join(‘
‘);
if(status)
{
show_success(message, title, url);
}
else
{
if(!title && action == ‘bill’) title = ‘חלה תקלה בחיוב כרטיס האשראי שלך’;
show_error(message, title, url);
}
if(redirect)
{
window.setTimeout(‘window.location=”‘ + url + ‘”;’, 10000); // redirect automatically in 10 seconds
}
}
else if(status && action==’bill’ && data.docnum && redirect)
{
show_success(message, title, url);
}
else if(redirect)
{
window.location = url;
}
else if(iframe)
{
hide_form();
show_iframe(url);
}
return status;
}
function hide_form()
{
$(‘#items-container,#boxes>.box’).hide();
}
function show_form()
{
$(‘#items-container,#boxes>.box’).show();
sub_clicked = false;
}
function show_iframe(url)
{
hide_iframe();
var iframe_height = 500;
var html = ”;
if($(‘input[type=radio][name=payment_method]:checked’).val()==’bit’)
{
iframe_height = 400;
html += ‘
html += ‘
‘ + “\u05d7\u05e9\u05d5\u05d1: \u05d9\u05e9 \u05dc\u05d4\u05e9\u05d0\u05d9\u05e8 \u05d7\u05dc\u05d5\u05df \u05d6\u05d4 \u05e4\u05ea\u05d5\u05d7 \u05e2\u05d3 \u05ea\u05d5\u05dd \u05d1\u05d9\u05e6\u05d5\u05e2 \u05d4\u05e2\u05e1\u05e7\u05d4” + ‘
‘;
html += ”;
html += ‘
‘;
}
else
{
html += ‘
html += ”;
html += ‘
‘;
}
$(‘#boxes .box’).hide();
$(‘#boxes’).append(html);
}
function hide_iframe()
{
$(‘#box-iframe’).remove();
}
function show_success(message, title, url)
{
//console.log(‘show_successs’,[message,title,url]);
if(message === undefined && title === undefined && url !== undefined)
{
hide_form();
Swal.fire({
type: ‘success’,
title: “\u05d4\u05e2\u05e1\u05e7\u05d4 \u05d4\u05e1\u05ea\u05d9\u05d9\u05de\u05d4 \u05d1\u05d4\u05e6\u05dc\u05d7\u05d4”,
text: “\u05d4\u05ea\u05e9\u05dc\u05d5\u05dd \u05d4\u05ea\u05e7\u05d1\u05dc \u05d1\u05d4\u05e6\u05dc\u05d7\u05d4”,
showConfirmButton: false,
showCancelButton: false,
allowEscapeKey: false,
allowOutsideClick: false
});
window.setTimeout(function(){
window.location = url;
}, 3000);
return;
}
if(message === undefined) message = “\u05d4\u05e7\u05d1\u05dc\u05d4 \u05e9\u05dc\u05da \u05d1\u05d3\u05e8\u05da”;
if(title === undefined) title = “\u05d4\u05e2\u05e1\u05e7\u05d4 \u05d4\u05e1\u05ea\u05d9\u05d9\u05de\u05d4 \u05d1\u05d4\u05e6\u05dc\u05d7\u05d4”;
var buttons = {};
buttons[“סגור”] = function() {
$(this).dialog(“close”);
if(url) window.top.location.href = url;
};
buttons[“שתף בפייסבוק”] = function() {
var sharer_params = {
s: 100,
p: {
url: “https:\/\/app.icount.co.il\/m\/49a08”,
title: “\u05d4\u05e8\u05d2\u05e2 \u05e7\u05e0\u05d9\u05ea\u05d9 \u05de\u05ea\u05e0\u05d5\u05ea \u05dc\u05d0\u05d1\u05d9\u05d5\u05e0\u05d9\u05dd – \u05e7\u05e8\u05d9\u05ea \u05d2\u05ea”,
summary: “” }
};
var img = $(‘#product-images img:first’);
if(img.length>0) sharer_params[‘p’][‘images’] = [ img.attr(‘src’) ];
var sharer_url = ‘http://www.facebook.com/sharer.php?’ + $.param(sharer_params);
window.open(sharer_url);
};
buttons[“שתף בטויטר”] = function() {
var sharer_params = {
url: “https:\/\/app.icount.co.il\/m\/49a08”,
text: “\u05d4\u05e8\u05d2\u05e2 \u05e7\u05e0\u05d9\u05ea\u05d9 \u05de\u05ea\u05e0\u05d5\u05ea \u05dc\u05d0\u05d1\u05d9\u05d5\u05e0\u05d9\u05dd – \u05e7\u05e8\u05d9\u05ea \u05d2\u05ea”,
lang: ‘he’
};
var sharer_url = ‘http://twitter.com/share?’ + $.param(sharer_params);
};
hide_form();
show_dialog(title, message, buttons);
}
function show_error(message, title, url)
{
console.log(‘show_error’,[message,title,url]);
if(message === undefined || message.length==0) message = ‘שגיאה כללית’;
if(title === undefined || title.length==0) title = ‘שגיאה בהזנת הנתונים’;
var buttons = {};
buttons[“סגור”] = function() {
$(this).dialog(“close”);
if(url) window.top.location.href = url;
};
show_dialog(title, message, buttons);
sub_clicked = false;
}
function show_dialog(title, message, buttons)
{
console.log(‘show_dialog’,[title,message,buttons]);
hide_iframe();
unbui();
var msg = $(‘
msg.html(message);
msg.dialog({
modal:true,
title:title,
buttons:buttons
});
}
function store_field_in_cookie(fld)
{
var id = fld.id;
var val = fld.value;
if(id==’id_no’ || id==’cc_form_ccid’ || id==’cccardnumber’ || id==’cvv’ || id==”cc-installments” || id==”ccvalidity” || id==”item_price_1″) return;
//if($(fld).hasClass(‘nocookie’)) return;
var cookie_name = “icount_c_”+id;
//console.log(‘saving ‘ + cookie_name, val);
set_cookie(cookie_name,val);
//set_cookie(‘cc’+cookie_name,val);
}
function restore_field_from_cookie(fld)
{
var id = fld.id;
// if the field already has content – don’t override it
if(fld.value != ”) return;
if(id==’id_no’ || id==’cc_form_ccid’ || id==’cccardnumber’ || id==’cvv’ || id==”cc-installments” || id==”ccvalidity” || id==”item_price_1″) return;
//if($(fld).hasClass(‘nocookie’)) return;
var cookie_name = “icount_c_”+id;
var val = get_cookie(cookie_name);
if(val == null || val == ”) return;
//console.log(‘restoring ‘ + cookie_name, val);
fld.value = val;
}
function vat_exempt_based_on_country()
{
var country = $(“#country_name”).val();
if(country!==’Israel’)
{
$(“#taxexempt”).val(‘1’);
}
else
{
$(“#taxexempt”).val(”);
}
}
function validate_cc_page_form()
{
var defer = $.Deferred();
if(check_empty_required(‘#cc_page_form’))
{
console.log(‘validate_cc_page_form’, ‘has-empty-required’, $(‘#cc_page_form .has-empty-required’).length);
if($(‘#cc_page_form .has-empty-required’).length==1 && $(‘#approve_tos’).not(‘:checked’).length)
{
console.log(‘validate_cc_page_form’, ‘approve_tos’);
_confirm({
text: “\u05d7\u05d9\u05d9\u05d1 \u05e7\u05d1\u05dc\u05ea \u05e7\u05e8\u05d0\u05ea\u05d9 \u05d5\u05d0\u05e0\u05d9 \u05de\u05d0\u05e9\u05e8\/\u05ea \u05d0\u05ea \u05ea\u05e0\u05d0\u05d9 \u05d4\u05e9\u05d9\u05de\u05d5\u05e9”,
success_callback: function(){
console.log(‘validate_cc_page_form’, ‘tos_approved’);
$(‘#approve_tos’).prop(‘checked’, true);
reevaluate_empty_required(‘#box-client,#box-payment’);
defer.resolve();
},
camcel_callback: function(){
console.log(‘validate_cc_page_form’, ‘tos_rejected’);
defer.reject();
}
});
}
else defer.reject();
}
else
{
console.log(‘validate_cc_page_form’, ‘OK’);
defer.resolve();
}
return defer.promise();
}
var sub_clicked = false;
function pay_now()
{
if(sub_clicked) return;
sub_clicked = true;
console.log(‘pay_now clicked’);
validate_cc_page_form().then(function(){
strbui(‘
‘);
var ser_form = $(“#cc_page_form”).serialize();
$.post(“https:\/\/app.icount.co.il\/m\/49a08\/c65417p38u6034108a3\/pm5e8236u2rh4mcttt4tt3vrb1\/ajax”,ser_form,parse_public_ajax_response, ‘json’);
}, function(){
sub_clicked = false;
});
}
מתנות לאביונים – קרית גת
פריטים
| תיאור | סכום תרומתך |
|---|---|
| סכום תרומתך – מתנות לאביונים פורים תשפ”א |
פרטי התורם
פרטי האשראי
02/2021
03/2021
04/2021
05/2021
06/2021
07/2021
08/2021
09/2021
10/2021
11/2021
12/2021
01/2022
02/2022
03/2022
04/2022
05/2022
06/2022
07/2022
08/2022
09/2022
10/2022
11/2022
12/2022
01/2023
02/2023
03/2023
04/2023
05/2023
06/2023
07/2023
08/2023
09/2023
10/2023
11/2023
12/2023
01/2024
02/2024
03/2024
04/2024
05/2024
06/2024
07/2024
08/2024
09/2024
10/2024
11/2024
12/2024
01/2025
02/2025
03/2025
04/2025
05/2025
06/2025
07/2025
08/2025
09/2025
10/2025
11/2025
12/2025
01/2026
02/2026
03/2026
04/2026
05/2026
06/2026
07/2026
08/2026
09/2026
10/2026
11/2026
12/2026
01/2027
02/2027
03/2027
04/2027
05/2027
06/2027
07/2027
08/2027
09/2027
10/2027
11/2027
12/2027
01/2028
02/2028
03/2028
04/2028
05/2028
06/2028
07/2028
08/2028
09/2028
10/2028
11/2028
12/2028
01/2029
02/2029
03/2029
04/2029
05/2029
06/2029
07/2029
08/2029
09/2029
10/2029
11/2029
12/2029
01/2030
02/2030
03/2030
04/2030
05/2030
06/2030
07/2030
08/2030
09/2030
10/2030
11/2030
12/2030
01/2031
02/2031
<!–
–>
$(function(){
autodetect_cc_type_icon(‘#cccardnumber’);
autohide_cc_holder_id(‘#cccardnumber’, ‘#cc-holder-id’);
});
var _userway_config = {
// uncomment the following line to override default position
position: 5,
//position: 5,
// uncomment the following line to override default language (e.g., fr, de, es, he, nl, etc.)
// language: ‘en’,
// uncomment the following line to override color set via widget
// color: ‘#053e67’,
account: ‘LVKpB73tnc’
};
$(function(){
/*
$(document).on(“shown.bs.collapse”, “.collapse”, function(e){
console.log(e);
//$(e.target).find(‘.carousel’).carousel();
});
*/
onchange_item_quantity();
$(“input”)
/*
.attr({
autocomplete: ‘off’,
autocapitalize: ‘off’
})
*/
.not(‘:hidden’)
.not(‘.nocookie’)
.not(‘[type=radio]’)
.each(function(){
//restore_field_from_cookie(this);
})
.keyup(function(){
//store_field_in_cookie(this);
});
$(‘input,select’).each(function(){
var my_classes = this.className.trim().replace(‘ ‘,’.’);
var my_autocomplete = $(this).attr(‘autocomplete’);
if(!my_autocomplete && this.type==’hidden’) my_autocomplete = ‘off’;
var my_x_autocompletetype = my_autocomplete==’off’ ? ‘none’ : /^cc/.test(my_autocomplete) ? my_autocomplete : ”;
if(!/^(off|false|section-)/.test(my_autocomplete))
{
var container = $(this).closest(‘.box,.cc-page-item,.section’);
if(container.length==1)
{
my_autocomplete = ‘section-‘ + container.attr(‘id’).replace(/[_-](box|section)$/,”) + ‘ ‘ + my_autocomplete;
}
}
//console.log(this.tagName + ‘[type=’ + this.type + ‘][name=’ + this.name + ‘]’ + (my_classes?’.’+my_classes:”) + (this.id?’#’+this.id:”), my_autocomplete);
$(this).attr(‘autocomplete’, my_autocomplete);
$(this).attr(‘x-autocompletetype’, my_x_autocompletetype);
});
/*
$(“.group1”).colorbox(
{
rel:’group1′,
scalePhotos:true,
maxWidth:900,
maxHeight:700,
onComplete: function(){$(“#cboxClose”).focus()}
});
*/
$(‘input[data-type=date]’)
.attr(‘readonly’, true)
.datepicker({
showOn: ‘focus’,
autoSize: true,
//buttonImage: ‘/images/calendar.png’,
//buttonImageOnly: true,
showAnim: ”,
dateFormat: ‘dd/mm/yy’,
altFormat: ‘yy-mm-dd’,
changeMonth: true,
changeYear: true,
yearRange: “1900:2031″
});
$(‘input[data-type=number]’)
.focus(function(){
$(this).data(‘oldValue’, this.value);
})
.change(function(){
var isValid = /^[0-9]*$/.test(this.value);
//console.log(val + ‘ is ‘ + (isValid?”:’in’) + ‘valid number’);
if(!isValid)
{
this.value = $(this).data(‘oldValue’);
store_field_in_cookie(this);
}
});
$(‘input[data-type=tel]’)
.css({
direction: ‘ltr’
})
.focus(function(){
$(this).data(‘oldValue’, this.value);
})
.change(function(){
var val = this.value.replace(/[() -]/g, ”);
var isValid = /^[+]?[0-9]{9,}$/.test(val);
//console.log(val + ‘ is ‘ + (isValid?”:’in’) + ‘valid phone number’);
if(!isValid)
{
this.value = $(this).data(‘oldValue’);
store_field_in_cookie(this);
}
});
$(‘#name_on_invoice,#fname,#lname,#cc_holder_name,#recipient_name’)
.each(function() {
$(this).data(‘edited’,this.value.length>0);
})
.keyup(function(e){
onkeyup_name(e.target);
});
$(“.english_only”).keypress(function(event) {
//console.log(event.keyCode);
var englishAlphabetDigitsAndWhiteSpace = /[A-Za-z0-9 ]/g;
var key = String.fromCharCode(event.which);
if (event.keyCode == 8 || event.keyCode == 37 || event.keyCode == 39 || event.keyCode == 46 || englishAlphabetDigitsAndWhiteSpace.test(key)) {
return true;
}
alert(“אנגלית בלבד”);
return false;
});
//console.log(‘2’);
});