PageSourceSearch

https://www.weddingku.com/assets/js/vendor.js?v=11aa23311

js weddingku.com collected 2026-09-24 09:50:11 UTC 26,475 bytes, 762 lines download raw bytes

1var currentpage=1, pagesize=25, numPages=0, currentload=false, $window = $(window), $document = $(document);
2var wWidth = false,ctrBanner=0,maxLoader=5, showTitle = false, showSuggest = false;
3
4function loadmore(page,c,ct,typ,pri,pax,px){
5	setLoader(page);
6	var nextPages = parseInt(page)+1;
7	var prevPages = parseInt(page)-1;
8	currentload = true;
9	$.ajax({
10		type:'POST',
11		url: weddingkuhome+'/ajax/vendors.asp',
12		cache: true,
13		dataType: 'json',
14		data:'c='+c+'&ct='+ct+'&page='+page+'&type='+typ+'&price='+pri+'&capacity='+pax+'&px='+px+'&latlon='+latlon+'&rangeDis='+rangeDistance,
15		success:function(response){
16			//console.log(response)
17			if(response.responsestatus != null){
18				if(response.responsestatus.code == "00"){
19					numPages =response.page_info.count.page;
20					data=response.vendors;
21					suggestions = response.suggestions;
22					boost = response.boost;
23					var pid = [];
24
25					if(data.length <= 0){
26						$('.skel-grid').remove();
27						if(page == 1){
28							var newnotice="";
29							if($('#filter-category').text().toLowerCase() != "all categories"){
30								var ctgr = $('#filter-category').text().toLowerCase();
31								newnotice+= ctgr;
32							}
33							var scity = $('#filter-city').text().toLowerCase().replace(/\b[a-z]/g, function(letter) {
34								return letter.toUpperCase();
35							});
36							if(scity != ""){
37								if($('#filter-category').text().toLowerCase() != "all categories"){
38									newnotice+= " - ";
39								}
40								newnotice+= scity;
41							}
42							$("#vl").addClass("empty");
43							$("#vl").append("<p>Maaf, tidak ada hasil yang di temukan untuk vendor "+newnotice+"!</p>");
44						}
45					} else {
46
47						for(var i=0;i<data.length;i++){
48
49							var strURL = "javascript:;";
50							if (data[i].hasOwnProperty('url')) {
51								if (data[i].url != null) {
52									strURL = data[i].url.replace("https://www.weddingku.com", "");
53									if (typ != "" || capacityVenue != "" || price != "") {
54										strURL= strURL+'&'
55										if (typ != "") {
56											strURL= strURL+'type='+typ+'&';
57										}
58
59										if (pax != "") {
60											//console.log(pax)
61											strURL= strURL+'capacity='+pax+'&';
62										}
63
64										if (pri != "") {
65											strURL= strURL+'price='+pri+'&';
66										}
67									}
68								}
69							}
70
71							var strPic = data[i].profile_photo;
72							if (data[i].hasOwnProperty('profile_photo')) {
73								if (data[i].profile_photo != null) {
74									strPic = data[i].profile_photo;
75								}
76							}
77
78							var vendorName = "";
79							if (data[i].hasOwnProperty('display_name')) {
80								if (data[i].display_name != null) {
81									vendorName = data[i].display_name.replace("`","'");
82								}
83							}
84
85							var category = "";
86							if (data[i].hasOwnProperty('main_category')) {
87								if (data[i].main_category != null) {
88									if (data[i].main_category.hasOwnProperty('name')) {
89										if (data[i].main_category.name != null) {
90											category = data[i].main_category.name
91										}
92									}
93								}
94							}
95							var totalItem = 0;
96							var realwedding_count = 0;
97							if (data[i].hasOwnProperty('realwedding_count')) {
98								if (data[i].realwedding_count != null) {
99									realwedding_count = data[i].realwedding_count;
100									if (realwedding_count != 0) {
101										totalItem = totalItem + 1;
102									}
103								}
104							}
105
106							var package_count = 0;
107							if (data[i].hasOwnProperty('package_count')) {
108								if (data[i].package_count != null) {
109									package_count = data[i].package_count;
110									if (package_count != 0) {
111										totalItem = totalItem + 1;
112									}
113								}
114							}
115
116							var venue_count = 0;
117							if (data[i].hasOwnProperty('venue_count')) {
118								if (data[i].venue_count != null) {
119									venue_count = data[i].venue_count;
120									if (venue_count != 0) {
121										totalItem = totalItem + 1;
122									}
123								}
124							}
125
126							var venue_distance = 0;
127							if (data[i].hasOwnProperty('distance')) {
128								if (data[i].distance != null) {
129									venue_distance = data[i].distance;
130									if (venue_distance != 0) {
131										venue_distance = parseFloat(venue_distance.toFixed(2));
132									}
133								}
134							}
135
136							var capacity = 0;
137							if (data[i].hasOwnProperty('capacity')) {
138								if (data[i].capacity != null) {
139									if (data[i].capacity.hasOwnProperty('max') && data[i].capacity.hasOwnProperty('min')) {
140										if (data[i].capacity.max != null) {
141											capacity = data[i].capacity.min + ' - ' + data[i].capacity.max;
142											////console.log(capacity)
143											if (review_count != 0) {
144												totalItem = totalItem + 1;
145											}
146										}
147									}
148								}
149							}
150
151							var sitting_starting_price = 0;
152							if (data[i].hasOwnProperty('sitting_starting_price')) {
153								if (data[i].sitting_starting_price != null) {
154									sitting_starting_price = data[i].sitting_starting_price;
155									//sitting_starting_price = 10000000
156									sitting_starting_price = sitting_starting_price.toLocaleStr
156ing();
157									if (sitting_starting_price != 0) {
158										totalItem = totalItem + 1;
159									}
160								}
161							}
162
163							var standing_starting_price = 0;
164							if (data[i].hasOwnProperty('standing_starting_price')) {
165								if (data[i].standing_starting_price != null) {
166									standing_starting_price = data[i].standing_starting_price;
167									// standing_starting_price = 10000000
168									standing_starting_price = standing_starting_price.toLocaleString();
169									if (standing_starting_price != 0) {
170										totalItem = totalItem + 1;
171									}
172								}
173							}
174
175							var collection_count = 0;
176							if (data[i].hasOwnProperty('collection_count')) {
177								if (data[i].collection_count != null) {
178									collection_count = data[i].collection_count;
179									if (collection_count != 0) {
180										totalItem = totalItem + 1;
181									}
182								}
183							}
184
185							var love_count = 0;
186							if (data[i].hasOwnProperty('love_count')) {
187								if (data[i].love_count != null) {
188									love_count = data[i].love_count;
189									if (love_count != 0) {
190										totalItem = totalItem + 1;
191									}
192								}
193							}
194
195
196							var review_count = 0;
197							var review_rate = 0;
198							if (data[i].hasOwnProperty('review')) {
199								if (data[i].review != null) {
200									if (data[i].review.hasOwnProperty('count')) {
201										if (data[i].review.count != null) {
202											review_count = data[i].review.count;
203											if (review_count != 0) {
204												totalItem = totalItem + 1;
205											}
206										}
207									}
208									if (data[i].review.hasOwnProperty('rate')) {
209										if (data[i].review.rate != null) {
210											review_rate = data[i].review.rate+'';
211											if (review_rate.indexOf(".")<0) {
212												review_rate = review_rate+'.0';
213											}
214										}
215									}
216								}
217							}
218
219							var highlightID = "";
220							var highlightName = "";
221							if (data[i].hasOwnProperty('highlight')) {
222								if (data[i].highlight != null) {
223									if (data[i].highlight.hasOwnProperty('name')) {
224										if (data[i].highlight.name != null) {
225											highlightName = data[i].highlight.name
226										}
227									}
228									if (data[i].highlight.hasOwnProperty('id')) {
229										if (data[i].highlight.id != null) {
230											highlightID = data[i].highlight.id
231										}
232									}
233								}
234							}
235
236							var labelID = "";
237							if (data[i].hasOwnProperty('label')) {
238								if (data[i].label != null) {
239									if (data[i].label.hasOwnProperty('id')) {
240										if (data[i].label.id != null) {
241											labelID = data[i].label.id
242										}
243									}
244								}
245							}
246
247							var isFeatured = false;
248							if (data[i].hasOwnProperty('is_featured')) {
249								if (data[i].is_featured != null || data[i].is_featured != "") {
250									isFeatured = data[i].is_featured;
251								}
252							}
253
254							var isWVW = false;
255							if (data[i].hasOwnProperty('is_boost')) {
256								if (data[i].is_boost != null || data[i].is_boost != "") {
257									//isWVW = data[i].is_boost;;
258								}
259							}
260
261							var isBoost = false;
262
263							var premium = 9;
264							if (data[i].hasOwnProperty('premium_id')) {
265								if (data[i].premium_id != null) {
266									premium = data[i].premium_id;
267								}
268							}
269
270							if (strPic == '' || strPic == null)
271								strPic = noimage;
272
273							sLayout = 3;
274							if (data[i].hasOwnProperty('layout')) {
275								sLayout=data[i].layout;
276							}
277							if (premium == 1 || premium == 2 || premium == 3 || premium == 4 || premium == 5 || isWVW) {
278								sLayout = 1;
279							} else {
280								if (labelID == 4){
281									sLayout = 2;
282								}
283								if (highlightID!='')
284								{
285									if(highlightID==1) sLayout=2;
286								}
287							}
288
289							var newItemHtml = '';
290							/*if (i==1) {
291								labelID = 1;
292							} else if (i==2)  {
293								labelID = 2;
294							} else if (i==3)  {
295								labelID = 3;
296							}*/
297							//if (sLayout == 1) {
298								//newItemHtml = newItemHtml +' <div id="'+data[i].vendor_id+'" class="col-lg-3 col-md-25 col-6 mb-4 px-0 px-sm-2 item hide">';
299							//	newItemHtml = newItemHtml +' <div id="'+data[i].vendor_id+'" class="col-lg-3 col-md-25 col-6 mb-4 px-2 item hide">';
300							//} else {
301								newItemHtml = newItemHtml +' <div id="'+data[i].vendor_id+'" class="col-lg-3 col-md-25 col-6 my-2 px-2 item hide">'//;
302							//}
303								var imgSize="";
304								if(ct==73 || ct==74 || ct==26 || latlon!='') imgSize="large"
305
306								newItemHtml = newItemHtml +' <a href="'+strURL+'">';
307									newItemHtml = newItemHtml +' <div class="card-item rounded" id="'+sLayout+'">';
308										if (sLayout == 3) {
309											if (labelID != "") {
310												if (labelID <= 4) {
311													newItemHtml = newItemHtml +' <div class="div-reward w-100">';
312														newItemHtml = newItemHtml +' <div class="d-flex justify-content-center">';
313															newItemHtml = newItemHtml +' <span class="reward">';
314																	if (labelID == 1) {
315																		newItemHtml = newItemHtml +' '+ic_pik_collection_l;
316																	} else if (labelID == 2) {
317																		newItemHtml = newItemHtml +' '+ic_pik_realWedding_l;
318																	}
319															newItemHtml = newItemHtml +'</span>';
320														newItemHtml = newItemHtml +' </div>';
321													newItemHtml = newItemHtml +' </div>';
322												}
323											}
324										} else {
325											if (labelID != "") {
326												if (labelID <= 4) {
327													newItemHtml = newItemHtml +' <div class=" d-flex flex-row div-reward">';
328														newItemHtml = newItemHtml +' <span class="reward"><!--'+labelID+'-->';
329																if (labelID == 1) {
330																	newItemHtml = newItemHtml +' '+ic_pik_collection;
331																} else if (labelID == 2) {
332																	newItemHtml = newItemHtml +' '+ic_pik_realWedding;
333																} else if (labelID == 4) {
334																	newItemHtml = newItemHtml +' '+ic_pik_deals;
335																}
336														newItemHtml = newItemHtml +'</span>';
337													newItemHtml = newItemHtml +' </div>';
338												}
339											}
340											if (sLayout == 1) {
341												var promotion_slide_count = 0;
342												if (premium == 1) {
343													if (data[i].hasOwnProperty('promotion_slide')) {
344														if (data[i].promotion_slide != null && data[i].promotion_slide != "") {
345															promotion_slide_count = data[i].promotion_slide.length;
346														}
347													}
348												}
349												if (promotion_slide_count > 1) {
350													newItemHtml = newItemHtml +'<div id="sl-'+data[i].vendor_id+'" class="slick">';
351													for(var y=0;y<data[i].promotion_slide.length;y++){
352														newItemHtml = newItemHtml +'<div>';
353														newItemHtml = newItemHtml +'<img src="'+data[i].promotion_slide[y].src+'">';
354														newItemHtml = newItemHtml +'</div>';
355													}
356													newItemHtml = newItemHtml +'</div>';
357												} else {
358													newItemHtml = newItemHtml +'<div id="sl-'+data[i].vendor_id+'">';
359													newItemHtml = newItemHtml +'<img src="'+strPic+'">';
360													newItemHtml = newItemHtml +'</div>';
361												}
362											} else {
363												newItemHtml = newItemHtml +'<div class="card-item-image '+ imgSize + ' d-flex justify-content-center">';
364												newItemHtml = newItemHtml +'<img src="'+strPic+'">';
365												newItemHtml = newItemHtml +'</div>';
366											}
367										}
368										newItemHtml = newItemHtml +' <div class="card-item-detail">';
369											var classItemTotal = "";
370											if (totalItem > 2) {
371												classItemTotal = "mb-40";
372											} else if (totalItem == 0) {
373												classItemTotal = "mb-0";
374											}
375											newItemHtml = newItemHtml +' <p class="name">'+vendorName+'</p>';
376											newItemHtml = newItemHtml +' <p class="cat">'+category+'</p>';
377											if (venue_distance != 0) {
378												newItemHtml = newItemHtml +' <p class="cat card-distance">'+venue_distance+' km</p>';
379											}
380
381
382											newItemHtml = newItemHtml +' <div class="d-flex flex-row flex-wrap" style="margin-top:4px;">';
383
384											//VENUES ROW
385
386											//venue_count
387											if (venue_count != 0) {
388												newItemHtml = newItemHtml +' <div class="col-6 px-0">';
389													if (sLayout == 1) {
390														newItemHtml = newItemHtml +' <span class="d-flex flex-row justify-content-start align-items-center" id="vendorVenueCount">';
391													}else{
392														newItemHtml = newItemHtml +' <span class="d-flex flex-row justify-content-center align-items-center" id="vendorVenueCount">';
393													}
394
395														newItemHtml = newItemHtml +' '+ic_venueCount;
396														if (venue_count > 1) {
397															newItemHtml = newItemHtml +'<span>'+venue_count+' Venues</span>';
398														}else{
399															newItemHtml = newItemHtml +'<span>'+venue_count+' Venue</span>';
400														}
401													newItemHtml = newItemHtml +' </span>';
402												newItemHtml = newItemHtml +' </div>';
403											}
404
405											//Capacity
406											//capacity = '80 - 200'
407											if (capacity != 0) {
408												newItemHtml = newItemHtml +' <div class="col-6 px-0">';
409													if(sLayout == 1){
410														newItemHtml = newItemHtml +' <span class="d-flex flex-row justify-content-start align-items-center" id="vendorVenueCapacity">';
411													}else{
412														newItemHtml = newItemHtml +' <span class="d-flex flex-row justify-content-center align-items-center" id="vendorVenueCapacity">';
413													}
414
415														newItemHtml = newItemHtml +' '+ic_capacity;
416														newItemHtml = newItemHtml +'<span>'+capacity+'</span>';
417													newItemHtml = newItemHtml +' </span>';
418												newItemHtml = newItemHtml +' </div>';
419											}
420
421
422
423											//sitting price
424
425											if (sitting_starting_price != 0) {
426												newItemHtml = newItemHtml +'<div class="col-12 px-0 sitting-standing-price" id="sittingPrice">';
427												if(sLayout == 1){
428													newItemHtml = newItemHtml +' <span class="d-flex flex-row justify-content-start align-items-center">';
429												}else{
430													newItemHtml = newItemHtml +' <span class="d-flex flex-row justify-content-center align-items-center">';
431												}
432
433
434														newItemHtml = newItemHtml +'Sitting From &nbsp;<span style="color:#C6436A; font-weight: 600;">IDR '+sitting_starting_price+'</span>';
435													newItemHtml = newItemHtml +' </span>';
436												newItemHtml = newItemHtml +' </div>';
437											}
438
439											//standing price
440
441											if (standing_starting_price != 0) {
442												newItemHtml = newItemHtml +'<div class="col-12 px-0 sitting-standing-price" id="standingPrice">';
443												if(sLayout == 1){
444													newItemHtml = newItemHtml +' <span class="d-flex flex-row justify-content-start align-items-center">';
445												}else{
446													newItemHtml = newItemHtml +' <span class="d-flex flex-row justify-content-center align-items-center">';
447												}
448
449
450														newItemHtml = newItemHtml +'Standing From &nbsp;<span style="color:#C6436A; font-weight: 600;">IDR '+standing_starting_price+'</span>';
451													newItemHtml = newItemHtml +' </span>';
452												newItemHtml = newItemHtml +' </div>';
453											}
454
455											newItemHtml = newItemHtml +' </div>';
456
457
458											newItemHtml = newItemHtml +' <ol class="total-content" style="display:inline-block;">';
459
460												//real wedding
461												if (realwedding_count > 0) {
462													newItemHtml = newItemHtml +' <li>';
463														newItemHtml = newItemHtml +' <span class="d-flex flex-row justify-content-start align-items-center">';
464															newItemHtml = newItemHtml +' '+ic_realwedding_14;
465															newItemHtml = newItemHtml +'<span>'+intFormatter(realwedding_count)+'</span>';
466														newItemHtml = newItemHtml +' </span>';
467													newItemHtml = newItemHtml +' </li>';
468												}
469
470												//pricelist
471												// if (package_count > 0) {
472												// 	newItemHtml = newItemHtml +' <li>';
473												// 		newItemHtml = newItemHtml +' <span class="d-flex flex-row justify-content-start align-items-center">';
474												// 			newItemHtml = newItemHtml +' '+ic_pricelist_14;
475												// 			newItemHtml = newItemHtml +'<span>'+intFormatter(package_count)+'</span>';
476												// 		newItemHtml = newItemHtml +' </span>';
477												// 	newItemHtml = newItemHtml +' </li>';
478												// }
479
480												//collection
481												// if (collection_count > 0) {
482												// 	newItemHtml = newItemHtml +' <li>';
483												// 		newItemHtml = newItemHtml +' <span class="d-flex flex-row justify-content-start align-items-center">';
484												// 			newItemHtml = newItemHtml +' '+ic_collection_14;
485												// 			newItemHtml = newItemHtml +'<span>'+intFormatter(collection_count)+'</span>';
486												// 		newItemHtml = newItemHtml +' </span>';
487												// 	newItemHtml = newItemHtml +' </li>';
488												// }
489
490												//love
491												if (love_count > 0) {
492													newItemHtml = newItemHtml +' <li>';
493														newItemHtml = newItemHtml +' <span class="d-flex flex-row justify-content-start align-items-center">';
494															newItemHtml = newItemHtml +' '+ic_love_14;
495															newItemHtml = newItemHtml +'<span>'+intFormatter(love_count)+'</span>';
496														newItemHtml = newItemHtml +' </span>';
497													newItemHtml = newItemHtml +' </li>';
498												}
499
500												//review
501												if (review_count > 0) {
502													newItemHtml = newItemHtml +' <li>';
503														newItemHtml = newItemHtml +' <span class="d-flex flex-row justify-content-start align-items-center">';
504															newItemHtml = newItemHtml +' '+ic_review_14;
505															newItemHtml = newItemHtml +'<span><b>'+review_rate+'</b></span>';
506														newItemHtml = newItemHtml +' </span>';
507													newItemHtml = newItemHtml +' </li>';
508												}
509											newItemHtml = newItemHtml +' </ol>';
510										newItemHtml = newItemHtml +' </div>';
511
512										//div update
513										if (highlightName != "" && highlightID != "") {
514
515											var classUpdate = "";
516											if (highlightID == 1) {
517												classUpdate = "cl";
518											} else if (highlightID == 3) {
519												classUpdate = "pl";
520											} else if (highlightID == 5) {
521												classUpdate = "promo";
522											}
523											newItemHtml = newItemHtml +' <div class=" item-newupdate card-item-update '+classUpdate+'">';
524												if (highlightID == 1) {
525													newItemHtml = newItemHtml +''+ic_collection;
526												} else if (highlightID == 2) {
527													newItemHtml = newItemHtml +''+ic_realwedding;
528												} else if (highlightID == 3) {
529													newItemHtml = newItemHtml +''+ic_pricelist;
530												} else if (highlightID == 5) {
531													newItemHtml = newItemHtml +''+ic_promo;
532												}
533												newItemHtml = newItemHtml +' <span>'+highlightName+'</span>';
534											newItemHtml = newItemHtml +' </div>';
535										}
536
537									newItemHtml = newItemHtml +' </div>';
538								newItemHtml = newItemHtml +' </a>';
539							newItemHtml = newItemHtml +' </div>';
540
541							if (data[i].vendor_id != 0){
542								if (sLayout == 1) {
543									if (isWVW){
544										$("#wvw").append(newItemHtml);
545									} else {
546										$("#vl").append(newItemHtml);
547									}
548								} else if (sLayout == 2) {
549									$("#sl").append(newItemHtml);
550								} else {
551									$("#fl").append(newItemHtml);
552								}
553							}
554						}
555						currentpage++;
556					}
557					$("#vl .slick:not(.loaded)").slick({
558						autoplay: false,
559						dots: true,
560						infinite: true,
561						arrows: false,
562						slidesToShow: 1,
563						slidesToScroll: 1
564					}).on('setPosition', function (event, slick) {
565						slick.$slides.find(".slick .slick-slide").css('height', slick.$slides.width() + 'px');
566					});
567					$('#vl .slick:not(.loaded)').slick("refresh");
568					$("#vl .slick").each(function(){
569						var itemHeight = 0,itemWidth = 0;
570						var divID = this.id;
571						$(this).addClass('loaded');
572					});
573
574					if ($("#wvw").html() == "") {
575						$("#divwvw").hide();
576					} else {
577						$("#divwvw").show();
578					}
579					loadLazy();
580					$('.skel-grid').remove();
581					$(".row .item").removeClass("hide");
582					$(".row .item .lazy").removeClass("lazy");
583					$(".row .item-sugges").removeClass("hide");
584					$(".row .item-sugges .lazy").removeClass("lazy");
585
586					currentload = false;
587				} else if(response.responsestatus.code == "01"){
588					window.location.href = "https://members.weddingku.com/logout";
589				}else{
590					if(currentpage == 1){
591						$("#vl").addClass("empty");
592						var newItemHtml='';
593						newItemHtml = newItemHtml + '<div class="col-12 px-2 px-sm-3 mb-4 item hide">';
594						newItemHtml = newItemHtml + "<p>Maaf, tidak ada hasil yang di temukan untuk vendor "+newnotice+"!</p>";
595						newItemHtml = newItemHtml + '</div>';
596						$('#vl').append(newItemHtml);
597					}
598				}
599			}
600		},
601		error: function () {
602			currentload = false;
603			$('.skel-grid').remove();
604		}
605	});
606}
607
608function onScroll() {
609	var winHeight = window.innerHeight ? window.innerHeight : $window.height(),
610			closeToBottom = ($window.scrollTop() + winHeight > $document.height() - 800);
611	if (closeToBottom) {
612		if (!currentload && (currentpage <= numPages) && (currentpage != 1)){
613			loadmore(currentpage,city,cat,type,price,capacityVenue,px);
614		}
615	}
616}
617
618function createLoader(){
619	var temp = '<div class="col-lg-3 col-md-25 col-sm-6 col-6 px-2 mb-4 px-sm-3 item skel-grid">';
620	temp += '<div class="bordered">';
621	temp += '<div class="img square square-grid skeleton-screen image" style="padding-top:100%;width="100%";"></div>';
622	temp += '<article class="small" style="padding-bottom:1.35em;padding: 10px;">';
623	temp += '<h3 class="skeleton-screen rectangle w100"></h3>';
624	temp += '<div class="stat skeleton-screen rectangle w80"></div>';
625	temp += '<p class="stat skeleton-screen rectangle w60"></p>';
626	temp += '</article>';
627	temp += '</div>';
628	temp += '</div>';
629
630	return temp;
631}
632
633function setLoader(page){
634	////console.log($window.width());
635	if ($window.width() <= 480) {
636		$("#sg").append(createLoader());
637		$("#sg").append(createLoader());
638	} else {
639		for(var i=0;i<maxLoader;i++){
640			$("#sg").append(createLoader());
641		}
642	}
643	$('.flex-grid .img').css( 'width', '100%');
644	$('.flex-grid .img').css( 'padding-top', '100%');
645}
646
647windowWidhts = function(){
648	if ($(window).width() < 481) {
649		wWidth = true;
650	} else {
651		wWidth = false;
652		if (!isLock) {
653			$('html').css('overflow-y','auto');
654		}
655		$('.vendorfilter').hide();
656	}
657}
658$(window).resize(function() {
659	windowWidhts();
660});
661
662function loadcat(id,value){
663	if (id == '' || id == '0') {
664		id = 'all'
665	}
666	$('#filtercategory').select2({
667	  	ajax: {
668			url: weddingkuhome+'/dump/staticpages/json/vendor/category/'+id+'.js',
669			dataType: 'json'
670	  	}
671	});
672	if (value != ''){
673		$('#filtercategory').val(value).change();
674	}
675	else {
676		$('#filtercategory').val('0').trigger('change');
677	}
678}
679
680$(document).ready(function(){
681	windowWidhts();
682	if (cat != "0" || city != "0" || latlon != "") {
683		loadmore(currentpage,city,cat,type,price,capacityVenue,px);
684		//console.log(currentpage,city,cat,type,price,capacityVenue,px);
685		$window.bind('scroll', onScroll);
686	}
687	$('#frm-filter').submit(function(e) {
688		e.preventDefault();
689		maxLoader=5;
690		setLoader(1);
691		currentpage=1;
692		vURL = "",strCat="",strCity = "",strVenue = "",strCapacity = "",strPriceRange = "",strLatLon = "",strRangeDistance = "";
693		var data = $("#frm-filter select").serializeArray();
694		$.each(data, function(i, field){
695			////console.log(field.name);
696			if (field.name == "filtercity" && field.value != "" && field.value != "0"){
697				strCity = field.value;
698			}
699			if (field.name == "filtercategory" && field.value != "" && field.value != "0"){
700				strCat = field.value;
701			}
702
703			if (field.name == "filtervenuecat" && field.value != "" && field.value != "0"){
704				strCat = field.value;
705			}
706
707			if (field.name == "filtervenuetype" && field.value != "" && field.value != "0"){
708				strVenue = field.value;
709			}
710
711			if (field.name == "filtercapacitynew" && field.value != "" && field.value != "0"){
712				strCapacity = field.value;
713
714			}
715
716			if (field.name == "filterpricerange" && field.value != "" && field.value != "0"){
717				strPriceRange = field.value;
718			}
719
720			if (field.name == "filterdistancenew" && field.value != "" && field.value != "0"){
721				strRangeDistance = field.value;
722			}
723		});
724		if (strCat!="" && strCat!="0")
725			vURL+='/'+strCat;
726		if (strCity!="" && strCity!="0")
727			vURL+='/'+strCity;
728			// vURL+='?';
729		if (strVenue!="" || strCapacity!="" || strPriceRange!=""){
730			vURL+='?';
731		} else if (latlon!="" || strRangeDistance!=""){
732			vURL+='?nearby=1&';
733		}
734
735		if (strVenue!=""){
736			strVenue = $("#filtervenuetype").multipleSelect("getSelects");
737			vURL+='type='+strVenue+'&';
738		}
739
740		if (strCapacity!="" && strCapacity!="0"){
741			strCapacity = $("#filtercapacitynew").multipleSelect("getSelects");
742			//alert('strCapacity2: '+strCapacity);
743			vURL+='capacityVenue='+strCapacity+'&';
744		}
745
746		if (strPriceRange!="" && strPriceRange!="0"){
747			vURL+='price='+strPriceRange+'&';
748		}
749
750		if (strRangeDistance!="" && strRangeDistance!="0"){
751			vURL+='rangeDis='+strRangeDistance+'&';
752		}
753
754		if (latlon!="" && latlon!="0"){
755			vURL+='latlon='+latlon;
756		}
757
758		////console.log(weddingkuhome+'/wedding-vendors'+vURL);
759		//alert('/wedding-vendors'+vURL);
760		window.location.href = '/wedding-vendors'+vURL;
761	});
762});

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.