This commit is contained in:
Aevann1 2022-02-02 02:06:29 +02:00
parent 412d29824f
commit 3a9a629fbe
47 changed files with 119 additions and 116 deletions

View file

@ -125,7 +125,7 @@ function buy(mb) {
catch(e) {console.log(e)} catch(e) {console.log(e)}
if (xhr.status >= 200 && xhr.status < 300 && data && data["message"]) { if (xhr.status >= 200 && xhr.status < 300 && data && data["message"]) {
document.getElementById('toast-post-success-text2').innerText = data["message"]; document.getElementById('toast-post-success-text2').innerText = data["message"];
new bootstrap.Toast(document.getElementById('toast-post-success2')).show(); bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success2')).show();
document.getElementById('giveaward').disabled=false; document.getElementById('giveaward').disabled=false;
let owned = document.getElementById(`${kind}-owned`) let owned = document.getElementById(`${kind}-owned`)
let ownednum = Number(owned.textContent); let ownednum = Number(owned.textContent);
@ -133,7 +133,7 @@ function buy(mb) {
} else { } else {
document.getElementById('toast-post-error-text').innerText = "Error, please try again later." document.getElementById('toast-post-error-text').innerText = "Error, please try again later."
if (data && data["error"]) document.getElementById('toast-post-error-text2').innerText = data["error"]; if (data && data["error"]) document.getElementById('toast-post-error-text2').innerText = data["error"];
new bootstrap.Toast(document.getElementById('toast-post-error2')).show(); bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error2')).show();
} }
}; };

View file

@ -12,7 +12,7 @@ function banModal(link, id, name) {
xhr.setRequestHeader('xhr', 'xhr'); xhr.setRequestHeader('xhr', 'xhr');
xhr.onload = function(){ xhr.onload = function(){
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success')); var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success'));
myToast.show(); myToast.show();
document.getElementById('toast-post-success-text').innerHTML = `@${name} banned`; document.getElementById('toast-post-success-text').innerHTML = `@${name} banned`;
} }

View file

@ -2,6 +2,6 @@
var clipboard = new ClipboardJS('.copy-link'); var clipboard = new ClipboardJS('.copy-link');
clipboard.on('success', function(e) { clipboard.on('success', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-success')); var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-success'));
myToast.show(); myToast.show();
}); });

View file

@ -22,7 +22,7 @@ function popovertrigger() {
const popoverId = popoverTriggerEl.getAttribute('data-content-id'); const popoverId = popoverTriggerEl.getAttribute('data-content-id');
const contentEl = document.getElementById(popoverId); const contentEl = document.getElementById(popoverId);
if (contentEl) { if (contentEl) {
return new bootstrap.Popover(popoverTriggerEl, { return bootstrap.Popover.getOrCreateInstance(popoverTriggerEl, {
content: contentEl.innerHTML, content: contentEl.innerHTML,
html: true, html: true,
}); });

View file

@ -12,7 +12,7 @@ function collapse_comment(comment_id) {
function poll_vote_no_v() { function poll_vote_no_v() {
document.getElementById('toast-post-error-text').innerText = "Only logged-in users can vote!"; document.getElementById('toast-post-error-text').innerText = "Only logged-in users can vote!";
new bootstrap.Toast(document.getElementById('toast-post-error')).show(); bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error')).show();
} }
function morecomments(cid) { function morecomments(cid) {
@ -29,7 +29,7 @@ function morecomments(cid) {
document.getElementById(`morecomments-${cid}`).innerHTML = xhr.response.replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, ''); document.getElementById(`morecomments-${cid}`).innerHTML = xhr.response.replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, '');
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')); var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
tooltipTriggerList.map(function(element){ tooltipTriggerList.map(function(element){
return new bootstrap.Tooltip(element); return bootstrap.Tooltip.getOrCreateInstance(element);
}); });
popovertrigger() popovertrigger()
} }

View file

@ -29,7 +29,7 @@ function post_toast3(url, button1, button2) {
catch(e) {console.log(e)} catch(e) {console.log(e)}
if (xhr.status >= 200 && xhr.status < 300 && data && data["message"]) { if (xhr.status >= 200 && xhr.status < 300 && data && data["message"]) {
document.getElementById('toast-post-success-text').innerText = data["message"]; document.getElementById('toast-post-success-text').innerText = data["message"];
new bootstrap.Toast(document.getElementById('toast-post-success')).show(); bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success')).show();
document.getElementById(button1).classList.toggle("d-md-inline-block"); document.getElementById(button1).classList.toggle("d-md-inline-block");
document.getElementById(button2).classList.toggle("d-md-inline-block"); document.getElementById(button2).classList.toggle("d-md-inline-block");
@ -37,7 +37,7 @@ function post_toast3(url, button1, button2) {
} else { } else {
document.getElementById('toast-post-error-text').innerText = "Error, please try again later." document.getElementById('toast-post-error-text').innerText = "Error, please try again later."
if (data && data["error"]) document.getElementById('toast-post-error-text').innerText = data["error"]; if (data && data["error"]) document.getElementById('toast-post-error-text').innerText = data["error"];
new bootstrap.Toast(document.getElementById('toast-post-error')).show(); bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error')).show();
} }
}; };
@ -148,7 +148,7 @@ function post_reply(id){
document.getElementById('toast-post-error-text').innerText = data["error"]; document.getElementById('toast-post-error-text').innerText = data["error"];
} }
catch(e) {console.log(e)} catch(e) {console.log(e)}
new bootstrap.Toast(document.getElementById('toast-post-error')).show(); bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error')).show();
} }
btn.classList.remove('disabled'); btn.classList.remove('disabled');
} }
@ -181,7 +181,7 @@ function comment_edit(id){
document.getElementById('toast-post-error-text').innerText = data["error"]; document.getElementById('toast-post-error-text').innerText = data["error"];
} }
catch(e) {console.log(e)} catch(e) {console.log(e)}
new bootstrap.Toast(document.getElementById('toast-post-error')).show(); bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error')).show();
} }
btn.classList.remove('disabled'); btn.classList.remove('disabled');
} }
@ -215,7 +215,7 @@ function post_comment(fullname){
document.getElementById('toast-post-error-text').innerText = data["error"]; document.getElementById('toast-post-error-text').innerText = data["error"];
} }
catch(e) {console.log(e)} catch(e) {console.log(e)}
new bootstrap.Toast(document.getElementById('toast-post-error')).show(); bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error')).show();
} }
btn.classList.remove('disabled'); btn.classList.remove('disabled');
} }

