top of page


Old Faithful and Friends

shuttle services from bozeman airport to livingston,big sky,west yellowstone and gardiner and mammoth
OLD FAITHFUL AND FRIENDS
bottom of page
User-agent: * Disallow: User-agent: GPTBot Allow: / User-agent: CCBot Allow: / User-agent: Google-Extended Allow: /
$w.onReady(() => { // Preload data (you can replace this with an external database for scalability) const data = [ { location: "Bozeman", secondLocation: "Tetons", cost: 950 }, { location: "Bozeman", secondLocation: "Jackson", cost: 900 }, { location: "Bozeman", secondLocation: "Idaho Falls", cost: 450 }, { location: "Bozeman", secondLocation: "Island Park", cost: 400 }, { location: "Bozeman", secondLocation: "West", cost: 300 } // Add more rows as needed ]; // Populate dropdowns const locations = [...new Set(data.map(item => item.location))]; const secondLocations = [...new Set(data.map(item => item.secondLocation))]; $w("#dropdownA").options = locations.map(loc => ({ label: loc, value: loc })); $w("#dropdownB").options = secondLocations.map(loc => ({ label: loc, value: loc })); // Handle selection and cost calculation $w("#calculateButton").onClick(() => { const selectedA = $w("#dropdownA").value; const selectedB = $w("#dropdownB").value; if (!selectedA || !selectedB) { $w("#output").text = "Please select both options."; return; } const result = data.find( item => item.location === selectedA && item.secondLocation === selectedB ); if (result) { $w("#output").text = `The cost is $${result.cost}.`; $w("#checkoutButton").show(); } else { $w("#output").text = "No matching result found. Please try different options."; $w("#checkoutButton").hide(); } }); // Hide checkout button initially $w("#checkoutButton").hide(); });OLD FAITHFUL AND FRIENDS