google-site-verification: google4596caf58a825398.html // File: public/quiz-scoring.js export function calculateTravelStyle(formData) { // Initialize scores let scores = { 'luxuryLeisureLover': 0, 'culturalExplorer': 0, 'adventureSeeker': 0, 'culinaryConnoisseur': 0, 'mindfulWanderer': 0 }; // Map questions to their point values const pointMapping = { // Tiebreaker questions (2 points) 'question1': { 'A': ['luxuryLeisureLover', 2], 'B': ['culturalExplorer', 2], 'C': ['adventureSeeker', 2], 'D': ['culinaryConnoisseur', 2], 'E': ['mindfulWanderer', 2] }, 'question2': { 'A': ['luxuryLeisureLover', 2], 'B': ['culturalExplorer', 2], 'C': ['adventureSeeker', 2], 'D': ['culinaryConnoisseur', 2], 'E': ['mindfulWanderer', 2] }, 'question3': { 'A': ['luxuryLeisureLover', 2], 'B': ['culturalExplorer', 2], 'C': ['adventureSeeker', 2], 'D': ['culinaryConnoisseur', 2], 'E': ['mindfulWanderer', 2] }, 'question9': { 'A': ['luxuryLeisureLover', 2], 'B': ['culturalExplorer', 2], 'C': ['adventureSeeker', 2], 'D': ['mindfulWanderer', 2], 'E': ['culinaryConnoisseur', 2] }, 'question15': { 'A': ['luxuryLeisureLover', 2], 'B': ['culturalExplorer', 2], 'C': ['adventureSeeker', 2], 'D': ['culinaryConnoisseur', 2], 'E': ['mindfulWanderer', 2] }, // Regular questions (1 point) 'question4': { 'A': ['luxuryLeisureLover', 1], 'B': ['culturalExplorer', 1], 'C': ['adventureSeeker', 1], 'D': ['culinaryConnoisseur', 1], 'E': ['mindfulWanderer', 1] }, 'question5': { 'A': ['mindfulWanderer', 1], 'B': ['luxuryLeisureLover', 1], 'C': ['culturalExplorer', 1], 'D': ['culinaryConnoisseur', 1], 'E': ['adventureSeeker', 1] }, 'question6': { 'A': ['luxuryLeisureLover', 1], 'B': ['culturalExplorer', 1], 'C': ['adventureSeeker', 1], 'D': ['mindfulWanderer', 1], 'E': ['culinaryConnoisseur', 1] }, 'question7': { 'A': ['culturalExplorer', 1], 'B': ['luxuryLeisureLover', 1], 'C': ['mindfulWanderer', 1], 'D': ['culinaryConnoisseur', 1], 'E': ['adventureSeeker', 1] }, 'question8': { 'A': ['luxuryLeisureLover', 1], 'B': ['culturalExplorer', 1], 'C': ['culinaryConnoisseur', 1], 'D': ['mindfulWanderer', 1], 'E': ['adventureSeeker', 1] }, 'question10': { 'A': ['luxuryLeisureLover', 1], 'B': ['culturalExplorer', 1], 'C': ['mindfulWanderer', 1], 'D': ['adventureSeeker', 1], 'E': ['culinaryConnoisseur', 1] }, 'question11': { 'A': ['luxuryLeisureLover', 1], 'B': ['culturalExplorer', 1], 'C': ['adventureSeeker', 1], 'D': ['culinaryConnoisseur', 1], 'E': ['mindfulWanderer', 1] }, 'question12': { 'A': ['luxuryLeisureLover', 1], 'B': ['culturalExplorer', 1], 'C': ['adventureSeeker', 1], 'D': ['mindfulWanderer', 1], 'E': ['culinaryConnoisseur', 1] }, 'question13': { 'A': ['luxuryLeisureLover', 1], 'B': ['culturalExplorer', 1], 'C': ['adventureSeeker', 1], 'D': ['culinaryConnoisseur', 1], 'E': ['mindfulWanderer', 1] }, 'question14': { 'A': ['mindfulWanderer', 1], 'B': ['culturalExplorer', 1], 'C': ['adventureSeeker', 1], 'D': ['luxuryLeisureLover', 1], 'E': ['culinaryConnoisseur', 1] } }; // Process form data and calculate scores for (const [questionId, answer] of Object.entries(formData)) { if (pointMapping[questionId] && pointMapping[questionId][answer]) { const [style, points] = pointMapping[questionId][answer]; scores[style] += points; } } // Find the highest score let maxScore = 0; let result = ''; for (const [style, score] of Object.entries(scores)) { if (score > maxScore) { maxScore = score; result = style; } } // Map result to page URL const resultPages = { 'luxuryLeisureLover': '/luxury-leisure-lover', 'culturalExplorer': '/cultural-explorer', 'adventureSeeker': '/adventure-seeker', 'culinaryConnoisseur': '/culinary-connoisseur', 'mindfulWanderer': '/mindful-wanderer' }; return resultPages[result] || '/quiz-results'; }
top of page
whale breaching in Alaska

Discover Alaska's Majestic Beauty

Hey! I'm here to help. Let's chat!

Welcome to On The Fly Vacations
Creating unforgettable travel experiences for wanderlust travelers

The Mindful Wanderer.png

At On The Fly Vacations, we believe travel is more than just a destination—it's an experience that connects you with your heritage, broadens your horizons, and creates lasting memories. Our mission is to turn your travel dreams into reality, whether you're seeking a relaxing cruise through Alaska's pristine waters, an adventurous safari in South Africa, or a cultural immersion that celebrates heritage and history.

As travel specialists, we tailor each trip to your unique preferences, ensuring every moment is memorable, authentic, and meaningful.

Majestic Alaskan Whale-watching boat with a breaching whale

Alaska

Experience the majesty of glaciers, wildlife, and pristine wilderness on a luxury cruise or land tour.

Scenice ariel view of Cape Town South Africa with Tabletop Mountain in the distance

South Africa

Discover the beauty of South Africa's landscapes, wildlife, and rich cultural heritage.

aerial view of the aft of a premium cruise ship

Luxury Cruises

Indulge in world-class service, amenities, and entertainment while exploring multiple destinations.

Group Travel Experiences

Creating unforgettable memories together

Travel Better Together

Whether you're planning a family reunion, a friends getaway, or an organization trip, our group travel experiences offer the perfect blend of togetherness and exploration. We handle all the details so you can focus on creating lasting memories with the people who matter most.

  • Customized itineraries for your group's interests

  • Special group rates and exclusive experiences

  • Dedicated group coordinator throughout your journey

  • Flexible payment options for group members

Heritage Tours

Explore destinations significant to Black history and culture with knowledgeable guides who share authentic stories.

Culinary Journeys

Savor the flavors of the African diaspora through cooking classes, food tours, and dining experiences.

Arts & Music

Immerse yourself in the vibrant arts and music scenes that celebrate Black excellence around the world.

Community Connections

Connect with local Black communities and support Black-owned businesses during your travels.

Stay Updated on Travel Opportunities

Subscribe to our newsletter for exclusive deals, travel tips, and upcoming group experiences.

bottom of page