Compare commits

...

13 commits

Author SHA1 Message Date
39678fb8c8
Update page titles & embeds, swap snow script 2024-12-01 01:07:39 +00:00
b3d264feaf
Now That's What I Call The Wrong Copyright Symbol 24 2024-11-30 22:58:30 +00:00
f819ee4092 Change storage perms 2024-11-30 22:47:40 +00:00
c672f0450a
AAAAA 2024-11-30 22:42:42 +00:00
f5444a9bf6
Sure is a new site design 2024-11-28 00:07:08 +00:00
1d39acd298
idk why this is here but I'm committing it 2024-11-04 23:13:32 +00:00
098d68b393
woah is that a new design 2024-11-04 23:12:59 +00:00
5dc6252c4c
Update page layout
- Add more buttons
- Style <hr> elements
- Remove 'pixel nes' font from <h3> and <h4> elements
- Change footer grid column sizes to auto (previously 1fr)
- Add 5px top margin to sidebar buttons
2024-10-06 04:11:46 +01:00
d857991d18
Add privacy page 2024-10-06 04:11:08 +01:00
d8915dcca4
Update sitemap 2024-09-01 15:45:46 +01:00
61f01750ff
There will be no bias in my house! 2024-08-31 00:47:19 +01:00
a715ae58af
Handle any errors if unable to get presence or weather data 2024-08-31 00:47:01 +01:00
97d8f4447d
Update .gitignore 2024-08-30 19:56:07 +01:00
46 changed files with 1140 additions and 601 deletions

4
.gitignore vendored
View file

@ -18,3 +18,7 @@ yarn-error.log
/.idea /.idea
/.vscode /.vscode
**/.DS_Store **/.DS_Store
/log
/storage
/tmp
/public/pub

View file

@ -0,0 +1,16 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\View\View;
class PrivacyController extends Controller{
/**
* Shows the page
* @return View
*/
public function show(): View {
return view('privacy');
}
}

View file

