feat: small tweaks
All checks were successful
/ phplint (push) Successful in 7s

This commit is contained in:
David Bailey 2024-01-22 16:48:52 +01:00
parent a65dd96f8f
commit dfd8e299cd
2 changed files with 6 additions and 2 deletions

View file

@ -9,11 +9,15 @@ AddType text/plain .rss
RewriteEngine On RewriteEngine On
RewriteBase / RewriteBase /
RewriteCond %{REQUEST_URI} !^/raw/ RewriteCond %{REQUEST_URI} !^/(raw|static)/
RewriteRule ^.*\.(flv|gif|ico|jpg|jpeg|mp4|mpeg|png|svg|swf|webp)$ raw/%{HTTP_HOST}%{REQUEST_URI} [L,END] RewriteRule ^.*\.(flv|gif|ico|jpg|jpeg|mp4|mpeg|png|svg|swf|webp)$ raw/%{HTTP_HOST}%{REQUEST_URI} [L,END]
RewriteRule ^/?raw/(.*)$ raw/%{HTTP_HOST}/$1 [L,END] RewriteRule ^/?raw/(.*)$ raw/%{HTTP_HOST}/$1 [L,END]
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,END]
RewriteCond %{REQUEST_URI} !^/?(static|raw|robots\.txt).* RewriteCond %{REQUEST_URI} !^/?(static|raw|robots\.txt).*
RewriteRule (.*) router.php RewriteRule (.*) router.php

View file

@ -76,7 +76,7 @@ class BannerHandler {
this.bannerDOM.style.opacity = 0; this.bannerDOM.style.opacity = 0;
} }
fadeIn() { fadeIn() {
this.bannerDOM.style.opacity = 0.3; this.bannerDOM.style.opacity = this.currentBannerData.opacity || 0.3;
} }
loadNextBanner() { loadNextBanner() {