Breaking News

Kuliner Jogja Eatandtreats

Kuliner - Part 16

Hi, berjumpa kembali, pada kali ini akan membawa pembahasan tentang kuliner jogja eatandtreats Kuliner - Part 16 simak selengkapnya lebih dalam tentang Kuliner - Part 16.

" ); $('#tglCheckin').val(tanggal); $('#dyn_d_txt').val(dateBerangkat); $('#dyn_m_txt').val(monthBerangkatValue); $('#dyn_y_txt').val(yearBerangkat); var jumlahMalam = parseInt($('#malam').val(), 10); var date2 = date1; date2.setDate(date2.getDate()+jumlahMalam); var dayAfter = dayNames[date2.getDay()]; var dateAfter = date2.getDate(); if(dateAfter "+dayAfter+", " +dateAfter+ " "+months[monthAfter]+", "+yearAfter+"

" ); $('#tglCheckout').val(tanggalAfter); $("#checkin").hide(); }); $('#checkout').on('change', function() var date2 = $('#checkout').datepicker('getDate'); date2.setDate(date2.getDate()); var dayAfter = dayNames[date2.getDay()] var dateAfter = date2.getDate(); if(dateAfter Checkout"+dateAfter+", "+months[monthAfter]+", "+yearAfter+" "+dayAfter+"

