www2.0/templates/index.html.ep
swagg boi 16401ffc1b Implemented GDPR non-compliance banner; radio button for <blink>
Blinking text by default was a bad idea due to epilespy risks
2021-03-06 00:32:38 -05:00

100 lines
3.2 KiB
Plaintext

% title 'Swagg::Net Homepage';
% layout 'swagg';
<div class="inner">
<center>
<img src="/Pictures/5consbar2_e0.gif"
alt="Under contruction" height="40">
</center>
<h2>Homepage</h2>
</div>
<div class="outer">
+--------------------------+<br>
</div>
<div class="inner">
<p>
Looking for the game servers? Check out
the <a href="https://mirror.swagg.net/motd">message of the day</a>
<img alt="character from Doom video game" src="/Pictures/Doom.gif"
height="18"><br>
<br>
When will Internet Explorer be <a href="/die">deprecated</a>?
<img alt="Internet Explorer"
src="/Pictures/internet_explorer_classic.gif" height="22"
style="vertical-align:bottom"><br>
<br>
Checkout the <a href="/cgi-bin/whoami.cgi">reflection page</a> for
some info about your browser/request
<img alt="BSOD" src="/Pictures/bluscrn.gif" height="16"><br>
</p>
</div>
<div class="outer">
+--------------------------+<br>
</div>
<div class="inner">
<p><input type="radio" onclick="blinkIt();">
Make HTML <span id="blink">&lt;blink&gt;</span> again!!</p>
</div>
<!-- Source: https://www.w3docs.com/learn-html/html-blink-tag.html -->
<script>
function blunk() {}
function blinkIt() {
blinkIt = blunk; // Make sure this only runs once
var blink = document.getElementById('blink');
setInterval(function () {
blink.style.opacity = (blink.style.opacity == 0) ? 1 : 0;
}, 750);
}
</script>
<div class="outer">
+--------------------------+<br>
</div>
<div class="inner">
<h3>swagg boi's (<a href="https://tools.ietf.org/html/rfc4193">RFC
4193</a> compliant) IPv6 ULA prefix spitter-outter!!</h3>
<p>
I got bored playing with html forms today and what I ended up with
is this nifty form that turns a given MAC address into a /48 IPv6
ULA prefix. The form POSTs this string to a cgi script which is
essentially a quick re-write of the first Perl script I ever wrote
(just added some html cruft to the STDOUT). I got the idea for the
first script since I couldn't find a simple way to generate an ULA
from my terminal. I had to open up a browser and find other similar
web-based tools with a web search but several of these didn't seem
to really follow the RFC, i.e. printing out a /64 instead of a /48
or printing out the prefix with no MAC address or even a field to
give it one. Maybe some wayward network nerd standing up an IPv6 lab
will find this useful :)
</p>
<iframe src="/ula6" width="720" style="border:none;"></iframe>
<p>
<i>Limit of 1,208,925,819,614,629,174,706,176 ULA addresses per
customer.</i>
</p>
</div>
<div class="outer">
+--------------------------+<br>
</div>
<div class="inner">
<pre><%= $fortune %></pre>
</div>
<div class="outer">
+--------------------------+<br>
</div>
<div class="inner">
<br>
<img src="/Pictures/Its-swagg-baby-yeah.png" alt="It's UNIX baby, yeah!"><br>
<br>
</div>
<div class="outer">
+--------------------------+<br>
</div>
<div class="inner">
<p>TODO: visitor count goes here</p>
</div>
<div class="outer">
+--------------------------+<br>
<br>
</div>