My Traveler Profile

Manage your dietary preferences, saved locations, and order history

Select Your Dietary Preferences

We'll use these to recommend meals that match your needs

Vegan

No animal products

Vegetarian

No meat or fish

Halal

Islamic dietary laws

Gluten-Free

No wheat products

Low Sodium

Reduced salt intake

Keto/Low-Carb

Minimal carbohydrates

Saved Pickup Locations

Your Order History

${loc.address}

`).join('') || '

No saved locations yet. Add one below!

'; } function deleteLocation(index) { let locations = JSON.parse(localStorage.getItem('roadbite_locations') || '[]'); locations.splice(index, 1); localStorage.setItem('roadbite_locations', JSON.stringify(locations)); loadLocations(); } document.getElementById('add-location-btn').addEventListener('click', function() { const name = prompt('Location name (e.g., "Livingstone Rest Stop"):'); if (!name) return; const address = prompt('Address:'); if (!address) return; let locations = JSON.parse(localStorage.getItem('roadbite_locations') || '[]'); locations.push({name, address}); localStorage.setItem('roadbite_locations', JSON.stringify(locations)); loadLocations(); }); // Order history function loadOrderHistory() { const orders = JSON.parse(localStorage.getItem('roadbite_orders') || '[]'); const list = document.getElementById('orders-list'); list.innerHTML = orders.map((order, i) => `

Order #${i + 1}

${order.restaurant}

${new Date(order.date).toLocaleDateString()}

Total: K${order.total}

`).join('') || '

No orders yet. Place your first order!

'; } function reorderItems(index) { const orders = JSON.parse(localStorage.getItem('roadbite_orders') || '[]'); alert('Reordering: ' + orders[index].items.join(', ')); // In a real app, this would populate the cart } // Initialize loadDietaryPreferences(); loadLocations(); loadOrderHistory();