1jQuery(document).ready(function($){$('input[name="type_event"]').on('change',function(){$('.quote-step-1').hide();$('.quote-step-2').show();$('.nav-step-2').addClass('active');$('.quote-step-footer-inner').removeClass('footer-step-1 ').addClass('footer-step-2 ')});$('#van-hanh').on('change',function(){$('#hoan-thien').val(this.checked?1:0);if(this.checked){$('.box-ho-tro-24-7').show()}else{$('.box-ho-tro-24-7').hide()}});$('#website-gioi-thieu-su-kien').on('change',function(){if(this.checked){$('.hoan-thien-noi-dung').show()}else{$('.hoan-thien-noi-dung').hide()}});$(document).ready(function(){$('#packet-options').on('change',function(){var selectedOption=$(this).find('option:selected');var packet=selectedOption.val();var packetNumber=selectedOption.data('packet');$('#packet').val(packet);$('.name-packet .text').text(packet);var packetDetails={1:{images:'300 ảnh',price:'1500000',guests:'100'},2:{images:'900 ảnh',price:'3600000',guests:'300'},3:{images:'1.500 ảnh',price:'5000000',guests:'500'},4:{images:'3.000 ảnh',price:'8000000',guests:'1.000'},5:{images:'5.000 ảnh',price:'18000000',guests:'3.000'},6:{images:'5.000 ảnh',price:'25000000',guests:'5.000'},7:{images:'5.000 ảnh',price:'40000000',guests:'10.000'},8:{images:'5.000 ảnh',price:'70000000',guests:'20.000'},9:{images:'5.000 ảnh',price:'90000000',guests:'30.000'},};if(packetDetails[packetNumber]){$('.image-packet span').text(packetDetails[packetNumber].images);$('#image-packet').val(packetDetails[packetNumber].images);$('.price-packet span').text(Number(packetDetails[packetNumber].price).toLocaleString('vi',{style:'currency',currency:'VND'}));$('.price-packet input').val(packetDetails[packetNumber].price);$('.guest-packet span').text(packetDetails[packetNumber].guests);$('.guest-packet-packet').text(packetDetails[packetNumber].guests);$('#guest-packet').val(packetDetails[packetNumber].guests)} 2var services=['check-in-bang-khuon-mat','email','zalo','goi-dien-thoai','van-hanh'];services.forEach(function(service){var price=$('.info-quote .'+service).data('price-'+packetNumber);console.log(services,price);price_fmat=price.toLocaleString('vi',{style:'currency',currency:'VND'});$('.price-'+service).val(price_fmat);$('.'+service).text(price_fmat);$('#'+service).attr('data-price',price)});updateTotal()});$('input[name="list_futures[]"],#packet-options').on('change',function(){var total=0;var count=0;$('input[name="list_futures[]"]:checked').each(function(){total+=parseInt($(this).attr('data-price'));count++});if(total>0){$('.futures-total_tr').removeClass('hidden')}else{$('.futures-total_tr').addClass('hidden')} 3$('.total-price_futures').text(total.toLocaleString('vi',{style:'currency',currency:'VND'}));$('input[name="total-price_futures"]').val(total);$('.count-futures').text(count);updateTotal()});$('input[name="list_reminder[]"], .reminder-item select,#packet-options').on('change',function(){var total=0;var count=0;var quantity_total=0;$('input[name="list_reminder[]"]').each(function(){var option=$(this).val();var quantity=$('select[name="reminder_'+option.toLowerCase()+'"]').val();if(quantity>0){$(this).prop('checked',!0)}else{$(this).prop('checked',!1)} 4if($(this).is(':checked')){var price=parseInt($(this).attr('data-price'))*parseInt(quantity);total+=price;quantity_total+=parseInt(quantity);count++}});if(total>0){$('.reminder-total_tr').removeClass('hidden')}else{$('.reminder-total_tr').addClass('hidden')} 5$('.total-price_reminder').text(total.toLocaleString('vi',{style:'currency',currency:'VND'}));$('input[name="total-price_reminder"]').val(total);$('.count-reminder').text(quantity_total);updateTotal()});$('input[name="list_web_card[]"],#packet-options').on('change',function(){var total=0;var count=0;$('input[name="list_web_card[]"]:checked').each(function(){total+=parseInt($(this).attr('data-price'));count++});if(total>0){$('.web_card-total_tr').removeClass('hidden')}else{$('.web_card-total_tr').addClass('hidden')} 6$('.total-price_web_card').text(total.toLocaleString('vi',{style:'currency',currency:'VND'}));$('input[name="total-price_web_card"]').val(total);$('.count-web_card').text(count);updateTotal()});$('input[name="list_support[]"], .support-item select,#packet-options').on('change',function(){var total=0;var count=0;var quantity_total=0;$('input[name="list_support[]"]').each(function(){var option=$(this).val();var quantity=$('select[name="support_'+option.toLowerCase()+'"]').val();if(quantity==null){quantity=1}else if(quantity>0){$(this).prop('checked',!0)}else if(quantity==0){$(this).prop('checked',!1)} 7if($(this).is(':checked')){var price=parseInt($(this).attr('data-price'))*parseInt(quantity);total+=price;quantity_total+=parseInt(quantity);count++}});if(total>
70){$('.support-total_tr').removeClass('hidden')}else{$('.support-total_tr').addClass('hidden')} 8$('.total-price_support').text(total.toLocaleString('vi',{style:'currency',currency:'VND'}));$('input[name="total-price_support"]').val(total);$('.count-support span').text(quantity_total);$('#count-support').val(quantity_total);updateTotal()});function updateTotal(){var total=0;$('input[id^="total-price_"]').each(function(){total+=parseInt($(this).val())||0});var vat=total*0.08;var grandTotal=total+vat;$('.total span').text(total.toLocaleString('vi',{style:'currency',currency:'VND'}));$('#total-price').val(total);$('.vat span').text(vat.toLocaleString('vi',{style:'currency',currency:'VND'}));$('#total-vat').val(vat);$('.total-all span').text(grandTotal.toLocaleString('vi',{style:'currency',currency:'VND'}));$('#total-all').val(grandTotal)}});function serializeFormArray(formArray){var formData={};$.each(formArray,function(index,field){if(formData[field.name]){if(!Array.isArray(formData[field.name])){formData[field.name]=[formData[field.name]]} 9formData[field.name].push(field.value)}else{formData[field.name]=field.value}});return formData} 10$('.submit-from').on('click',function(){var quoteTotal=serializeFormArray($('#form-quote-mbe').serializeArray());var name=$('#your-name').val().trim();var email=$('#your-email').val().trim();var phone=$('#your-phone').val().trim();console.log(name,email,phone);
10if(!name){Swal.fire({title:'Vui lòng nháºp tên cá»§a bạn!',text:'Tên không ÄÆ°á»£c Äá» trá»ng',icon:'warning',confirmButtonText:'OK'});return!1} 11if(!email){Swal.fire({title:'Vui lòng nháºp email cá»§a bạn!',text:'Email không ÄÆ°á»£c Äá» trá»ng',icon:'warning',confirmButtonText:'OK'});return!1} 12var emailPattern=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;if(!emailPattern.test(email)){Swal.fire({title:'Email không hợp lá»!',text:'Vui lòng nháºp Äúng Äá»nh dạng email',icon:'warning',confirmButtonText:'OK'});return!1} 13if(!phone){Swal.fire({title:'Vui lòng nháºp sá» Äiá»n thoại cá»§a bạn!',text:'Sá» Äiá»n thoại không ÄÆ°á»£c Äá» trá»ng',icon:'warning',confirmButtonText:'OK'});return!1} 14var phonePattern=/^[0-9]{10}$/;if(!phonePattern.test(phone)){Swal.fire({title:'Sá» Äiá»n thoại không hợp lá»!',text:'Vui lòng nháºp Äúng Äá»nh dạng sá» Äiá»n thoại',icon:'warning',confirmButtonText:'OK'});return!1} 15var thank_you_url='/cam-on';$.ajax({type:'POST',url:quoteAjax.ajax_url,data:{action:'quote_submit',quoteTotal:JSON.stringify(quoteTotal),name:name,email:email,phone:phone},beforeSend:function(){$('.loading').show();$('#step-next').hide()},success:function(data){console.log('Data:',data);if(data.success==!1){Swal.fire({title:data.data.message,icon:'warning',confirmButtonText:'OK'});console.log('Data:',data.data.message)}else if(data.success==!0){$('.content-thank').show();$('.content-form').hide()} 16$('.loading').hide()},error:function(xhr,status,error){$('.loading').hide()}})}) 17$('#step-back').on('click',function(){$('.quote-step-1').show();$('.quote-step-2').hide();$('.nav-step-2').removeClass('active')});$('#step-next').on('click',function(){$('.quote-step-1').hide();$('.quote-step-2').hide();$('.quote-step-3').show();$('.nav-step-3').addClass('active');$('html, body').animate({scrollTop:$('body').offset().top})})})
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.