" ); var jumlahMalam = dateCheckout - dateCheckin; $('#malam').val(jumlahMalam); $(".calendar.checkout").hide(); $("body").removeClass("hideOverflow"); ); var dateToday = new Date(); $("#checkin").datepicker( numberOfMonths: 1, dayNamesMin: ['Min', 'Sen' ,'Sel', 'Rab', 'Kam', 'Jum', 'Sab'], showOtherMonths: true, dateFormat: "dd-mm-yy", minDate: dateToday, maxDate: new Date(dateToday.getFullYear(), dateToday.getMonth(), dateToday.getDate() + 360), beforeShowDay: function(date) var search = date.getFullYear() + '/' + (date.getMonth() + 1) + '/' + date.getDate(); if (search in dates) '')]; return [true, '', '']; , onChangeMonthYear: function(year, month) getThisMonth('#checkin', month); , defaultDate: dateToday, ); function switchToOneWay() if(!$('#oneWay').hasClass('active')) $('#oneWay').addClass('active'); $('#twoWay').removeClass('active'); if(!$('#calendarPulang').hasClass('noactive')) $('#calendarPulang').addClass('noactive'); function switchToTwoWay(event) if(!$('#twoWay').hasClass('active')) $('#twoWay').addClass('active'); $('#oneWay').removeClass('active'); if($('#calendarPulang').hasClass('noactive')) $('#calendarPulang').removeClass('noactive'); function switchToOneWayTrain() if(!$('#oneWayTrain').hasClass('active')) $('#oneWayTrain').addClass('active'); $('#twoWayTrain').removeClass('active'); if(!$('#calendarPulangTrain').hasClass('noactive')) $('#calendarPulangTrain').addClass('noactive'); function switchToTwoWayTrain(event) if(!$('#twoWayTrain').hasClass('active')) $('#twoWayTrain').addClass('active'); $('#oneWayTrain').removeClass('active'); if($('#calendarPulangTrain').hasClass('noactive')) $('#calendarPulangTrain').removeClass('noactive'); function swapDestinationTrain() var fromTrain = $('#fromAreaTrain').html(); var fromValue = $('#asalTrain').val(); $('#asalTrain').val($('#tujuanTrain').val()); $('#fromAreaTrain').html($('#destinationAreaTrain').html()); $('#tujuanTrain').val(fromValue); $('#destinationAreaTrain').html(fromTrain); function swapDestination() var fromFlight = $('#fromArea .nameAndCode').html(); var fromValue = $('#asal1').val(); $('#asal1').val($('#tujuan1').val()); $('#fromArea').html($('#destinationArea').html()); $('#tujuan1').val(fromValue); $('#destinationArea').html(fromFlight); $('#cari_tiket').click(function() var affid = getUrlParameter("affid"); var tipe="direct"; var asal = $("#asal1").val(); var tujuan = $("#tujuan1").val(); var pergi= $("#tglBerangkat").val().substring(6,8)+ '-'+$("#tglBerangkat").val().substring(4,6)+ '-'+$("#tglBerangkat").val().substring(0,4); var pulang= $("#tglPulang").val().substring(6,8)+ '-'+$("#tglPulang").val().substring(4,6)+ '-'+$("#tglPulang").val().substring(0,4); var dewasa= $("#dewasaFlight").val(); var anak= $("#anakFlight").val(); var balita= $("#bayiFlight").val(); if (affid !=null) var url = '//www.pegipegi.com/tiket-pesawat/sys/#/search-results/'+asal+'/'+tujuan+'/'+pergi+'/'+dewasa+'/'+anak+'/'+balita+'?affid='+affid if(!$('#calendarPulang').hasClass('noactive')) url = url+'?returnDate='+pulang; window.open(url, "_blank"); else var url = '//www.pegipegi.com/tiket-pesawat/sys/#/search-results/'+asal+'/'+tujuan+'/'+pergi+'/'+dewasa+'/'+anak+'/'+balita if(!$('#calendarPulang').hasClass('noactive')) url = url+'?returnDate='+pulang; window.open(url, "_blank"); ); //ini API $(document).bind('click', function (event) if (!($(event.target).parents().andSelf().is('#hotelNameKey'))) $('.listKotaHotel').hide(); ); function do_ajax() $.ajax(url:"//htlsearch.pegipegi.com/HotelSearchAPI/v1/autocomplete/" + $('#hotelNameKey').val(),type:"GET",dataType:"json",success:function(data) var jsonResponse = data; var methods = setResult:function(foundIndex,stringName) str = new Array; str[0] = strsubject.substr(0,foundIndex); str[1] = ''+strsubject.substr(foundIndex,keyword.length)+''; str[2] = strsubject.substr(foundIndex+keyword.length); finalHotelName = str.join(''); typeof(strsubject[finalHotelName])=='undefined'?countHotel = 0 : countHotel = strsubject[finalHotelName]; strsubject[finalHotelName] = countHotel + 1; $('#hotelNameKey').attr('autocomplete','off') keyword = $.trim( $('#hotelNameKey').val().toLowerCase() ); function emphasizeWords(inputstring, kwd) var kwd_array = kwd.split(" "); var arr_length = kwd_array.length; for (var i= 0 ; i = 1) inputstring = emphasizeWord(inputstring, kwd_array[i]); return inputstring; function emphasizeWord(inputstring, kwd) foundIndex=inputstring.toLowerCase().indexOf(kwd); finalstring = inputstring; if ( foundIndex >= 0 ) str = new Array; str[0] = inputstring.substr(0,foundIndex); str[1]=''+inputstring.substr(foundIndex,kwd.length)+''; str[2]=inputstring.substr(foundIndex+kwd.length); finalstring = str.join(''); return finalstring; if (jsonResponse!=null) var smallAreaList = new Array; var hotelNames = new Array; var provinceList = new Array; //buat provinsi var provList = new Array; var largeAreaList = new Array; var provinceBorderTitle = "Provinsi"; var cityBorderTitle = "Kota"; var areaBorderTitle = "Area"; var registeredBorderTitle = "Hotel yang Terdaftar"; var hotelRegisteredMsg = "hotel terdaftar"; var Jsonhotel=jsonResponse.hotels; var Jsonsml=jsonResponse.area; var Jsonken=jsonResponse.ken; var Jsonlrg=jsonResponse.city; if (Jsonhotel!=null) $.each(Jsonhotel, function(i,prov) hotelNames[this['hotel_name']]='countHotel':Jsonhotel.length, 'value':"hotelNameKey="+this['hotel_name']+"&yadNo="+this['hotel_id'], 'string': emphasizeWords(this['hotel_name'], keyword) ; ); //tambahan if (Jsonlrg!=null) $.each(Jsonlrg, function(i,prov) largeAreaList[i]='countHotel':this['count'], 'name':this['city'], 'value':this['url'], 'string': emphasizeWords(this['city'], keyword) ; ); //tambahan if (Jsonken!=null) $.each(Jsonken, function(i,prov) provList[this['ken_name']]='countHotel':this['count'], 'value':this['url'], 'string': emphasizeWords(this['ken_name'], keyword) ; ); if (Jsonsml!=null) $.each(Jsonsml, function(i,prov) smallAreaList[i]='countHotel':this['count'], 'name':this['area'], 'value':this['url'], 'string': emphasizeWords(this['area'], keyword) ; ); returnDiv = ''; //provinsi provinceItems = ''; for (var key in provList) if(!jQuery.isEmptyObject(provList)) returnDiv += $('

