diff --git a/public/s/css/f0ck.css b/public/s/css/f0ck.css index a353e05..e1a20ac 100644 --- a/public/s/css/f0ck.css +++ b/public/s/css/f0ck.css @@ -253,6 +253,10 @@ html[theme="paper"] .v0ck_player_button svg:hover { stroke: var(--white); } +html[theme="paper"] .badge-dark, #themeselector { + border: 1px solid var(--white); +} + html[theme="atmos"] { --accent: #1fb2b0; --bg: #161618; diff --git a/public/s/js/admin.js b/public/s/js/admin.js index 8589af2..5c409cf 100644 --- a/public/s/js/admin.js +++ b/public/s/js/admin.js @@ -47,8 +47,6 @@ const flash = ({ type, msg }) => { if(!confirm("Do you really want to delete this tag?")) return; const tagid = +e.target.parentElement.dataset.tagid; - /*if(!tags.includes(tag)) - return alert("wtf");*/ const res = await deleteTag(postid, tagid); if(!res.success) return alert("uff"); @@ -89,7 +87,7 @@ const flash = ({ type, msg }) => { const span = document.createElement("span"); span.classList.add("badge", "badge-light", "mr-2"); - span.title = tag.user; + span.setAttribute('tooltip', tag.user); span.dataset.tagid = tag.id; if(tag.tag == "sfw") { diff --git a/views/about.html b/views/about.html index 224ea47..c9a1168 100644 --- a/views/about.html +++ b/views/about.html @@ -1,4 +1,4 @@ -@include(main/header) +@include(snippets/header)
@@ -46,4 +46,4 @@

Cookies: Yes, we set 1 cookie for your prefered stylesheet, this is a optional cookie and not required for the site to function, simply cosmetics, you can block this cookie and the site will still work as intended and will default to the default f0ck theme called "f0ck"

Logs: No for Tor - Yes for cloudflare and cloudflare probably sells your soul to the devil, however our webserver doesn't log cloudflare connecting to our webserver, if you want to lurk without being flared by the cloud, see the above tor section my man

-@include(main/footer) +@include(snippets/footer) diff --git a/views/admin.html b/views/admin.html index 1e38689..fda528e 100644 --- a/views/admin.html +++ b/views/admin.html @@ -1,3 +1,3 @@ -@include(main/header_admin) +@include(snippets/header_admin) -@include(main/footer) \ No newline at end of file +@include(snippets/footer) \ No newline at end of file diff --git a/views/error.html b/views/error.html index 53b05d5..ae74baf 100644 --- a/views/error.html +++ b/views/error.html @@ -1,3 +1,3 @@ -@include(main/header) +@include(snippets/header)

{{ message }}

-@include(main/footer) +@include(snippets/footer) diff --git a/views/index.html b/views/index.html index 7b89f45..811d88f 100644 --- a/views/index.html +++ b/views/index.html @@ -1,4 +1,4 @@ -@include(main/header) +@include(snippets/header)
@if(tmp.user)

user: {!! tmp.user.toLowerCase() !!}@if(tmp.mime) ({{ tmp.mime }}s)@else (all)@endif

@endif @if(tmp.tag)

tag: @if(session){!! tmp.tag.toLowerCase() !!}@else{!! tmp.tag.toLowerCase() !!}@endif@if(tmp.mime) ({{ tmp.mime }}s)@else (all)@endif

@endif @@ -11,4 +11,4 @@ ▼
-@include(main/footer) +@include(snippets/footer) diff --git a/views/item.html b/views/item.html index a3325f2..44b2b5c 100644 --- a/views/item.html +++ b/views/item.html @@ -1,4 +1,4 @@ -@include(main/header) +@include(snippets/header)
-@include(main/footer) \ No newline at end of file +@include(snippets/footer) \ No newline at end of file diff --git a/views/partials/pagination.html b/views/partials/pagination.html deleted file mode 100644 index 4cb91ea..0000000 --- a/views/partials/pagination.html +++ /dev/null @@ -1,15 +0,0 @@ -@if(typeof pagination !== "undefined") - -@endif \ No newline at end of file diff --git a/views/ranking.html b/views/ranking.html index 37fe8ec..42f557d 100644 --- a/views/ranking.html +++ b/views/ranking.html @@ -1,4 +1,4 @@ -@include(main/header) +@include(snippets/header)

Ranking lol

@@ -26,4 +26,4 @@
SFW{{ stats.sfw }}
NSFW{{ stats.nsfw }}
-@include(main/footer) +@include(snippets/footer) diff --git a/views/settings.html b/views/settings.html index e30fe4a..b985697 100644 --- a/views/settings.html +++ b/views/settings.html @@ -1,4 +1,4 @@ -@include(main/header) +@include(snippets/header)

Settings

Account

@@ -40,4 +40,4 @@ @endeach
-@include(main/footer) +@include(snippets/footer) diff --git a/views/main/footer.html b/views/snippets/footer.html similarity index 100% rename from views/main/footer.html rename to views/snippets/footer.html diff --git a/views/main/header.html b/views/snippets/header.html similarity index 100% rename from views/main/header.html rename to views/snippets/header.html diff --git a/views/main/header_admin.html b/views/snippets/header_admin.html similarity index 100% rename from views/main/header_admin.html rename to views/snippets/header_admin.html diff --git a/views/snippets/navbar.html b/views/snippets/navbar.html index bbe053b..a2470b3 100644 --- a/views/snippets/navbar.html +++ b/views/snippets/navbar.html @@ -60,7 +60,21 @@