Get working randomized backgrounds. No JS!

main
Astoria 2 years ago
parent 1be5ba565e
commit e3eecf185f

@ -11,8 +11,8 @@
}
body {
background: url("/images/backgrounds/earth.gif") no-repeat var(--bg-col); */
/* broken randomization */
background-repeat: no-repeat;
background-color: var(--bg-col);
background-size: cover;
background-attachment: fixed;
background-position: bottom left;

@ -7,4 +7,5 @@
<link rel="icon" type="image/gif" href="favicon.gif" />
<link rel="stylesheet" href="/css/default.css" />
<link rel="stylesheet" href="/css/noscroll.css" />
<link rel="stylesheet" href="/css/fonts.css" />
<link rel="stylesheet" href="/css/fonts.css" />
<style> body { background: url("/images/backgrounds/<%= Dir.children("./public/images/backgrounds")[rand(1..Dir.children("./public/images/backgrounds").length) -1] %>"); } </style>
Loading…
Cancel
Save