f
This commit is contained in:
parent
412d29824f
commit
3a9a629fbe
47 changed files with 119 additions and 116 deletions
|
@ -125,7 +125,7 @@ function buy(mb) {
|
|||
catch(e) {console.log(e)}
|
||||
if (xhr.status >= 200 && xhr.status < 300 && data && 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;
|
||||
let owned = document.getElementById(`${kind}-owned`)
|
||||
let ownednum = Number(owned.textContent);
|
||||
|
@ -133,7 +133,7 @@ function buy(mb) {
|
|||
} else {
|
||||
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"];
|
||||
new bootstrap.Toast(document.getElementById('toast-post-error2')).show();
|
||||
bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error2')).show();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ function banModal(link, id, name) {
|
|||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
|
||||
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();
|
||||
document.getElementById('toast-post-success-text').innerHTML = `@${name} banned`;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
var clipboard = new ClipboardJS('.copy-link');
|
||||
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();
|
||||
});
|
|
@ -22,7 +22,7 @@ function popovertrigger() {
|
|||
const popoverId = popoverTriggerEl.getAttribute('data-content-id');
|
||||
const contentEl = document.getElementById(popoverId);
|
||||
if (contentEl) {
|
||||
return new bootstrap.Popover(popoverTriggerEl, {
|
||||
return bootstrap.Popover.getOrCreateInstance(popoverTriggerEl, {
|
||||
content: contentEl.innerHTML,
|
||||
html: true,
|
||||
});
|
||||
|
|
|
@ -12,7 +12,7 @@ function collapse_comment(comment_id) {
|
|||
|
||||
function poll_vote_no_v() {
|
||||
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) {
|
||||
|
@ -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, '');
|
||||
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
|
||||
tooltipTriggerList.map(function(element){
|
||||
return new bootstrap.Tooltip(element);
|
||||
return bootstrap.Tooltip.getOrCreateInstance(element);
|
||||
});
|
||||
popovertrigger()
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ function post_toast3(url, button1, button2) {
|
|||
catch(e) {console.log(e)}
|
||||
if (xhr.status >= 200 && xhr.status < 300 && data && 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(button2).classList.toggle("d-md-inline-block");
|
||||
|
@ -37,7 +37,7 @@ function post_toast3(url, button1, button2) {
|
|||
} else {
|
||||
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"];
|
||||
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"];
|
||||
}
|
||||
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');
|
||||
}
|
||||
|
@ -181,7 +181,7 @@ function comment_edit(id){
|
|||
document.getElementById('toast-post-error-text').innerText = data["error"];
|
||||
}
|
||||
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');
|
||||
}
|
||||
|
@ -215,7 +215,7 @@ function post_comment(fullname){
|
|||
document.getElementById('toast-post-error-text').innerText = data["error"];
|
||||
}
|
||||
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');
|
||||
}
|
||||
|
|
|
@ -16,11 +16,11 @@ function delete_postModal(id) {
|
|||
document.getElementById(`delete2-${id}`).classList.add('d-none');
|
||||
document.getElementById(`undelete2-${id}`).classList.remove('d-none');
|
||||
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 {
|
||||
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"];
|
||||
new bootstrap.Toast(document.getElementById('toast-post-error')).show();
|
||||
bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error')).show();
|
||||
}
|
||||
};
|
||||
xhr.send(form);
|
||||
|
|
|
@ -6,7 +6,7 @@ function formkey() {
|
|||
|
||||
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
|
||||
tooltipTriggerList.map(function(element){
|
||||
return new bootstrap.Tooltip(element);
|
||||
return bootstrap.Tooltip.getOrCreateInstance(element);
|
||||
});
|
||||
|
||||
function post_toast(url, reload, data) {
|
||||
|
@ -28,12 +28,12 @@ function post_toast(url, reload, data) {
|
|||
catch(e) {console.log(e)}
|
||||
if (xhr.status >= 200 && xhr.status < 300 && data && 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)}
|
||||
} else {
|
||||
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"];
|
||||
new bootstrap.Toast(document.getElementById('toast-post-error')).show();
|
||||
bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error')).show();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ function post_toast2(url, button1, button2) {
|
|||
catch(e) {console.log(e)}
|
||||
if (xhr.status >= 200 && xhr.status < 300 && data && 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(button2).classList.toggle("d-none");
|
||||
|
@ -28,7 +28,7 @@ function post_toast2(url, button1, button2) {
|
|||
} else {
|
||||
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"];
|
||||
new bootstrap.Toast(document.getElementById('toast-post-error')).show();
|
||||
bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error')).show();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -19,9 +19,9 @@ function block_user() {
|
|||
location.reload(true);
|
||||
}
|
||||
else {
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
|
||||
var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success'));
|
||||
myToast.hide();
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
|
||||
var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error'));
|
||||
myToast.show();
|
||||
document.getElementById("toast-error-message").textContent = "Error. Please try again later.";
|
||||
}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
function expandText(id) {
|
||||
document.getElementById('post-text-'+id).classList.toggle('d-none');
|
||||
document.getElementsByClassName('text-expand-icon-'+id)[0].classList.toggle('fa-expand-alt');
|
||||
document.getElementsByClassName('text-expand-icon-'+id)[0].classList.toggle('fa-compress-alt');
|
||||
for (const e of document.getElementsByClassName('text-expand-icon-'+id))
|
||||
{
|
||||
e.classList.toggle('fa-expand-alt');
|
||||
e.classList.toggle('fa-compress-alt');
|
||||
}
|
||||
};
|
||||
|
||||
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
|
@ -15,10 +15,10 @@ function post_toast_callback(url, data, callback) {
|
|||
xhr.onload = function() {
|
||||
let result = callback(xhr);
|
||||
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();
|
||||
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
|
||||
var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success'));
|
||||
myToast.show();
|
||||
|
||||
try {
|
||||
|
@ -32,10 +32,10 @@ function post_toast_callback(url, data, callback) {
|
|||
|
||||
return true;
|
||||
} else {
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
|
||||
var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success'));
|
||||
myToast.hide();
|
||||
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
|
||||
var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error'));
|
||||
myToast.show();
|
||||
|
||||
try {
|
||||
|
@ -154,7 +154,7 @@ function submitFormAjax(e) {
|
|||
} catch(e) {
|
||||
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();
|
||||
return true
|
||||
} 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."
|
||||
try {
|
||||
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();
|
||||
document.getElementById('toast-post-error-text').innerText = data["error"];
|
||||
} catch(e) {
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
|
||||
var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success'));
|
||||
myToast.hide();
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
|
||||
var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error'));
|
||||
myToast.show();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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, '');
|
||||
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
|
||||
tooltipTriggerList.map(function(element){
|
||||
return new bootstrap.Tooltip(element);
|
||||
return bootstrap.Tooltip.getOrCreateInstance(element);
|
||||
});
|
||||
popovertrigger()
|
||||
btn.disabled = false;
|
||||
|
|
|
@ -116,5 +116,5 @@ class Slots:
|
|||
def build_text(self, wager_value, result, user, currency):
|
||||
if result == 0: return f'Lost {wager_value} {currency}'
|
||||
elif result == 1: return 'Broke Even'
|
||||
elif result == 12: return f'Jackpot! Won {wager_value * result} {currency}'
|
||||
else: return f'Won {wager_value * result} {currency}'
|
||||
elif result == 12: return f'Jackpot! Won {wager_value * (result-1)} {currency}'
|
||||
else: return f'Won {wager_value * (result-1)} {currency}'
|
|
@ -229,12 +229,12 @@ def award_post(pid, v):
|
|||
|
||||
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!"
|
||||
if note: msg += f"\n\n> {note}"
|
||||
send_repeatable_notification(post.author.id, msg)
|
||||
|
||||
author = post.author
|
||||
send_repeatable_notification(author.id, msg)
|
||||
|
||||
if kind == "benefactor" and author.id == v.id:
|
||||
return {"error": "You can't use this award on yourself."}, 400
|
||||
|
@ -420,9 +420,9 @@ def award_post(pid, v):
|
|||
g.db.flush()
|
||||
send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n\n\n{badge.name}")
|
||||
|
||||
if post.author.received_award_count: post.author.received_award_count += 1
|
||||
else: post.author.received_award_count = 1
|
||||
g.db.add(post.author)
|
||||
if author.received_award_count: author.received_award_count += 1
|
||||
else: author.received_award_count = 1
|
||||
g.db.add(author)
|
||||
|
||||
g.db.commit()
|
||||
if request.referrer and len(request.referrer) > 1:
|
||||
|
@ -469,12 +469,12 @@ def award_comment(cid, v):
|
|||
|
||||
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!"
|
||||
if note: msg += f"\n\n> {note}"
|
||||
send_repeatable_notification(c.author.id, msg)
|
||||
|
||||
author = c.author
|
||||
send_repeatable_notification(author.id, msg)
|
||||
|
||||
if kind == "benefactor" and author.id == v.id:
|
||||
return {"error": "You can't use this award on yourself."}, 400
|
||||
|
@ -654,9 +654,9 @@ def award_comment(cid, v):
|
|||
g.db.flush()
|
||||
send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n\n\n{badge.name}")
|
||||
|
||||
if c.author.received_award_count: c.author.received_award_count += 1
|
||||
else: c.author.received_award_count = 1
|
||||
g.db.add(c.author)
|
||||
if author.received_award_count: author.received_award_count += 1
|
||||
else: author.received_award_count = 1
|
||||
g.db.add(author)
|
||||
|
||||
g.db.commit()
|
||||
if request.referrer and len(request.referrer) > 1 and request.host in request.referrer:
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
{% 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>
|
||||
<h5 style="font-weight:bold;">Admins</h5>
|
||||
|
|
|
@ -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-dialog modal-dialog-scrollable modal-dialog-centered awardmodal my-5" role="document">
|
||||
<div class="modal-content">
|
||||
|
|
|
@ -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-dialog modal-dialog-centered" role="document">
|
||||
|
|
|
@ -104,6 +104,6 @@
|
|||
</nav>
|
||||
{% endif %}
|
||||
|
||||
<script src="/static/assets/js/post_toast2.js?a=220"></script>
|
||||
<script src="/static/assets/js/post_toast2.js?a=240"></script>
|
||||
|
||||
{% endblock %}
|
|
@ -266,9 +266,9 @@
|
|||
{% elif blackjack_status == 'lost' %}
|
||||
<strong>Lost {{wager}} Coins.</strong>
|
||||
{% elif blackjack_status == 'won' %}
|
||||
<strong>Won {{wager|int * 2}} Coins.</strong>
|
||||
<strong>Won {{wager}} Coins.</strong>
|
||||
{% 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 %}
|
||||
</div>
|
||||
|
@ -903,20 +903,20 @@
|
|||
</style>
|
||||
|
||||
{% if v %}
|
||||
<script src="/static/assets/js/marked.js?a=220"></script>
|
||||
<script src="/static/assets/js/comments_v.js?a=239"></script>
|
||||
<script src="/static/assets/js/marked.js?a=240"></script>
|
||||
<script src="/static/assets/js/comments_v.js?a=240"></script>
|
||||
{% 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 %}
|
||||
<script src="/static/assets/js/comments_admin.js?a=220"></script>
|
||||
<script src="/static/assets/js/comments_admin.js?a=240"></script>
|
||||
{% endif %}
|
||||
|
||||
{% include "expanded_image_modal.html" %}
|
||||
|
||||
<script src="/static/assets/js/comments+submission_listing.js?a=223"></script>
|
||||
<script src="/static/assets/js/comments.js?a=221"></script>
|
||||
<script src="/static/assets/js/comments+submission_listing.js?a=240"></script>
|
||||
<script src="/static/assets/js/comments.js?a=240"></script>
|
||||
|
||||
<script>
|
||||
{% if p and (not v or v.highlightcomments) %}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<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';">
|
||||
|
||||
<script src="/static/assets/js/bootstrap.js?a=220"></script>
|
||||
<script src="/static/assets/js/bootstrap.js?a=240"></script>
|
||||
{% if v %}
|
||||
<style>:root{--primary:#{{v.themecolor}}}</style>
|
||||
<link rel="stylesheet" href="/static/assets/css/main.css?a=104">
|
||||
|
@ -314,15 +314,15 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/static/assets/js/lozad.js?a=220"></script>
|
||||
<script src="/static/assets/js/lozad.js?a=240"></script>
|
||||
|
||||
{% if v %}
|
||||
<script src="/static/assets/js/post_toast2.js?a=220"></script>
|
||||
<script src="/static/assets/js/formatting.js?a=220"></script>
|
||||
<script src="/static/assets/js/default.js?a=220"></script>
|
||||
<script src="/static/assets/js/post_toast2.js?a=240"></script>
|
||||
<script src="/static/assets/js/formatting.js?a=240"></script>
|
||||
<script src="/static/assets/js/default.js?a=240"></script>
|
||||
{% endif %}
|
||||
|
||||
<script src="/static/assets/js/lite-youtube.js?a=220"></script>
|
||||
<script src="/static/assets/js/lite-youtube.js?a=240"></script>
|
||||
|
||||
</body>
|
||||
|
||||
|
|
|
@ -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-dialog modal-dialog-centered" role="document">
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
</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>
|
||||
a.emojitab {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{% extends "default.html" %}
|
||||
{% block content %}
|
||||
<script src="/static/assets/js/followers.js?a=220"></script>
|
||||
<script src="/static/assets/js/followers.js?a=240"></script>
|
||||
<pre>
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{% extends "default.html" %}
|
||||
{% block content %}
|
||||
<script src="/static/assets/js/following.js?a=220"></script>
|
||||
<script src="/static/assets/js/following.js?a=240"></script>
|
||||
<pre>
|
||||
|
||||
|
||||
|
|
|
@ -26,4 +26,4 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/static/assets/js/gif_modal.js?a=223"></script>
|
||||
<script src="/static/assets/js/gif_modal.js?a=240"></script>
|
|
@ -211,7 +211,7 @@
|
|||
</div>
|
||||
</nav>
|
||||
|
||||
<script src="/static/assets/js/header.js?a=220"></script>
|
||||
<script src="/static/assets/js/header.js?a=240"></script>
|
||||
|
||||
<style>
|
||||
.notif-count {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
script.onload = resolve;
|
||||
script.onerror = reject;
|
||||
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);
|
||||
})
|
||||
.then(() => FingerprintJS.load({token: '{{environ.get("FP")}}'}));
|
||||
|
@ -174,7 +174,7 @@
|
|||
{% if PUSHER_ID and v %}
|
||||
<div class="d-none" id="strid">{{request.host}}{{v.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>
|
||||
if (typeof Android !== 'undefined') {
|
||||
Android.Subscribe('{{request.host}}{{v.id}}');
|
||||
|
|
|
@ -142,6 +142,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/static/assets/js/clipboard.js?a=220"></script>
|
||||
<script src="/static/assets/js/clipboard.js?a=240"></script>
|
||||
|
||||
{% endblock %}
|
|
@ -6,7 +6,7 @@
|
|||
<meta name="description" content="{{config('DESCRIPTION')}}">
|
||||
<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 name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
</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>
|
||||
.btn-dead:hover, .active.btn-dead:hover, .active.btn-dead {
|
||||
|
|
|
@ -32,4 +32,4 @@
|
|||
</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>
|
|
@ -5,7 +5,7 @@
|
|||
<meta name="description" content="{{config('DESCRIPTION')}}">
|
||||
<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 name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
@ -258,7 +258,7 @@
|
|||
|
||||
{% block onload %}{% endblock %}
|
||||
|
||||
<script src="/static/assets/js/clipboard.js?a=220"></script>
|
||||
<script src="/static/assets/js/clipboard.js?a=240"></script>
|
||||
|
||||
<style>
|
||||
.navsettings {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<meta name="description" content="{{config('DESCRIPTION')}}">
|
||||
<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 name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
{% 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">
|
||||
|
||||
|
|
|
@ -675,7 +675,7 @@
|
|||
</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 "gif_modal.html" %}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
{% 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">
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta name="description" content="{{config('DESCRIPTION')}}">
|
||||
<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 name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
@ -154,10 +154,10 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/static/assets/js/signup.js?a=220"></script>
|
||||
<script src="/static/assets/js/signup.js?a=240"></script>
|
||||
|
||||
{% if hcaptcha %}
|
||||
<script src="/static/assets/js/hcaptcha.js?a=220"></script>
|
||||
<script src="/static/assets/js/hcaptcha.js?a=240"></script>
|
||||
{% endif %}
|
||||
|
||||
</body>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<meta name="description" content="{{config('DESCRIPTION')}}">
|
||||
<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 name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
|
|
@ -498,9 +498,9 @@
|
|||
{% if p.domain == "twitter.com" %}
|
||||
{{p.embed_url | safe}}
|
||||
{% 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 %}
|
||||
<script src="/static/assets/js/twitter.js?a=220"></script>
|
||||
<script src="/static/assets/js/twitter.js?a=240"></script>
|
||||
{% endif %}
|
||||
{% elif p.domain in ['youtu.be','youtube.com'] and p.embed_url and p.embed_url.startswith('<lite-youtube') %}
|
||||
{{p.embed_url | safe}}
|
||||
|
@ -875,7 +875,7 @@
|
|||
</div>
|
||||
|
||||
{% if offset %}
|
||||
<script src="/static/assets/js/viewmore.js?a=223"></script>
|
||||
<script src="/static/assets/js/viewmore.js?a=240"></script>
|
||||
{% endif %}
|
||||
|
||||
{% elif not p.replies and p.deleted_utc == 0 %}
|
||||
|
@ -906,32 +906,32 @@
|
|||
{% endif %}
|
||||
|
||||
{% 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 %}
|
||||
|
||||
{% if v %}
|
||||
<script src="/static/assets/js/submission.js?a=220"></script>
|
||||
<script src="/static/assets/js/submission.js?a=240"></script>
|
||||
{% endif %}
|
||||
|
||||
{% 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 %}
|
||||
|
||||
<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 %}
|
||||
{% include "comments.html" %}
|
||||
{% endif %}
|
||||
|
||||
{% if p.award_count("shit") %}
|
||||
<script src="/static/assets/js/critters.js?a=220"></script>
|
||||
<script src="/static/assets/js/bugs.js?a=220"></script>
|
||||
<script src="/static/assets/js/critters.js?a=240"></script>
|
||||
<script src="/static/assets/js/bugs.js?a=240"></script>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if p.award_count("fireflies") %}
|
||||
<script src="/static/assets/js/critters.js?a=220"></script>
|
||||
<script src="/static/assets/js/fireflies.js?a=220"></script>
|
||||
<script src="/static/assets/js/critters.js?a=240"></script>
|
||||
<script src="/static/assets/js/fireflies.js?a=240"></script>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
{% endif %}
|
||||
|
||||
{% 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 %}
|
||||
|
||||
<div style="display:none" id="popover">
|
||||
|
@ -676,6 +676,6 @@
|
|||
}
|
||||
</style>
|
||||
|
||||
<script src="/static/assets/js/clipboard.js?a=220"></script>
|
||||
<script src="/static/assets/js/comments+submission_listing.js?a=223"></script>
|
||||
<script src="/static/assets/js/submission_listing.js?a=221"></script>
|
||||
<script src="/static/assets/js/clipboard.js?a=240"></script>
|
||||
<script src="/static/assets/js/comments+submission_listing.js?a=240"></script>
|
||||
<script src="/static/assets/js/submission_listing.js?a=240"></script>
|
|
@ -4,7 +4,7 @@
|
|||
<meta name="description" content="{{config('DESCRIPTION')}}">
|
||||
<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 name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
@ -239,9 +239,9 @@
|
|||
checkForRequired()
|
||||
</script>
|
||||
|
||||
<script src="/static/assets/js/marked.js?a=220"></script>
|
||||
<script src="/static/assets/js/formatting.js?a=220"></script>
|
||||
<script src="/static/assets/js/submit.js?a=220"></script>
|
||||
<script src="/static/assets/js/marked.js?a=240"></script>
|
||||
<script src="/static/assets/js/formatting.js?a=240"></script>
|
||||
<script src="/static/assets/js/submit.js?a=240"></script>
|
||||
{% include "emoji_modal.html" %}
|
||||
{% include "gif_modal.html" %}
|
||||
|
||||
|
|
|
@ -692,11 +692,11 @@
|
|||
|
||||
{% 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>
|
||||
<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>
|
||||
{% endif %}
|
||||
|
||||
<script src="/static/assets/js/userpage.js?a=222"></script>
|
||||
<script src="/static/assets/js/userpage.js?a=240"></script>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
@ -722,7 +722,7 @@
|
|||
</nav>
|
||||
{% endif %}
|
||||
|
||||
<script src="/static/assets/js/marked.js?a=220"></script>
|
||||
<script src="/static/assets/js/marked.js?a=240"></script>
|
||||
|
||||
<style>
|
||||
.userbanner {
|
||||
|
|
|
@ -114,9 +114,9 @@
|
|||
|
||||
{% if v %}
|
||||
<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>
|
||||
{% endif %}
|
||||
|
||||
<script src="/static/assets/js/userpage.js?a=222"></script>
|
||||
<script src="/static/assets/js/userpage.js?a=240"></script>
|
||||
{% endblock %}
|
|
@ -48,9 +48,9 @@
|
|||
|
||||
{% if v %}
|
||||
<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>
|
||||
{% endif %}
|
||||
|
||||
<script src="/static/assets/js/userpage.js?a=222"></script>
|
||||
<script src="/static/assets/js/userpage.js?a=240"></script>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue