Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
MinjiK committed Dec 18, 2023
1 parent 6d064ae commit 37eb218
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@

// Event listener for link clicks
window.addEventListener('DOMContentLoaded', (event) => {
document.body.addEventListener('click', function(event) {
var target = event.target;
if (target.tagName === 'A') {
var href = target.getAttribute('href');
if (href.startsWith('https://developers.amadeus.com')) {
event.preventDefault();
window.location.href = href;
}
}
});
document.body.addEventListener('click', function (event) {
var target = event.target;
if (target.tagName === 'A') {
var href = target.getAttribute('href');
if (href.startsWith('https://developers.amadeus.com')) {
event.preventDefault();
window.location.href = href;
}
}
});
});
</script>
{% endblock %}
Expand All @@ -33,16 +33,16 @@
<script>
// Event listener for link clicks
window.addEventListener('DOMContentLoaded', (event) => {
document.body.addEventListener('click', function(event) {
var target = event.target;
if (target.tagName === 'A') {
var href = target.getAttribute('href');
if (href.startsWith('https://developers.amadeus.com')) {
event.preventDefault();
window.location.href = href;
}
}
});
document.body.addEventListener('click', function (event) {
var target = event.target;
if (target.tagName === 'A') {
var href = target.getAttribute('href');
if (href.startsWith('https://developers.amadeus.com')) {
event.preventDefault();
window.location.href = href;
}
}
});
});
</script>
{% endblock %}

0 comments on commit 37eb218

Please sign in to comment.