document.addEventListener(‘DOMContentLoaded’, function () {
const btnEvisa = document.getElementById(‘btn-evisa’);
const btnVoa = document.getElementById(‘btn-voa’);
const evisaPath = document.getElementById(‘evisa-path’);
const voaPath = document.getElementById(‘voa-path’);
const toggle = document.getElementById(‘fast-track-toggle’);
const tabs = [btnEvisa, btnVoa];
let currentPath = ‘evisa’;
function updatePathDisplay() {
if (currentPath === ‘evisa’) {
evisaPath.classList.remove(‘hidden’);
voaPath.classList.add(‘hidden’);
btnEvisa.classList.add(‘active’);
btnVoa.classList.remove(‘active’);
} else {
evisaPath.classList.add(‘hidden’);
voaPath.classList.remove(‘hidden’);
btnEvisa.classList.remove(‘active’);
btnVoa.classList.add(‘active’);
}
updateFastTrackView();
}
function updateFastTrackView() {
const isFastTrack = toggle.checked;
const dot = toggle.nextElementSibling.nextElementSibling;
dot.style.transform = isFastTrack ? ‘translateX(1.5rem)’ : ‘translateX(0)’;
const evisaIntro = document.getElementById(‘evisa-intro’);
const voaIntro = document.getElementById(‘voa-intro’);
const evisaQueueStep = document.getElementById(‘evisa-queue-step’);
const voaVisaStep = document.getElementById(‘voa-visa-step’);
const voaQueueStep = document.getElementById(‘voa-queue-step’);
if (isFastTrack) {
evisaIntro.textContent = ‘With Fast Track, you skip the main queue. A representative meets you and escorts you through a priority lane for immediate processing.’;
voaIntro.textContent = ‘With Fast Track, our staff handles the entire visa stamping process and escorts you through a priority immigration lane. You skip both queues.’;
evisaQueueStep.classList.add(‘step-skipped’);
evisaQueueStep.querySelector(‘h3’).textContent = ‘2. Arrival Immigration Checkpoint (SKIPPED)’;
evisaQueueStep.querySelector(‘p’).textContent = ‘You bypass the entire queue via a priority lane.’;
voaVisaStep.classList.add(‘step-skipped’);
voaVisaStep.querySelector(‘h3’).textContent = ‘2. Landing Visa Counter (HANDLED FOR YOU)’;
voaVisaStep.querySelector(‘p’).textContent = ‘Our staff handles all paperwork and payments while you relax.’;
voaQueueStep.classList.add(‘step-skipped’);
voaQueueStep.querySelector(‘h3’).textContent = ‘3. Arrival Immigration Checkpoint (SKIPPED)’;
voaQueueStep.querySelector(‘p’).textContent = ‘You bypass the entire queue via a priority lane.’;
} else {
evisaIntro.textContent = ‘This is your standard journey. The main delay occurs at the general immigration queue, where wait times can be significant.’;
voaIntro.textContent = ‘Your journey involves two potential queues: one for the visa stamp and another for immigration. This can lead to significant delays.’;
evisaQueueStep.classList.remove(‘step-skipped’);
evisaQueueStep.querySelector(‘h3’).textContent = ‘2. Arrival Immigration Checkpoint’;
evisaQueueStep.querySelector(‘p’).textContent = ‘Join the long queue for foreign passports. Present passport and printed E-Visa. Wait times can exceed 60 minutes.’;
voaVisaStep.classList.remove(‘step-skipped’);
voaVisaStep.querySelector(‘h3’).textContent = ‘2. Landing Visa Counter’;
voaVisaStep.querySelector(‘p’).textContent = ‘Submit documents (passport, approval letter, form, photo) and wait for your name to be called to pay the stamping fee.’;
voaQueueStep.classList.remove(‘step-skipped’);
voaQueueStep.querySelector(‘h3’).textContent = ‘3. Arrival Immigration Checkpoint’;
voaQueueStep.querySelector(‘p’).textContent = ‘After getting your visa, join the second long queue for the entry stamp.’;
}
}
tabs.forEach(tab => {
tab.addEventListener(‘click’, () => {
currentPath = tab.dataset.type;
updatePathDisplay();
});
});
toggle.addEventListener(‘change’, updateFastTrackView);
const ctx = document.getElementById(‘waitTimeChart’).getContext(‘2d’);
new Chart(ctx, {
type: ‘bar’,
data: {
labels: [‘E-Visa / Visa-Free’, ‘Visa on Arrival’],
datasets: [{
label: ‘Standard Wait Time (minutes)’,
data: [60, 90],
backgroundColor: ‘#fca5a5’,
borderColor: ‘#ef4444’,
borderWidth: 1
}, {
label: ‘Fast Track Time (minutes)’,
data: [10, 15],
backgroundColor: ‘#86efac’,
borderColor: ‘#22c55e’,
borderWidth: 1
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true,
title: { display: true, text: ‘Estimated Time in Minutes’ }
}
},
plugins: {
tooltip: {
callbacks: {
label: function(context) {
return `${context.dataset.label}: ${context.raw} mins`;
}
}
}
}
}
});
updatePathDisplay();
});
We provide arrangement service for e-visa | visa on arrival | visa extension | visa renewal | visa run.
We also arrange FnB tours, medical tours | spa tours
Thank you