this is a test
1 year ago
• By willemsteller
• 25d
let quoteID = null;
$(function() {
$('#reply-form').submit(function(e) {
$('#reply-button').prop('disabled', true);
$('#reply-button').html('<i class="fad fa-spinner-third fa-spin"></i>');
});
});
const setQuote = (id, username) => {
quoteID = id;
$('#reply-quote-id').val(quoteID ?? '');
if (quoteID === null) {
$('#reply-quote').hide();
} else {
$('#reply-quote').show();
$('#reply-quote-username').text(username);
$('html, body').animate({
scrollTop: $("#reply-form").offset().top
}, 500);
}
}
const copyLink = (id) => {
const url = " polytoria.com/forum/post/249377" + "?page=2&highlight=" + id;
navigator.clipboard.writeText(url);
Swal.fire({
title: 'Success',
text: 'A link to this post has been copied to your clipboard.',
icon: 'success',
confirmButtonText: 'Ok'
})
}
$(function() {
const urlParams = new URLSearchParams(window.location.search);
const highlight = urlParams.get('highlight');
if (highlight !== null) {
const element = $("#reply-" + highlight);
if (element.length) {
$('html, body').animate({
scrollTop: element.offset().top
}, 500);
element.addClass('border border-4');
}
}
})
1 year ago
• By InsertSoda
willemsteller 1 year ago
```js let quoteID = null; $(function() { $('#reply-form').submit(function(e) { $('#reply-button').prop('disabled', true); $('#reply-button').html(''); }); }); const setQuote = (id, username) => { quoteID = id; $('#reply-quote-id').val(quoteID ?? ''); if (quoteID === null) { $('#reply-quote').hide(); } else { $('#reply-quote').show(); $('#reply-quote-username').text(username); $('html, body').animate({ scrollTop: $("#reply-form").offset().top }, 500); } } const copyLink = (id) => { const url = "https://polytoria.com/forum/post/249377" + "?page=2&highlight=" + id; navigator.clipboard.writeText(url); Swal.fire({ title: 'Success', text: 'A link to this post has been copied to your clipboard.', icon: 'success', confirmButtonText: 'Ok' }) } $(function() { const urlParams = new URLSearchParams(window.location.search); const highlight = urlParams.get('highlight'); if (highlight !== null) { const element = $("#reply-" + highlight); if (element.length) { $('html, body').animate({ scrollTop: element.offset().top }, 500); element.addClass('border border-4'); } } }) ```
oh my god
1 year ago
• By yohan
this is a test, totally, a test.
“You can find meanness in the least of creatures, but when God made man the devil was at his elbow. A creature that can do anything. Make a machine. And a machine to make the machine.And evil that can run itself a thousand years, no need to tend it.”