www2.0/templates/index.html.ep

92 lines
3.0 KiB
Plaintext
Raw Normal View History

2021-02-28 01:33:35 -05:00
% title 'Swagg::Net Homepage';
% layout 'swagg';
<div class="inner">
<center>
2021-02-28 01:33:35 -05:00
<img src="/Pictures/5consbar2_e0.gif"
alt="Under contruction" height="40">
</center>
2021-02-28 01:33:35 -05:00
<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<br>
</p>
</div>
<div class="outer">
+--------------------------+<br>
</div>
<div class="inner">
<p>Make HTML <span id="blink">&lt;blink&gt;</span> again!!</p>
</div>
<!-- Source: https://www.w3docs.com/learn-html/html-blink-tag.html -->
<script>
var blink = document.getElementById('blink');
2021-02-28 01:33:35 -05:00
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.html" 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">
2021-02-27 01:14:38 -05:00
<code><pre><%= $fortune %></pre></code>
</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">
2021-02-27 01:14:38 -05:00
<p>TODO: visitor count goes here</p>
</div>
<div class="outer">
+--------------------------+<br>
<br>
</div>