|
|
|
@ -23,7 +23,7 @@
|
|
|
|
|
<p style="font-size: 22px;"><strong>Select a Ticket Type:</strong></p>
|
|
|
|
|
<div class="selectHotl" style="margin-bottom: 20px;">
|
|
|
|
|
<div class="optionLable" id="ticket_type_premium_khomloy">
|
|
|
|
|
<input type="radio" value="Premium+Transfer+Dinner" checked id="premium_khomloy" data-price="199" name="ticket_type">
|
|
|
|
|
<input type="radio" value="Premium+Transfer+Dinner" id="premium_khomloy" data-price="199" name="ticket_type" disabled ="Premium+Transfer+Dinner">
|
|
|
|
|
<label for="premium_khomloy" style="font-size:18px;">
|
|
|
|
|
Premium+Transfer+Dinner
|
|
|
|
|
<div class="selectionMemo">
|
|
|
|
@ -32,7 +32,7 @@
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="optionLable" id="ticket_type_vip_khomloy">
|
|
|
|
|
<input type="radio" value="VIP+Transfer+Dinner" id="vip_khomloy" data-price="179" name="ticket_type">
|
|
|
|
|
<input type="radio" value="VIP+Transfer+Dinner" id="vip_khomloy" data-price="179" name="ticket_type" checked>
|
|
|
|
|
<label for="vip_khomloy" style="font-size:18px;">
|
|
|
|
|
VIP+Transfer+Dinner
|
|
|
|
|
<div class="selectionMemo">
|
|
|
|
@ -65,7 +65,7 @@
|
|
|
|
|
<label for="vip_heritage" style="font-size:18px;">
|
|
|
|
|
VIP Service+Shuttle Transfer+Dinner
|
|
|
|
|
<div class="selectionMemo">
|
|
|
|
|
US$109
|
|
|
|
|
US$109
|
|
|
|
|
</div>
|
|
|
|
|
</label>
|
|
|
|
|
</div> -->
|
|
|
|
@ -414,8 +414,8 @@
|
|
|
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
|
|
|
function initDefaultSelection() {
|
|
|
|
|
// 初始化时添加默认的余量信息
|
|
|
|
|
addStyledLabel("ticket_type_premium_khomloy", "60 tickets left", "dynamic-label");
|
|
|
|
|
addStyledLabel("ticket_type_vip_khomloy", "135 tickets left", "dynamic-label");
|
|
|
|
|
addStyledLabel("ticket_type_premium_khomloy", "Sold out", "dynamic-label");
|
|
|
|
|
addStyledLabel("ticket_type_vip_khomloy", "93 tickets left", "dynamic-label");
|
|
|
|
|
addStyledLabel("ticket_type_standard_khomloy", "Sold out", "dynamic-label");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -433,8 +433,8 @@
|
|
|
|
|
removeExistingLabels("ticket_type_standard_khomloy", "dynamic-label");
|
|
|
|
|
|
|
|
|
|
// 添加新的余量标签
|
|
|
|
|
addStyledLabel("ticket_type_premium_khomloy", "60 left", "dynamic-label");
|
|
|
|
|
addStyledLabel("ticket_type_vip_khomloy", "135 left", "dynamic-label");
|
|
|
|
|
addStyledLabel("ticket_type_premium_khomloy", "Sold out", "dynamic-label");
|
|
|
|
|
addStyledLabel("ticket_type_vip_khomloy", "93 left", "dynamic-label");
|
|
|
|
|
addStyledLabel("ticket_type_standard_khomloy", "Sold out", "dynamic-label");
|
|
|
|
|
|
|
|
|
|
// 设置standard_khomloy为disabled
|
|
|
|
@ -442,6 +442,10 @@
|
|
|
|
|
if (standardInput) {
|
|
|
|
|
standardInput.disabled = true;
|
|
|
|
|
}
|
|
|
|
|
var premiumInput = document.getElementById("premium_khomloy");
|
|
|
|
|
if (premiumInput) {
|
|
|
|
|
premiumInput.disabled = true;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
ticket_date_november16th.addEventListener('click', function () {
|
|
|
|
@ -453,13 +457,17 @@
|
|
|
|
|
|
|
|
|
|
// 添加新的余量标签
|
|
|
|
|
addStyledLabel("ticket_type_premium_khomloy", "240 left", "dynamic-label");
|
|
|
|
|
addStyledLabel("ticket_type_vip_khomloy", "155 left", "dynamic-label");
|
|
|
|
|
addStyledLabel("ticket_type_standard_khomloy", "33 left", "dynamic-label");
|
|
|
|
|
addStyledLabel("ticket_type_vip_khomloy", "149 left", "dynamic-label");
|
|
|
|
|
addStyledLabel("ticket_type_standard_khomloy", "19 left", "dynamic-label");
|
|
|
|
|
|
|
|
|
|
var standardInput = document.getElementById("standard_khomloy");
|
|
|
|
|
if (standardInput) {
|
|
|
|
|
standardInput.disabled = false;
|
|
|
|
|
}
|
|
|
|
|
var premiumInput = document.getElementById("premium_khomloy");
|
|
|
|
|
if (premiumInput) {
|
|
|
|
|
premiumInput.disabled = false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -468,7 +476,7 @@ function addStyledLabel(targetId, text, labelClass) {
|
|
|
|
|
var target = document.getElementById(targetId);
|
|
|
|
|
if (target) {
|
|
|
|
|
removeExistingLabels(targetId, labelClass);
|
|
|
|
|
var existingLabel = target.querySelector('label[for]');
|
|
|
|
|
var existingLabel = target.querySelector('label[for]');
|
|
|
|
|
if (existingLabel) {
|
|
|
|
|
var selectionMemo = existingLabel.querySelector('.selectionMemo');
|
|
|
|
|
if (selectionMemo) {
|
|
|
|
|