This commit is contained in:
Aevann1 2022-03-21 22:21:22 +02:00
parent 5c9d531900
commit f5100ee41b
8 changed files with 10 additions and 20 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Before After
Before After

View file

@ -15,7 +15,7 @@ function vote(vid, type, id, dir) {
upvote.classList.remove('active') upvote.classList.remove('active')
scoretext.textContent = score - 1 scoretext.textContent = score - 1
votedirection = "0" votedirection = "0"
if (vid == '1' && type == 'post') if (vid == '1' && type.startsWith('post'))
document.getElementById(id+'-title').classList.remove('visited') document.getElementById(id+'-title').classList.remove('visited')
} else if (downvote.classList.contains('active')) { } else if (downvote.classList.contains('active')) {
upvote.classList.add('active') upvote.classList.add('active')
@ -28,7 +28,7 @@ function vote(vid, type, id, dir) {
votedirection = "1" votedirection = "1"
console.log(vid) console.log(vid)
console.log(type) console.log(type)
if (vid == '1' && type == 'post') if (vid == '1' && type.startsWith('post'))
document.getElementById(id+'-title').classList.add('visited') document.getElementById(id+'-title').classList.add('visited')
} }
@ -51,7 +51,7 @@ function vote(vid, type, id, dir) {
downvote.classList.remove('active') downvote.classList.remove('active')
scoretext.textContent = score + 1 scoretext.textContent = score + 1
votedirection = "0" votedirection = "0"
if (vid == '1' && type == 'post') if (vid == '1' && type.startsWith('post'))
document.getElementById(id+'-title').classList.remove('visited') document.getElementById(id+'-title').classList.remove('visited')
} else if (upvote.classList.contains('active')) { } else if (upvote.classList.contains('active')) {
downvote.classList.add('active') downvote.classList.add('active')
@ -62,7 +62,7 @@ function vote(vid, type, id, dir) {
downvote.classList.add('active') downvote.classList.add('active')
scoretext.textContent = score - 1 scoretext.textContent = score - 1
votedirection = "-1" votedirection = "-1"
if (vid == '1' && type == 'post') if (vid == '1' && type.startsWith('post'))
document.getElementById(id+'-title').classList.add('visited') document.getElementById(id+'-title').classList.add('visited')
} }

View file

@ -76,7 +76,6 @@ SLURS = {
"sheeny": "Israeli friend", "sheeny": "Israeli friend",
"sheenies": "Israeli friends", "sheenies": "Israeli friends",
"hymie": "Israeli friend", "hymie": "Israeli friend",
"god": "Allah (SWT)",
"allah": "Allah (SWT)", "allah": "Allah (SWT)",
"mohammad": "Prophet Mohammad (PBUH)", "mohammad": "Prophet Mohammad (PBUH)",
"muhammad": "Prophet Mohammad (PBUH)", "muhammad": "Prophet Mohammad (PBUH)",

View file

@ -177,9 +177,9 @@ def front_all(v, sub=None, subdomain=None):
try: lt=int(request.values.get("utc_less_than", 0)) try: lt=int(request.values.get("utc_less_than", 0))
except: lt=0 except: lt=0
if SITE_NAME == 'Drama': defaultsubs = 1 if v: subs = v.subs
else: defaultsubs = 2 elif SITE_NAME == 'Drama': subs = 1
subs = v.subs if v else defaultsubs else: subs = 2
ids, next_exists = frontlist(sort=sort, ids, next_exists = frontlist(sort=sort,
page=page, page=page,

View file

@ -1,4 +1,4 @@
<script src="/static/assets/js/award_modal.js?v=244"></script> <script src="/static/assets/js/award_modal.js?v=245"></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

@ -233,7 +233,7 @@
<img alt="/h/{{sub.name}} banner" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{sub.banner_url}}')" loading="lazy" src="{{sub.banner_url}}" width=100% style="object-fit:cover;max-height:25vw"> <img alt="/h/{{sub.name}} banner" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{sub.banner_url}}')" loading="lazy" src="{{sub.banner_url}}" width=100% style="object-fit:cover;max-height:25vw">
{% elif SITE_NAME == 'Drama' %} {% elif SITE_NAME == 'Drama' %}
{% set path = "assets/images/" + SITE_NAME + "/banners" %} {% set path = "assets/images/" + SITE_NAME + "/banners" %}
{% set image = "/static/" + path + "/" + listdir('files/' + path)|random() + '?v=22' %} {% set image = "/static/" + path + "/" + listdir('files/' + path)|random() + '?v=23' %}
<a href="https://secure.transequality.org/site/Donation2?df_id=1480"> <a href="https://secure.transequality.org/site/Donation2?df_id=1480">
<img alt="site banner" src="{{image}}" width="100%"> <img alt="site banner" src="{{image}}" width="100%">

View file

@ -11,15 +11,6 @@
<h1 class="h2">{{application.app_name}}</h1> <h1 class="h2">{{application.app_name}}</h1>
<p class="mb-md-5">wants to access your @{{v.username}} account.</p> <p class="mb-md-5">wants to access your @{{v.username}} account.</p>
<p>It will be able to:</p>
<ul>
{% for scope in scopes %}
<li>{{SCOPES[scope]}}</li>
{% endfor %}
{% if permanent %}
<li>Maintain this access indefinitely, or until you revoke it</li>
{% endif %}
</ul>
<p class="mb-md-5">It will not be able to see your password, or change your account settings.</p> <p class="mb-md-5">It will not be able to see your password, or change your account settings.</p>

View file

@ -4,7 +4,7 @@
{% set image=sub.sidebar_url %} {% set image=sub.sidebar_url %}
{% else %} {% else %}
{% set path = "assets/images/" + SITE_NAME + "/sidebar" %} {% set path = "assets/images/" + SITE_NAME + "/sidebar" %}
{% set image = "/static/" + path + "/" + listdir('files/' + path)|random() + '?v=35' %} {% set image = "/static/" + path + "/" + listdir('files/' + path)|random() + '?v=36' %}
{% endif %} {% endif %}
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%> <img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%>