themes: add glitter bg category per joan request
parent
a9bdbc0f34
commit
77bdb6e87f
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.2 MiB |
Binary file not shown.
After Width: | Height: | Size: 148 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.2 MiB |
Binary file not shown.
After Width: | Height: | Size: 992 KiB |
Binary file not shown.
After Width: | Height: | Size: 183 KiB |
|
@ -11,6 +11,18 @@ function post(url) {
|
||||||
function updatebgselection(){
|
function updatebgselection(){
|
||||||
var bgselector = document.getElementById("backgroundSelector");
|
var bgselector = document.getElementById("backgroundSelector");
|
||||||
const backgrounds = [
|
const backgrounds = [
|
||||||
|
{
|
||||||
|
folder: "glitter",
|
||||||
|
backgrounds:
|
||||||
|
[
|
||||||
|
"1.webp",
|
||||||
|
"2.webp",
|
||||||
|
"3.webp",
|
||||||
|
"4.webp",
|
||||||
|
"5.webp",
|
||||||
|
"6.webp",
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
folder: "anime",
|
folder: "anime",
|
||||||
backgrounds:
|
backgrounds:
|
||||||
|
|
|
@ -196,6 +196,7 @@ WPD_CHANNEL_ID = 1013990963846332456
|
||||||
PIN_AWARD_TEXT = " (pin award)"
|
PIN_AWARD_TEXT = " (pin award)"
|
||||||
|
|
||||||
THEMES = ["4chan","classic","classic_dark","coffee","dark","dramblr","light","midnight","transparent","tron","win98"]
|
THEMES = ["4chan","classic","classic_dark","coffee","dark","dramblr","light","midnight","transparent","tron","win98"]
|
||||||
|
BACKGROUND_CATEGORIES = ["glitter", "anime", "fantasy", "solarpunk", "pixelart"]
|
||||||
COMMENT_SORTS = ["hot", "new", "old", "top", "bottom", "controversial"]
|
COMMENT_SORTS = ["hot", "new", "old", "top", "bottom", "controversial"]
|
||||||
SORTS = COMMENT_SORTS + ["bump", "comments"]
|
SORTS = COMMENT_SORTS + ["bump", "comments"]
|
||||||
TIME_FILTERS = ["hour", "day", "week", "month", "year", "all"]
|
TIME_FILTERS = ["hour", "day", "week", "month", "year", "all"]
|
||||||
|
|
|
@ -66,5 +66,5 @@ def inject_constants():
|
||||||
"HOUSE_JOIN_COST":HOUSE_JOIN_COST, "HOUSE_SWITCH_COST":HOUSE_SWITCH_COST, "IMAGE_FORMATS":IMAGE_FORMATS,
|
"HOUSE_JOIN_COST":HOUSE_JOIN_COST, "HOUSE_SWITCH_COST":HOUSE_SWITCH_COST, "IMAGE_FORMATS":IMAGE_FORMATS,
|
||||||
"PAGE_SIZES":PAGE_SIZES, "THEMES":THEMES, "COMMENT_SORTS":COMMENT_SORTS, "SORTS":SORTS,
|
"PAGE_SIZES":PAGE_SIZES, "THEMES":THEMES, "COMMENT_SORTS":COMMENT_SORTS, "SORTS":SORTS,
|
||||||
"TIME_FILTERS":TIME_FILTERS, "HOUSES":HOUSES, "TIERS_ID_TO_NAME":TIERS_ID_TO_NAME,
|
"TIME_FILTERS":TIME_FILTERS, "HOUSES":HOUSES, "TIERS_ID_TO_NAME":TIERS_ID_TO_NAME,
|
||||||
"DEFAULT_CONFIG_VALUE":DEFAULT_CONFIG_VALUE, "IS_LOCALHOST":IS_LOCALHOST,
|
"DEFAULT_CONFIG_VALUE":DEFAULT_CONFIG_VALUE, "IS_LOCALHOST":IS_LOCALHOST, "BACKGROUND_CATEGORIES":BACKGROUND_CATEGORIES,
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
<p>Change the background for the website.</p>
|
<p>Change the background for the website.</p>
|
||||||
<div class="input-group mb2">
|
<div class="input-group mb2">
|
||||||
<select autocomplete="off" id='backgroundSelector' class="form-control" form="profile-settings" name="background" onchange="updatebgselection();">
|
<select autocomplete="off" id='backgroundSelector' class="form-control" form="profile-settings" name="background" onchange="updatebgselection();">
|
||||||
{% for entry in ["anime", "fantasy", "solarpunk", "pixelart"] %}
|
{% for entry in BACKGROUND_CATEGORIES %}
|
||||||
<option value="{{entry}}" {% if v.background and v.background.startswith(entry) %}selected{% endif %}>
|
<option value="{{entry}}" {% if v.background and v.background.startswith(entry) %}selected{% endif %}>
|
||||||
{{entry}}
|
{{entry}}
|
||||||
</option>
|
</option>
|
||||||
|
|
Loading…
Reference in New Issue