').html('

' + provinceBorderTitle + '

'+provinceItems).html(); largeItems = '' for (var key in largeAreaList) !largeAreaList.hasOwnProperty(key)) continue; var value = largeAreaList[key]; largeItems += '

'; if(!jQuery.isEmptyObject(largeAreaList)) returnDiv += $('

').html('

' + cityBorderTitle + '

'+largeItems).html(); smallItems = '' for (var key in smallAreaList) !smallAreaList.hasOwnProperty(key)) continue; var value = smallAreaList[key]; smallItems += '

'; if(!jQuery.isEmptyObject(smallAreaList)) returnDiv += $('

').html('

' + areaBorderTitle + '

'+smallItems).html(); hotelList = ''; for (var key in hotelNames) if (key === 'length' if(!jQuery.isEmptyObject(hotelNames)) returnDiv += $('

').html('

' + registeredBorderTitle +'

'+hotelList).html(); if(returnDiv.length==0) returnDiv += '

'; returnDiv = $('.ui-autocomplete').length == 0 ? $('

').append(returnDiv):$('.ui-autocomplete').html(returnDiv); returnDiv.css("z-index", 9999) if($('.ui-autocomplete').length==0) $('body').append(returnDiv); ; $('.autoitem',$('.ui-autocomplete')).css('cursor','pointer'); $('.autoitem',$('.ui-autocomplete')).first().addClass("selected"); $(".listKotaHotel").on("click", ".autoitem", function() $("#hotelNameKey").val($(this).find(".value").text()).attr("title", $(this).find(".value").text()); $(".rightIcon").show().attr("title", $(this).find(".value").text()); $("#url_id").val($(this).find(".value").attr("data-code")); ); $(".listKotaHotel").on("mouseover", ".autoitem", function() $(".listKotaHotel").find(".selected").removeClass("selected"); $(this).addClass("selected"); ); $(".listKotaHotel").html(returnDiv); ); function getURLParam(name)&]' + name + '=' + '([^&;]+?)(& function getParamsByName(name, url) //link hotel function doSearchKeywordAutoComplete(url) //disable enter $('#form1').on('keyup keypress', function(e) e.which; if (keyCode === 13) e.preventDefault(); return false; ); $('#hotelNameKey').on("input", function() var inputKey = $(this).val(); if(inputKey) $(this).parent().find(".rightIcon").show(); else $(this).parent().find(".rightIcon").hide(); if(inputKey.length > 1) $(".listKotaHotel").show(); do_ajax(); else $(".listKotaHotel,.rightIcon").hide(); ).keyup(function(event) var $this = $(this); var $nextSelected = $(".selected").nextAll(".autoitem").first(); var $prevSelected = $(".selected").prevAll(".autoitem").first(); if($this.val()) $this.parent().find(".rightIcon").show(); else $this.parent().find(".rightIcon").hide(); if(!$(".listKotaHotel .empty").length) if(event.keyCode == 13) $(".selected").trigger("click"); $('#hotelNameKey').blur(); if(event.keyCode == 40) $(".selected").removeClass("selected"); if($nextSelected.length) $nextSelected.addClass("selected"); else $(".autoitem").first().addClass("selected"); $("#hotelNameKey").val($(".selected").find(".value").text()); var totalHeight = 0; $(".ui-autocomplete.ui-front.ui-menu.ui-widget.ui-widget-content div").each(function() if($(this).hasClass("selected")) return false; else totalHeight += $(this).outerHeight(); ); totalHeight = totalHeight - 200 + $(".selected").height(); $(".selected").parent().scrollTop(totalHeight); if(event.keyCode == 38) $(".selected").removeClass("selected"); if($prevSelected.length) $prevSelected.addClass("selected"); else $(".autoitem").last().addClass("selected"); $("#hotelNameKey").val($(".selected").find(".value").text()); var totalHeight = 0; $(".ui-autocomplete.ui-front.ui-menu.ui-widget.ui-widget-content div").each(function() if($(this).hasClass("selected")) return false; else totalHeight += $(this).outerHeight(); ); totalHeight = totalHeight - 200 + $(".selected").height(); $(".selected").parent().scrollTop(totalHeight); ); $("#hotelNameKey").focus(function() var inputKey = $(this).val(); if(inputKey.length > 0) $(".listKotaHotel").show(); $(".listKotaHotel").empty(); do_ajax(); else $(".listKotaHotel,.rightIcon").hide(); ); $("#hotelNameKey").focusout(function() if($(".listKotaHotel .empty").length) $("#hotelNameKey").val(""); else if($("#hotelNameKey").val() != $(".selected .value").text()) $("#hotelNameKey").val(""); ); $(function() $(document).keyup(function(e) if(e.which == 27) $('.listKotaHotel,.rightIcon').hide(); $("#hotelNameKey").blur(); ); ); $("#hotelNameKey").focus(function() $("#hotelNameKey").select().one('mouseup', function(e) e.preventDefault(); ); ); //jumlah malam hotel var changeRoom = function() var jumlahKamar = $('#kamar').val(); var roomcrack = '100000'; for(var i=1; i

