master
Aevann1 2021-09-26 12:40:25 +02:00
parent 235bd237ff
commit ff5caf2c2f
4 changed files with 33 additions and 46 deletions

View File

@ -75,7 +75,6 @@ def publish(pid, v):
@auth_required
def submit_get(v):
return render_template("submit.html",
v=v)

View File

@ -17,21 +17,17 @@
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
<script>
// var clipboard = new ClipboardJS('.copy-link');
// clipboard.on('success', function(e) {
// jQuery(function($) {
// document.getElementById('toast-success').toast('show');
// })
// console.log(e);
// });
// clipboard.on('error', function(e) {
// jQuery(function($) {
// document.getElementById('toast-error').toast('show');
// })
// console.log(e);
// });
var clipboard = new ClipboardJS('.copy-link');
clipboard.on('success', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
myToast.show();
console.log(e);
});
clipboard.on('error', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-error'));
myToast.show();
console.log(e);
});
</script>
<div class="row justify-content-around">

View File

@ -17,21 +17,17 @@
<script>
// var clipboard = new ClipboardJS('.copy-link');
// clipboard.on('success', function(e) {
// jQuery(function($) {
// document.getElementById('toast-success').toast('show');
// })
// console.log(e);
// });
// clipboard.on('error', function(e) {
// jQuery(function($) {
// document.getElementById('toast-error').toast('show');
// })
// console.log(e);
// });
var clipboard = new ClipboardJS('.copy-link');
clipboard.on('success', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
myToast.show();
console.log(e);
});
clipboard.on('error', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-error'));
myToast.show();
console.log(e);
});
//email change

View File

@ -2,21 +2,17 @@
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
<script>
// var clipboard = new ClipboardJS('.copy-link');
// clipboard.on('success', function(e) {
// jQuery(function($) {
// document.getElementById('toast-success').toast('show');
// })
// console.log(e);
// });
// clipboard.on('error', function(e) {
// jQuery(function($) {
// document.getElementById('toast-error').toast('show');
// })
// console.log(e);
// });
var clipboard = new ClipboardJS('.copy-link');
clipboard.on('success', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
myToast.show();
console.log(e);
});
clipboard.on('error', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-error'));
myToast.show();
console.log(e);
});
</script>
{% for p in listing %}