|
@ -1,12 +1,24 @@ |
|
|
// Example location data
|
|
|
// Example location data
|
|
|
const locationData = { |
|
|
const locationData = { |
|
|
'digital-hub': { |
|
|
'digital-hub': { |
|
|
text: '10-13 Thomas Street', |
|
|
text: 'The Digital Hub, 10-13 Thomas St, The Liberties, Dublin 8, D08 PX8H', |
|
|
imageUrl: '/public/images/locations/digital-hub.png' |
|
|
imageUrl: '/public/images/locations/digital-hub.webp', |
|
|
|
|
|
direction: 'https://www.google.com/maps/dir//115-117,+The+Coombe,+The+Liberties,+Dublin,+D08+A970/@53.3391179,-6.3569591,12z/data=!4m8!4m7!1m0!1m5!1m1!1s0x48670e89423ed249:0x8aa3669566840ff9!2m2!1d-6.274559!2d53.3391463?entry=ttu' |
|
|
}, |
|
|
}, |
|
|
'pallas-projects': { |
|
|
'pallas-projects': { |
|
|
text: '115-117, The Coombe, The Liberties, Dublin, D08 A970', |
|
|
text: '115-117, The Coombe, The Liberties, Dublin, D08 A970', |
|
|
imageUrl: 'public/images/locations/pallas.png' |
|
|
imageUrl: 'public/images/locations/pallas.webp', |
|
|
|
|
|
direction: 'https://www.google.com/maps?gs_lcrp=EgZjaHJvbWUqBggAEEUYOzIGCAAQRRg7MgYIARBFGDkyBggCEEUYOzIGCAMQRRg8MgYIBBAuGEDSAQgxNDA3ajBqOagCALACAQ&um=1&ie=UTF-8&fb=1&gl=ie&sa=X&geocode=KUnSPkKJDmdIMfkPhGaVZqOK&daddr=115-117,+The+Coombe,+The+Liberties,+Dublin,+D08+A970' |
|
|
|
|
|
}, |
|
|
|
|
|
'ncad': { |
|
|
|
|
|
text: '100 Thomas St, Ushers Quay, Dublin 8, D08 K521', |
|
|
|
|
|
imageUrl: 'public/images/locations/ncad.png', |
|
|
|
|
|
direction: 'https://www.google.com/maps/place//data=!4m2!3m1!1s0x48670c250954601d:0x73901f0562b8bd9f?sa=X&ved=1t:8290&ictx=111' |
|
|
|
|
|
}, |
|
|
|
|
|
'imma': { |
|
|
|
|
|
text: 'Royal Hospital Kilmainham, Military Rd, Kilmainham, Dublin 8, D08 FW31', |
|
|
|
|
|
imageUrl: 'public/images/locations/imma.webp', |
|
|
|
|
|
direction: 'https://www.google.com/maps/place//data=!4m2!3m1!1s0x48670c462efd7fcd:0x3dc9b365e0e6ace?sa=X&ved=1t:8290&ictx=111' |
|
|
} |
|
|
} |
|
|
// Add more locations as needed
|
|
|
// Add more locations as needed
|
|
|
}; |
|
|
}; |
|
@ -17,6 +29,7 @@ function updateLocationContent(locationKey) { |
|
|
if (location) { |
|
|
if (location) { |
|
|
document.getElementById('location-text').innerText = location.text; |
|
|
document.getElementById('location-text').innerText = location.text; |
|
|
document.getElementById('location-img').src = location.imageUrl; |
|
|
document.getElementById('location-img').src = location.imageUrl; |
|
|
|
|
|
document.getElementById('location-direction').href = location.direction; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|