View file

@ -16,11 +16,11 @@ function delete_postModal(id) {
document.getElementById(`delete2-${id}`).classList.add('d-none'); document.getElementById(`delete2-${id}`).classList.add('d-none');
document.getElementById(`undelete2-${id}`).classList.remove('d-none'); document.getElementById(`undelete2-${id}`).classList.remove('d-none');
document.getElementById('toast-post-success-text').innerText = data["message"]; document.getElementById('toast-post-success-text').innerText = data["message"];
new bootstrap.Toast(document.getElementById('toast-post-success')).show(); bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success')).show();
} else { } else {
document.getElementById('toast-post-error-text').innerText = "Error, please try again later." document.getElementById('toast-post-error-text').innerText = "Error, please try again later."
if (data && data["error"]) document.getElementById('toast-post-error-text').innerText = data["error"]; if (data && data["error"]) document.getElementById('toast-post-error-text').innerText = data["error"];
new bootstrap.Toast(document.getElementById('toast-post-error')).show(); bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error')).show();
} }
}; };
xhr.send(form); xhr.send(form);

View file

@ -6,7 +6,7 @@ function formkey() {
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')); var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
tooltipTriggerList.map(function(element){ tooltipTriggerList.map(function(element){
return new bootstrap.Tooltip(element); return bootstrap.Tooltip.getOrCreateInstance(element);
}); });
function post_toast(url, reload, data) { function post_toast(url, reload, data) {
@ -28,12 +28,12 @@ function post_toast(url, reload, data) {
catch(e) {console.log(e)} catch(e) {console.log(e)}
if (xhr.status >= 200 && xhr.status < 300 && data && data['message']) { if (xhr.status >= 200 && xhr.status < 300 && data && data['message']) {
document.getElementById('toast-post-success-text').innerText = data["message"]; document.getElementById('toast-post-success-text').innerText = data["message"];
new bootstrap.Toast(document.getElementById('toast-post-success')).show(); bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success')).show();
if (reload == 1) {location.reload(true)} if (reload == 1) {location.reload(true)}
} else { } else {
document.getElementById('toast-post-error-text').innerText = "Error, please try again later." document.getElementById('toast-post-error-text').innerText = "Error, please try again later."
if (data && data["error"]) document.getElementById('toast-post-error-text').innerText = data["error"]; if (data && data["error"]) document.getElementById('toast-post-error-text').innerText = data["error"];
new bootstrap.Toast(document.getElementById('toast-post-error')).show(); bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error')).show();
} }
}; };

View file

@ -20,7 +20,7 @@ function post_toast2(url, button1, button2) {
catch(e) {console.log(e)} catch(e) {console.log(e)}
if (xhr.status >= 200 && xhr.status < 300 && data && data["message"]) { if (xhr.status >= 200 && xhr.status < 300 && data && data["message"]) {
document.getElementById('toast-post-success-text').innerText = data["message"]; document.getElementById('toast-post-success-text').innerText = data["message"];
new bootstrap.Toast(document.getElementById('toast-post-success')).show(); bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success')).show();
document.getElementById(button1).classList.toggle("d-none"); document.getElementById(button1).classList.toggle("d-none");
document.getElementById(button2).classList.toggle("d-none"); document.getElementById(button2).classList.toggle("d-none");
@ -28,7 +28,7 @@ function post_toast2(url, button1, button2) {
} else { } else {
document.getElementById('toast-post-error-text').innerText = "Error, please try again later." document.getElementById('toast-post-error-text').innerText = "Error, please try again later."
if (data && data["error"]) document.getElementById('toast-post-error-text').innerText = data["error"]; if (data && data["error"]) document.getElementById('toast-post-error-text').innerText = data["error"];
new bootstrap.Toast(document.getElementById('toast-post-error')).show(); bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error')).show();
} }
}; };

View file

@ -19,9 +19,9 @@ function block_user() {
location.reload(true); location.reload(true);
} }
else { else {
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success')); var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success'));
myToast.hide(); myToast.hide();
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error')); var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error'));
myToast.show(); myToast.show();
document.getElementById("toast-error-message").textContent = "Error. Please try again later."; document.getElementById("toast-error-message").textContent = "Error. Please try again later.";
} }

