master
Aevann1 2021-11-30 20:03:48 +02:00
parent 1a9997f6e3
commit 1dc45f2373
20 changed files with 30 additions and 40 deletions

View File

@ -36,7 +36,7 @@
</div>
</div>
<script src="/assets/js/award_modal.js?v=57"></script>
<script defer src="/assets/js/award_modal.js?v=57"></script>
<style>
.awards-wrapper input[type="radio"] {

View File

@ -105,6 +105,6 @@
</nav>
{% endif %}
<script src="/assets/js/changelog.js?v=54"></script>
<script defer src="/assets/js/changelog.js?v=54"></script>
{% endblock %}

View File

@ -784,20 +784,19 @@ window.addEventListener('DOMContentLoaded', function() {
{% if v %}
{% include "award_modal.html" %}
<script src="https://cdn.jsdelivr.net/npm/marked@3.0.8/lib/marked.min.js"></script>
<script src="/assets/js/comments_v.js?v=73"></script>
<script defer src="https://cdn.jsdelivr.net/npm/marked@3.0.8/lib/marked.min.js"></script>
<script defer src="/assets/js/comments_v.js?v=73"></script>
{% endif %}
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
<script src="/assets/js/popover.js?v=2"></script>
<script defer src="/assets/js/popover.js?v=2"></script>
{% if v and v.admin_level > 1 %}
<script src="/assets/js/comments_admin.js?v=53"></script>
<script defer src="/assets/js/comments_admin.js?v=54"></script>
{% endif %}
<script>
window.addEventListener('DOMContentLoaded', function() {
function collapse_comment(comment_id) {
const comment = "comment-" + comment_id
const element = document.getElementById(comment)
@ -815,8 +814,6 @@ window.addEventListener('DOMContentLoaded', function() {
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
myToast.show();
});
});
</script>
{% include "expanded_image_modal.html" %}

View File

@ -288,7 +288,7 @@
</div>
</div>
<script src="/assets/js/lozad.js?v=53"></script>
<script defer src="/assets/js/lozad.js?v=53"></script>
<script>
window.addEventListener('DOMContentLoaded', function() {
const observer = lozad();
@ -366,7 +366,7 @@ window.addEventListener('DOMContentLoaded', function() {
<script>
function formkey() {return '{{v.formkey}}';}
</script>
<script src="/assets/js/default.js?v=55"></script>
<script defer src="/assets/js/default.js?v=55"></script>
{% endif %}

View File

@ -1,5 +1,5 @@
{{p.embed_url | safe}}
<script src="/assets/js/twitter.js" charset="utf-8">
<script defer src="/assets/js/twitter.js" charset="utf-8">
</script>
<script>
window.addEventListener('DOMContentLoaded', function() {

View File

@ -1,5 +1,5 @@
{{p.embed_url | safe}}
<script src="https://platform.twitter.com/widgets.js" charset="utf-8">
<script defer src="https://platform.twitter.com/widgets.js" charset="utf-8">
</script>
<script>
window.addEventListener('DOMContentLoaded', function() {

View File

@ -84,7 +84,7 @@
</div>
</div>
<script src="/assets/js/emoji_modal.js?v=122"></script>
<script defer src="/assets/js/emoji_modal.js?v=122"></script>
<style>
a.emojitab {

View File

@ -26,4 +26,4 @@
</div>
</div>
<script src="/assets/js/gif_modal.js?v=54"></script>
<script defer src="/assets/js/gif_modal.js?v=54"></script>

View File

@ -218,7 +218,7 @@
function formkey() {return '{{v.formkey}}';}
</script>
{% endif %}
<script src="/assets/js/header.js?v=54"></script>
<script defer src="/assets/js/header.js?v=54"></script>
<style>
.notif-count {

View File

@ -193,7 +193,7 @@ window.addEventListener('DOMContentLoaded', function() {
{% endif %}
{% if v %}
<script src="https://js.pusher.com/beams/1.0/push-notifications-cdn.js"></script>
<script defer src="https://js.pusher.com/beams/1.0/push-notifications-cdn.js"></script>
<script>
window.addEventListener('DOMContentLoaded', function() {
const beamsClient = new PusherPushNotifications.Client({

View File

@ -125,14 +125,12 @@
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
<script>
window.addEventListener('DOMContentLoaded', function() {
var clipboard = new ClipboardJS('.copy-link');
clipboard.on('success', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
myToast.show();
});
});
</script>
{% endblock %}

View File

@ -68,7 +68,7 @@
</div>
</div>
<script src="/assets/js/mobile_navigation_bar.js?v=53"></script>
<script defer src="/assets/js/mobile_navigation_bar.js?v=53"></script>
<style>
.btn-dead:hover, .active.btn-dead:hover, .active.btn-dead {

View File

@ -32,4 +32,4 @@
</div>
</div>
<script src="/assets/js/report_post_modal.js?v=54"></script>
<script defer src="/assets/js/report_post_modal.js?v=54"></script>

View File

@ -242,7 +242,6 @@
<script>
function formkey() {return '{{v.formkey}}';}
window.addEventListener('DOMContentLoaded', function() {
var clipboard = new ClipboardJS('.copy-link');
clipboard.on('success', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
@ -252,7 +251,6 @@ window.addEventListener('DOMContentLoaded', function() {
function emailVerifyText() {
document.getElementById("email-verify-text").innerHTML = "Verification email sent! Please check your inbox.";
}
});
</script>
<style>

View File

@ -682,7 +682,7 @@
</div>
<script src="/assets/js/settings_profile.js?v=58"></script>
<script defer src="/assets/js/settings_profile.js?v=58"></script>
<script>
window.addEventListener('DOMContentLoaded', function() {

View File

@ -148,10 +148,10 @@
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js"></script>
<script src="/assets/js/signup.js?v=63"></script>
<script defer src="/assets/js/signup.js?v=63"></script>
{% if hcaptcha %}
<script src="https://hcaptcha.com/1/api.js"></script>
<script defer src="https://hcaptcha.com/1/api.js"></script>
{% endif %}
</body>

View File

@ -13,7 +13,7 @@
{% block title %}
<script src="/assets/js/new_comments_count.js?v=53"></script>
<script defer src="/assets/js/new_comments_count.js?v=53"></script>
{% if p.award_count("train") %}
<style>
@ -897,7 +897,7 @@ window.addEventListener('DOMContentLoaded', function() {
</script>
{% if v %}
<script src="/assets/js/comments_v.js?v=73"></script>
<script defer src="/assets/js/comments_v.js?v=73"></script>
{% include "award_modal.html" %}
{% include "emoji_modal.html" %}
{% include "gif_modal.html" %}
@ -909,7 +909,7 @@ window.addEventListener('DOMContentLoaded', function() {
{% endif %}
{% if p.award_count("shit") %}
<script src="/assets/js/bugs.js?v=55"></script>
<script defer src="/assets/js/bugs.js?v=55"></script>
{% set minbugs = 10*p.award_count("shit") if p.award_count("shit") < 3 else 20 %}
{% set maxbugs = 20*p.award_count("shit") if p.award_count("shit") < 3 else 40 %}
<script>
@ -928,7 +928,7 @@ window.addEventListener('DOMContentLoaded', function() {
{% if p.award_count("fireflies") %}
<script src="/assets/js/fireflies.js?v=55"></script>
<script defer src="/assets/js/fireflies.js?v=55"></script>
{% set minbugs = 10*p.award_count("fireflies") if p.award_count("fireflies") < 3 else 20 %}
{% set maxbugs = 20*p.award_count("fireflies") if p.award_count("fireflies") < 3 else 40 %}
<script>

View File

@ -4,7 +4,7 @@
{% set cc='COUNTRY CLUB' %}
{% endif %}
<script src="/assets/js/new_comments_count.js?v=53"></script>
<script defer src="/assets/js/new_comments_count.js?v=53"></script>
{% for p in listing %}
@ -659,10 +659,9 @@ window.addEventListener('DOMContentLoaded', function() {
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
<script src="/assets/js/popover.js?v=2"></script>
<script defer src="/assets/js/popover.js?v=2"></script>
<script>
window.addEventListener('DOMContentLoaded', function() {
function expandText(id) {
document.getElementById('post-text-'+id).classList.toggle('d-none');
document.getElementsByClassName('text-expand-icon-'+id)[0].classList.toggle('fa-expand-alt');
@ -685,8 +684,6 @@ window.addEventListener('DOMContentLoaded', function() {
html: true,
});
})
});
</script>
{% if v %}

View File

@ -169,9 +169,9 @@
{% endblock %}
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked@3.0.8/lib/marked.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/marked@3.0.8/lib/marked.min.js"></script>
<script src="/assets/js/submit.js?v=72"></script>
<script defer src="/assets/js/submit.js?v=72"></script>
{% include "emoji_modal.html" %}

View File

@ -783,7 +783,7 @@ window.addEventListener('DOMContentLoaded', function() {
}
</style>
<script src="/assets/js/userpage.js?v=72"></script>
<script defer src="/assets/js/userpage.js?v=72"></script>
{% if v %}