Skip to content

Commit

Permalink
add disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
maiuswong committed Jan 7, 2022
1 parent cdf3a00 commit 193c8ed
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/css/simawaremap.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ body
{
flex-direction: column;
}
#disclaimer
{
backdrop-filter: blur(2px);
-webkit-backdrop-filter: blur(2px);
}
.map-button
{
cursor: pointer;
Expand Down
5 changes: 5 additions & 0 deletions public/js/simaware_app/simaware-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ function initializeMap(manual = 0, landscape = 0)
// Initialize the icons that will be used
initializeIcons();

if(!$.cookie('init'))
{
$('#disclaimer').removeClass('d-none').addClass('d-flex');
}

// Initialize map data
initializeFirData();

Expand Down
2 changes: 2 additions & 0 deletions views/layouts/main.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

{{> navbar}}

{{> ackmodal }}

<!-- Body -->
{{{ body }}}

Expand Down
9 changes: 9 additions & 0 deletions views/partials/ackmodal.handlebars
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div id="disclaimer" class="d-none" style="backdrop-filter: blur(2px); justify-content: center; align-items: center; position: absolute; top: 0; bottom: 0; left: 0; right: 0; z-index: 1201">
<div class="p-3 text-dark border border-dark rounded-3 bg-white d-flex" style="justify-content: center; flex-direction: column; width: 350px">
<h5>Welcome to SimAware!</h5>
<hr />
<p>Here you will find tracking tools for VATSIM flights and ATC, including historical flight data. As with all flight simulation tools, <b>SimAware is not for real-world navigation or flight information.</b></p>
<p>SimAware uses cookies to enhance the user experience. Please accept cookies for optimal performance.</p>
<button onclick="$('#disclaimer').addClass('d-none').removeClass('d-flex'); $.cookie('init', true);" class="btn btn-primary">Accept & Acknowledge</button>
</div>
</div>

0 comments on commit 193c8ed

Please sign in to comment.