mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-02 03:55:33 +02:00
add: create toast notifications in the dashboard
This commit is contained in:
+31
-1
@@ -61,7 +61,7 @@
|
||||
<script src="/script/external/ace/ace.js"></script>
|
||||
<script src="/script/external/ui-ace.min.js"></script>
|
||||
<script src="/script/langColors.js"></script>
|
||||
|
||||
|
||||
<!-- Notebook -->
|
||||
<script src="/script/external/marked.min.js"></script>
|
||||
<script src="/script/external/purify.min.js"></script>
|
||||
@@ -79,6 +79,36 @@
|
||||
<body keypress-events class="d-flex flex-column">
|
||||
<ng-include src="'partials/header.htm'"></ng-include>
|
||||
<ng-view class="align-items-stretch h-100 w-100 overflow-auto"></ng-view>
|
||||
|
||||
<div
|
||||
class="position-fixed bottom-0 right-0 p-3"
|
||||
style="z-index: 5; right: 0; bottom: 0"
|
||||
>
|
||||
<div
|
||||
id="liveToast"
|
||||
class="toast show"
|
||||
role="alert"
|
||||
aria-live="assertive"
|
||||
aria-atomic="true"
|
||||
data-delay="2000"
|
||||
ng-repeat="toast in toasts"
|
||||
>
|
||||
<div class="toast-header">
|
||||
<strong class="mr-auto" ng-bind="toast.title"></strong>
|
||||
<button
|
||||
type="button"
|
||||
class="ml-2 mb-1 close"
|
||||
data-dismiss="toast"
|
||||
aria-label="Close"
|
||||
ng-click="removeToast(toast);"
|
||||
>
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="toast-body" ng-bind="toast.body"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="https://storage.ko-fi.com/cdn/scripts/overlay-widget.js"></script>
|
||||
<script>
|
||||
kofiWidgetOverlay.draw("tdurieux", {
|
||||
|
||||
Reference in New Issue
Block a user