'); listKota[key].forEach(function(obj) $group.append('') ) $('#asal1,#tujuan1').append($group); $('#tujuan1').val("DPS"); ); //validasi kota flight var $fromCityValOld = $("#asal1").val(); var $toCityValOld = $("#tujuan1").val(); $('#asal1,#tujuan1').change(function() $fromCityVal = $("#asal1").val(); $toCityVal = $("#tujuan1").val(); if ($fromCityVal == $toCityVal) alert("Bandara asal dan tujuan tidak boleh sama!"); $("#asal1").val($fromCityValOld); $("#tujuan1").val($toCityValOld); else $fromCityValOld = $fromCityVal; $toCityValOld = $toCityVal; ); //train dropdown var newGroup = ; availableTags.forEach(function(wilayah) if ( ! newGroup[wilayah.area]) newGroup[wilayah.area] = []; newGroup[wilayah.area].push(wilayah); ); var $sel = $('select#asalTrain, select#tujuanTrain'); Object.keys(newGroup).forEach(function(kota) var optTag = $(''); newGroup[kota].forEach(function(stasiun) optTag.append(''); ); $sel.append(optTag); $("#asalTrain").val("GMR"); $("#tujuanTrain").val("BD"); ); //validasi kota train var $fromCityValOldTrain = $("#asalTrain").val(); var $toCityValOldTrain = $("#tujuanTrain").val(); $('#asalTrain,#tujuanTrain').change(function() $fromCityValTrain = $("#asalTrain").val(); $toCityValTrain = $("#tujuanTrain").val(); if ($fromCityValTrain == $toCityValTrain) alert("Stasiun asal dan tujuan tidak boleh sama!"); $("#asalTrain").val($fromCityValOldTrain); $("#tujuanTrain").val($toCityValOldTrain); else $fromCityValOldTrain = $fromCityValTrain; $toCityValOldTrain = $toCityValTrain; ); $("#pulang").on("change", function() if(!$('#twoWay').hasClass('active')) $('#twoWay').addClass('active'); $('#oneWay').removeClass('active'); if($('#calendarPulang').hasClass('noactive')) $('#calendarPulang').removeClass('noactive'); ); $("#pulangTrain").on("change", function() if(!$('#twoWayTrain').hasClass('active')) $('#twoWayTrain').addClass('active'); $('#oneWayTrain').removeClass('active'); if($('#calendarPulangTrain').hasClass('noactive')) $('#calendarPulangTrain').removeClass('noactive'); ); //fungsi reset function refreshInput() $(".rightIcon").parent().find("input").val(''); $(".rightIcon").parent().find("input").focus(); $(".rightIcon").hide(); $('.myautocomplete').remove(); var $input = $('#hotelNameKey'); var $reset = $('.rightIcon'); $reset.hide(); $reset.click(function(e) $(this).fadeOut(500); ); $input.on('change keyup', function(e) if( $input.val().trim() ) $reset.show(); else $reset.fadeOut(3000); );

Oke penjelasan mengenai Kuliner - Part 16 semoga tulisan ini bermanfaat terima kasih

untuk pemesanan papan bunga wisuda bisa menghubungi kami ya. toko bunga jogja,,

Tulisan ini diposting pada tag

https://www.pegipegi.com/travel/category/tempat-wisata/kuliner/page/16/

No comments