View file

@ -1,7 +1,10 @@
function expandText(id) { function expandText(id) {
document.getElementById('post-text-'+id).classList.toggle('d-none'); document.getElementById('post-text-'+id).classList.toggle('d-none');
document.getElementsByClassName('text-expand-icon-'+id)[0].classList.toggle('fa-expand-alt'); for (const e of document.getElementsByClassName('text-expand-icon-'+id))
document.getElementsByClassName('text-expand-icon-'+id)[0].classList.toggle('fa-compress-alt'); {
e.classList.toggle('fa-expand-alt');
e.classList.toggle('fa-compress-alt');
}
}; };
function togglevideo(pid) { function togglevideo(pid) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -15,10 +15,10 @@ function post_toast_callback(url, data, callback) {
xhr.onload = function() { xhr.onload = function() {
let result = callback(xhr); let result = callback(xhr);
if (xhr.status >= 200 && xhr.status < 300) { if (xhr.status >= 200 && xhr.status < 300) {
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error')); var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error'));
myToast.hide(); myToast.hide();
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success')); var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success'));
myToast.show(); myToast.show();
try { try {
@ -32,10 +32,10 @@ function post_toast_callback(url, data, callback) {
return true; return true;
} else { } else {
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success')); var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success'));
myToast.hide(); myToast.hide();
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error')); var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error'));
myToast.show(); myToast.show();
try { try {
@ -154,7 +154,7 @@ function submitFormAjax(e) {
} catch(e) { } catch(e) {
document.getElementById('toast-post-success-text').innerText = "Action successful!"; document.getElementById('toast-post-success-text').innerText = "Action successful!";
} }
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success')); var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success'));
myToast.show(); myToast.show();
return true return true
} else if (xhr.status >= 300 && xhr.status < 400) { } else if (xhr.status >= 300 && xhr.status < 400) {
@ -163,13 +163,13 @@ function submitFormAjax(e) {
document.getElementById('toast-post-error-text').innerText = "Error, please try again later." document.getElementById('toast-post-error-text').innerText = "Error, please try again later."
try { try {
let data=JSON.parse(xhr.response); let data=JSON.parse(xhr.response);
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error')); var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error'));
myToast.show(); myToast.show();
document.getElementById('toast-post-error-text').innerText = data["error"]; document.getElementById('toast-post-error-text').innerText = data["error"];
} catch(e) { } catch(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success')); var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success'));
myToast.hide(); myToast.hide();
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error')); var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error'));
myToast.show(); myToast.show();
} }
} }

View file

@ -13,7 +13,7 @@ function viewmore(pid,sort,offset,ids) {
document.getElementById(`viewmore-${offset}`).innerHTML = xhr.response.replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, ''); document.getElementById(`viewmore-${offset}`).innerHTML = xhr.response.replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, '');
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')); var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
tooltipTriggerList.map(function(element){ tooltipTriggerList.map(function(element){
return new bootstrap.Tooltip(element); return bootstrap.Tooltip.getOrCreateInstance(element);
}); });
popovertrigger() popovertrigger()
btn.disabled = false; btn.disabled = false;

View file

@ -116,5 +116,5 @@ class Slots:
def build_text(self, wager_value, result, user, currency): def build_text(self, wager_value, result, user, currency):
if result == 0: return f'Lost {wager_value} {currency}' if result == 0: return f'Lost {wager_value} {currency}'
elif result == 1: return 'Broke Even' elif result == 1: return 'Broke Even'
elif result == 12: return f'Jackpot! Won {wager_value * result} {currency}' elif result == 12: return f'Jackpot! Won {wager_value * (result-1)} {currency}'
else: return f'Won {wager_value * result} {currency}' else: return f'Won {wager_value * (result-1)} {currency}'

