notifications test using notifyjs
All checks were successful
Build and Push Docker Image / build (push) Successful in 16s
All checks were successful
Build and Push Docker Image / build (push) Successful in 16s
This commit is contained in:
parent
53ddffc3ba
commit
1d5117614e
@ -51,6 +51,21 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$.notify.addStyle("bootstrap", {
|
||||||
|
html:
|
||||||
|
'<div class="toast mt-3 overflow-hidden" role="alert">' +
|
||||||
|
'<div class="toast-body">' +
|
||||||
|
'<span data-notify-text></span>' +
|
||||||
|
'</div>' +
|
||||||
|
"</div>"
|
||||||
|
});
|
||||||
|
|
||||||
|
$.notify.defaults({
|
||||||
|
globalPosition: "bottom right",
|
||||||
|
animationType: "fade",
|
||||||
|
className: "success"
|
||||||
|
});
|
||||||
|
|
||||||
// Activate datepickers
|
// Activate datepickers
|
||||||
// $(".input-group.date").datepicker({format: "yyyy-mm-dd"});
|
// $(".input-group.date").datepicker({format: "yyyy-mm-dd"});
|
||||||
|
|
||||||
|
1
apps/static/js/notify.min.js
vendored
Normal file
1
apps/static/js/notify.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -4,6 +4,9 @@
|
|||||||
<span>© 2024 PYRSS</span>
|
<span>© 2024 PYRSS</span>
|
||||||
</div>
|
</div>
|
||||||
<ul class="nav col-md-4 d-flex justify-content-end list-unstyled">
|
<ul class="nav col-md-4 d-flex justify-content-end list-unstyled">
|
||||||
|
<li class="ms-3">
|
||||||
|
<button type="button" class="btn btn-link text-reset" onclick="$.notify('This is a test notification, how does it look?', 'bootstrap')">Test Notify</button>
|
||||||
|
</li>
|
||||||
<li class="ms-3">
|
<li class="ms-3">
|
||||||
<a href="https://gitea.cor.bz/corbz/PYRSS-Website" class="text-reset" target="_blank">
|
<a href="https://gitea.cor.bz/corbz/PYRSS-Website" class="text-reset" target="_blank">
|
||||||
<i class="bi bi-git fs-5"></i>
|
<i class="bi bi-git fs-5"></i>
|
||||||
|
@ -63,6 +63,7 @@
|
|||||||
<script src="{% static '/js/jquery-3.6.0.min.js' %}"></script>
|
<script src="{% static '/js/jquery-3.6.0.min.js' %}"></script>
|
||||||
<script src="https://cdn.datatables.net/2.0.5/js/dataTables.min.js"></script>
|
<script src="https://cdn.datatables.net/2.0.5/js/dataTables.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/select/2.0.1/js/dataTables.select.min.js"></script>
|
<script src="https://cdn.datatables.net/select/2.0.1/js/dataTables.select.min.js"></script>
|
||||||
|
<script src="{% static '/js/notify.min.js' %}"></script>
|
||||||
<script src="{% static '/js/bootstrap.bundle.min.js' %}"></script>
|
<script src="{% static '/js/bootstrap.bundle.min.js' %}"></script>
|
||||||
<script src="{% static '/js/select2.min.js' %}"></script>
|
<script src="{% static '/js/select2.min.js' %}"></script>
|
||||||
<script src="{% static '/js/toasts.js' %}"></script>
|
<script src="{% static '/js/toasts.js' %}"></script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user