use Noty instead of notie
This commit is contained in:
parent
67f7b95c36
commit
b973a37073
|
@ -57,6 +57,9 @@
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-social/4.12.0/bootstrap-social.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-social/4.12.0/bootstrap-social.min.css">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/noty/3.1.4/noty.min.css">
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/noty/3.1.4/noty.min.js"></script>
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="/static/style.css?v={{ VERSION }}">
|
<link rel="stylesheet" type="text/css" href="/static/style.css?v={{ VERSION }}">
|
||||||
|
|
||||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
|
@ -86,11 +89,13 @@
|
||||||
{% if messages %}
|
{% if messages %}
|
||||||
{% for category, message in messages %}
|
{% for category, message in messages %}
|
||||||
<script>
|
<script>
|
||||||
notie.alert({
|
new Noty({
|
||||||
type: "{{ category }}",
|
type: '{{ category }}',
|
||||||
text: "{{ message }}",
|
theme: 'nest',
|
||||||
time: 3
|
text: '{{ message }}',
|
||||||
})
|
timeout: 2000,
|
||||||
|
progressBar: false
|
||||||
|
}).show();
|
||||||
</script>
|
</script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -120,11 +125,13 @@
|
||||||
var clipboard = new ClipboardJS('.clipboard');
|
var clipboard = new ClipboardJS('.clipboard');
|
||||||
|
|
||||||
clipboard.on('success', function (e) {
|
clipboard.on('success', function (e) {
|
||||||
notie.alert({
|
new Noty({
|
||||||
type: "success",
|
type: 'success',
|
||||||
text: "Copied to clipboard",
|
theme: 'nest',
|
||||||
time: 2,
|
text: 'Copied to clipboard',
|
||||||
});
|
timeout: 1000,
|
||||||
|
progressBar: false
|
||||||
|
}).show();
|
||||||
|
|
||||||
e.clearSelection();
|
e.clearSelection();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue