PageSourceSearch

https://www.addax.com.tr/Library/Js/Main.js?v5620.00451

js addax.com.tr collected 2026-09-25 03:20:19 UTC 38,468 bytes, 1,305 lines download raw bytes

1jQuery(document).ready(function($) { //Minicity search yaptiktan sonra search inputunu bosalt
2	$('[fcode="Fr-5500126"] [cd="searchKeyword"]').val("");
3});
4
5
6  
7jQuery(document).ready(function($) {
8	// $('script').each(function() {
9    //   	$(this).removeAttr('type');
10    // });
11    $("section.Module-66076 .item-card > .m-Video .videoPlay").each(function(i, item){
12		if ( i === 0) {
13	       $(item).trigger("click");
14	    }
15	});
16});
17
18/* Filter Tabs */
19$(document).on('ready', function () {
20var width = $(window).width();
21    if (width < 767) {
22        $('body').attr("mobile","1");
23    }
24 });
25
26
27/* autocomplete false 
28$(document).ready(function(){
29    $(document).on('focus click tap', 'input', function() {
30        $(this).attr("autocomplete", 'off');
31    });
32});*/
33
34
35
36// $(window).on("load",function(){
37// 	$("a").each(function(index, element) {
38// 		if($(this).attr("href")==""){ $(this).removeAttr("href") }
39//     });
40// });
41
42
43function allCategory() {
44	$(".Popup,.newPopup").remove();
45	$('body, html').css({'overflow':'hidden'});
46
47	$('\
48	<div class="Popup">\
49		<div class="Modal">\
50			<div class="Htm">\
51				<div class="Document allCategoryModal">\
52					<div class="allCategory">\
53						<div class="Close"><div class="icon times"></div></div>\
54						<div class="CategoryList">\
55							<div class="allCategoryTabs"></div>\
56							<div class="tab_container"></div>\
57						</div>\
58					</div>\
59				</div>\
60			</div>\
61		</div>\
62	</div>\
63	').fadeIn("fast").appendTo("body");
64
65
66
67			$(".Nav ul.NavList li.Item.DropdownLink>a.NavLink").each(function(index, element) {
68				var IMG		=	$(this).attr("img2")
69				var URL		=	$(this).attr("img2URL")
70                $('<div class="Item" rel="'+$(this).attr("n")+'">'+$(this).html()+'</div>').appendTo(".allCategoryTabs")
71				 $('<div id="'+$(this).attr("n")+'" class="tab_content">\
72					<a href="'+URL+'" class="Banner" style="background-image:url('+$(this).attr("img2")+')"></a>\
73					<a href="#" class="First">'+$(".SubType_0.nn"+$(this).attr("n")+">.Box>.MenuTitle").html()+'</a>\
74					<ul class="List">\
75					</ul>\
76				</div>').appendTo(".CategoryList>.tab_container")
77
78				var Top_Nav_ID = $(this).attr("n")
79				$(".SubType_0.nn"+Top_Nav_ID+">.Box>.DropdownCategory>.Item>a").each(function(index, element) {
80                    $('<li class="Item"><a href="'+$(this).attr("href")+'" class="Link">'+$(this).html()+'</a></li>').appendTo(".CategoryList>.tab_container>.tab_content#"+Top_Nav_ID+">ul")
81                });
82            });
83
84			$(".allCategoryTabs>.Item:first").addClass("active")
85			var TabID	=	$(".allCategoryTabs>.Item:first").attr("rel")
86			$(".tab_container>#"+TabID+"").show();
87
88
89	$(".tab_content").hide();
90    $(".tab_content:first").show();
91
92    $(".allCategoryTabs .Item").click(function() {
93
94      $(".tab_content").hide();
95      var activeTab = $(this).attr("rel");
96      $("#"+activeTab).fadeIn();
97
98      $(".allCategoryTabs .Item").removeClass("active");
99      $(this).addClass("active");
100    });
101	$('.allCategoryTabs .Item').last().addClass("tab_last");
102
103
104	$(".Popup>.Modal>.Htm>.Document .Btn_Vazgec, .Popup>.Modal>.Htm>.Document .Close, .ActionBtn").click(function(){
105		$('body, html').css({'overflow':'visible'});
106		$(".Popup").remove();
107	});
108}
109
110
111
112
113jQuery(document).ready(function($) {
114	var userCONNECT = $.cookie("" + cookieCode + "connect")
115	if (userCONNECT != "True") { userCONNECT = "" }
116	if (userCONNECT ==null) { userCONNECT = "" }
117	if (userCONNECT =="''") { userCONNECT = "" }
118	var setPRICEVIEW		= $.cookie("setPRICEVIEW")
119
120
121
122	var ShopGalleryMarquee = $('.ShopGalleryMarquee');
123	ShopGalleryMarquee.owlCarousel({
124		autoWidth:true,
125	    center: true,
126	    loop:true,
127	    margin:0,
128	    dots: false,
129	    nav:true,
130	});
131
132
133
134	/* VideocaseOwl */
135	var videoShowcaseOwl = $('.videoShowcaseOwl');
136	videoShowcaseOwl.owlCarousel({
137	  	autoWidth: true,
138	    loop:true,
139	    margin:18,
140	    nav:true,
141	    dots: false,
142	    autoplay:false,
143	    responsiveClass:true,
144	    scrollPerPage: true,
145	    responsive:{
146	        0:{
147	            items:2,
148	            slideBy: 2,
149	            margin:10,
150	        },
151	        768:{
152	            items:3,
153	            slideBy: 3,
154	        },
155	        1200:{
156	            items:4,
157	            slideBy: 4,
158	        }
159	    }
160	});
161
162	/* ItemShowcaseOwl */
163	var ItemShowcaseOwl = $('.ItemShowcaseOwl');
164	ItemShowcaseOwl.owlCarousel({
165	    loop:true,
166	    margin:18,
167	    nav:true,
168	    dots: false,
169	    responsiveClass:true,
170	    scrollPerPage: true,
171	    autoplay:true,
172	    autoplayTimeout:5000,
173	    autoplayHoverPause:true,
174	    responsive:{
175	        0:{
176	            items:2,
177	            slideBy: 2,
178	            margin:10,
179	            autoplay:false,
180	            autoplayHoverPause:false,
181	        },
182	        768:{
183	            items:3,
184	            slideBy: 3,
185	        },
186	        1200:{
187	            items:4,
188	            slideBy: 4,
189	        }
190	    }
191	});
192
193	/* owlMobBanners */
194	var owlMobBanners = $('.owlMobBanners');
195	owlMobBanners.owlCarousel({
196	  	margin: 10,
197	  	autoWidth: true,
198	  	items:1,
199	  	loop: true,
200        nav: false,
201	});
202});
203
204
205
206/* Menu Dropdown */
207jQuery(document).ready(function($) {
208	$( ".DropdownLink" ).mouseenter(function() {
209		$('.DropdownLink').removeClass('active');
210		$( ".Dropdown" ).removeClass('show');
211		$(this).addClass('active');
212		$(this).find( ".Dropdown" ).addClass('show');
213	})
214	.mouseleave(function() {
215		$('.DropdownLink').removeClass('active');
216		$(this).find( ".Dropdown" ).removeClass('show');
217	});
218});
219
220jQuery(document).ready(function($) {
221
222	$(".js-vertical-tab-content").hide();
223	$(".js-vertical-tab-content:first-of-type").show();
224
225	$(".js-vertical-tab").click(function(event) {
226		event.preventDefault();
227
228		var activeTab = $(this).attr("rel");
229		$currentTab = $("#"+activeTab);
230		$currentTab.parent().find('.js-vertical-tab-content').hide();
231		$currentTab.show();
232
233		$(".js-vertical-tab").removeClass("is-active");
234		$(this).addClass("is-active");
235
236		$(".js-vertical-tab-accordion-heading").removeClass("is-active");
237		$(".js-vertical-tab-accordion-heading[rel^='"+activeTab+"']").addClass("is-active");
238	});
239
240
241	$(".js-vertical-tab-accordion-heading").click(function(event) {
242		event.preventDefault();
243
244		var activeTab = $(this).attr("rel");
245		$currentTab = $("#"+activeTab);
246		$currentTab.parent().find('.js-vertical-tab-content').hide();
247		$currentTab.show();
248
249		$(".js-vertical-tab-accordion-heading").removeClass("is-active");
250		$(this).addClass("is-active");
251
252		$(".js-vertical-tab").removeClass("is-active");
253		$(".js-vertical-tab[rel^='"+accordionActiveTab+"']").addClass("is-active");
254	});
255});
256
257/* Countdown */
258
259/* Cart Dropdown */
260jQuery(document).ready(function($) {
261	$( "li.Item.Cart" ).mouseenter(function() {
262		$('.Overlay').addClass('Show');
263	})
264	.mouseleave(function() {
265		$('.Overlay').removeClass('Show');
266	});
267});
268
269/* city Filter */
270jQuery(document).ready(function($) {
271    $('.CityFilterSelect').on('change', function(e) {
272        var location = e.target.value;
273        var table = $('.filter-table-data');
274        if (location.length) {
275            table.find('tr[data-type!=' + location + ']').hide();
276            table.find('tr[data-type=' + location + ']').show();
277        } else {
278            table.find('tr').show();
279        }
280    });
281});
282
283/* New Message */
284jQuery(document).ready(function($) {
285	$('.SendNewMessage-js').click(function(event) {
286		$(this).slideUp();
287		$('.NewMessageBox').slideDown();
288	});
289});
290
291
292
293
294/* Layout System */
295$(document).ready(function(){
296	$('.Layout4').click(function() {
297		$('.Layout').removeClass("Active");
298		$(this).addClass("Active");
299		$('div').parents('#LayoutDesign').attr('class', 'c-lg-3 c-md-4 col-6');
300	});
301	$('.Layout3').click(function() {
302		$('.Layout').removeClass("Active");
303		$(this).addClass("Active");
304		$('div').parents('#LayoutDesign').attr('class', 'c-lg-4 c-md-4 col-6');
305	});
306});
307
308
309
310/* FilterButton */
311jQuery(document).ready(function($) {
312	$('.FilterItem').click(function() {
313		$('.ProductFilters').addClass('ShowFilter');
314		$('html, body').addClass('freezePage');
315	});
316	$('.FilterClose').click(function() {
317		$('.ProductFilters').removeClass('ShowFilter');
318		$('html, body').removeClass('freezePage');
319	});
320});
321
322/* Filter Tabs */
323$(document).on('ready', function () {
324	var width = $(window).width();
325    if (width < 767) {
326        $('.FilterTabsNav ul li a').click(function(){
327			$(this).parent('li').addClass('Active').siblings().removeClass('Active');
328			var mevcutSinif = this.className.slice(0,8);
329			$('div.FilterTabsContent > div.Area').hide().filter('div.'+mevcutSinif).show();
330		});
331		$('.FilterTabsNav ul li a:first').click();
332    }
333 });
334
335
336
337
338/* Vertical Tab */
339jQuery(document).ready(function($) {
340	(function() {
341	  $.fn.tabify = function(options) {
342	    return this.each(function(i, el) {
343	      var defaults, hideAllTabs, highlightActiveLink, settings, showCurrentTab;
344	      defaults = {
345	        container: $(this),
346	        tabsItems: $(this).find('.verticalTab__item')
347	      };
348	      settings = $.extend(defaults, options);
349	      showCurrentTab = function(ev) {
350	        var href, tab;
351	        ev.preventDefault();
352	        href = $(this).attr('href');
353	        tab = $(href);
354	        highlightActiveLink(this);
355	        hideAllTabs();
356	        return tab.show();
357	      };
358	      hideAllTabs = function() {
359	        return settings.tabsItems.hide();
360	      };
361	      highlightActiveLink = function(link) {
362	        var listItems;
363	        link = $(link);
364	        listItems = link.parent().siblings();
365	        listItems.removeClass('is-active');
366	        return link.parent().addClass('is-active');
367	      };
368	      settings.container.on('click.tabify', '> nav a', showCurrentTab);
369	      return settings.container.find('nav a:first').trigger('click');
370	    });
371	  };
372
373	  $(function() {
374	    return $('.verticalTab').tabify();
375	  });
376
377	}).call(this);
378});
379
380
381
382/* Back to Top */
383jQuery(document).ready(function($){
384	var offset = 300,
385		offset_opacity = 1200,
386		scroll_top_duration = 700,
387		$back_to_top = $('.GoTop');
388	$(window).scroll(function(){
389		( $(this).scrollTop() > offset ) ? $back_to_top.addClass('cd-is-visible') : $back_to_top.removeClass('cd-is-visible cd-fade-out');
390		if( $(this).scrollTop() > offset_opacity ) {
391			$back_to_top.addClass('cd-fade-out');
392		}
393	});
394	$back_to_top.on('click', function(event){
395		event.preventDefault();
396		$('body,html').animate({
397			scrollTop: 0 ,
398		 	}, scroll_top_duration
399		);
400	});
401});
402
403
404/* Head Ads Banner */
405jQuery(document).ready(function($) {
406	$('.HeadBanner > .Close').click(function(event) {
407		$('.HeadBanner').slideUp();
408	});
409});
410
411
412/**  ProductGallery 
413jQuery(document).ready(function($) {
414	$('#ProductZoom').ezPlus({
415	    gallery: 'ProductThumb',
416	    cursor: 'pointer',
417	    galleryActiveClass: 'active',
418        zoomWindowFadeIn: 500,
419        zoomWindowFadeOut: 500,
420    	lensFadeIn: 500,
421    	lensFadeOut: 500,
422    	respond: [
423            {
424                range: '0-991',
425                zoomWindowHeight: 0,
426                zoomWindowWidth: 0
427            },
428        ]
429	});
430	$('#ProductZoom').bind('click', function (e) {
431	    var ez = $('#ProductZoom').data('ezPlus');
432	    $.fancybox(ez.getGalleryList());
433	    return false;
434	});
435});
436**/
437
438$(document).ready(function() {
439	/*
440	$('#LightGallery').lightGallery({
441		selector: '.LightGallery-Item',
442		fullScreen : false,
443		autoplay: false,
444		autoplayControls: false,
445		actualSize: false,
446		download: false,
447
448	});
449	$('.MobileSlider').slick({
450		slidesToShow: 1,
451		arrows: true,
452		dots: true,
453		infinite: true,
454		fade: true,
455	});
456	*/
457});
458
459
460
461
462
463
464/* Hide nav on on scroll down
465jQuery(document).ready(function($) {
466	var didScroll;
467	var lastScrollTop = 0;
468	var delta = 5;
469	var navbarHeight = $('.Mob-Bottom-Bar').outerHeight();
470
471	$(window).scroll(function(event){
472	    didScroll = true;
473	});
474
475	setInterval(function() {
476	    if (didScroll) {
477	        hasScrolled();
478	        didScroll = false;
479	    }
480	}, 250);
481
482	function hasScrolled() {
483	    var st = $(this).scrollTop();
484	    if(Math.abs(lastScrollTop - st) <= delta)
485	        return;
486	    if (st > lastScrollTop && st > navbarHeight){
487	        $('.Mob-Bottom-Bar').removeClass('nav-down').addClass('Nav-hide');
488	    } else {
489	        if(st + $(window).height() < $(document).height()) {
490	            $('.Mob-Bottom-Bar').removeClass('Nav-hide').addClass('nav-down');
491	        }
492	    }
493	    lastScrollTop = st;
494	}
495});
496*/
497
498
499
500/* Hesabim Dropdown */
501jQuery(document).ready(function($) {
502	$('.AccountList').hover(function () {
503        $(this).addClass('Show');
504
505    }, function () {
506        $(this).removeClass('Show');
507    });
508});
509
510
511/* Notify */
512function NotifyFunc() {
513  jQuery(document).ready(function($) {
514  	$('body').append('<div class="Notify">Güncellendi.</div>');
515  	setTimeout(function(){ $('.Notify').addClass('Show');}, 500);
516	setTimeout(function(){ $('.Notify').removeClass('Show');}, 4000);
517	setTimeout(function(){ $('.Notify').remove();}, 4100);
518  });
519}
520
521
522/* Iade Control */
523jQuery(document).ready(function($) {
524	var width = $(window).width();
525
526	$('.Complete').click(function(){
527		$('.ReturnProduct, .ReturnCargo, #returnContract').each(function () {
528	        if(!$('.ReturnProduct').is(':checked')){
529	            $( "div" ).remove( ".Error" );
530				$( ".ReturnProducts" ).before( '<div class="Error">Lütfen İade Etmek İstediğiniz Ürünü Seçin.</div>' );
531				if (width < 575) {
532			          $('html, body').animate({
533			              scrollTop: $(".Error").offset().top - 108
534			          }, 1000);
535			      }
536	    		return false;
537	        }else if(!$('.ReturnCargo').is(':checked')){
538	        	$( "div" ).remove( ".Error" );
539				$( ".CargoList" ).before( '<div class="Error">Lütfen Kargo Firması Seçin.</div>' );
540				if (width < 575) {
541			          $('html, body').animate({
542			              scrollTop: $(".Error").offset().top - 108
543			          }, 1000);
544			      }
545	    		return false;
546	        }else if(!$('#returnContract').is(':checked')){
547	        	$( "div" ).remove( ".Error" );
548				$(".ReturnAdd > .Contract").addClass('Requid');
549				if (width < 575) {
550			          $('html, body').animate({
551			              scrollTop: $(".Requid").offset().top - 108
552			          }, 1000);
553			      }
554	    		return false;
555	        }else{
556	        	$( "div" ).remove( ".Error" );
557	        	ReturnCargo();
558	        	return true;
559	        }
560	    });
561	});
562});
563
564/* onlyNumberFormat */
565jQuery(document).ready(function($) {
566	$(".onlyNumberFormat").on("keypress keyup blur",function (event) {
567	   	$(this).val($(this).val().replace(/[^\d].+/, ""));
568	    if ((event.which < 48 || event.which > 57)) {
569	        event.preventDefault();
570	    }
571	});
572});
573
574
575
576jQuery(document).ready(function($) {
577	var width = $(window).width();
578	if (width < 575) {
579        $('section.Cart .CartEnd .CardNext-Mob').click(function(e){
580        	var $target = $(e.target);
581
582        	if (!$target.is('section.Cart .CartEnd .CardNext-Mob > .Btn.NextBtn')) {
583		        $(this).toggleClass('Active');
584	        	$('.addOverlay').toggleClass('show');
585				$('section.Cart .CartEnd .Addition').toggleClass('Show');
586		    }
587
588		});
589
590		$('.addOverlay').click(function(){
591        	$('section.Cart .CartEnd .CardNext-Mob').removeClass('Active');
592        	$(this).removeClass('show');
593			$('section.Cart .CartEnd .Addition').removeClass('Show');
594		});
595  	}
596});
597
598
599
600/*
601jQuery(document).ready(function() {
602	$(document).mouseup(function(e) {
603	    var divSelect = $(".Popup .Modal");
604	    if(!$('.Popup').hasClass("lock")){
605			if (!divSelect.is(e.target) && divSelect.has(e.target).length === 0) {
606		       	$(".Popup").remove();
607		   		$("body, html").css({"overflow":"visible"});
608		    }
609	    }
610	});
611});
612*/
613
614
615
616
617/* Search Result
618jQuery(document).ready(function() {
619
620$.fn.delayKeyup = function(callback, ms){
621	 var timer = 0;
622	 var el = $(this);
623	 $(this).keyup(function(){
624		 clearTimeout (timer);
625		 timer = setTimeout(function(){
626			 callback(el)
627				 }, ms);
628	 });
629	 return $(this);
630 };
631
632
633	var width = $(window).width();
634	if (width < 575) {
635		$( ".filter-records" ).clone().appendTo( "section.MobileSearch .Search" );
636	}
637	$('.Search-input.txt-search').delayKeyup(function(el){
638		var D	=	encodeURIComponent(el.val())
639		var D2	=	el.val()
640		var DL = D.length
641				$(".SearchVal>strong").html(""+D2+"")
642				$.ajax({
643				type: "post",
644				url: "/Library/Query/Search.asp",
645				data : "SEARCH="+D+"",
646				success: function(data) {
647					$(".filter-records>.Search-Result>.Search-Result-Item").remove();
648					$(".filter-records").addClass("show")
649					$(data).insertAfter(".filter-records>.Search-Result>h3.SearchVal")
650				}
651				});
652	},500);
653});
654*/
655
656
657function EditAddressI(TYPE, ADDRESS_ID, ORDER_ID) {
658	var BOX = 2; var W = "w30"; var C = 1; var E = 1;
658 var Z = 1; var O = 1; var F = 1;
659	popViewBox(BOX, W, C, E, Z, O, F)
660
661	$('\
662			<div class="Pop_1100">\
663			<form name="AddressCheckForm" id="AddressForm" onsubmit="return false">\
664			<div class="Head">\
665				 <div class="row">\
666					  <div class="col-6"><div class="Title">'+ text_Popup1100_26 + '</div></div>\
667					  <div class="col-6">\
668							<div class="CheckboxArea">\
669								 <input class="checkboxItem" id="CorporateSelect" type="checkbox" S="0">\
670								 <label for="CorporateSelect">'+ text_Popup1100_27 + '</label>\
671							</div>\
672					  </div>\
673				 </div>\
674			</div>\
675			<div class="row">\
676				 <div class="col-6">\
677					  <div class="FormElements Reciever_Name">\
678							<label for="">'+ text_Popup1100_3 + ' *</label>\
679							<input type="text" id="First_Name" Z="1" class="OnlyCharacter">\
680					  </div>\
681				 </div>\
682				 <div class="col-6">\
683					  <div class="FormElements Reciever_Name">\
684							<label for="">'+ text_Popup1100_4 + ' *</label>\
685							<input type="text" id="Last_Name" Z="1" class="OnlyCharacter">\
686					  </div>\
687				 </div>\
688			</div>\
689			<div class="row">\
690				 <div class="col-12">\
691					  <div class="FormElements Phone">\
692							<label for="">'+ text_Popup1100_5 + ' *</label>\
693							<input type="tel" style="display:none" id="Phone" name="PHONE" Z="1" class="phoneMark">\
694							<div class="CountryPhone" style="display:none"><input class="countryPhoneMask" id="countryPhoneMask" type="tel"></div>\
695							<div class="form-text" style="display:none;">Lütfen 10 haneli telefon numaranızı giriniz.</div>\
696					  </div>\
697				 </div>\
698			</div>\
699			<div class="row">\
700				<div class="col-6 countryBox" style="display:none;">\
701				   <div class="FormElements Ulke">\
702					  <label for="">'+ text_Popup1100_35 + ' *</label>\
703					 <div class="ulkeSelect">\
704							<div class="cover">'+ $.cookie("setCOUNTRYtext") + '</div>\
705							<div class="ulkeAlert">\
706								<div class="Icon">i</div>\
707								<div class="alertTxt">\
708								'+ text_Popup1100_33.replace('[&COUNTRY_NAME&]', $.cookie("setCOUNTRYtext")).replace('[&URL&]', '<a href="javascript:void(0);" onclick="site_Setting()" class="Link">').replace('[&/URL&]', '</a>') + '\
709								</div>\
710							</div>\
711						</div>\
712				   </div>\
713				</div>\
714				<div class="col-6 postCodeBox" style="display:none;">\
715				   <div class="FormElements">\
716					  <label>'+ text_Popup1100_34 + ' *</label>\
717					  <input type="text" id="postCode">\
718				   </div>\
719				</div>\
720			</div>\
721			<div class="row">\
722				 <div class="col-6 CityBox" style="display:none;">\
723					  <div class="FormElements City">\
724							<label for="">'+ text_Popup1100_28 + ' *</label>\
725							<select id="City" Z="1">\
726								 <option value="">'+ text_Popup1100_23 + '</option>\
727							</select>\
728					  </div>\
729				 </div>\
730				 <div class="col-6 TownBox" style="display:none;">\
731					  <div class="FormElements Town">\
732							<label for="">'+ text_Popup1100_7 + ' *</label>\
733							<select id="Town" Z="1">\
734								 <option value="">'+ text_Popup1100_23 + '</option>\
735							</select>\
736					  </div>\
737				 </div>\
738				 <div class="col-6 TownTextBox" style="display:none;">\
739					  <div class="FormElements TownText">\
740							<label for="">'+ text_Popup1100_7 + '</label>\
741							<input type="text" placeholder="'+ text_Popup1100_7 + '" id="TownText">\
742					  </div>\
743				 </div>\
744				 <div class="col-12">\
745					  <div class="FormElements Address">\
746							<label for="">'+ text_Popup1100_8 + ' *</label>\
747							<textarea id="Address" class="TextareaCharacter" Z="1" placeholder="'+ text_Popup1100_24 + '"></textarea>\
748					  </div>\
749				 </div>\
750				 <div class="col-12">\
751					  <div class="FormElements Name">\
752							<label for="">'+ text_Popup1100_9 + ' *</label>\
753							<input type="text" class="OnlyCharacter" placeholder="'+ text_Popup1100_25 + '" id="Name" Z="1">\
754					  </div>\
755				 </div>\
756			</div>\
757			<div class="Corporate">\
758				 <div class="row">\
759					  <div class="col-12">\
760							<div class="FormElements FIRM_NAME">\
761								 <label for="">'+ text_Popup1100_29 + '</label>\
762								 <input type="text" id="FIRM_NAME" Z="0">\
763							</div>\
764					  </div>\
765					  <div class="col-6">\
766							<div class="FormElements TAX_NAME">\
767								 <label for="">'+ text_Popup1100_30 + '</label>\
768								 <input type="text" id="TAX_NAME" Z="0">\
769							</div>\
770					  </div>\
771					  <div class="col-6">\
772							<div class="FormElements TAX_ID_NUMBER">\
773								 <label for="">'+ text_Popup1100_31 + '</label>\
774								 <input type="text" class="onlyNumberFormat" id="TAX_ID_NUMBER" Z="0">\
775							</div>\
776					  </div>\
777					  <div class="col-12">\
778							<div class="FormElements ID_NUMBER">\
779								 <label for="">T.C. Kimlik No</label>\
780								 <input type="text" class="onlyNumberFormat" id="ID_NUMBER" Z="0">\
781							</div>\
782					  </div>\
783				 </div>\
784			</div>\
785			<div class="BtnBox">\
786				 <button>'+ text_Popup1100_32 + '</button>\
787			</div>\
788			</form>\
789			</div>\
790			').appendTo(".Popup.B" + BOX + ">.Modal>.Htm>.Document>.Popup_Center");
791
792	$("#Address").on("keypress", function (event) {
793		var character = String.fromCharCode(event.keyCode);
794		return isValid(character);
795	});
796	function isValid(str) {
797		return !/[~`!@#$%\^&*()+=\-\[\]\\';,{}|\\"<>\?]/g.test(str);
798	}
799	$(document).on('keypress', '#Address', function (e) {
800		if (e.which == 13) e.preventDefault();
801	});
802
803
804
805	$(".onlyNumberFormat").on("keypress keyup blur", function (event) {
806		$(this).val($(this).val().replace(/[^\d].+/, ""));
807		if ((event.which < 48 || event.which > 57)) {
808			event.preventDefault();
809		}
810	});
811
812
813	$(document).ready(function () {
814		var telInput = $("#countryPhoneMask");
815		telInput.intlTelInput({
816			preferredCountries: [$.cookie("setCOUNTRY")],
817			utilsScript: "https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/11.0.9/js/utils.js"
818		});
819
820		countryPhoneMask()
821	});
822
823
824
825	if (setOVERSEAS == "") { setOVERSEAS = "0" }
826	if (setOVERSEAS == "0") {
827		$("input#Phone").show();
828		$("div.CityBox").show();
829		$("div.TownBox").show();
830	}
831	if (setOVERSEAS == "1") {
832		$("div.CountryPhone").show();
833		$("div.countryBox").show();
834		$("div.postCodeBox").show();
835		$("div.CityBox").show();
836		$("div.TownTextBox").show();
837	}
838
839	$(document).ready(function () {
840		$(document).on('focus', ':input', function () {
841			$(this).attr('autocomplete', 'new-password');
842		});
843	});
844
845	function onlyAllowAlphanumeric() {
846		this.value = this.value.replace(/[^a-zA-Z@.şŞüÜöÖıİğĞçÇ ]/g, '');
847	};
848	$('.OnlyCharacter').keyup(onlyAllowAlphanumeric);
849
850
851	$.ajax({
852		type: "post",
853		url: "/Library/Query/Address.asp?I=8",
854		data: "TYPE=" + TYPE + "&ADDRESS_ID=" + encodeURIComponent(ADDRESS_ID) + "",
855		success: function (data) {
856			var DATA_I = data.split("||")
857			var adTYPE = DATA_I[0]
858			var adNAME = DATA_I[1]
859			var adRECEIVER_NAME = DATA_I[2]
860			var adADDRESS = DATA_I[3]
861			var adCONTINENT_ID = DATA_I[4]
862			var adCOUNTRY_ID = DATA_I[5]
863			var adREGION_ID = DATA_I[6]
864			var adCITY_ID = DATA_I[7]
865			var adTOWN_ID = DATA_I[8]
866			var adZIP_CODE = DATA_I[9]
867			var adPHONE = DATA_I[10]
868			var adFIRM_NAME = DATA_I[11]
869			var adTAX_NAME = DATA_I[12]
870			var adTAX_ID_NUMBER = DATA_I[13]
871			var adCOMPANY_INVOICE = DATA_I[14]
872			var adFIRST_NAME = DATA_I[15]
873			var adLAST_NAME = DATA_I[16]
874			var adTOWN = DATA_I[17]
875			var adID_NUMBER = DATA_I[18]
876
877			var S = adCOMPANY_INVOICE
878			if (S == 1) {
879				$("#CorporateSelect").attr("S", 1).attr("checked", "checked")
880				$("#FIRM_NAME").attr("Z", 1)
881				$("#TAX_NAME").attr("Z", 1)
882				$("#TAX_ID_NUMBER").attr("Z", 1)
883
884				if ($('#CorporateSelect').is(':checked')) {
885					$('.Corporate').slideDown();
886				} else {
887					$('.Corporate').slideUp();
888				}
889			}
890			if (S == 0) {
891				$("#CorporateSelect").attr("S", 0)
892				$("#FIRM_NAME").attr("Z", 0)
893				$("#TAX_NAME").attr("Z", 0)
894				$("#TAX_ID_NUMBER").attr("Z", 0)
895			}
896
897			adADDRESS = adADDRESS.replace('\r', '').replace('\n', '')
898			$("#Address").val(adADDRESS)
899			$("#Name").val(adNAME)
900			$("#Reciever_Name").val(adRECEIVER_NAME)
901
902			if (setOVERSEAS == "0") {
903				$("#Phone").val(adPHONE)
904			} else {
905				$("#countryPhoneMask").val(adPHONE)
906			}
907			$("#FIRM_NAME").val(adFIRM_NAME)
908			$("#TAX_NAME").val(adTAX_NAME)
909			$("#TAX_ID_NUMBER").val(adTAX_ID_NUMBER)
910			$("#ID_NUMBER").val(adID_NUMBER)
911			$("#First_Name").val(adFIRST_NAME)
912			$("#Last_Name").val(adFIRST_NAME)
913			$("#Last_Name").val(adLAST_NAME)
914			$("#TownText").val(adTOWN)
915
916			$("#postCode").val(adZIP_CODE)
917
918
919			if (adTOWN_ID > 0) {
920				$.ajax({
921					type: "post", url: "/Library/Query/Address.asp?I=1", data: "TOP_ID=" + adCITY_ID + "&T=5", success: function (data) {
922						$("#Town").html(data)
923						$("#Town>option[value='" + adTOWN_ID + "']").prop("selected", true)
924					}
925				});
926			}
927
928
929
930			if ($("#Continent").html() != undefined) {
931				$.ajax({
932					type: "post", url: "/Library/Query/Address.asp?I=1", data: "T=1", success: function (data) {
933						$("#Continent").html(data)
934						var COUNTRY_OPTION = 0;
935						var T = 0;
936						$("#Continent>option").each(function (index, element) {
937							COUNTRY_OPTION = COUNTRY_OPTION + 1;
938						});
939
940						if (COUNTRY_OPTION == 1) {
941							$("#Country>option:last-child").prop("selected", true)
942							var TOP_ID = $("#Continent>option:selected").val();
943							if ($("#Country").html() != undefined) { T = 2 }
944							if ($("#Country").html() == undefined) { T = 3 }
945							$.ajax({
946								type: "post", url: "/Library/Query/Address.asp?I=1", data: "TOP_ID=" + TOP_ID + "&T=" + T + "", success: function (data) {
947									if ($("#Country").html() != undefined) { $("#Country").html(data); $("#Country>option[value='" + adCOUNTRY_ID + "']").prop("selected", true) }
948									if ($("#Country").html() == undefined) { $("#Region").html(data); $("#Region>option[value='" + adREGION_ID + "']").prop("selected", true) }
949
950								}
951							});
952						}
953					}
954				});
955			}
956			if ($("#Continent").html() == undefined & $("#Country").html() != undefined) {
957				var T = 0;
958				$.ajax({
959					type: "post", url: "/Library/Query/Address.asp?I=1", data: "T=2", success: function (data) {
960						$("#Country").html(data)
961						var COUNTRY_OPTION = 0;
962						$("#Country>option").each(function (index, element) {
963							COUNTRY_OPTION = COUNTRY_OPTION + 1;
964						});
965
966						if (COUNTRY_OPTION == 2) {
967							$("#Country>option:last-child").prop("selected", true)
968							var TOP_ID = $("#Country>option:selected").val();
969
970							if ($("#Region").html() != undefined) { T = 3 }
971							if ($("#Region").html() == undefined) { T = 4 }
972							$.ajax({
973								type: "post", url: "/Library/Query/Address.asp?I=1", data: "TOP_ID=" + TOP_ID + "&T=" + T + "", success: function (data) {
974									if ($("#Region").html() != undefined) { $("#Region").html(data); $("#Region>option[value='" + adREGION_ID + "']").prop("selected", true) }
975									if ($("#Region").html() == undefined) { $("#City").html(data); $("#City>option[value='" + adCITY_ID + "']").prop("selected", true) }
976
977								}
978							});
979						}
980					}
981				});
982			}
983			if ($("#Continent").html() == undefined & $("#Country").html() == undefined & $("#Region").html() != undefined) {
984				$.ajax({
985					type: "post", url: "/Library/Query/Address.asp?I=1", data: "", success: function (data) {
986						$("#Region").html(data)
987						var REGION_OPTION = 0;
988						$("#Region>option").each(function (index, element) {
989							REGION_OPTION = REGION_OPTION + 1;
990						});
991
992						if (REGION_OPTION == 2) {
993							$("#Region>option:last-child").prop("selected", true)
994							var TOP_ID = $("#Region>option:selected").val();
995							$.ajax({
996								type: "post", url: "/Library/Query/Address.asp?I=1", data: "TOP_ID=" + TOP_ID + "", success: function (data) {
997									$("#City").html(data)
998								}
999							});
1000						}
1001					}
1002				});
1003			}
1004			if ($("#Continent").html() == undefined & $("#Country").html() == undefined & $("#Region").html() == undefined & $("#City").html() != undefined) {
1005				$.ajax({
1006					type: "post", url: "/Library/Query/Address.asp?I=1", data: "T=4", success: function (data) {
1007						$("#City").html(data)
1008						$("#City>option[value='" + adCITY_ID + "']").prop("selected", true)
1009						var CITY_OPTION = 0;
1010						$("#City>option").each(function (index, element) {
1011							CITY_OPTION = CITY_OPTION + 1;
1012						});
1013
1014						if (CITY_OPTION == 2) {
1015							$("#City>option:last-child").prop("selected", true)
1016							var TOP_ID = $("#City>option:selected").val();
1017							$.ajax({
1018								type: "post", url: "/Library/Query/Address.asp?I=1", data: "TOP_ID=" + TOP_ID + "&T=5", success: function (data) {
1019									$("#Town").html(data)
1020								}
1021							});
1022						}
1023					}
1024				});
1025			}
1026			if ($("#Continent").html() == undefined & $("#Country").html() == undefined & $("#Region").html() == undefined & $("#City").html() == undefined & $("#Town").html() != undefined) {
1027				$.ajax({
1028					type: "post", url: "/Library/Query/Address.asp?I=1", data: "T=5", success: function (data) {
1029						$("#Town").html(data)
1030						var TOWN_OPTION = 0;
1031						$("#Town>option").each(function (index, element) {
1032							TOWN_OPTION = TOWN_OPTION + 1;
1033						});
1034
1035						if (TOWN_OPTION == 2) { $("#Town>option:last-child").prop("selected", true) }
1036					}
1037				});
1038			}
1039
1040			$("#Country").change(function (index, element) {
1041				var TOP_ID = $(this).val();
1042				$.ajax({
1043					type: "post", url: "/Library/Query/Address.asp?I=1", data: "TOP_ID=" + TOP_ID + "&T=4", success: function (data) {
1044						$("#City").html(data)
1045						$("#Town").html('<option value="0"> ' + text_Popup1100_23 + ' </option>')
1046					}
1047				});
1048			});
1049
1050			$("#City").change(function (index, element) {
1051				var TOP_ID = $(this).val();
1052				$.ajax({
1053					type: "post", url: "/Library/Query/Address.asp?I=1", data: "TOP_ID=" + TOP_ID + "&T=5", success: function (data) {
1054						$("#Town").html(data)
1055					}
1056				});
1057			});
1058
1059		}
1060	});
1061
1062
1063	if($.cookie(""+cookieCode+"memberId")=="101843404" || $.cookie(""+cookieCode+"memberId")=="101863917"){
1064		alert($.cookie("setLANGUAGE"))
1065	}
1066	$("#CorporateSelect").click(function () {
1067		var S = $(this).attr("S")
1068		if (S == 0) {
1069			$(this).attr("S", 1)
1070			$("#FIRM_NAME").attr("Z", 1)
1071			$("#TAX_NAME").attr("Z", 1)
1072			$("#TAX_ID_NUMBER").attr("Z", 1)
1073		}
1074		if (S == 1) {
1075			$(this).attr("S", 0)
1076			$("#FIRM_NAME").attr("Z", 0)
1077			$("#TAX_NAME").attr("Z", 0)
1078			$("#TAX_ID_NUMBER").attr("Z", 0)
1079		}
1080	});
1081
1082	$("#AddressForm>.BtnBox>button").click(function () {
1083		$("#AddressCheckName-error").remove();
1084
1085		var Name = $("#Name").val();
1086		var First_Name = $("#First_Name").val();
1087		var Last_Name = $("#Last_Name").val();
1088		var Phone = $("#Phone").val();
1089		var Country = $("#Country").val();
1090		var City = $("#City").val();
1091		var Town = $("#Town").val();
1092		var Address = $("#Address").val();
1093		var FIRM_NAME = $("#FIRM_NAME").val();
1094		var TAX_NAME = $("#TAX_NAME").val();
1095		var TAX_ID_NUMBER = $("#TAX_ID_NUMBER").val();
1096		var ID_NUMBER = $("#ID_NUMBER").val();
1097		var ZIP_CODE = $("#postCode").val();
1098		var countryPhoneMask = $("#countryPhoneMask").val();
1099		var TownText = $("#TownText").val();
1100		var Error = 0
1101		$(".FormElements>input,.FormElements>textarea,.FormElements>select").each(function (index, element) {
1102			var Z = $(this).attr("Z")
1103			var Put = $(this).attr("id")
1104			var Value = $(this).val();
1105			if (Z == 1) {
1106				if (setOVERSEAS == "0") {
1107					if ($('#City').val() == 0) {
1108						$('#City').nextAll().remove();
1109						$("#City").addClass("error");
1110						$("#City").after('<label id="AddressCheckName-error" class="error">' + text_Popup1100_17 + '</label>');
1111						Error = 1
1112					}
1113
1114					if ($('#Phone').val() == "") {
1115						$('#Phone').nextAll().remove();
1116						$("#Phone").addClass("error");
1117						$("#Phone").after('<label id="AddressCheckName-error" class="error">' + text_Popup1100_17 + '</label>');
1118						Error = 1
1119					}
1120
1121					if ($('#Town').val() == 0) {
1122						$('#Town').nextAll().remove();
1123						$("#Town").addClass("error");
1124						$("#Town").after('<label id="AddressCheckName-error" class="error">' + text_Popup1100_17 + '</label>');
1125						Error = 1
1126					}
1127
1128					if ($('#Name').val() == "") {
1129						$('#Name').nextAll().remove();
1130						$("#Name").addClass("error");
1131						$("#Name").after('<label id="AddressCheckName-error" class="error">' + text_Popup1100_17 + '</label>');
1132						Error = 1
1133					}
1134				}
1135
1136				if ($('#First_Name').val().length < 2) {
1137					$('#First_Name').nextAll().remove();
1138					$("#First_Name").addClass("error");
1139					$("#First_Name").after('<label id="AddressCheckName-error" class="error">' + text_Popup1100_16 + '</label>');
1140					Error = 1
1141				}
1142
1143				if ($('#Last_Name').val().length < 2) {
1144					$('#Last_Name').nextAll().remove();
1145					$("#Last_Name").addClass("error");
1146					$("#Last_Name").after('<label id="AddressCheckName-error" class="error">' + text_Popup1100_15 + '</label>');
1147					Error = 1
1148				}
1149
1150				if ($('#Address').val().length < 10) {
1151					$('#Address').nextAll().remove();
1152					$("#Address").addClass("error");
1153					$("#Address").after('<label id="AddressCheckName-error" class="error">' + text_Popup1100_17 + '</label>');
1154					Error = 1
1155				}
1156			}
1157		});
1158
1159		if (setOVERSEAS == "1") {
1160			if (ZIP_CODE == "") {
1161				$('#postCode').nextAll().remove();
1162				$("#postCode").addClass("error");
1163				$("#postCode").after('<label id="AddressCheckName-error" class="error">' + text_Popup1100_17 + '</label>');
1164				Error = 1
1165			}
1166
1167			if (countryPhoneMask == "") {
1168				$('#countryPhoneMask').nextAll().remove();
1169				$("#countryPhoneMask").addClass("error");
1170				$("#countryPhoneMask").after('<label id="AddressCheckName-error" class="error">' + text_Popup1100_17 + '</label>');
1171				Error = 1
1172			}
1173		}
1174		Address = Address.replace('\r', '').replace('\n', '')
1175		var COMPANY_INVOICE = $("#CorporateSelect").attr("S")
1176
1177		if (Error == 0) {
1178			loading()
1179			$.ajax({
1180				type: "post",
1181				url: "/Library/Query/Address.asp?I=9",
1182				data: "ORDER_ID=" + ORDER_ID + "&ADDRESS_ID=" + ADDRESS_ID + "&COMPANY_INVOICE=" + COMPANY_INVOICE + "&Name=" + encodeURIComponent(Name) + "&FORM_FIRSTNAME=" + encodeURIComponent(First_Name) + "&FORM_LASTNAME=" + encodeURIComponent(Last_Name) + "&FORM_PHONE=" + encodeURIComponent(Phone) + "&FORM_COUNTRY=" + encodeURIComponent(Country) + "&FORM_CITY=" + encodeURIComponent(City) + "&FORM_TOWN=" + encodeURIComponent(Town) + "&FORM_DETAIL=" + encodeURIComponent(Address) + "&ZIP_CODE=" + encodeURIComponent(ZIP_CODE) + "&FIRM_NAME=" + encodeURIComponent(FIRM_NAME) + "&TAX_NAME=" + encodeURIComponent(TAX_NAME) + "&TAX_ID_NUMBER=" + encodeURIComponent(TAX_ID_NUMBER) + "&ID_NUMBER=" + encodeURIComponent(ID_NUMBER) + "&countryPhoneMask=" + encodeURIComponent(countryPhoneMask) + "&TownText=" + encodeURIComponent(TownText) + "",
1183				success: function (data) {
1184					window.location.reload()
1185				}
1186			});
1187		}
1188
1189
1190		$("#Name,#First_Name,#Last_Name,#Name,#Phone,#Country,#City,#Town,#Address,#Zip_Code,#FIRM_NAME,#TAX_NAME,#TAX_ID_NUMBER,#countryPhoneMask").click(function () {
1191			$(this).removeClass("error")
1192			$(this).parent().find("#AddressCheckName-error").remove();
1193		});
1194	});
1195
1196	/* Input Tel Format [[[ TR ]]]
1197	$(".phoneMark").inputmask("0(999) 999 99 99",{
1198		clearMaskOnLostFocus: true,
1199		clearIncomplete: true
1200	});*/
1201	$(".phoneMark").keyup(function () {
1202		var V = $(this).val()
1203		var L = V.length
1204		var T = V.substring(0, 1);
1205		var S = V.substring(0, 3);
1206		if (L == 1) {
1207			if (T == 0) {
1208				$("[name='PHONE']").inputmask("0(999) 999 99 99", {
1209					clearMaskOnLostFocus: true, clearIncomplete: true
1210				});
1211				$("[name='PHONE']").focus();
1212			} else {
1213				$("[name='PHONE']").inputmask("0(" + V + "99) 999 99 99", {
1214					clearMaskOnLostFocus: true, clearIncomplete: true
1215				});
1216				$("[name='PHONE']").focus();
1217			}
1218		}
1219		if (L == 16) {
1220			if (S == "0(0") {
1221				$("[name='PHONE']").val('').focus();
1222			}
1223		}
1224	});
1225	$(".phoneMark").on("keydown", function (event) {
1226		if (event.which == 8) {
1227			$("[name='PHONE']").inputmask();
1228			setTimeout(function () { $("[name='PHONE']").val('') }, 1);
1229		}
1230	});
1231
1232
1233	$('#CorporateSelect').click(function (event) {
1234		if ($('#CororporateSelect').is(':checked')) {
1235			$('.Corporateporate').slideDown();
1236		} else {
1237			$('.Corporate').slideUp();
1238		}
1239	});
1240}
1241
1242
1243
1244
1245
1246
1247/* Popup 1700 ekleme */
1248$(document).on("click",".Pop_1700>.Mob-Added-Card>.goCard",function() {
1249    $('.Popup').remove();
1250});
1251
1252
1253$(document).ready(function () {
1254	var XdidScroll;
1255	var XlastScrollTop = 0;
1256	var Xdelta = 5;
1257	var XnavbarHeight = $("[CD='MobileBottomBar']").outerHeight();
1258	
1259
1260	$(window).scroll(function(event){
1261		XdidScroll = true;
1262	});
1263
1264	setInterval(function() {
1265		if (XdidScroll) {
1266			XhasScrolled();
1267			XdidScroll = false;
1268		}
1269	}, 250);
1270
1271	function XhasScrolled() {
1272		
1273		var Xst = $(this).scrollTop();
1274		if(Math.abs(XlastScrollTop - Xst) <= Xdelta)
1275			return;
1276		if (Xst > XlastScrollTop && Xst > XnavbarHeight){
1277			$(".AllPagePhoneSale, [CD='ListPageContainer'], [CD='MobileBottomBar'], [CD='filterContainer'], [CD='setFilterModule'],.CollectionListBack, .BackToTop, .BulletinBar.Bottom, .wp-support-button, .module-10000113").removeClass("nav-down").addClass("nav-hide");
1278			if($( window ).width() < 991){
1279				$(".data-r-topbar").css("top","-1px");
1280			}
1281		} else {
1282			var x_d = Xst + $(window).height();
1283			var x_p = $(document).height();
1284			//if(x_d < x_p) {
1285				$(".AllPagePhoneSale, [CD='ListPageContainer'], [CD='MobileBottomBar'], [CD='filterContainer'], [CD='setFilterModule'],.CollectionListBack, .BackToTop, .BulletinBar.Bottom, .wp-support-button, .module-10000113").removeClass("nav-hide").addClass("nav-down");
1286				if($( window ).width() < 991){
1287					$(".data-r-topbar").css("top","106px");
1288				}
1289			//}
1290		}
1291		XlastScrollTop = Xst;
1292
1293		if(XlastScrollTop==0){
1294			$("[CD='setFilterModule']").removeClass("nav-hide");
1295			$("[CD='setFilterModule']").removeClass("nav-down");
1296			$("[CD='ListPageContainer']").removeClass("nav-hide");
1297			$("[CD='ListPageContainer']").removeClass("nav-down");
1298		}
1299	}   
1300});
1301
1302
1303$(document).ready(function(){
1304   $('video, img').bind('contextmenu',function() { return false; });
1305});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.