View file

@ -229,12 +229,12 @@ def award_post(pid, v):
note = request.values.get("note", "").strip() note = request.values.get("note", "").strip()
if v.id != post.author.id: author = post.author
if v.id != author.id:
msg = f"@{v.username} has given your [post]({post.permalink}) the {AWARDS[kind]['title']} Award!" msg = f"@{v.username} has given your [post]({post.permalink}) the {AWARDS[kind]['title']} Award!"
if note: msg += f"\n\n> {note}" if note: msg += f"\n\n> {note}"
send_repeatable_notification(post.author.id, msg) send_repeatable_notification(author.id, msg)
author = post.author
if kind == "benefactor" and author.id == v.id: if kind == "benefactor" and author.id == v.id:
return {"error": "You can't use this award on yourself."}, 400 return {"error": "You can't use this award on yourself."}, 400
@ -420,9 +420,9 @@ def award_post(pid, v):
g.db.flush() g.db.flush()
send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}") send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}")
if post.author.received_award_count: post.author.received_award_count += 1 if author.received_award_count: author.received_award_count += 1
else: post.author.received_award_count = 1 else: author.received_award_count = 1
g.db.add(post.author) g.db.add(author)
g.db.commit() g.db.commit()
if request.referrer and len(request.referrer) > 1: if request.referrer and len(request.referrer) > 1:
@ -469,12 +469,12 @@ def award_comment(cid, v):
note = request.values.get("note", "").strip() note = request.values.get("note", "").strip()
if v.id != c.author.id: author = c.author
if v.id != author.id:
msg = f"@{v.username} has given your [comment]({c.permalink}) the {AWARDS[kind]['title']} Award!" msg = f"@{v.username} has given your [comment]({c.permalink}) the {AWARDS[kind]['title']} Award!"
if note: msg += f"\n\n> {note}" if note: msg += f"\n\n> {note}"
send_repeatable_notification(c.author.id, msg) send_repeatable_notification(author.id, msg)
author = c.author
if kind == "benefactor" and author.id == v.id: if kind == "benefactor" and author.id == v.id:
return {"error": "You can't use this award on yourself."}, 400 return {"error": "You can't use this award on yourself."}, 400
@ -654,9 +654,9 @@ def award_comment(cid, v):
g.db.flush() g.db.flush()
send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}") send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}")
if c.author.received_award_count: c.author.received_award_count += 1 if author.received_award_count: author.received_award_count += 1
else: c.author.received_award_count = 1 else: author.received_award_count = 1
g.db.add(c.author) g.db.add(author)
g.db.commit() g.db.commit()
if request.referrer and len(request.referrer) > 1 and request.host in request.referrer: if request.referrer and len(request.referrer) > 1 and request.host in request.referrer:

View file

@ -4,7 +4,7 @@
{% block content %} {% block content %}
<script src="/static/assets/js/sort_table.js?a=220"></script> <script src="/static/assets/js/sort_table.js?a=240"></script>
<pre class="d-none d-md-inline-block"></pre> <pre class="d-none d-md-inline-block"></pre>
<h5 style="font-weight:bold;">Admins</h5> <h5 style="font-weight:bold;">Admins</h5>

View file

@ -1,4 +1,4 @@
<script src="/static/assets/js/award_modal.js?a=221"></script> <script src="/static/assets/js/award_modal.js?a=240"></script>
<div class="modal fade" id="awardModal" tabindex="-1" role="dialog" aria-labelledby="awardModalTitle" aria-hidden="true"> <div class="modal fade" id="awardModal" tabindex="-1" role="dialog" aria-labelledby="awardModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered awardmodal my-5" role="document"> <div class="modal-dialog modal-dialog-scrollable modal-dialog-centered awardmodal my-5" role="document">
<div class="modal-content"> <div class="modal-content">

View file

@ -1,5 +1,5 @@
<script src="/static/assets/js/ban_modal.js?a=220"></script> <script src="/static/assets/js/ban_modal.js?a=240"></script>
<div class="modal fade" id="banModal" tabindex="-1" role="dialog" aria-labelledby="banModalTitle" aria-hidden="true"> <div class="modal fade" id="banModal" tabindex="-1" role="dialog" aria-labelledby="banModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-dialog modal-dialog-centered" role="document">

View file

@ -104,6 +104,6 @@
</nav> </nav>
{% endif %} {% endif %}
<script src="/static/assets/js/post_toast2.js?a=220"></script> <script src="/static/assets/js/post_toast2.js?a=240"></script>
{% endblock %} {% endblock %}

View file

