diff options
| author | initframs <initframs@duck.com> | 2026-11-08 08:39:06 -0800 |
|---|---|---|
| committer | initframs <initframs@duck.com> | 2026-11-08 08:39:06 -0800 |
| commit | cd9aada1c90b779f45453efefcfbda84f565adef (patch) | |
| tree | 08b1b41a053d6b8fd412afb057d0f5afb57a82a0 | |
| parent | c9993279fe16463a54a1e3f3a803fe0d603dea92 (diff) | |
first commit
| -rw-r--r-- | cow.gif | bin | 0 -> 29953 bytes | |||
| -rw-r--r-- | explode.gif | bin | 0 -> 50165 bytes | |||
| -rw-r--r-- | index.html | 47 | ||||
| -rw-r--r-- | script.js | 44 | ||||
| -rw-r--r-- | style.css | 79 | ||||
| -rw-r--r-- | typingfast.gif | bin | 0 -> 633046 bytes | |||
| -rw-r--r-- | underconstruction.gif | bin | 0 -> 89525 bytes |
7 files changed, 170 insertions, 0 deletions
| Binary files differ diff --git a/explode.gif b/explode.gif Binary files differnew file mode 100644 index 0000000..f437323 --- /dev/null +++ b/explode.gif diff --git a/index.html b/index.html new file mode 100644 index 0000000..9c877c9 --- /dev/null +++ b/index.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>initframs.dev</title> + <link href="style.css" rel="stylesheet" /> +</head> + +<body> + <div id="ipaddr" <div id="bandconditionsnotice"> + Band conditions are in the format <span>day/night</span> + </div> + <div> + Last updated: 11/7/2026 + </div> + <div id=" counter-small"> + You are visitor number <span>1</span><span>2</span><span>3</span><span>4</span><span>5</span> + </div> + <div id="title"> + <img id="gif" src="explode.gif" /> + <blink> + <h1>initframs.dev</h1> + </blink> + <img id="gif" src="cow.gif" /> + </div> + <marquee id="ticker" direction="right" scrollamount="20"> + CURRENT TIME: <span id="clock">LOADING...</span> + *** + TODAY'S DATE: <span id="date">LOADING...</span> + *** + SOLAR FLUX INDEX: <span id="sfi">LOADING...</span> + *** + 80M BAND: <span id="band80">LOADING...</span> + *** + 40M BAND: <span id="band40">LOADING...</span> + *** + 20M BAND: <span id="band20">LOADING...</span> + *** + 10M BAND: <span id="band10">LOADING...</span> + *** + </marquee> + <script src="script.js"></script> +</body> + +</html>
\ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..a25125e --- /dev/null +++ b/script.js @@ -0,0 +1,44 @@ +function updateClock() { + const now = new Date(); + + document.querySelectorAll("#clock").forEach(el => { + el.textContent = now.toLocaleTimeString(); + }); + + document.querySelectorAll("#date").forEach(el => { + el.textContent = now.toLocaleDateString(); + }); +} + +function updateMarqueeApis() { + fetch("https://www.mapforham.com/hf-propagation/data/solar.json") + .then(response => response.json()) + .then(data => { + console.log("Got data:", data); + console.log(data.solar_flux); + + document.querySelectorAll("#sfi").forEach(el => { + el.textContent = data.solar_flux; + }); + document.querySelectorAll("#band40").forEach(el => { + el.textContent = data.bands_detail[3].day + "/" + data.bands_detail[3].night; + }); + document.querySelectorAll("#band20").forEach(el => { + el.textContent = data.bands_detail[5].day + "/" + data.bands_detail[5].night; + }); + document.querySelectorAll("#band80").forEach(el => { + el.textContent = data.bands_detail[1].day + "/" + data.bands_detail[1].night; + }); + document.querySelectorAll("#band10").forEach(el => { + el.textContent = data.bands_detail[9].day + "/" + data.bands_detail[9].night; + }); + }) + .catch(error => { + console.error("api error:", error); + }); +} + +updateClock(); +updateMarqueeApis(); +setInterval(updateClock, 1000); +setInterval(updateMarqueeApis, 60000);
\ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..949f9f6 --- /dev/null +++ b/style.css @@ -0,0 +1,79 @@ +html, +body { + background-color: lime; + text-align: center; +} + +#title { + display: flex; + justify-content: center; + align-items: center; + width: 100%; + margin-bottom: 40px; +} + +#gif { + width: 128px; + margin: 20px; +} + +h1 { + color: blue; + font-size: 80px; + margin: 20px; +} + +marquee { + width: 100%; + color: red; + font-size: 30px; + font-weight: bold; +} + +#counter-big { + position: absolute; + top: 40px; + left: 80px; + font-size: 40px; +} + +#counter-big span { + display: inline-block; + background-color: black; + color: yellow; + margin-top: 10px; + padding: 10px; + font-size: 50px; +} + +#bandconditionsnotice { + font-size: 20px; +} + +#bandconditionsnotice span { + color: #ff00ff; + font-weight: bold; + font-size: 30px; +} + +blink { + animation: blink 1s step-start infinite; +} + +@keyframes blink { + 0% { + visibility: visible; + } + + 50% { + visibility: visible; + } + + 50% { + visibility: hidden; + } + + 75% { + visibility: visible; + } +}
\ No newline at end of file diff --git a/typingfast.gif b/typingfast.gif Binary files differnew file mode 100644 index 0000000..b1e34ab --- /dev/null +++ b/typingfast.gif diff --git a/underconstruction.gif b/underconstruction.gif Binary files differnew file mode 100644 index 0000000..2e10508 --- /dev/null +++ b/underconstruction.gif |