@ -31,13 +31,15 @@ public function getDiscordPresence(): mixed {
$response = Http::get('https://api.lanyard.rest/v1/users/' . Config::get('services.lanyard.user_id')); $response = Http::get('https://api.lanyard.rest/v1/users/' . Config::get('services.lanyard.user_id'));
$data = $response->json(); $data = $response->json();
if (!isset($data["data"])) return null;
$presence = $data["data"]; $presence = $data["data"];
Cache::put('discord_presence', $presence, now()->addSeconds(60)); Cache::put('discord_presence', $presence, now()->addSeconds(60));
return $presence; return $presence;
} }
public function getOnlineStatus(): array { public function getOnlineStatus(): ?array {
$presence = $this->getDiscordPresence(); $presence = $this->getDiscordPresence();
if ($presence == null) return null;
return match ($presence["discord_status"]) { return match ($presence["discord_status"]) {
"online", "dnd" => [ "online", "dnd" => [
"text" => "online", "text" => "online",

View file

@ -0,0 +1,39 @@
<?php
namespace App\View\Components;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Http;
use Illuminate\View\Component;
class Wah extends Component
{
/**
* Create a new component instance.
*/
public function __construct() {}
public function getWah(): string {
try {
$response = Http::get('https://api.tinyfox.dev/img.json?animal=wah');
$data = $response->json();
return "https://tinyfox.dev".$data["loc"];
} catch (Exception $ex) {
return "";
}
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string {
return view('components.wah', [
'wah' => $this->getWah(),
]);
}
}

View file

@ -3,6 +3,7 @@
namespace App\View\Components; namespace App\View\Components;
use Closure; use Closure;
use Exception;
use Illuminate\Contracts\View\View; use Illuminate\Contracts\View\View;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Config;
@ -25,11 +26,16 @@ public function getWeatherData(): mixed {
return Cache::get('weather_data'); return Cache::get('weather_data');
} }
try {
$response = Http::get('http://' . Config::get('services.weatherlink') . '/v1/current_conditions'); $response = Http::get('http://' . Config::get('services.weatherlink') . '/v1/current_conditions');
$data = $response->json(); $data = $response->json();
$conditions = $data["data"]["conditions"]; $conditions = $data["data"]["conditions"];
Cache::put('weather_data', $conditions, now()->addSeconds(60)); Cache::put('weather_data', $conditions, now()->addSeconds(60));
return $conditions; return $conditions;
} catch (Exception $ex) {
return null;
}
} }
/** /**

View file

@ -1,336 +1,237 @@
@font-face { :root {
font-family: 'BigBlue TerminalPlus'; --background: #f2efbd;
src: url('/fonts/BigBlue_TerminalPlus.woff2') format('woff2'), --foreground: #2a271c;
url('/fonts/BigBlue_TerminalPlus.woff') format('woff'); --border-color: #f27405;
font-weight: normal; --border: var(--border-color) 2px solid;
font-style: normal; --shadow-color: hsla(11, 96%, 43%, 0.4);
font-display: swap; --shadow: drop-shadow(8px 8px var(--shadow-color));
--shadow-small: drop-shadow(3px 3px var(--shadow-color));
--links: hsl(183, 93%, 27%);
--links-hover: hsl(183, 93%, 15%);
--table-header: hsla(11, 96%, 43%, 0.2);
} }
@font-face { html {
font-family: pixel nes;
src: url("/fonts/Pixel_NES.eot?") format("eot"),
url("/fonts/Pixel_NES.woff") format("woff"),
url("/fonts/Pixel_NES.ttf") format("truetype");
font-style: normal;
font-weight: 400;
}
@font-face {
font-family: nec_apc3;
src: url("/fonts/Web437_NEC_APC3_8x16.woff") format("woff");
font-style: normal;
font-weight: 400;
}
@font-face {
font-family: nec_apc3;
src: url("/fonts/Web437_Nix8810_M16.woff") format("woff");
font-style: normal;
font-weight: 700;
}
@supports (-moz-appearance:none) {
h2 {
text-shadow: var(--firefox-shadow) var(--shadow) !important;
}
}
html,
body,
.container {
height: 100%; height: 100%;
color-scheme: light;
} }
body { body {
background-color: var(--background);
color: var(--foreground); color: var(--foreground);
min-height: 100%;
background-color: hsla(0, 0%, 0%, 0);
padding: 10px;
} }
body, /*noinspection CssUnknownTarget*/
button, body::before {
select { content: "";
font-family: russiangothic, ms ui gothic, "nec_apc3", Tahoma, sans-serif; position: fixed;
} top: 0;
left: 0;
h1, background-image: url("/images/background.jpg");
h2, width: 100%;
h3, height: 100%;
h4 { z-index: -1;
font-family: "pixel nes", sans-serif; opacity: 0.8;
background-size: cover;
background-attachment: fixed;
overflow: hidden;
} }
h1, h1,
h2, h2,
h3, h3,
h4, h4,
h5,
h6 {
margin: 20px 0 0 0;
}
p,
ul, ul,
p { ol,
dl,
menu,
dir {
margin: 0; margin: 0;
} }
hr {
border: none;
border-top: var(--border);
}
a { a {
color: var(--links); color: var(--links);
text-decoration: underline dotted; text-decoration: underline dotted;
} }
a:hover { a:hover {
text-decoration: underline; color: var(--links-hover);
text-decoration: underline solid;
} }
ul { div.page-container {
list-style: square; width: 800px;
padding-left: 0; margin: 5px auto;
list-style-position: inside;
} }
.container { div.page-container > div {
display: flex;
/*align-items: center;*/
justify-content: center;
}
.page {
min-width: var(--page-width);
max-width: var(--page-width);
}
.navbar {
border: var(--foreground) solid 1px;
}
.navbar ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
}
.navbar li {
float: left;
border-right: solid var(--foreground) 1px;
}
.navbar li a {
display: block;
text-align: center;
color: var(--foreground);
text-decoration: none;
padding: 5px 7px 5px 5px;
}
.navbar li a:hover {
background-color: var(--foreground);
color: var(--background);
}
.pathbar {
border: 1px solid var(--foreground);
padding: 5px;
}
.content {
display: flex;
flex-wrap: wrap;
gap: 10px;
padding: 0;
}
.section {
border: var(--foreground) 1px solid;
padding: 10px;
}
.sidebar {
flex-basis: var(--sidebar-width);
flex-grow: 1;
}
main {
flex-basis: 0;
flex-grow: 999;
min-inline-size: 50%;
}
.navbar,
.content,
header,
footer {
margin: 10px 10px 0 0;
}
header,
footer,
.navbar {
padding: 5px;
}
footer {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: 1fr;
grid-column-gap: 0;
grid-row-gap: 0;
}
footer div:last-child {
text-align: right;
}
select {
background-color: var(--background-secondary);
border: 1px solid var(--foreground);
color: var(--foreground);
padding: 0.25em;
}
button {
background-color: var(--background); background-color: var(--background);
color: var(--foreground); filter: var(--shadow);
border: 1px solid var(--foreground); padding: 10px;
padding: 0.25em 0.5em; border: var(--border);
margin-bottom: 20px;
/* temporary */
/* height: 600px; */
} }
button:hover { div.page-container > div:last-child {
background-color: var(--foreground);
color: var(--background);
}
img.pixel {
image-rendering: pixelated;
}
a.button,
a.button:hover {
text-decoration: none;
}
a.button:hover img {
opacity: 80%;
}
main > .section,
.sidebar > .section {
margin-bottom: 10px;
}
main > .section:last-child,
.sidebar > .section:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
.navbar-icon { div#header h1 {
margin-right: 0.25em; margin: 0;
font-style: italic;
} }
.navlinks { div#header h1,
padding-left: 10px; div#header p {
}
.online-status {
display: inline; display: inline;
} }
.centerbox { div#content {
text-align: center; position: relative;
} }
.quote { div#content::after {
padding-left: 10px; display: block;
border-left: solid 2px var(--foreground); content: "";
clear: both;
} }
.music-top10 { div.wah {
width: 100%; float: right;
} border: var(--border);
.music-top10 td,
.music-top10 th {
border: none;
border-left: 1px dotted var(--foreground);
padding: 2px 5px
}
.music-top10 tr:nth-child(1) th {
border-bottom: 1px dotted var(--foreground);
}
.music-top10 tr:nth-child(2) td {
padding-top: 5px;
}
.music-top10 td:first-child,
.music-top10 th:first-child {
border: none;
}
.music-top10 tr th:first-child {
text-align: right;
}
.music-top10 td {
max-width: 200px;
white-space: nowrap;
text-overflow:ellipsis;
overflow: hidden;
}
.music-top10 tr td:first-child {
text-align: right;
}
.music-top10 tr td:nth-child(2),
.music-top10 tr td:nth-child(3) {
}
.current-track h2 {
margin: 0;
}
table.computers {
table-layout: auto;
width: 75%;
}
table.computers td ul {
margin: 0;
padding-left: 20px;
}
table.computers .section-title {
text-decoration: underline;
font-style: italic;
font-weight: bold;
}
table.computers p.description {
font-style: italic;
margin: 5px 0 2px 0;
}
table.computers th {
background-color: var(--background-secondary);
}
table.computers td:first-child {
white-space: nowrap;
}
table.computers td,
table.computers th {
border: var(--foreground) solid 1px;
padding: 5px; padding: 5px;
filter: var(--shadow-small);
background-color: var(--background);
} }
.calculator-spec-table td { div.wah img {
border: var(--foreground) solid 1px; display: block;
} }
.calculator-spec-table td { div.wah h3,
padding: 5px 10px 5px 5px; div.wah p {
text-align: center;
margin: 5px 0;
font-style: italic;
} }
.calculator-spec-table tr td:first-child { div.wah p {
background-color: var(--background-secondary); margin-bottom: 0;
}
div.wah img {
width: 250px;
}
div#footer {
display: grid;
grid-template-columns: auto 1fr;
grid-template-rows: 1fr;
grid-column-gap: 0px;
grid-row-gap: 0px;
align-items: center;
}
div#footer div:last-child {
text-align: right;
}
div#footer div:last-child img {
image-rendering: pixelated;
margin: 0;
padding: 0;
width: 88px;
height: 31px;
}
/** Guestbook **/
table.form input,
table.form textarea,
table.form button {
background-color: var(--background);
border: var(--border);
filter: var(--shadow-small);
}
table.form input,
table.form textarea {
width: 250px;
}
table.form button:hover {
background-color: var(--border-color);
color: var(--background);
filter: none;
}
table.form tr td,
table.gb-entry-form-container td:last-child {
vertical-align: top;
}
div.gb-entry {
border: var(--border);
filter: var(--shadow-small);
background-color: var(--background);
width: 75%;
padding: 10px;
}
/** Music **/
table.music-top10 {
border: var(--border);
filter: var(--shadow-small);
background-color: var(--background);
border-collapse: collapse;
}
table.music-top10 th,
table.music-top10 td {
padding: 2px 5px;
}
table.music-top10 th:first-child {
text-align: left;
}
table.music-top10 tr:first-child th {
border-right: var(--border);
border-bottom: var(--border);
}
table.music-top10 tr:first-child th:last-child {
border-right: none;
}
table.music-top10 tr td {
border-right: var(--border);
}
table.music-top10 tr td:last-child {
border-right: none;
}
table.music-top10 tr:first-child th,
table.music-top10 tr td:first-child {
background-color: var(--table-header);
}
/** Bookmarks **/
div.bookmark-category:first-child h2 {
margin: 0;
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 837 KiB

View file

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev/svgjs" viewBox="0 0 800 800" preserveAspectRatio="xMidYMid slice"><defs><pattern id="pppixelate-pattern" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="translate(0 0) scale(8) rotate(0)" shape-rendering="crispEdges">
<rect width="1" height="1" x="9" y="0" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="0" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="1" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="1" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="2" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="2" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="3" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="3" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="4" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="4" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="5" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="5" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="6" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="6" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="7" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="7" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="8" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="8" fill="#FFFFFF80"></rect><rect width="1" height="1" x="0" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="1" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="2" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="3" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="4" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="5" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="6" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="7" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="8" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="9" fill="#FFFFFFbf"></rect><rect width="1" height="1" x="10" y="9" fill="#FFFFFFbf"></rect><rect width="1" height="1" x="11" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="12" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="13" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="14" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="15" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="16" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="17" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="18" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="19" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="0" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="1" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="2" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="3" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="4" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="5" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="6" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="7" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="8" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="10" fill="#FFFFFFbf"></rect><rect width="1" height="1" x="10" y="10" fill="#FFFFFFbf"></rect><rect width="1" height="1" x="11" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="12" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="13" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="14" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="15" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="16" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="17" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="18" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="19" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="11" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="11" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="12" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="12" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="13" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="13" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="14" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="14" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="15" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="15" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="16" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="16" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="17" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="17" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="18" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="18" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="19" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="19" fill="#FFFFFF80"></rect>
</pattern></defs><rect width="100%" height="100%" fill="url(#pppixelate-pattern)"></rect></svg>

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 495 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 885 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 996 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 B

BIN
public/images/noik.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

View file

@ -1,113 +0,0 @@
/*!
// Snow.js - v0.0.3
// kurisubrooks.com
//
// Modified by floppydisk
// - Changed snowflakes to "Heavy chevron snowflake" (U+2746)
// - Made snowflakes randomly rotate slowly either right or left
*/
// Amount of Snowflakes
var snowMax = 80;
// Snowflake Colours
var snowColor = [
"#cad3f5",
"#a5adcb",
"#5b6078"
];
// Snow Entity
var snowEntity = "&#10054" //"&#x2022;";
// Falling Velocity
var snowSpeed = 0.5;
// Minimum Flake Size
var snowMinSize = 8;
// Maximum Flake Size
var snowMaxSize = 24;
// Refresh Rate (in milliseconds)
var snowRefresh = 50;
// Additional Styles
var snowStyles = "cursor: default; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none;";
/*
// End of Configuration
// ----------------------------------------
// Do not modify the code below this line
*/
var snow = [],
pos = [],
coords = [],
lefr = [],
marginBottom,
marginRight;
function randomise(range) {
rand = Math.floor(range * Math.random());
return rand;
}
function initSnow() {
var snowSize = snowMaxSize - snowMinSize;
marginBottom = Math.max(document.body.scrollHeight, window.innerHeight) - 5;
marginRight = document.body.clientWidth - 15;
for (i = 0; i <= snowMax; i++) {
coords[i] = 0;
lefr[i] = Math.random() * 15;
pos[i] = 0.03 + Math.random() / 10;
snow[i] = document.getElementById("flake" + i);
snow[i].style.fontFamily = "inherit";
snow[i].size = randomise(snowSize) + snowMinSize;
snow[i].style.fontSize = snow[i].size + "px";
snow[i].style.color = snowColor[randomise(snowColor.length)];
snow[i].style.zIndex = 1000;
snow[i].sink = snowSpeed * snow[i].size / 5;
snow[i].posX = randomise(marginRight - snow[i].size);
snow[i].posY = randomise(2 * marginBottom - marginBottom - 2 * snow[i].size);
snow[i].style.left = snow[i].posX + "px";
snow[i].style.top = snow[i].posY + "px";
snow[i].rotation = Math.random() * 360; // add a random initial rotation
snow[i].direction = Math.random() > 0.5 ? 1 : -1; // add a random direction
}
moveSnow();
}
function resize() {
marginBottom = Math.max(document.body.scrollHeight, window.innerHeight) - 5;
marginRight = document.body.clientWidth - 15;
}
function moveSnow() {
for (i = 0; i <= snowMax; i++) {
coords[i] += pos[i];
snow[i].posY += snow[i].sink;
snow[i].style.left = snow[i].posX + lefr[i] * Math.sin(coords[i]) + "px";
snow[i].style.top = snow[i].posY + "px";
if (snow[i].posY >= marginBottom - 2 * snow[i].size || parseInt(snow[i].style.left) > (marginRight - 3 * lefr[i])) {
snow[i].posX = randomise(marginRight - snow[i].size);
snow[i].posY = 0;
}
snow[i].rotation += snow[i].sink * snow[i].direction; // increment rotation based on direction
snow[i].style.transform = "rotate(" + snow[i].rotation + "deg)"; // rotate the snowflake
}
setTimeout("moveSnow()", snowRefresh);
}
for (i = 0; i <= snowMax; i++) {
document.write("<span id='flake" + i + "' style='" + snowStyles + "position:absolute;top:-" + snowMaxSize + "'>" + snowEntity + "</span>");
}
window.addEventListener('resize', resize);
window.addEventListener('load', initSnow);

View file

@ -0,0 +1,680 @@
/** @license
* DHTML Snowstorm! JavaScript-based snow for web pages
* Making it snow on the internets since 2003. You're welcome.
* -----------------------------------------------------------
* Version 1.44.20131208 (Previous rev: 1.44.20131125)
* Copyright (c) 2007, Scott Schiller. All rights reserved.
* Code provided under the BSD License
* http://schillmania.com/projects/snowstorm/license.txt
*/
/*jslint nomen: true, plusplus: true, sloppy: true, vars: true, white: true */
/*global window, document, navigator, clearInterval, setInterval */
// 10/2021: Yes, some university hotlinked this script. This is an attempt to stop them.
// Admin: Please download this script and host it on your own site. Thank you.
// if (!document.domain.match(/schillmania.com/i)) {
// alert('SECURITY WARNING\nPlease tell your site administrator to host their own snow script. Thank you.');
// // try { document.body.innerHTML = '<p>SECURITY WARNING<br />Please tell your site administrator to host their own snow script. Thank you.</p>'; } catch(e) {}; // go away.
// document.body.innerHTML = 'SECURITY WARNING: Please tell your site administrator to host their own snow script. Thank you.';
// throw new Error('SECURITY WARNING: Please tell your site administrator to host their own snowstorm script. Thank you.');
// fail();
// debugger;
// }
var snowStorm = (function (window, document) {
// --- common properties ---
this.autoStart = true; // Whether the snow should start automatically or not.
this.excludeMobile = true; // Snow is likely to be bad news for mobile phones' CPUs (and batteries.) Enable at your own risk.
this.flakesMax = 256; // Limit total amount of snow made (falling + sticking)
this.flakesMaxActive = 128; // Limit amount of snow falling at once (less = lower CPU use)
this.animationInterval = 33; // Theoretical "miliseconds per frame" measurement. 20 = fast + smooth, but high CPU use. 50 = more conservative, but slower
this.useGPU = true; // Enable transform-based hardware acceleration, reduce CPU load.
this.className = null; // CSS class name for further customization on snow elements
this.flakeBottom = null; // Integer for Y axis snow limit, 0 or null for "full-screen" snow effect
this.followMouse = false; // Snow movement can respond to the user's mouse
this.snowColor = '#fff'; // Don't eat (or use?) yellow snow.
this.snowCharacter = '&bull;'; // &bull; = bullet, &middot; is square on some systems etc.
this.snowStick = true; // Whether or not snow should "stick" at the bottom. When off, will never collect.
this.targetElement = null; // element which snow will be appended to (null = document.body) - can be an element ID eg. 'myDiv', or a DOM node reference
this.useMeltEffect = true; // When recycling fallen snow (or rarely, when falling), have it "melt" and fade out if browser supports it
this.useTwinkleEffect = false; // Allow snow to randomly "flicker" in and out of view while falling
this.usePositionFixed = false; // true = snow does not shift vertically when scrolling. May increase CPU load, disabled by default - if enabled, used only where supported
this.usePixelPosition = false; // Whether to use pixel values for snow top/left vs. percentages. Auto-enabled if body is position:relative or targetElement is specified.
// --- less-used bits ---
this.freezeOnBlur = true; // Only snow when the window is in focus (foreground.) Saves CPU.
this.flakeLeftOffset = 0; // Left margin/gutter space on edge of container (eg. browser window.) Bump up these values if seeing horizontal scrollbars.
this.flakeRightOffset = 0; // Right margin/gutter space on edge of container
this.flakeWidth = 8; // Max pixel width reserved for snow element
this.flakeHeight = 8; // Max pixel height reserved for snow element
this.vMaxX = 5; // Maximum X velocity range for snow
this.vMaxY = 4; // Maximum Y velocity range for snow
this.zIndex = 0; // CSS stacking order applied to each snowflake
// --- "No user-serviceable parts inside" past this point, yadda yadda ---
var storm = this,
features,
// UA sniffing and backCompat rendering mode checks for fixed position, etc.
isIE = navigator.userAgent.match(/msie/i),
isIE6 = navigator.userAgent.match(/msie 6/i),
isMobile = navigator.userAgent.match(/mobile|opera m(ob|in)/i),
isBackCompatIE = (isIE && document.compatMode === 'BackCompat'),
noFixed = (isBackCompatIE || isIE6),
screenX = null, screenX2 = null, screenY = null, scrollY = null, docHeight = null, vRndX = null, vRndY = null,
windOffset = 1,
windMultiplier = 2,
flakeTypes = 6,
fixedForEverything = false,
targetElementIsRelative = false,
opacitySupported = (function () {
try {
document.createElement('div').style.opacity = '0.5';
} catch (e) {
return false;
}
return true;
}()),
didInit = false,
docFrag = document.createDocumentFragment();
features = (function () {
var getAnimationFrame;
/**
* hat tip: paul irish
* http://paulirish.com/2011/requestanimationframe-for-smart-animating/
* https://gist.github.com/838785
*/
function timeoutShim(callback) {
window.setTimeout(callback, 1000 / (storm.animationInterval || 20));
}
var _animationFrame = (window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
timeoutShim);
// apply to window, avoid "illegal invocation" errors in Chrome
getAnimationFrame = _animationFrame ? function () {
return _animationFrame.apply(window, arguments);
} : null;
var testDiv;
testDiv = document.createElement('div');
function has(prop) {
// test for feature support
var result = testDiv.style[prop];
return (result !== undefined ? prop : null);
}
// note local scope.
var localFeatures = {
transform: {
ie: has('-ms-transform'),
moz: has('MozTransform'),
opera: has('OTransform'),
webkit: has('webkitTransform'),
w3: has('transform'),
prop: null // the normalized property value
},
getAnimationFrame: getAnimationFrame
};
localFeatures.transform.prop = (
localFeatures.transform.w3 ||
localFeatures.transform.moz ||
localFeatures.transform.webkit ||
localFeatures.transform.ie ||
localFeatures.transform.opera
);
testDiv = null;
return localFeatures;
}());
this.timer = null;
this.flakes = [];
this.disabled = false;
this.active = false;
this.meltFrameCount = 20;
this.meltFrames = [];
this.setXY = function (o, x, y) {
if (!o) {
return false;
}
if (storm.usePixelPosition || targetElementIsRelative) {
o.style.left = (x - storm.flakeWidth) + 'px';
o.style.top = (y - storm.flakeHeight) + 'px';
} else if (noFixed) {
o.style.right = (100 - (x / screenX * 100)) + '%';
// avoid creating vertical scrollbars
o.style.top = (Math.min(y, docHeight - storm.flakeHeight)) + 'px';
} else {
if (!storm.flakeBottom) {
// if not using a fixed bottom coordinate...
o.style.right = (100 - (x / screenX * 100)) + '%';
o.style.bottom = (100 - (y / screenY * 100)) + '%';
} else {
// absolute top.
o.style.right = (100 - (x / screenX * 100)) + '%';
o.style.top = (Math.min(y, docHeight - storm.flakeHeight)) + 'px';
}
}
};
this.events = (function () {
var old = (!window.addEventListener && window.attachEvent), slice = Array.prototype.slice,
evt = {
add: (old ? 'attachEvent' : 'addEventListener'),
remove: (old ? 'detachEvent' : 'removeEventListener')
};
function getArgs(oArgs) {
var args = slice.call(oArgs), len = args.length;
if (old) {
args[1] = 'on' + args[1]; // prefix
if (len > 3) {
args.pop(); // no capture
}
} else if (len === 3) {
args.push(false);
}
return args;
}
function apply(args, sType) {
var element = args.shift(),
method = [evt[sType]];
if (old) {
element[method](args[0], args[1]);
} else {
element[method].apply(element, args);
}
}
function addEvent() {
apply(getArgs(arguments), 'add');
}
function removeEvent() {
apply(getArgs(arguments), 'remove');
}
return {
add: addEvent,
remove: removeEvent
};
}());
function rnd(n, min) {
if (isNaN(min)) {
min = 0;
}
return (Math.random() * n) + min;
}
function plusMinus(n) {
return (parseInt(rnd(2), 10) === 1 ? n * -1 : n);
}
this.randomizeWind = function () {
var i;
vRndX = plusMinus(rnd(storm.vMaxX, 0.2));
vRndY = rnd(storm.vMaxY, 0.2);
if (this.flakes) {
for (i = 0; i < this.flakes.length; i++) {
if (this.flakes[i].active) {
this.flakes[i].setVelocities();
}
}
}
};
this.scrollHandler = function () {
var i;
// "attach" snowflakes to bottom of window if no absolute bottom value was given
scrollY = (storm.flakeBottom ? 0 : parseInt(window.scrollY || document.documentElement.scrollTop || (noFixed ? document.body.scrollTop : 0), 10));
if (isNaN(scrollY)) {
scrollY = 0; // Netscape 6 scroll fix
}
if (!fixedForEverything && !storm.flakeBottom && storm.flakes) {
for (i = 0; i < storm.flakes.length; i++) {
if (storm.flakes[i].active === 0) {
storm.flakes[i].stick();
}
}
}
};
this.resizeHandler = function () {
if (window.innerWidth || window.innerHeight) {
screenX = window.innerWidth - 16 - storm.flakeRightOffset;
screenY = (storm.flakeBottom || window.innerHeight);
} else {
screenX = (document.documentElement.clientWidth || document.body.clientWidth || document.body.scrollWidth) - (!isIE ? 8 : 0) - storm.flakeRightOffset;
screenY = storm.flakeBottom || document.documentElement.clientHeight || document.body.clientHeight || document.body.scrollHeight;
}
docHeight = document.body.offsetHeight;
screenX2 = parseInt(screenX / 2, 10);
};
this.resizeHandlerAlt = function () {
screenX = storm.targetElement.offsetWidth - storm.flakeRightOffset;
screenY = storm.flakeBottom || storm.targetElement.offsetHeight;
screenX2 = parseInt(screenX / 2, 10);
docHeight = document.body.offsetHeight;
};
this.freeze = function () {
// pause animation
if (!storm.disabled) {
storm.disabled = 1;
} else {
return false;
}
storm.timer = null;
};
this.resume = function () {
if (storm.disabled) {
storm.disabled = 0;
} else {
return false;
}
storm.timerInit();
};
this.toggleSnow = function () {
if (!storm.flakes.length) {
// first run
storm.start();
} else {
storm.active = !storm.active;
if (storm.active) {
storm.show();
storm.resume();
} else {
storm.stop();
storm.freeze();
}
}
};
this.stop = function () {
var i;
this.freeze();
for (i = 0; i < this.flakes.length; i++) {
this.flakes[i].o.style.display = 'none';
}
storm.events.remove(window, 'scroll', storm.scrollHandler);
storm.events.remove(window, 'resize', storm.resizeHandler);
if (storm.freezeOnBlur) {
if (isIE) {
storm.events.remove(document, 'focusout', storm.freeze);
storm.events.remove(document, 'focusin', storm.resume);
} else {
storm.events.remove(window, 'blur', storm.freeze);
storm.events.remove(window, 'focus', storm.resume);
}
}
};
this.show = function () {
var i;
for (i = 0; i < this.flakes.length; i++) {
this.flakes[i].o.style.display = 'block';
}
};
this.SnowFlake = function (type, x, y) {
var s = this;
this.type = type;
this.x = x || parseInt(rnd(screenX - 20), 10);
this.y = (!isNaN(y) ? y : -rnd(screenY) - 12);
this.vX = null;
this.vY = null;
this.vAmpTypes = [1, 1.2, 1.4, 1.6, 1.8]; // "amplification" for vX/vY (based on flake size/type)
this.vAmp = this.vAmpTypes[this.type] || 1;
this.melting = false;
this.meltFrameCount = storm.meltFrameCount;
this.meltFrames = storm.meltFrames;
this.meltFrame = 0;
this.twinkleFrame = 0;
this.active = 1;
this.fontSize = (10 + (this.type / 5) * 10);
this.o = document.createElement('div');
this.o.innerHTML = storm.snowCharacter;
if (storm.className) {
this.o.setAttribute('class', storm.className);
}
this.o.style.color = storm.snowColor;
this.o.style.position = (fixedForEverything ? 'fixed' : 'absolute');
if (storm.useGPU && features.transform.prop) {
// GPU-accelerated snow.
this.o.style[features.transform.prop] = 'translate3d(0px, 0px, 0px)';
}
this.o.style.width = storm.flakeWidth + 'px';
this.o.style.height = storm.flakeHeight + 'px';
this.o.style.fontFamily = 'arial,verdana';
this.o.style.cursor = 'default';
this.o.style.overflow = 'hidden';
this.o.style.fontWeight = 'normal';
this.o.style.zIndex = storm.zIndex;
// Add drop shadow to snowflakes
this.o.style.filter = "drop-shadow(3px 3px hsla(0,0%,8%,0.2))"
docFrag.appendChild(this.o);
this.refresh = function () {
if (isNaN(s.x) || isNaN(s.y)) {
// safety check
return false;
}
storm.setXY(s.o, s.x, s.y);
};
this.stick = function () {
if (noFixed || (storm.targetElement !== document.documentElement && storm.targetElement !== document.body)) {
s.o.style.top = (screenY + scrollY - storm.flakeHeight) + 'px';
} else if (storm.flakeBottom) {
s.o.style.top = storm.flakeBottom + 'px';
} else {
s.o.style.display = 'none';
s.o.style.bottom = '0%';
s.o.style.position = 'fixed';
s.o.style.display = 'block';
}
};
this.vCheck = function () {
if (s.vX >= 0 && s.vX < 0.2) {
s.vX = 0.2;
} else if (s.vX < 0 && s.vX > -0.2) {
s.vX = -0.2;
}
if (s.vY >= 0 && s.vY < 0.2) {
s.vY = 0.2;
}
};
this.move = function () {
var vX = s.vX * windOffset, yDiff;
s.x += vX;
s.y += (s.vY * s.vAmp);
if (s.x >= screenX || screenX - s.x < storm.flakeWidth) { // X-axis scroll check
s.x = 0;
} else if (vX < 0 && s.x - storm.flakeLeftOffset < -storm.flakeWidth) {
s.x = screenX - storm.flakeWidth - 1; // flakeWidth;
}
s.refresh();
yDiff = screenY + scrollY - s.y + storm.flakeHeight;
if (yDiff < storm.flakeHeight) {
s.active = 0;
if (storm.snowStick) {
s.stick();
} else {
s.recycle();
}
} else {
if (storm.useMeltEffect && s.active && s.type < 3 && !s.melting && Math.random() > 0.998) {
// ~1/1000 chance of melting mid-air, with each frame
s.melting = true;
s.melt();
// only incrementally melt one frame
// s.melting = false;
}
if (storm.useTwinkleEffect) {
if (s.twinkleFrame < 0) {
if (Math.random() > 0.97) {
s.twinkleFrame = parseInt(Math.random() * 8, 10);
}
} else {
s.twinkleFrame--;
if (!opacitySupported) {
s.o.style.visibility = (s.twinkleFrame && s.twinkleFrame % 2 === 0 ? 'hidden' : 'visible');
} else {
s.o.style.opacity = (s.twinkleFrame && s.twinkleFrame % 2 === 0 ? 0 : 1);
}
}
}
}
};
this.animate = function () {
// main animation loop
// move, check status, die etc.
s.move();
};
this.setVelocities = function () {
s.vX = vRndX + rnd(storm.vMaxX * 0.12, 0.1);
s.vY = vRndY + rnd(storm.vMaxY * 0.12, 0.1);
};
this.setOpacity = function (o, opacity) {
if (!opacitySupported) {
return false;
}
o.style.opacity = opacity;
};
this.melt = function () {
if (!storm.useMeltEffect || !s.melting) {
s.recycle();
} else {
if (s.meltFrame < s.meltFrameCount) {
s.setOpacity(s.o, s.meltFrames[s.meltFrame]);
s.o.style.fontSize = s.fontSize - (s.fontSize * (s.meltFrame / s.meltFrameCount)) + 'px';
s.o.style.lineHeight = storm.flakeHeight + 2 + (storm.flakeHeight * 0.75 * (s.meltFrame / s.meltFrameCount)) + 'px';
s.meltFrame++;
} else {
s.recycle();
}
}
};
this.recycle = function () {
s.o.style.display = 'none';
s.o.style.position = (fixedForEverything ? 'fixed' : 'absolute');
s.o.style.bottom = 'auto';
s.setVelocities();
s.vCheck();
s.meltFrame = 0;
s.melting = false;
s.setOpacity(s.o, 1);
s.o.style.padding = '0px';
s.o.style.margin = '0px';
s.o.style.fontSize = s.fontSize + 'px';
s.o.style.lineHeight = (storm.flakeHeight + 2) + 'px';
s.o.style.textAlign = 'center';
s.o.style.verticalAlign = 'baseline';
s.x = parseInt(rnd(screenX - storm.flakeWidth - 20), 10);
s.y = parseInt(rnd(screenY) * -1, 10) - storm.flakeHeight;
s.refresh();
s.o.style.display = 'block';
s.active = 1;
};
this.recycle(); // set up x/y coords etc.
this.refresh();
};
this.snow = function () {
var active = 0, flake = null, i, j;
for (i = 0, j = storm.flakes.length; i < j; i++) {
if (storm.flakes[i].active === 1) {
storm.flakes[i].move();
active++;
}
if (storm.flakes[i].melting) {
storm.flakes[i].melt();
}
}
if (active < storm.flakesMaxActive) {
flake = storm.flakes[parseInt(rnd(storm.flakes.length), 10)];
if (flake.active === 0) {
flake.melting = true;
}
}
if (storm.timer) {
features.getAnimationFrame(storm.snow);
}
};
this.mouseMove = function (e) {
if (!storm.followMouse) {
return true;
}
var x = parseInt(e.clientX, 10);
if (x < screenX2) {
windOffset = -windMultiplier + (x / screenX2 * windMultiplier);
} else {
x -= screenX2;
windOffset = (x / screenX2) * windMultiplier;
}
};
this.createSnow = function (limit, allowInactive) {
var i;
for (i = 0; i < limit; i++) {
storm.flakes[storm.flakes.length] = new storm.SnowFlake(parseInt(rnd(flakeTypes), 10));
if (allowInactive || i > storm.flakesMaxActive) {
storm.flakes[storm.flakes.length - 1].active = -1;
}
}
storm.targetElement.appendChild(docFrag);
};
this.timerInit = function () {
storm.timer = true;
storm.snow();
};
this.init = function () {
var i;
for (i = 0; i < storm.meltFrameCount; i++) {
storm.meltFrames.push(1 - (i / storm.meltFrameCount));
}
storm.randomizeWind();
storm.createSnow(storm.flakesMax); // create initial batch
storm.events.add(window, 'resize', storm.resizeHandler);
storm.events.add(window, 'scroll', storm.scrollHandler);
if (storm.freezeOnBlur) {
if (isIE) {
storm.events.add(document, 'focusout', storm.freeze);
storm.events.add(document, 'focusin', storm.resume);
} else {
storm.events.add(window, 'blur', storm.freeze);
storm.events.add(window, 'focus', storm.resume);
}
}
storm.resizeHandler();
storm.scrollHandler();
if (storm.followMouse) {
storm.events.add(isIE ? document : window, 'mousemove', storm.mouseMove);
}
storm.animationInterval = Math.max(20, storm.animationInterval);
storm.timerInit();
};
this.start = function (bFromOnLoad) {
if (!didInit) {
didInit = true;
} else if (bFromOnLoad) {
// already loaded and running
return true;
}
if (typeof storm.targetElement === 'string') {
var targetID = storm.targetElement;
storm.targetElement = document.getElementById(targetID);
if (!storm.targetElement) {
throw new Error('Snowstorm: Unable to get targetElement "' + targetID + '"');
}
}
if (!storm.targetElement) {
storm.targetElement = (document.body || document.documentElement);
}
if (storm.targetElement !== document.documentElement && storm.targetElement !== document.body) {
// re-map handler to get element instead of screen dimensions
storm.resizeHandler = storm.resizeHandlerAlt;
//and force-enable pixel positioning
storm.usePixelPosition = true;
}
storm.resizeHandler(); // get bounding box elements
storm.usePositionFixed = (storm.usePositionFixed && !noFixed && !storm.flakeBottom); // whether or not position:fixed is to be used
if (window.getComputedStyle) {
// attempt to determine if body or user-specified snow parent element is relatlively-positioned.
try {
targetElementIsRelative = (window.getComputedStyle(storm.targetElement, null).getPropertyValue('position') === 'relative');
} catch (e) {
// oh well
targetElementIsRelative = false;
}
}
fixedForEverything = storm.usePositionFixed;
if (screenX && screenY && !storm.disabled) {
storm.init();
storm.active = true;
}
};
function doDelayedStart() {
window.setTimeout(function () {
storm.start(true);
}, 20);
// event cleanup
storm.events.remove(isIE ? document : window, 'mousemove', doDelayedStart);
}
function doStart() {
if (!storm.excludeMobile || !isMobile) {
doDelayedStart();
}
// event cleanup
storm.events.remove(window, 'load', doStart);
}
// hooks for starting the snow
if (storm.autoStart) {
storm.events.add(window, 'load', doStart, false);
}
return this;
}(window, document));

View file

@ -1 +0,0 @@
/srv/pubfiles

View file

@ -1,46 +1,29 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!--suppress ALL --> <!-- created with www.mysitemapgenerator.com -->
<urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url> <url>
<loc>https://www.diskfloppy.me</loc> <loc>https://www.diskfloppy.me/</loc>
<lastmod>2023-10-10</lastmod> <lastmod>2024-11-27T23:59:26+00:00</lastmod>
<changefreq>always</changefreq> <priority>1.0</priority>
<priority>0.5</priority>
</url> </url>
<url> <url>
<loc>https://www.diskfloppy.me/pub</loc> <loc>https://www.diskfloppy.me/pub/</loc>
<lastmod>2023-10-10</lastmod> <lastmod>2024-11-27T23:59:26+00:00</lastmod>
<changefreq>always</changefreq> <priority>0.8</priority>
<priority>0.5</priority>
</url>
<url>
<loc>https://www.diskfloppy.me/computers</loc>
<lastmod>2023-10-10</lastmod>
<changefreq>always</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://www.diskfloppy.me/guestbook</loc>
<lastmod>2023-10-10</lastmod>
<changefreq>always</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://www.diskfloppy.me/weather</loc>
<lastmod>2023-10-10</lastmod>
<changefreq>always</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://www.diskfloppy.me/music</loc>
<lastmod>2023-10-10</lastmod>
<changefreq>always</changefreq>
<priority>0.5</priority>
</url> </url>
<url> <url>
<loc>https://www.diskfloppy.me/bookmarks</loc> <loc>https://www.diskfloppy.me/bookmarks</loc>
<lastmod>2023-10-10</lastmod> <lastmod>2024-11-27T23:59:26+00:00</lastmod>
<changefreq>always</changefreq> <priority>1.0</priority>
<priority>0.5</priority> </url>
<url>
<loc>https://www.diskfloppy.me/guestbook</loc>
<lastmod>2024-11-27T23:59:26+00:00</lastmod>
<priority>1.0</priority>
</url>
<url>
<loc>https://www.diskfloppy.me/music</loc>
<lastmod>2024-11-27T23:59:26+00:00</lastmod>
<priority>1.0</priority>
</url> </url>
</urlset> </urlset>

View file

@ -1,11 +1,21 @@
<x-layout> <x-layout>
<x-slot:title>Bookmarks</x-slot:title> <x-slot:title>Bookmarks</x-slot:title>
@foreach($categories as $category) @foreach($categories as $category)
<div class="section"> <div class="bookmark-category">
<h2>{{ $category->name }}</h2> <h2>{{ $category->name }}</h2>
@if($category->id == 1)
<p><em>(These are shuffled every load)</em></p>
@php
$sites = $category->sites->shuffle();
@endphp
@else
@php
$sites = $category->sites;
@endphp
@endif
<hr> <hr>
<ul> <ul>
@foreach($category->sites as $site) @foreach($sites as $site)
<li><a href="{{ $site->url }}">{{ $site->name }}</a> - {{ $site->description }}</li> <li><a href="{{ $site->url }}">{{ $site->name }}</a> - {{ $site->description }}</li>
@endforeach @endforeach
</ul> </ul>

View file

@ -1,4 +1,4 @@
<div class="section current-track"> <div class="current-track">
<h2>Last/Current Track:</h2> <h2>Last/Current Track:</h2>
<a href="{{ $track["url"] }}">{{ $track["title"] }} {{ $track["artist"] }}</a><br> <a href="{{ $track["url"] }}">{{ $track["title"] }} {{ $track["artist"] }}</a><br>
</div> </div>

View file

@ -1,3 +1,7 @@
@if($status == null)
<p>Status Unavailable</p>
@else
<span>I'm</span> <span>I'm</span>
<h2 class="online-status" style="color: {{ $status["color"] }};text-shadow: var(--firefox-shadow) {{ $status["color"] }}4f !important">{{ $status["text"] }}!</h2> <h2 class="online-status" style="color: {{ $status["color"] }};text-shadow: var(--firefox-shadow) {{ $status["color"] }}4f !important">{{ $status["text"] }}!</h2>
@endif
<p><strong>Time in Britain:</strong> <span id="clock"></span></p> <p><strong>Time in Britain:</strong> <span id="clock"></span></p>

View file

@ -1,6 +1,3 @@
@php // Get colorscheme from cookie and apply immediately
$colorscheme = request()->cookie('colorscheme', 'catppuccin-macchiato');
@endphp
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
@ -8,80 +5,51 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta property="og:type" content="website"> <meta property="og:type" content="website">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#333333"> <meta name="theme-color" content="#f27405">
<link rel="stylesheet" href="{{ asset("/css/colorschemes/$colorscheme.css") }}" id="css-colorscheme"/> <title>wah! (dot moe)</title>
<link rel="stylesheet" href="{{ asset('/css/master.css') }}"/> <link rel="stylesheet" href="{{ asset('/css/master.css') }}"/>
<link rel="icon" type="image/png" href="{{ asset('/favicon-32x32.png') }}" sizes="32x32"/> <link rel="icon" type="image/png" href="{{ asset('/favicon-32x32.png') }}" sizes="32x32"/>
<link rel="icon" type="image/png" href="{{ asset('/favicon-16x16.png') }}" sizes="16x16"/> <link rel="icon" type="image/png" href="{{ asset('/favicon-16x16.png') }}" sizes="16x16"/>
<script src="{{ asset('/js/schemeSwap.js') }}"></script> {!! (intval(date('n')) == 12) ? '<script src="/js/christmas/snowstorm.js"></script>' : '' !!}
<script src="{{ asset('/js/liveClock.js') }}"></script>
{!! (intval(date('n')) == 12) ? '<script src="/js/christmas/snow.js"></script>' : '' !!}
<!-- Page-specific --> <!-- Page-specific -->
<title>{{ $title ?? 'Unknown' }} - {{ str_replace("www.", "", Request::getHost()) }}</title> <meta property="og:title" content="wah.moe | {{ $title }}">
<meta property="og:title" content="{{ str_replace("www.", "", Request::getHost()) }} | {{ $title }}">
<meta property="og:image" content="/favicon-128x128.png"> <meta property="og:image" content="/favicon-128x128.png">
</head> </head>
<body onload="setSchemeSelector()"> <body>
<div class="container"> <div class="page-container">
<div class="page"> <div id="header">
<header> <h1>wah!</h1>
<h1>{{ str_replace("www.", "", Request::getHost()) }}</h1>
</header>
<div class="navbar">
<p> <p>
<strong>Current Path:</strong> (dot moe)
@if(Request::getRequestUri() == "/")
/
@else
{{ str_replace("/", " / ", rtrim(Request::getRequestUri(), "/")) }}
@endif
</p> </p>
<x-navigation></x-navigation>
</div> </div>
<div class="content"> <div id="content">
<main>
{{ $slot }} {{ $slot }}
</main>
<div class="sidebar">
<div class="section"><nav><x-navigation/></nav></div>
<div class="section"><x-settings/></div>
<div class="section centerbox"><x-discord-status/></div>
<div class="section"><x-weather/></div>
</div> </div>
</div> <div id="footer">
<footer>
<div> <div>
(c) floppydisk 2021-{{ date('Y') }}<br> <span>
&copy; floppydisk 2021-{{ date('Y') }}<br>
v{{ config('app.version') }}, <a href="https://git.frzn.dev/fwoppydwisk/diskfloppy.me/releases/latest">Source</a><br> v{{ config('app.version') }}, <a href="https://git.frzn.dev/fwoppydwisk/diskfloppy.me/releases/latest">Source</a><br>
Served by {{ gethostname() }} Served by {{ gethostname() }}
</span>
</div> </div>
<div> <div>
<a href="https://dimden.dev/" class="button"> <img src="{{ URL::asset('images/buttons/cnfunknown.gif') }}">
<img src="https://dimden.dev/services/images/88x31.gif" width="88" height="31" <img src="{{ URL::asset('images/buttons/juli.gif') }}">
class="pixel" alt="dimden.dev"> <img src="{{ URL::asset('images/buttons/x86.gif') }}">
</a> <img src="{{ URL::asset('images/buttons/thnlqd.png') }}">
<a href="https://www.linux.org/" class="button"> <img src="https://dimden.dev/services/images/88x31.gif">
<img src="{{ URL::asset('images/buttons/linuxnow.gif') }}" width="88" <img src="{{ URL::asset('images/buttons/csshard.gif') }}"><br>
class="pixel" height="31" alt="Linux NOW!"> <img src="{{ URL::asset('images/buttons/linuxnow.gif') }}">
</a> <img src="{{ URL::asset('images/buttons/paws.gif') }}">
<a href="https://www.vim.org/" class="button"> <img src="{{ URL::asset('images/buttons/transrights.gif') }}">
<img src="{{ URL::asset('images/buttons/vim.gif') }}" width="88" height="31" <img src="{{ URL::asset('images/buttons/debian.gif') }}">
class="pixel" alt="vim"> <img src="{{ URL::asset('images/buttons/vim.gif') }}">
</a><br> <img src="{{ URL::asset('images/buttons/aliasing.png') }}">
<a href="https://wave.webaim.org/" class="button">
<img src="{{ URL::asset('images/buttons/evaluatedWAVE.png') }}" width="88" height="31"
class="pixel" alt="Evaluated to be accessible!">
</a>
<a href="https://jigsaw.w3.org/css-validator/check/referer" class="button">
<img src="{{ URL::asset('images/buttons/vcss-blue.gif') }}" width="88" height="31"
class="pixel" alt="Valid CSS!">
</a>
<a href="https://wiby.me/" class="button">
<img src="{{ URL::asset('images/buttons/wiby.gif') }}" width="88" height="31"
class="pixel" alt="Wiby - Search Engine for the Classic Web">
</a>
</div> </div>
</footer>
</div> </div>
</div> </div>
</body> </body>

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta property="og:type" content="website">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#f27405">
<link rel="stylesheet" href="{{ asset('/css/master.css') }}"/>
<link rel="icon" type="image/png" href="{{ asset('/favicon-32x32.png') }}" sizes="32x32"/>
<link rel="icon" type="image/png" href="{{ asset('/favicon-16x16.png') }}" sizes="16x16"/>
<title>{{ $title ?? 'Unknown' }}</title>
</head>
<body>
{{ $slot }}
</body>
</html>

View file

@ -1,30 +1,9 @@
<p><strong>Navigation:</strong></p> <nav>
<div class="navlinks"> <strong>Pages:</strong>
<a href="/"> <a href="/">home</a> |
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/home2.png') }}" width="16" height="16" alt="">Home <a href="//git.wah.moe">git</a> |
</a><br> <a href="/pub">files</a> |
<a href="//git.diskfloppy.me/"> <a href="/bookmarks">bookmarks</a> |
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/repo.png') }}" width="16" height="16" alt="">Git <a href="/guestbook">guestbook</a> |
</a><br> <a href="/music">music</a>
<a href="/pub/"> </nav>
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/pubfiles.png') }}" width="16" height="16" alt="">Public Files
</a><br>
<a href="/computers/">
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/computers.png') }}" width="16" height="16" alt="">Computers
</a><br>
<a href="/calculators/">
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/calculators.png') }}" width="16" height="16" alt="">Calculators
</a><br>
<a href="/bookmarks/">
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/bookmarks.png') }}" width="16" height="16" alt="">Bookmarks
</a><br>
<a href="/guestbook/">
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/guestbook.png') }}" width="16" height="16" alt="">Guestbook
</a><br>
<a href="//weather.diskfloppy.me/">
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/weather.png') }}" width="16" height="16" alt="">Weather
</a><br>
<a href="/music/">
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/music.png') }}" width="16" height="16" alt="">Music
</a><br>
</div>

View file

@ -1,4 +1,3 @@
<div class="section">
<table class="music-top10"> <table class="music-top10">
<caption> <caption>
<h2 style="margin-bottom: 5px">Top 10 Tracks (Last 30 days):</h2> <h2 style="margin-bottom: 5px">Top 10 Tracks (Last 30 days):</h2>
@ -15,4 +14,3 @@
<x-track :track="$track" :count="$count"/> <x-track :track="$track" :count="$count"/>
@endforeach @endforeach
</table> </table>
</div>

View file

@ -0,0 +1,5 @@
<div class="wah">
<h3>Random Wah!</h3>
<img src="{{ $wah }}">
<p>Image "stolen" from <a href="https://tinyfox.dev/">tinyfox.dev</a></p>
</div>

View file

@ -1,5 +1,8 @@
<p><strong>Weather Conditions:</strong></p> <p><strong>Weather Conditions:</strong></p>
<hr style="margin: 4px 0"> <hr style="margin: 4px 0">
@if($conditions == null)
<p>Data Unavailable</p>
@else
<p><strong>Temperature:</strong> {{ round(($conditions[0]["temp"] - 32) * (5/9), 1) }} degC</p> <p><strong>Temperature:</strong> {{ round(($conditions[0]["temp"] - 32) * (5/9), 1) }} degC</p>
<p><strong>Rain:</strong> {{ ($conditions[0]["rain_rate_last"] * 0.2) }}mm/hr ({{ $conditions[0]["rainfall_daily"] }}mm today)</p> <p><strong>Rain:</strong> {{ ($conditions[0]["rain_rate_last"] * 0.2) }}mm/hr ({{ $conditions[0]["rainfall_daily"] }}mm today)</p>
@if ($conditions[0]["wind_speed_last"] != 0) @if ($conditions[0]["wind_speed_last"] != 0)
@ -9,3 +12,4 @@
@endif @endif
<p><strong>Humidity:</strong> {{ round($conditions[0]["hum"], 1) }}%</p> <p><strong>Humidity:</strong> {{ round($conditions[0]["hum"], 1) }}%</p>
<p><strong>Pressure:</strong> {{ round($conditions[2]["bar_sea_level"], 1) }} inHg</p> <p><strong>Pressure:</strong> {{ round($conditions[2]["bar_sea_level"], 1) }} inHg</p>
@endif

View file

@ -1,9 +1,13 @@
<x-minimal> <x-minimal>
<x-slot:title>Error 429: Overclocking Detected!</x-slot:title> <x-slot:title>Error 429: Overclocking Detected!</x-slot:title>
<h1>Error 429: Overclocking Detected!</h1> <div class="page-container">
<div>
<h1 style="margin-top: 0">Error 429: Overclocking Detected!</h1>
<hr> <hr>
<p>Whoa there! Your submissions are going at warp speed.</p> <p>Whoa there! Your submissions are going at warp speed.</p>
<p>Remember you can only submit an entry <u>once every hour</u>!</p> <p>Remember you can only submit an entry <u>once every hour</u>!</p>
<br> <br>
Click <a href="/guestbook">here</a> to go back to the guestbook. Click <a href="/guestbook">here</a> to go back to the guestbook.
</div>
</div>
</x-minimal> </x-minimal>

View file

@ -56,7 +56,7 @@
@php @php
$user_agent = $parser->parse($entry->agent); $user_agent = $parser->parse($entry->agent);
@endphp @endphp
<div class="section"> <div class="gb-entry">
Submitted by <strong>{{ $entry->name }}</strong> Submitted by <strong>{{ $entry->name }}</strong>
on <strong>{{ $entry->created_at->format('Y-m-d') }}</strong> on <strong>{{ $entry->created_at->format('Y-m-d') }}</strong>
at <strong>{{ $entry->created_at->format('h:i:s A (e)') }}</strong> at <strong>{{ $entry->created_at->format('h:i:s A (e)') }}</strong>

View file

@ -1,42 +1,45 @@
<x-layout> <x-layout>
<x-slot:title>Home</x-slot:title> <x-slot:title>Home</x-slot:title>
<div class="section"> <x-wah></x-wah>
<h2>About Me</h2> <p>Hi! This is my personal homepage on the <strong>W</strong>orld <strong>W</strong>ide
<hr> <strong>W</strong>eb.
<p>Hi! This is my personal homepage on the <strong>W</strong>orld <strong>W</strong>ide <strong>W</strong>eb.</p> </p>
<br> <br>
<p>QuickFacts&trade;:</p> <p>Some quick facts about me:</p>
<ul> <ul>
<li>{{ $age }} y/o, he/him, British</li> <li>19 y/o, he/him, British</li>
<li>Theatre Technician, &quot;Web Developer&quot; and NixOS User</li> <li>Theatre Technician and &quot;Web Developer&quot;</li>
<li>Loves ETC desks, prefers Generics to LEDs for some reason</li> <li>Loves ETC desks, prefers Generics to LEDs for some reason</li>
<li>Has a crippling Soundcraft addiction</li>
<li>Spends way too much time on his computer</li> <li>Spends way too much time on his computer</li>
<li>Favorite games: <a href="https://steamcommunity.com/id/fwoppydwisk/recommended/420530/">OneShot</a>, Minecraft, Stardew Valley, N++ and Starbound</li> <li>Favorite games: <a href="https://steamcommunity.com/id/fwoppydwisk/recommended/420530/">OneShot</a>,
Minecraft, Stardew Valley, N++ and Starbound</li>
<li><a href="http://wxqa.com/">CWOP</a> member</li> <li><a href="http://wxqa.com/">CWOP</a> member</li>
</ul> </ul>
<br> <br>
<p>Interests:</p> <p>Interests:</p>
<ul> <ul>
<li><strong>Tech Theatre</strong> - Lighting, Stage Management, etc. (<a href="https://www.controlbooth.com/members/floppydisk.28673/">ControlBooth</a>)</li> <li><strong>Tech Theatre</strong> - Lighting, Stage Management, etc. (<a
<li><strong>Programming</strong> - HTML, CSS, JavaScript, C#, Java, PHP, Ruby, Python (<a href="https://github.com/floppydisk05">GitHub</a>)</li> href="https://www.controlbooth.com/members/floppydisk.28673/">ControlBooth</a>)</li>
<li><strong>Programming</strong> - HTML, CSS, JavaScript, C#, Java, PHP, Ruby, Python (<a
href="https://github.com/floppydisk05">GitHub</a>)</li>
<li><strong>Photography</strong> - <a href="https://www.flickr.com/photos/floppydisk/">Flickr</a></li> <li><strong>Photography</strong> - <a href="https://www.flickr.com/photos/floppydisk/">Flickr</a></li>
<li><strong>Gaming</strong> - <a href="https://steamcommunity.com/id/fwoppydwisk/">Steam Profile</a></li> <li><strong>Gaming</strong> - <a href="https://steamcommunity.com/id/fwoppydwisk/">Steam Profile</a>
</li>
</ul> </ul>
</div>
<div class="section"> {{-- <div class="section">--}}
<h2>Random Quote</h2> {{-- <h2>Random Quote</h2>--}}
<hr> {{-- <hr>--}}
<x-toh-quote/> {{-- <x-toh-quote/>--}}
</div> {{-- </div>--}}
<div class="section"> {{-- <div class="section">--}}
<h2>Contact</h2> {{-- <h2>Contact</h2>--}}
<hr> {{-- <hr>--}}
<p> {{-- <p>--}}
<strong>E-mail:</strong> <a href="mailto:contact@diskfloppy.me">contact@diskfloppy.me</a><br> {{-- <strong>E-mail:</strong> <a href="mailto:contact@diskfloppy.me">contact@diskfloppy.me</a><br>--}}
<strong>Mastodon:</strong> <a rel="me" href="https://c.im/@floppydisk">@floppydisk@c.im</a><br> {{-- <strong>Mastodon:</strong> <a rel="me" href="https://c.im/@floppydisk">@floppydisk@c.im</a><br>--}}
<strong>Matrix:</strong> <a href="https://matrix.to/#/@floppydisk:arcticfoxes.net">@floppydisk:arcticfoxes.net</a> {{-- <strong>Matrix:</strong> <a href="https://matrix.to/#/@floppydisk:arcticfoxes.net">@floppydisk:arcticfoxes.net</a>--}}
</p> {{-- </p>--}}
</div> {{-- </div>--}}
</x-layout> </x-layout>

View file

@ -0,0 +1,26 @@
<x-layout>
<x-slot:title>Privacy</x-slot:title>
<div class="section">
<h2>What am I doing with your data?</h2>
<hr>
<h3>1. What's collected?</h3>
<p>This site uses the Apache2 webserver and thus, for every request received, the following is logged:</p>
<ul>
<li>IP address</li>
<li>Request time</li>
<li>Request type</li>
<li>Location of requested resource</li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer">Referrer</a> (what website linked you to this one)</li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent">User Agent</a> (Type and version of your web browser, often also operating system and version)</li>
</ul>
<p>My website doesn't collect any more than stated above (except MediaWiki maybe)</p><br>
<h3>2. Why are logs kept?</h3>
<p>So I can examine and prevent attacks such as spam or DDoS-ing attempts</p><br>
<h3>3. When are the logs analyzed?</h3>
<p>Usually, unless I suspect an attack of some kind, I won't actively spend hours perusing the logs.</p><br>
<h3>4. Can I opt-out?</h3>
<p>Maybe? If you want to, you can email <a href="mailto:wehmaster@weh.moe">wehmaster@weh.moe</a> and I'll try and sort it out as fast as possible (assuming I can figure out how)</p><br>
<address>Any outlinks and hotlinked/embedded resources are subject to their own privacy policies and have nothing to do with me.</address>
<address>Last updated: September 9th, 2024</address>
</div>
</x-layout>

View file

@ -6,6 +6,7 @@
use App\Http\Controllers\GuestbookController; use App\Http\Controllers\GuestbookController;
use App\Http\Controllers\HomeController; use App\Http\Controllers\HomeController;
use App\Http\Controllers\MusicController; use App\Http\Controllers\MusicController;
use App\Http\Controllers\PrivacyController;
use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Route;
/* /*
@ -26,5 +27,6 @@
Route::get('/calculators', [CalculatorsController::class, 'show']); Route::get('/calculators', [CalculatorsController::class, 'show']);
Route::get('/computers', [ComputersController::class, 'show']); Route::get('/computers', [ComputersController::class, 'show']);
Route::get('/music', [MusicController::class, 'show']); Route::get('/music', [MusicController::class, 'show']);
Route::get('/privacy', [PrivacyController::class, 'show']);
Route::post('/guestbook', [GuestbookController::class, 'addEntry']) Route::post('/guestbook', [GuestbookController::class, 'addEntry'])
->middleware('rate_limit'); ->middleware('rate_limit');

0
storage/app/.gitignore vendored Normal file → Executable file
View file

0
storage/app/public/.gitignore vendored Normal file → Executable file
View file

0
storage/framework/.gitignore vendored Normal file → Executable file
View file

0
storage/framework/cache/.gitignore vendored Normal file → Executable file
View file

0
storage/framework/cache/data/.gitignore vendored Normal file → Executable file
View file

0
storage/framework/sessions/.gitignore vendored Normal file → Executable file
View file

0
storage/framework/testing/.gitignore vendored Normal file → Executable file
View file

0
storage/framework/views/.gitignore vendored Normal file → Executable file
View file

0
storage/logs/.gitignore vendored Normal file → Executable file
View file