@ -266,9 +266,9 @@
{% elif blackjack_status == 'lost' %} {% elif blackjack_status == 'lost' %}
<strong>Lost {{wager}} Coins.</strong> <strong>Lost {{wager}} Coins.</strong>
{% elif blackjack_status == 'won' %} {% elif blackjack_status == 'won' %}
<strong>Won {{wager|int * 2}} Coins.</strong> <strong>Won {{wager}} Coins.</strong>
{% elif blackjack_status == 'blackjack' %} {% elif blackjack_status == 'blackjack' %}
<strong>Blackjack! Won <span id="blackjack-result-{{c.id}}">{{(wager|int * 5/2)|round(0, 'floor')|int}}</span> Coins.</strong> <strong>Blackjack! Won <span id="blackjack-result-{{c.id}}">{{(wager|int * 3/2)|round(0, 'floor')|int}}</span> Coins.</strong>
{% endif %} {% endif %}
{% endif %} {% endif %}
</div> </div>
@ -903,20 +903,20 @@
</style> </style>
{% if v %} {% if v %}
<script src="/static/assets/js/marked.js?a=220"></script> <script src="/static/assets/js/marked.js?a=240"></script>
<script src="/static/assets/js/comments_v.js?a=239"></script> <script src="/static/assets/js/comments_v.js?a=240"></script>
{% endif %} {% endif %}
<script src="/static/assets/js/clipboard.js?a=220"></script> <script src="/static/assets/js/clipboard.js?a=240"></script>
{% if v and v.admin_level > 1 %} {% if v and v.admin_level > 1 %}
<script src="/static/assets/js/comments_admin.js?a=220"></script> <script src="/static/assets/js/comments_admin.js?a=240"></script>
{% endif %} {% endif %}
{% include "expanded_image_modal.html" %} {% include "expanded_image_modal.html" %}
<script src="/static/assets/js/comments+submission_listing.js?a=223"></script> <script src="/static/assets/js/comments+submission_listing.js?a=240"></script>
<script src="/static/assets/js/comments.js?a=221"></script> <script src="/static/assets/js/comments.js?a=240"></script>
<script> <script>
{% if p and (not v or v.highlightcomments) %} {% if p and (not v or v.highlightcomments) %}

View file

