Skip to content

Commit

Permalink
add toast with checkmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Lorenz committed Jun 17, 2024
1 parent 7616349 commit fb43cb2
Showing 1 changed file with 15 additions and 24 deletions.
39 changes: 15 additions & 24 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,21 @@ <h5 class="mt-4">About</h5>
style="padding: .2vw;"><i class="bi bi-info-circle"></i> Info</a>
</div>
<!-- The central drawing -->
<div class="col-8">
<div class="col-8 position-relative">
<canvas id="canvas" class="w-100 vh-100"></canvas>
<div id="toastCommit" class="toast position-absolute bottom-0 end-0 z-2 me-3 w-auto"
role="alert"
aria-live="assertive"
aria-atomic="true"
data-bs-autohide="false"
>
<div class="toast-body text-center">
<h2>
<i class="bi bi-check "></i>
<span class="visually-hidden">Checkmark to commit a annotation</span>
</h2>
</div>
</div>
</div>
<!-- The picture selector -->
<div class="col w-100 vh-100 rounded-end shadow bg-white text-center">
Expand Down Expand Up @@ -132,29 +145,6 @@ <h5 class="modal-title">Info</h5>
</div>
</div>

<div class="modal fade" id="commitModal" tabindex="-1" aria-labelledby="commitModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Success</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body text-center">
<div class="text-success" style="font-size: 48px;">
<i class="fas fa-check-circle"></i>
</div>
<p class="mt-3">Your operation was successful!</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>


<div id="modalSettingsModel" class="modal fade" tabindex="-1" aria-labelledby="modalSettingsModelLabel"
aria-hidden="true" data-bs-keyboard="false">
<div class="modal-dialog modal-dialog-centered">
Expand Down Expand Up @@ -210,6 +200,7 @@ <h6>URL</h6>
</form>
</div>
</div>

<!-- Notification popups -->
<div class="toast-container position-fixed bottom-0 end-0 p-3">
<div id="saveNotification" class="toast">
Expand Down

0 comments on commit fb43cb2

Please sign in to comment.