-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed CORS issue when running on localhost by adding herokuapp proxy …
…before API call.
- Loading branch information
1 parent
cefa441
commit bc770b2
Showing
2 changed files
with
28 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,15 +34,10 @@ | |
<header> | ||
<nav class="navbar bg-body-tertiary sticky-top"> | ||
<div class="container-fluid"> | ||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" | ||
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" | ||
aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<a href="/" class="navbar-brand">📡 no-unicom</a> | ||
|
||
<button class="btn btn-dark" id="light_dark_switch" onclick=toggleTheme()><i class="fa-solid fa-sun" id="light_dark_switch_icon"></i></button> | ||
|
||
<!-- <a href="#" class="navbar-brand">brand</a> --> | ||
<div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
<ul class="navbar-nav me-auto mb-2 mb-lg-0"> | ||
<li class="nav-item"> | ||
|
@@ -72,45 +67,29 @@ <h5>Aircraft Data</h5> | |
</div> | ||
|
||
<div class="vatsim-events-container" id="vatsim-events-container"> | ||
<h5>Vatsim Events</h5> | ||
<h1>Need to switch this code from Flask server to client side</h1> | ||
</div> | ||
|
||
|
||
|
||
</div> | ||
|
||
|
||
|
||
|
||
<footer> | ||
|
||
<div class="simconnect-status-container"> | ||
<span class="badge text-bg-danger" id="connection-label" >Sim Disconnected</span> | ||
</div> | ||
|
||
<div class="vatsim-networkinfo-container"> | ||
<p>Pilots: <span id="pilots_online"></span></p> | ||
<p>Controllers: <span id="controllers_online"></span></p> | ||
</div> | ||
|
||
<div class="ui-control"> | ||
<button class="ui-control-button" id="center-aircraft-toggle-button"><i class="fa-solid fa-arrows-to-dot"></i></button> | ||
<button class="ui-control-button" id="toggle-aircraft-data-button"><i class="fa-solid fa-table"></i></button> | ||
<button class="ui-control-button" id="toggle-vatsim-data-button"><i class="fa-solid fa-circle-info"></i></button> | ||
|
||
|
||
</div> | ||
|
||
</footer> | ||
|
||
<script src="scripts/light-dark-mode.js"></script> <!-- At the end so the script recognizes all the elements --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" | ||
crossorigin="anonymous"> | ||
</script> | ||
<script src="scripts/app.js"></script> | ||
|
||
|
||
|
||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters