cleanup in aisle 4
parent
8c08818d35
commit
3e6622c511
|
@ -153,7 +153,7 @@ h5.post-title a:visited {
|
|||
}
|
||||
|
||||
.spoiler, spoiler {
|
||||
background-color: black !important;
|
||||
background-color: black !important;
|
||||
}
|
||||
|
||||
*:target, .unread {
|
||||
|
|
|
@ -26,17 +26,17 @@
|
|||
}
|
||||
|
||||
.chat-mention {
|
||||
position: relative;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.chat-mention::before {
|
||||
content: "";
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
background-color: var(--primary);
|
||||
opacity: 0.2;
|
||||
content: "";
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
background-color: var(--primary);
|
||||
opacity: 0.2;
|
||||
pointer-events: none !important;
|
||||
}
|
||||
|
||||
|
@ -91,12 +91,12 @@ p {
|
|||
color: var(--black);
|
||||
font-size: 12px;
|
||||
margin-top: auto;
|
||||
margin-bottom: auto;
|
||||
margin-bottom: auto;
|
||||
}
|
||||
|
||||
lite-youtube {
|
||||
max-width: min(70vw,500px) !important;
|
||||
width: 500px;
|
||||
width: 500px;
|
||||
}
|
||||
|
||||
.chat-group:nth-child(even) {
|
||||
|
@ -104,7 +104,7 @@ lite-youtube {
|
|||
}
|
||||
|
||||
.btn-secondary {
|
||||
border: none !important;
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
#cancel {
|
||||
|
@ -132,7 +132,7 @@ lite-youtube {
|
|||
.chat-message {
|
||||
max-height: 50vh;
|
||||
overflow: auto;
|
||||
max-width: 80%;
|
||||
max-width: 80%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
|
@ -141,14 +141,14 @@ lite-youtube {
|
|||
}
|
||||
|
||||
.resizable>video {
|
||||
max-height: 28vh!important;
|
||||
max-height: 28vh!important;
|
||||
margin: 14px 0 0 0!important;
|
||||
}
|
||||
|
||||
img[alt^="![]("], .img {
|
||||
width: 90%;
|
||||
object-fit: contain;
|
||||
object-position: left;
|
||||
width: 90%;
|
||||
object-fit: contain;
|
||||
object-position: left;
|
||||
}
|
||||
|
||||
* {
|
||||
|
@ -165,5 +165,5 @@ img[alt^="![]("], .img {
|
|||
}
|
||||
|
||||
#online > li, #online3 > li {
|
||||
margin-top: 0.35rem;
|
||||
margin-top: 0.35rem;
|
||||
}
|
||||
|
|
|
@ -59,8 +59,8 @@
|
|||
}
|
||||
|
||||
blockquote {
|
||||
background-color: #333;
|
||||
color: #ddd;
|
||||
background-color: #333;
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
.text-muted {
|
||||
|
@ -110,5 +110,5 @@ h5.post-title a:visited {
|
|||
}
|
||||
|
||||
.spoiler, spoiler {
|
||||
background-color: black !important;
|
||||
background-color: black !important;
|
||||
}
|
||||
|
|
|
@ -97,5 +97,5 @@ h5.post-title a:visited {
|
|||
}
|
||||
|
||||
[disabled], .disabled, button[disabled], .btn[disabled], button.disabled, .btn.disabled {
|
||||
color: #bbb !important;
|
||||
color: #bbb !important;
|
||||
}
|
||||
|
|
|
@ -149,5 +149,5 @@ h5.post-title a:visited {
|
|||
}
|
||||
|
||||
.modal .comment-actions .list-group-item {
|
||||
background-color: rgb(var(--background));
|
||||
background-color: rgb(var(--background));
|
||||
}
|
||||
|
|
|
@ -1608,7 +1608,7 @@ nav
|
|||
}
|
||||
.pagination-sm .page-link {
|
||||
padding: 0.25rem min(20px, 3vw);
|
||||
font-size: min(25px, 5.8vw);
|
||||
font-size: min(25px, 5.8vw);
|
||||
line-height: 1.5;
|
||||
}
|
||||
.pagination-sm .page-item:first-child .page-link {
|
||||
|
@ -6676,13 +6676,13 @@ g {
|
|||
.queen:not(a) {
|
||||
color: hotpink !important;
|
||||
font-weight: 700 !important;
|
||||
text-transform: lowercase !important;
|
||||
text-transform: lowercase !important;
|
||||
}
|
||||
|
||||
.sharpen:not(a) {
|
||||
color: red !important;
|
||||
font-weight: bold !important;
|
||||
font-style: italic !important;
|
||||
font-style: italic !important;
|
||||
}
|
||||
|
||||
.sharpen-0:after {
|
||||
|
@ -6880,7 +6880,7 @@ div.markdown {
|
|||
max-height: 100%;
|
||||
height: 100%;
|
||||
margin-top: 0 !important;
|
||||
margin-bottom: 0 !important;
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
#desktop-expanded-image {
|
||||
|
@ -7220,7 +7220,7 @@ body {
|
|||
width: 200px;
|
||||
max-height: 100vh !important;
|
||||
object-fit: contain;
|
||||
object-position: left;
|
||||
object-position: left;
|
||||
}
|
||||
|
||||
.navbar-nav > .nav-item {
|
||||
|
|
|
@ -62,7 +62,7 @@ h5.post-title a:visited {
|
|||
}
|
||||
|
||||
.modal-content {
|
||||
border: 1px var(--gray-500) solid;
|
||||
border: 1px var(--gray-500) solid;
|
||||
}
|
||||
|
||||
[disabled], .disabled, button[disabled], .btn[disabled], button.disabled, .btn.disabled {
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
.orgy-top-container {
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
justify-content: space-around;
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.orgy-chat-window-item {
|
||||
flex-grow: 2;
|
||||
width: fit-content;
|
||||
flex-grow: 2;
|
||||
width: fit-content;
|
||||
}
|
||||
.orgy-info-window-item {
|
||||
max-width: 550px;
|
||||
width: 550px;
|
||||
max-width: 550px;
|
||||
width: 550px;
|
||||
}
|
|
@ -171,9 +171,9 @@ h5.post-title a:visited {
|
|||
}
|
||||
|
||||
.spoiler, spoiler {
|
||||
background-color: black !important;
|
||||
background-color: black !important;
|
||||
}
|
||||
|
||||
.sidebar--rules {
|
||||
color: black;
|
||||
color: black;
|
||||
}
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
@font-face {
|
||||
font-family: "Burbank Small Medium";
|
||||
src: url("/assets/events/fistmas/fonts/Burbank-Small-Medium.woff2") format("woff2"),
|
||||
url("/assets/events/fistmas/fonts/Burbank-Small-Medium.woff") format("woff"),
|
||||
url("/assets/events/fistmas/fonts/Burbank-Small-Medium.ttf") format("truetype");
|
||||
url("/assets/events/fistmas/fonts/Burbank-Small-Medium.woff") format("woff"),
|
||||
url("/assets/events/fistmas/fonts/Burbank-Small-Medium.ttf") format("truetype");
|
||||
}
|
||||
|
||||
:root {
|
||||
|
@ -136,15 +136,15 @@ color: #7a7a7a !important;
|
|||
}
|
||||
|
||||
body {
|
||||
cursor: url(/assets/events/fistmas/images/cursor.webp?x=6), auto !important;
|
||||
cursor: url(/assets/events/fistmas/images/cursor.webp?x=6), auto !important;
|
||||
}
|
||||
|
||||
textarea, input[type=textbox], input[type=search] {
|
||||
cursor: url(/assets/events/fistmas/images/text.webp?x=6) 9 14, auto !important;
|
||||
cursor: url(/assets/events/fistmas/images/text.webp?x=6) 9 14, auto !important;
|
||||
}
|
||||
|
||||
.btn, input[type=button], button, a {
|
||||
cursor: url(/assets/events/fistmas/images/pointer.webp?x=6), auto !important;
|
||||
cursor: url(/assets/events/fistmas/images/pointer.webp?x=6), auto !important;
|
||||
}
|
||||
|
||||
.fa-moon-over-sun:before{content:"\f74a"}
|
||||
|
@ -441,10 +441,10 @@ body {
|
|||
|
||||
@keyframes spin {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -453,20 +453,20 @@ body {
|
|||
|
||||
/* Change mobile navbar icon colors to basketball */
|
||||
#mobile-bottom-navigation-bar i {
|
||||
color: var(--gray-200)!important;
|
||||
color: var(--gray-200)!important;
|
||||
}
|
||||
|
||||
#mobile-bottom-navigation-bar {
|
||||
box-shadow: 0px 2px 5px #000000cc;
|
||||
/* wtf??? */
|
||||
z-index:999 !important;
|
||||
box-shadow: 0px 2px 5px #000000cc;
|
||||
/* wtf??? */
|
||||
z-index:999 !important;
|
||||
}
|
||||
|
||||
/* Revert the snowcaps on it, is bad */
|
||||
#mobile-bottom-navigation-bar button:after {
|
||||
background: unset;
|
||||
/* Real work, lol */
|
||||
display: none;
|
||||
background: unset;
|
||||
/* Real work, lol */
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
:root {
|
||||
--primary: #cc4145;
|
||||
--primary: #cc4145;
|
||||
--secondary: #101819;
|
||||
--dark: #101819;
|
||||
--muted: #e6faff;
|
||||
|
|
|
@ -13,8 +13,8 @@ blockquote {
|
|||
border-left: 10px solid #ff7e7e !important;
|
||||
}
|
||||
blockquote a {
|
||||
color: #15de59;
|
||||
color: #15de59;
|
||||
}
|
||||
.dropdown-item:hover, .dropdown-item:focus, .dropdown-item.active {
|
||||
background-color: #becad5;
|
||||
background-color: #becad5;
|
||||
}
|
||||
|
|
|
@ -86,7 +86,7 @@ document.addEventListener("click", function(e) {
|
|||
pop_instance.hide()
|
||||
}
|
||||
|
||||
active = document.activeElement;
|
||||
active = document.activeElement;
|
||||
|
||||
if (active.getAttribute("data-bs-toggle") == "popover") {
|
||||
const author = JSON.parse(active.dataset.popInfo);
|
||||
|
|
|
@ -17,33 +17,33 @@ from files.helpers.regex import *
|
|||
from files.helpers.sorting_and_time import *
|
||||
|
||||
class Orgy(Base):
|
||||
__tablename__ = "orgies"
|
||||
__tablename__ = "orgies"
|
||||
|
||||
youtube_id = Column(String, primary_key=True)
|
||||
title = Column(String)
|
||||
youtube_id = Column(String, primary_key=True)
|
||||
title = Column(String)
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
def __init__(self, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
|
||||
|
||||
def __repr__(self):
|
||||
return f"<{self.__class__.__name__}(id={self.youtube_id}, title={self.title})>"
|
||||
def __repr__(self):
|
||||
return f"<{self.__class__.__name__}(id={self.youtube_id}, title={self.title})>"
|
||||
|
||||
|
||||
def get_orgy():
|
||||
orgy = g.db.query(Orgy).one_or_none()
|
||||
return orgy
|
||||
orgy = g.db.query(Orgy).one_or_none()
|
||||
return orgy
|
||||
|
||||
def create_orgy(youtube_id, title):
|
||||
assert not get_orgy()
|
||||
assert re.match(yt_id_regex, youtube_id)
|
||||
orgy = Orgy(title=title, youtube_id=youtube_id)
|
||||
g.db.add(orgy)
|
||||
g.db.flush()
|
||||
g.db.commit()
|
||||
assert not get_orgy()
|
||||
assert re.match(yt_id_regex, youtube_id)
|
||||
orgy = Orgy(title=title, youtube_id=youtube_id)
|
||||
g.db.add(orgy)
|
||||
g.db.flush()
|
||||
g.db.commit()
|
||||
|
||||
def end_orgy():
|
||||
assert get_orgy()
|
||||
g.db.query(Orgy).delete()
|
||||
g.db.flush()
|
||||
g.db.commit()
|
||||
assert get_orgy()
|
||||
g.db.query(Orgy).delete()
|
||||
g.db.flush()
|
||||
g.db.commit()
|
||||
|
|
|
@ -110,9 +110,9 @@ GIRL_PHRASES = [
|
|||
"its almost as if $",
|
||||
"omg! $",
|
||||
"im literally screaming, $",
|
||||
"$ and thats the tea, sis",
|
||||
"$ but go off i guess",
|
||||
"$ but go off",
|
||||
"$ and thats the tea, sis",
|
||||
"$ but go off i guess",
|
||||
"$ but go off",
|
||||
"$ but its whatever",
|
||||
"$ and its EVERYTHING",
|
||||
"$ *sips tea*",
|
||||
|
@ -518,7 +518,7 @@ PERMS = { # Minimum admin_level to perform action.
|
|||
'LOTTERY_VIEW_PARTICIPANTS': 2,
|
||||
'POST_COMMENT_INFINITE_PINGS': 2,
|
||||
'IGNORE_1WEEk_EDITING_LIMIT': 2,
|
||||
'ORGIES': 2,
|
||||
'ORGIES': 2,
|
||||
|
||||
'ADMIN_REMOVE': 3,
|
||||
'ADMIN_ACTIONS_REVERT': 3,
|
||||
|
|
|
@ -211,7 +211,7 @@ def _award_timers_task():
|
|||
_process_timer(User.queen, [285], "The queen award you received has expired!", {
|
||||
User.username: ("prelock_username"),
|
||||
User.prelock_username: None,
|
||||
})
|
||||
})
|
||||
_process_timer(User.spider, [179], "The spider award you received has expired!")
|
||||
_process_timer(User.namechanged, [281], "The namelock award you received has expired. You're now back to your old username!", {
|
||||
User.username: ("prelock_username"),
|
||||
|
|
|
@ -2,7 +2,7 @@ import re
|
|||
from files.helpers.regex import *
|
||||
|
||||
def sharpen(string):
|
||||
string = the_fucking_regex.sub("\g<1> fucking", string)
|
||||
string = bitch_question_mark_regex.sub(", bitch?", string)
|
||||
string = exclamation_point_regex.sub(", motherfucker!", string)
|
||||
return string
|
||||
string = the_fucking_regex.sub("\g<1> fucking", string)
|
||||
string = bitch_question_mark_regex.sub(", bitch?", string)
|
||||
string = exclamation_point_regex.sub(", motherfucker!", string)
|
||||
return string
|
||||
|
|
|
@ -1911,23 +1911,23 @@ def admin_reset_password(user_id, v):
|
|||
@app.get("/admin/orgy")
|
||||
@admin_level_required(PERMS['ORGIES'])
|
||||
def orgy_control(v):
|
||||
return render_template("admin/orgy_control.html", v=v, orgy=get_orgy())
|
||||
return render_template("admin/orgy_control.html", v=v, orgy=get_orgy())
|
||||
|
||||
@app.post("/admin/start_orgy")
|
||||
@admin_level_required(PERMS['ORGIES'])
|
||||
def start_orgy(v):
|
||||
youtube_id = request.values.get("youtube_id")
|
||||
title = request.values.get("title")
|
||||
youtube_id = request.values.get("youtube_id")
|
||||
title = request.values.get("title")
|
||||
|
||||
assert youtube_id
|
||||
assert title
|
||||
assert youtube_id
|
||||
assert title
|
||||
|
||||
create_orgy(youtube_id, title)
|
||||
create_orgy(youtube_id, title)
|
||||
|
||||
return redirect("/chat")
|
||||
return redirect("/chat")
|
||||
|
||||
@app.post("/admin/stop_orgy")
|
||||
@admin_level_required(PERMS['ORGIES'])
|
||||
def stop_orgy(v):
|
||||
end_orgy()
|
||||
return redirect("/chat")
|
||||
end_orgy()
|
||||
return redirect("/chat")
|
||||
|
|
|
@ -552,17 +552,17 @@ def award_thing(v, thing_type, id):
|
|||
return {"message": f"{AWARDS[kind]['title']} award given to {thing_type} successfully!"}
|
||||
|
||||
def shift_number_down(input, mod):
|
||||
if input <= 0:
|
||||
return 0, 0
|
||||
number = (input%mod)
|
||||
input -= number
|
||||
input /= mod
|
||||
return int(number), int(input)
|
||||
if input <= 0:
|
||||
return 0, 0
|
||||
number = (input%mod)
|
||||
input -= number
|
||||
input /= mod
|
||||
return int(number), int(input)
|
||||
|
||||
def get_number_tuple(input, mods):
|
||||
results = []
|
||||
for mod in mods:
|
||||
result, input = shift_number_down(input, mod)
|
||||
results.append(result)
|
||||
results.append(input)
|
||||
return results
|
||||
results = []
|
||||
for mod in mods:
|
||||
result, input = shift_number_down(input, mod)
|
||||
results.append(result)
|
||||
results.append(input)
|
||||
return results
|
||||
|
|
Loading…
Reference in New Issue