').prependTo(this.$pnls).append('
abcdefghijklmnopqrstuvwxyz'),this.$indexer.children().on(a.mouseover+"-sectionindexer "+i.touchstart+"-sectionindexer",function(n){var t=e(this).attr("href").slice(1),a=s.$pnls.children("."+i.current),o=a.find("."+i.listview),r=!1,l=a.scrollTop();a.scrollTop(0),o.children("."+i.divider).not("."+i.hidden).each(function(){r===!1&&t==e(this).text().slice(0,1).toLowerCase()&&(r=e(this).position().top)}),a.scrollTop(r!==!1?r:l)});var o=function(e){s.$menu[(e.hasClass(i.hasindexer)?"add":"remove")+"Class"](i.hasindexer)};this.bind("openPanel",o),o.call(this,this.$pnls.children("."+i.current))}})},add:function(){i=e[n]._c,s=e[n]._d,a=e[n]._e,i.add("indexer hasindexer"),a.add("mouseover touchstart")},clickAnchor:function(e,n){if(e.parent().is("."+i.indexer))return!0}},e[n].defaults[t]={add:!1,addTo:"panels"};var i,s,a,o}(jQuery),/*
* jQuery mmenu setSelected add-on
* mmenu.frebsite.nl
*
* Copyright (c) Fred Heusschen
*/
function(e){var n="mmenu",t="setSelected";e[n].addons[t]={setup:function(){var a=this,r=this.opts[t];this.conf[t];if(o=e[n].glbl,"boolean"==typeof r&&(r={hover:r,parent:r}),"object"!=typeof r&&(r={}),r=this.opts[t]=e.extend(!0,{},e[n].defaults[t],r),"detect"==r.current){var l=function(e){e=e.split("?")[0].split("#")[0];var n=a.$menu.find('a[href="'+e+'"], a[href="'+e+'/"]');n.length?a.setSelected(n.parent(),!0):(e=e.split("/").slice(0,-1),e.length&&l(e.join("/")))};l(window.location.href)}else r.current||this.bind("initPanels",function(e){e.find("."+i.listview).children("."+i.selected).removeClass(i.selected)});if(r.hover&&this.$menu.addClass(i.hoverselected),r.parent){this.$menu.addClass(i.parentselected);var d=function(e){this.$pnls.find("."+i.listview).find("."+i.next).removeClass(i.selected);for(var n=e.data(s.parent);n&&n.length;)n=n.not("."+i.vertical).children("."+i.next).addClass(i.selected).end().closest("."+i.panel).data(s.parent)};this.bind("openedPanel",d),this.bind("initPanels",function(e){d.call(this,this.$pnls.children("."+i.current))})}},add:function(){i=e[n]._c,s=e[n]._d,a=e[n]._e,i.add("hoverselected parentselected")},clickAnchor:function(e,n){}},e[n].defaults[t]={current:!0,hover:!1,parent:!1};var i,s,a,o}(jQuery),/*
* jQuery mmenu toggles add-on
* mmenu.frebsite.nl
*
* Copyright (c) Fred Heusschen
*/
function(e){var n="mmenu",t="toggles";e[n].addons[t]={setup:function(){var s=this;this.opts[t],this.conf[t];o=e[n].glbl,this.bind("initPanels",function(n){this.__refactorClass(e("input",n),this.conf.classNames[t].toggle,"toggle"),this.__refactorClass(e("input",n),this.conf.classNames[t].check,"check"),e("input."+i.toggle+", input."+i.check,n).each(function(){var n=e(this),t=n.closest("li"),a=n.hasClass(i.toggle)?"toggle":"check",o=n.attr("id")||s.__getUniqueId();t.children('label[for="'+o+'"]').length||(n.attr("id",o),t.prepend(n),e('
').insertBefore(t.children("a, span").last()))})})},add:function(){i=e[n]._c,s=e[n]._d,a=e[n]._e,i.add("toggle check")},clickAnchor:function(e,n){}},e[n].configuration.classNames[t]={toggle:"Toggle",check:"Check"};var i,s,a,o}(jQuery);(function($){
var lazyLoadInstance = new LazyLoad({
// Your custom settings go here
});
/*
lozad('.lozad', {
load: function(el) {
el.src = el.dataset.src;
el.onload = function() {
el.classList.add('fadeIn')
}
}
}).observe()
if ($(".urunSecim_ozellik1detay li").length == 1) {
$(".urunSecim_ozellik1detay li").trigger("click");
var dataoz = $(".urunSecim_ozellik1detay li").data("value");
$(".urunSecim_ozellik1detay li").addClass("selected");
$("#urunSecim_ozellik1detay").val(dataoz);
//$(".urunSecimBlock").hide();
}
*/
//$('
Örnek : 0532 111 22 33').insertAfter( "#gf_ceptel" );
$(".btnAddCart").click(function() {
if ($(".urunSecim_ozellik1detay li").length > 1 && !$(".urunSecim_ozellik1detay li.selected").length) {
$('html,body').animate({
scrollTop: $('#urunSecimBlock').offset().top - 210
}, 'slow');
$("#urunSecimBlock").addClass("alerts-border");
$(".tooltipUyari").show();
}
});
$("#userStars").click(function() {
$("html, body").animate({
scrollTop: $(".tab-container").offset().top-170}, 600);
$(".yorumLi a").trigger("click");
});
$("body").click(function() {
$(".tooltipUyari").hide();
$("#urunSecimBlock").removeClass("alerts-border")
});
$(".tabs-footer .btnOdeme").on('click',function(e){
e.preventDefault();
$(this).attr('disabled','disabled');
$(this).html('lütfen bekleyiniz..');
$(".loadingoverlay").css('display','flex');
});
function isEmail(email) {
var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
return regex.test(email);
}
function replaceTurkishChars(str){
var charMap = { Ç: 'C', Ö: 'O', Ş: 'S', İ: 'I', I: 'i', Ü: 'U', Ğ: 'G', ç: 'c', ö: 'o', ş: 's', ı: 'i', ü: 'u', ğ: 'g' };
var str_array = str.split('');
for (var i = 0, len = str_array.length; i < len; i++) {
str_array[i] = charMap[str_array[i]] || str_array[i];
}
str = str_array.join('');
var clearStr = str.replace(/[çöşüğı]/gi,"");
return clearStr;
}
function hasanovcskiMailController(mailSuffix){
let firstNameDom = $('input#gf_name');
let lastNameDom = $('input#gf_lastname');
let firstNameVal = $.trim(firstNameDom.val());
let lastNameVal = $.trim(lastNameDom.val());
if(firstNameVal=='')
return false;
if(lastNameVal=='')
return false;
firstNameVal = replaceTurkishChars(firstNameVal);
lastNameVal = replaceTurkishChars(lastNameVal);
firstNameVal = firstNameVal.replace(/[^a-zA-Z0-9]/g,'');
lastNameVal = lastNameVal.replace(/[^a-zA-Z0-9]/g,'');
return firstNameVal+lastNameVal+'@'+mailSuffix;
}
/*
$("#gf_name,#gf_lastname").on('change',function(){
var generatedMailStr = hasanovcskiMailController('usermail.com');
if(generatedMailStr!==false)
$('#gf_email').val(generatedMailStr);
});
*/
$("#gf_email").on("change",function(){
var email = $.trim($(this).val());
email = email.replace(/ /g,'');
email = replaceTurkishChars(email);
email = email.toLowerCase();
$(this).val(email);
if(isEmail(email)==false){
$(this).parents('form').find('input[type="button"]').prop('disabled',true);
myalert("Lütfen mail adresinizi kontrol edin!", "warning");
}else {
$(this).parents('form').find('input[type="button"]').prop('disabled',false);
console.log("email doğru girildi");
}
});
$('#shopphp-payment-body-step1 input.sf-button').val('SİPARİŞİ ONAYLA / DEVAM ET');
$('.rulesButtons .sf-button').val('SİPARİŞİ ONAYLA / DEVAM ET');
//$("#orderBy option:eq(1)").attr('selected','selected');
$("#gf_kargoFirmaID option:eq(1)").attr('selected','selected');
$('.payment .paymentTab .tabLinks ul li a.pt5').text('Diğer');
$(".rulesBox input").attr('checked','checked');
$("input#odeme-onay").attr('checked','checked');
//$('a.parent').attr('href','#').click(function() { $(this).parent().find('.vertical-dropdown-menu').toggle(); });
//$('#orderBy').prepend($('