Optimize for CDN caching

This commit is contained in:
Skylar Ittner 2021-10-20 01:05:09 -06:00
parent 9e81263f32
commit 41aa069465
2 changed files with 12 additions and 4 deletions

1
favicon.ico Normal file
View File

@ -0,0 +1 @@

View File

@ -15,10 +15,6 @@
<style>
body {
background-image: url(<?php
$bgs = glob("img/bg/*.jpg");
echo $bgs[array_rand($bgs, 1)];
?>);
background-attachment: fixed;
}
@ -157,6 +153,17 @@
<script>
window.onload = function () {
createMap();
var bgs = [
"dale-nibbe-GR09HcWwP-w-unsplash.jpg",
"hide-obara-VzWx1l2LuIA-unsplash.jpg",
"john-fowler-jcbq3qWpKoo-unsplash.jpg",
"mark-harpur-K2s_YE031CA-unsplash.jpg",
"renns-art-TXhxOXHN1EE-unsplash.jpg",
"solotravelgoals-7kLufxYoqWk-unsplash.jpg"
];
var bgimg = bgs[Math.floor(Math.random() * bgs.length)];
$("body").css("background-image", "url(./img/bg/" + bgimg + ")");
};
function dolookup(words) {