@ -4,7 +4,7 @@
<meta name="description" content="{{config('DESCRIPTION')}}"> <meta name="description" content="{{config('DESCRIPTION')}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' ajax.cloudflare.com; connect-src 'self' tls-use1.fpapi.io api.fpjs.io{% if PUSHER_ID %} {{PUSHER_ID}}.pushnotifications.pusher.com{% endif %}; object-src 'none';"> <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' ajax.cloudflare.com; connect-src 'self' tls-use1.fpapi.io api.fpjs.io{% if PUSHER_ID %} {{PUSHER_ID}}.pushnotifications.pusher.com{% endif %}; object-src 'none';">
<script src="/static/assets/js/bootstrap.js?a=220"></script> <script src="/static/assets/js/bootstrap.js?a=240"></script>
{% if v %} {% if v %}
<style>:root{--primary:#{{v.themecolor}}}</style> <style>:root{--primary:#{{v.themecolor}}}</style>
<link rel="stylesheet" href="/static/assets/css/main.css?a=104"> <link rel="stylesheet" href="/static/assets/css/main.css?a=104">
@ -314,15 +314,15 @@
</div> </div>
</div> </div>
<script src="/static/assets/js/lozad.js?a=220"></script> <script src="/static/assets/js/lozad.js?a=240"></script>
{% if v %} {% if v %}
<script src="/static/assets/js/post_toast2.js?a=220"></script> <script src="/static/assets/js/post_toast2.js?a=240"></script>
<script src="/static/assets/js/formatting.js?a=220"></script> <script src="/static/assets/js/formatting.js?a=240"></script>
<script src="/static/assets/js/default.js?a=220"></script> <script src="/static/assets/js/default.js?a=240"></script>
{% endif %} {% endif %}
<script src="/static/assets/js/lite-youtube.js?a=220"></script> <script src="/static/assets/js/lite-youtube.js?a=240"></script>
</body> </body>

View file

@ -1,4 +1,4 @@
<script src="/static/assets/js/delete_post_modal.js?a=221"></script> <script src="/static/assets/js/delete_post_modal.js?a=240"></script>
<div class="modal fade" id="deletePostModal" tabindex="-1" role="dialog" aria-labelledby="deletePostModalTitle" aria-hidden="true"> <div class="modal fade" id="deletePostModal" tabindex="-1" role="dialog" aria-labelledby="deletePostModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-dialog modal-dialog-centered" role="document">

View file

@ -86,7 +86,7 @@
</div> </div>
</div> </div>
<script data-cfasync="false" src="/static/assets/js/emoji_modal.js?a=238"></script> <script data-cfasync="false" src="/static/assets/js/emoji_modal.js?a=240"></script>
<style> <style>
a.emojitab { a.emojitab {

View file

@ -1,6 +1,6 @@
{% extends "default.html" %} {% extends "default.html" %}
{% block content %} {% block content %}
<script src="/static/assets/js/followers.js?a=220"></script> <script src="/static/assets/js/followers.js?a=240"></script>
<pre> <pre>

View file

@ -1,6 +1,6 @@
{% extends "default.html" %} {% extends "default.html" %}
{% block content %} {% block content %}
<script src="/static/assets/js/following.js?a=220"></script> <script src="/static/assets/js/following.js?a=240"></script>
<pre> <pre>

View file

@ -26,4 +26,4 @@
</div> </div>
</div> </div>
<script src="/static/assets/js/gif_modal.js?a=223"></script> <script src="/static/assets/js/gif_modal.js?a=240"></script>

View file

@ -211,7 +211,7 @@
</div> </div>
</nav> </nav>
<script src="/static/assets/js/header.js?a=220"></script> <script src="/static/assets/js/header.js?a=240"></script>
<style> <style>
.notif-count { .notif-count {

View file

@ -19,7 +19,7 @@
script.onload = resolve; script.onload = resolve;
script.onerror = reject; script.onerror = reject;
script.async = true; script.async = true;
script.src = "/static/assets/js/fp.js?a=220"; script.src = "/static/assets/js/fp.js?a=240";
document.head.appendChild(script); document.head.appendChild(script);
}) })
.then(() => FingerprintJS.load({token: '{{environ.get("FP")}}'})); .then(() => FingerprintJS.load({token: '{{environ.get("FP")}}'}));
@ -174,7 +174,7 @@
{% if PUSHER_ID and v %} {% if PUSHER_ID and v %}
<div class="d-none" id="strid">{{request.host}}{{v.id}}</div> <div class="d-none" id="strid">{{request.host}}{{v.id}}</div>
<div class="d-none" id="pusherid">{{PUSHER_ID}}</div> <div class="d-none" id="pusherid">{{PUSHER_ID}}</div>
<script src="/static/assets/js/pusher.js?a=220"></script> <script src="/static/assets/js/pusher.js?a=240"></script>
<script> <script>
if (typeof Android !== 'undefined') { if (typeof Android !== 'undefined') {
Android.Subscribe('{{request.host}}{{v.id}}'); Android.Subscribe('{{request.host}}{{v.id}}');

View file

@ -142,6 +142,6 @@
</div> </div>
</div> </div>
<script src="/static/assets/js/clipboard.js?a=220"></script> <script src="/static/assets/js/clipboard.js?a=240"></script>
{% endblock %} {% endblock %}

View file

@ -6,7 +6,7 @@
<meta name="description" content="{{config('DESCRIPTION')}}"> <meta name="description" content="{{config('DESCRIPTION')}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';"> <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/static/assets/js/bootstrap.js?a=220"></script> <script src="/static/assets/js/bootstrap.js?a=240"></script>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

View file

@ -68,7 +68,7 @@
</div> </div>
</div> </div>
<script src="/static/assets/js/mobile_navigation_bar.js?a=220"></script> <script src="/static/assets/js/mobile_navigation_bar.js?a=240"></script>
<style> <style>
.btn-dead:hover, .active.btn-dead:hover, .active.btn-dead { .btn-dead:hover, .active.btn-dead:hover, .active.btn-dead {

View file

@ -32,4 +32,4 @@
</div> </div>
</div> </div>
<script src="/static/assets/js/report_post_modal.js?a=224"></script> <script src="/static/assets/js/report_post_modal.js?a=240"></script>

View file

@ -5,7 +5,7 @@
<meta name="description" content="{{config('DESCRIPTION')}}"> <meta name="description" content="{{config('DESCRIPTION')}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';"> <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/static/assets/js/bootstrap.js?a=220"></script> <script src="/static/assets/js/bootstrap.js?a=240"></script>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
@ -258,7 +258,7 @@
{% block onload %}{% endblock %} {% block onload %}{% endblock %}
<script src="/static/assets/js/clipboard.js?a=220"></script> <script src="/static/assets/js/clipboard.js?a=240"></script>
<style> <style>
.navsettings { .navsettings {

View file

@ -6,7 +6,7 @@
<meta name="description" content="{{config('DESCRIPTION')}}"> <meta name="description" content="{{config('DESCRIPTION')}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';"> <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/static/assets/js/bootstrap.js?a=220"></script> <script src="/static/assets/js/bootstrap.js?a=240"></script>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

View file

@ -4,7 +4,7 @@
{% block content %} {% block content %}
<script src="/static/assets/js/settings_blocks.js?a=220"></script> <script src="/static/assets/js/settings_blocks.js?a=240"></script>
<div class="row"> <div class="row">

View file

@ -675,7 +675,7 @@
</div> </div>
<script src="/static/assets/js/settings_profile.js?a=220"></script> <script src="/static/assets/js/settings_profile.js?a=240"></script>
{% include "emoji_modal.html" %} {% include "emoji_modal.html" %}
{% include "gif_modal.html" %} {% include "gif_modal.html" %}

View file

@ -4,7 +4,7 @@
{% block content %} {% block content %}
<script src="/static/assets/js/settings_security.js?a=220"></script> <script src="/static/assets/js/settings_security.js?a=240"></script>
<div class="row"> <div class="row">

View file

@ -5,7 +5,7 @@
<meta name="description" content="{{config('DESCRIPTION')}}"> <meta name="description" content="{{config('DESCRIPTION')}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';"> <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/static/assets/js/bootstrap.js?a=220"></script> <script src="/static/assets/js/bootstrap.js?a=240"></script>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
@ -154,10 +154,10 @@
</div> </div>
</div> </div>
<script src="/static/assets/js/signup.js?a=220"></script> <script src="/static/assets/js/signup.js?a=240"></script>
{% if hcaptcha %} {% if hcaptcha %}
<script src="/static/assets/js/hcaptcha.js?a=220"></script> <script src="/static/assets/js/hcaptcha.js?a=240"></script>
{% endif %} {% endif %}
</body> </body>

View file

@ -6,7 +6,7 @@
<meta name="description" content="{{config('DESCRIPTION')}}"> <meta name="description" content="{{config('DESCRIPTION')}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';"> <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/static/assets/js/bootstrap.js?a=220"></script> <script src="/static/assets/js/bootstrap.js?a=240"></script>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

View file

@ -498,9 +498,9 @@
{% if p.domain == "twitter.com" %} {% if p.domain == "twitter.com" %}
{{p.embed_url | safe}} {{p.embed_url | safe}}
{% if v and v.theme.split("_")[0] in ["light", "coffee", "4chan"] %} {% if v and v.theme.split("_")[0] in ["light", "coffee", "4chan"] %}
<script src="/static/assets/js/twitterlight.js?a=220"></script> <script src="/static/assets/js/twitterlight.js?a=240"></script>
{% else %} {% else %}
<script src="/static/assets/js/twitter.js?a=220"></script> <script src="/static/assets/js/twitter.js?a=240"></script>
{% endif %} {% endif %}
{% elif p.domain in ['youtu.be','youtube.com'] and p.embed_url and p.embed_url.startswith('<lite-youtube') %} {% elif p.domain in ['youtu.be','youtube.com'] and p.embed_url and p.embed_url.startswith('<lite-youtube') %}
{{p.embed_url | safe}} {{p.embed_url | safe}}
@ -875,7 +875,7 @@
</div> </div>
{% if offset %} {% if offset %}
<script src="/static/assets/js/viewmore.js?a=223"></script> <script src="/static/assets/js/viewmore.js?a=240"></script>
{% endif %} {% endif %}
{% elif not p.replies and p.deleted_utc == 0 %} {% elif not p.replies and p.deleted_utc == 0 %}
@ -906,32 +906,32 @@
{% endif %} {% endif %}
{% if v and (v.id == p.author_id or v.admin_level > 1 and v.admin_level > 2) %} {% if v and (v.id == p.author_id or v.admin_level > 1 and v.admin_level > 2) %}
<script src="/static/assets/js/togglePostEdit.js?a=220"></script> <script src="/static/assets/js/togglePostEdit.js?a=240"></script>
{% endif %} {% endif %}
{% if v %} {% if v %}
<script src="/static/assets/js/submission.js?a=220"></script> <script src="/static/assets/js/submission.js?a=240"></script>
{% endif %} {% endif %}
{% if not v or v.highlightcomments %} {% if not v or v.highlightcomments %}
<script src="/static/assets/js/new_comments_count.js?a=220"></script> <script src="/static/assets/js/new_comments_count.js?a=240"></script>
{% endif %} {% endif %}
<script src="/static/assets/js/clipboard.js?a=220"></script> <script src="/static/assets/js/clipboard.js?a=240"></script>
{% if not p.comment_count %} {% if not p.comment_count %}
{% include "comments.html" %} {% include "comments.html" %}
{% endif %} {% endif %}
{% if p.award_count("shit") %} {% if p.award_count("shit") %}
<script src="/static/assets/js/critters.js?a=220"></script> <script src="/static/assets/js/critters.js?a=240"></script>
<script src="/static/assets/js/bugs.js?a=220"></script> <script src="/static/assets/js/bugs.js?a=240"></script>
{% endif %} {% endif %}
{% if p.award_count("fireflies") %} {% if p.award_count("fireflies") %}
<script src="/static/assets/js/critters.js?a=220"></script> <script src="/static/assets/js/critters.js?a=240"></script>
<script src="/static/assets/js/fireflies.js?a=220"></script> <script src="/static/assets/js/fireflies.js?a=240"></script>
{% endif %} {% endif %}

View file

@ -9,7 +9,7 @@
{% endif %} {% endif %}
{% if not v or v.highlightcomments %} {% if not v or v.highlightcomments %}
<script src="/static/assets/js/new_comments_count.js?a=220"></script> <script src="/static/assets/js/new_comments_count.js?a=240"></script>
{% endif %} {% endif %}
<div style="display:none" id="popover"> <div style="display:none" id="popover">
@ -676,6 +676,6 @@
} }
</style> </style>
<script src="/static/assets/js/clipboard.js?a=220"></script> <script src="/static/assets/js/clipboard.js?a=240"></script>
<script src="/static/assets/js/comments+submission_listing.js?a=223"></script> <script src="/static/assets/js/comments+submission_listing.js?a=240"></script>
<script src="/static/assets/js/submission_listing.js?a=221"></script> <script src="/static/assets/js/submission_listing.js?a=240"></script>

View file

@ -4,7 +4,7 @@
<meta name="description" content="{{config('DESCRIPTION')}}"> <meta name="description" content="{{config('DESCRIPTION')}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';"> <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/static/assets/js/bootstrap.js?a=220"></script> <script src="/static/assets/js/bootstrap.js?a=240"></script>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
@ -239,9 +239,9 @@
checkForRequired() checkForRequired()
</script> </script>
<script src="/static/assets/js/marked.js?a=220"></script> <script src="/static/assets/js/marked.js?a=240"></script>
<script src="/static/assets/js/formatting.js?a=220"></script> <script src="/static/assets/js/formatting.js?a=240"></script>
<script src="/static/assets/js/submit.js?a=220"></script> <script src="/static/assets/js/submit.js?a=240"></script>
{% include "emoji_modal.html" %} {% include "emoji_modal.html" %}
{% include "gif_modal.html" %} {% include "gif_modal.html" %}

View file

@ -692,11 +692,11 @@
{% if v %} {% if v %}
<div id='tax' class="d-none">{% if v.patron or u.patron or v.alts_patron or u.alts_patron %}0{% else %}0.03{% endif %}</div> <div id='tax' class="d-none">{% if v.patron or u.patron or v.alts_patron or u.alts_patron %}0{% else %}0.03{% endif %}</div>
<script src="/static/assets/js/userpage_v.js?a=222"></script> <script src="/static/assets/js/userpage_v.js?a=240"></script>
<div id="username" class="d-none">{{u.username}}</div> <div id="username" class="d-none">{{u.username}}</div>
{% endif %} {% endif %}
<script src="/static/assets/js/userpage.js?a=222"></script> <script src="/static/assets/js/userpage.js?a=240"></script>
{% endblock %} {% endblock %}
@ -722,7 +722,7 @@
</nav> </nav>
{% endif %} {% endif %}
<script src="/static/assets/js/marked.js?a=220"></script> <script src="/static/assets/js/marked.js?a=240"></script>
<style> <style>
.userbanner { .userbanner {

View file

@ -114,9 +114,9 @@
{% if v %} {% if v %}
<div id='tax' class="d-none">{% if v.patron or u.patron %}0{% else %}0.03{% endif %}</div> <div id='tax' class="d-none">{% if v.patron or u.patron %}0{% else %}0.03{% endif %}</div>
<script src="/static/assets/js/userpage_v.js?a=222"></script> <script src="/static/assets/js/userpage_v.js?a=240"></script>
<div id="username" class="d-none">{{u.username}}</div> <div id="username" class="d-none">{{u.username}}</div>
{% endif %} {% endif %}
<script src="/static/assets/js/userpage.js?a=222"></script> <script src="/static/assets/js/userpage.js?a=240"></script>
{% endblock %} {% endblock %}

View file

@ -48,9 +48,9 @@
{% if v %} {% if v %}
<div id='tax' class="d-none">{% if v.patron or u.patron %}0{% else %}0.03{% endif %}</div> <div id='tax' class="d-none">{% if v.patron or u.patron %}0{% else %}0.03{% endif %}</div>
<script src="/static/assets/js/userpage_v.js?a=222"></script> <script src="/static/assets/js/userpage_v.js?a=240"></script>
<div id="username" class="d-none">{{u.username}}</div> <div id="username" class="d-none">{{u.username}}</div>
{% endif %} {% endif %}
<script src="/static/assets/js/userpage.js?a=222"></script> <script src="/static/assets/js/userpage.js?a=240"></script>
{% endblock %} {% endblock %}