Fix the Eggring widget

This commit is contained in:
Helen Chong 2024-07-09 19:31:02 +08:00
parent 0ab124ed8a
commit 18124b820c
1 changed files with 30 additions and 16 deletions

View File

@ -103,22 +103,36 @@ date: 2023-01-28
<link rel="stylesheet" href="https://dykewrite.neocities.org/webring/onionring.css">
</li>
<li>
<script src="https://eggring.neocities.org/js/hatring.js"></script><script src="https://eggring.neocities.org/js/eggring-config.js"></script>
<script>window.onload = function() { eggring.createLinks(); };</script>
<nav class="webring">
<p class="webring__name">🥚 <a href="https://eggring.neocities.org/">The Eggring</a> 🥚</p>
<ul class="webring__links">
<li class="webring__link">
<a id="eggringPrev">Previous Site</a>
</li>
<li class="webring__link">
<a id="eggringRand">Random Site</a>
</li>
<li class="webring__link">
<a id="eggringNext">Next Site</a>
</li>
</ul>
</nav>
<script src="https://eggring.neocities.org/js/hatring.js"></script>
<script src="https://eggring.neocities.org/js/eggring-config.js"></script>
<script>window.onload = function() { eggring.buildWidget(); };</script>
<nav id="eggring"></nav>
<style>
#eggring {
background-color: white;
border-radius: 5px;
border: 4px double #b08cdc;
width: 20%;
height: 75px;
display: flex;
flex-direction: column;
}
#eggring a {
color: #c8b175;
display: flex;
justify-content: center;
}
#eggring a:hover { color: #c69827; }
#eggring img {
display: flex;
width: 40px;
}
.eggringName { white-space: nowrap; }
.eggringNav {
display: flex;
justify-content: space-between;
}
</style>
</li>
<li>
<div id='focusfirst-webring'>