load buttons' alt texts from json
This commit is contained in:
+29
-39
@@ -185,6 +185,16 @@
|
||||
const randomIndex = Math.floor(Math.random() * quotes.length);
|
||||
document.getElementById('quote').textContent = '« ' + quotes[randomIndex] + ' »';
|
||||
});
|
||||
|
||||
fetch('static/buttons/_alts.json')
|
||||
.then(response => response.json())
|
||||
.then(alts => {
|
||||
document.querySelectorAll("div.footer.buttons img").forEach(img => {
|
||||
const filename = img.src.split('/').pop();
|
||||
img.alt = alts[filename] || "no alt text available, sorry";
|
||||
});
|
||||
})
|
||||
.catch(error => console.error('error loading alt texts: ', error));
|
||||
</script>
|
||||
<link rel="icon" href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdC
|
||||
b3g9Ii00MCAtNDAgODAgODAiPgogIDxjaXJjbGUgcj0iMzkiLz4KICA8cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCwzOGEzOCwzOCAwIDAgM
|
||||
@@ -215,46 +225,26 @@
|
||||
</div>
|
||||
<div class="footer-container">
|
||||
<div class="footer buttons">
|
||||
<a href="https://futile.eu" target="_blank"><img src="static/buttons/futile.png" width="88px" height="31px"
|
||||
alt="button that says 'futile' in white, grotesque font, on a black background, with a white outline | by futile" /></a>
|
||||
<a href="https://xenia.blahaj.land/" target="_blank"><img src="static/buttons/rose_88x31.png" width="88px"
|
||||
height="31px"
|
||||
alt="button that says 'rose' with a rose growing out of the 'o', with milk-chan to the right of the text | by rose" /></a>
|
||||
<iframe src="https://increm.net/badge?key=futile" title="incremnet badge" width="88" height="31"
|
||||
frameborder="0" style="background: url('https://increm.net/bg.png')"></iframe>
|
||||
<a href="https://schmool.cool" target="_blank"><img src="static/buttons/schmoolcool.gif" width="88px"
|
||||
height="31px"></a>
|
||||
<a href="https://vostok.one/~michal" target="_blank"><img src="static/buttons/michal.png" width="88px"
|
||||
height="31px"></a>
|
||||
<a href="https://vscodium.com" target="_blank"><img src="static/buttons/vscodium.com.png" width="88px"
|
||||
height="31px"
|
||||
alt="button that says 'made with vscodium' in light blue, with the vscodium logo to the right | by unknown" /></a>
|
||||
<img src="static/buttons/FirtniteButton.png" onclick="alert('firt night')" width="88px" height="31px"
|
||||
alt="button that says 'firtnite' (a misspelling of 'fortnite'), otherwise looks very similar to an old fortnite title screen | by unknown" />
|
||||
<a href="https://ublockorigin.com" target="_blank"><img src="static/buttons/ublock.png" width="88px"
|
||||
height="31px"
|
||||
alt="button (grey) that says 'ublock origin now!', with the ublock origin red logo to the left | by unknown" /></a>
|
||||
<a href="https://rust-lang.org" target="_blank"><img src="static/buttons/rustNOW.png" width="88px"
|
||||
height="31px"
|
||||
alt="button (grey) that says 'rust now!', with the rust gear logo to the left and a yellow banner that says '1.82.0' on the to the bottom right | by futile" /></a>
|
||||
<a href="https://1337x.to" target="_blank"><img src="static/buttons/piracy.png" width="88px" height="31px"
|
||||
alt="button (grey) that says 'piracy now!', with a jolly roger flag to the left and a black banner that says 'free' on the to the bottom right | by unknown; retouched by futile" /></a>
|
||||
<a href="https://duckduckgo.com" target="_blank"><img src="static/buttons/ddg.gif" width="88px"
|
||||
height="31px"></a>
|
||||
<a href="https://upload.wikimedia.org/wikipedia/commons/5/5b/Michelangelo_-_Creation_of_Adam_%28cropped%29.jpg"
|
||||
target="_blank"><img src="static/buttons/fingerofgod.gif" width="88px" height="31px"></a>
|
||||
<a href="https://vostok.one" target="_blank"><img src="static/buttons/vostok.png" width="88px" height="31px"
|
||||
alt="button with a glowing white border that says 'vostok.one' with some small text below that that says '$ tread carefully', all in black and white | by futile" /></a>
|
||||
<img src="static/buttons/sprunk.gif" onclick="alert('SORRY\nOUT OF\nORDER')" width="88px" height="31px">
|
||||
<a href="https://ya.ru/" target="_blank">
|
||||
<img src="static/buttons/yandex.gif" width="88px" height="31px">
|
||||
<a href="https://futile.eu" target="_blank"><img src="static/buttons/futile.png" width="88px" height="31px"></a>
|
||||
<a href="https://xenia.blahaj.land/" target="_blank"><img src="static/buttons/rose_88x31.png" width="88px" height="31px"></a>
|
||||
<iframe src="https://increm.net/badge?key=futile" title="incremnet badge" width="88" height="31" frameborder="0"
|
||||
style="background: url('https://increm.net/bg.png')"></iframe>
|
||||
<a href="https://schmool.cool" target="_blank"><img src="static/buttons/schmoolcool.gif" width="88px" height="31px"></a>
|
||||
<a href="https://vostok.one/~michal" target="_blank"><img src="static/buttons/michal.png" width="88px" height="31px"></a>
|
||||
<a href="https://vscodium.com" target="_blank"><img src="static/buttons/vscodium.com.png" width="88px" height="31px"></a>
|
||||
<img src="static/buttons/FirtniteButton.png" onclick="alert('firt night')" width="88px" height="31px">
|
||||
<a href="https://ublockorigin.com" target="_blank"><img src="static/buttons/ublock.png" width="88px" height="31px"></a>
|
||||
<a href="https://rust-lang.org" target="_blank"><img src="static/buttons/rustNOW.png" width="88px" height="31px"></a>
|
||||
<a href="https://1337x.to" target="_blank"><img src="static/buttons/piracy.png" width="88px" height="31px"></a>
|
||||
<a href="https://duckduckgo.com" target="_blank"><img src="static/buttons/ddg.gif" width="88px" height="31px"></a>
|
||||
<a href="https://upload.wikimedia.org/wikipedia/commons/5/5b/Michelangelo_-_Creation_of_Adam_%28cropped%29.jpg" target="_blank">
|
||||
<img src="static/buttons/fingerofgod.gif" width="88px" height="31px">
|
||||
</a>
|
||||
<a href="https://fedoraproject.org/spins/kde" target="_blank"><img src="static/buttons/fedora.png"
|
||||
width="88px" height="31px"
|
||||
alt="button that says 'powered by fedora' in white and blue, with the fedora logo to the left | by unknown; retouched by futile" /></a>
|
||||
<a href="https://mozilla.org/firefox" target="_blank"><img src="static/buttons/firefox4.gif" width="88px"
|
||||
height="31px"
|
||||
alt="button that flashes between the texts 'tested on' and 'firefox' in firefox's orange, yellow, and purple scheme, with the firefox logo to the left | by unknown" /></a>
|
||||
<a href="https://vostok.one" target="_blank"><img src="static/buttons/vostok.png" width="88px" height="31px"></a>
|
||||
<img src="static/buttons/sprunk.gif" onclick="alert('SORRY\nOUT OF\nORDER')" width="88px" height="31px">
|
||||
<a href="https://ya.ru/" target="_blank"><img src="static/buttons/yandex.gif" width="88px" height="31px"></a>
|
||||
<a href="https://fedoraproject.org/spins/kde" target="_blank"><img src="static/buttons/fedora.png" width="88px" height="31px"></a>
|
||||
<a href="https://mozilla.org/firefox" target="_blank"><img src="static/buttons/firefox4.gif" width="88px" height="31px"></a>
|
||||
</div>
|
||||
<div class="footer quote">
|
||||
<p id="quote"> </p>
|
||||
|
||||
Reference in New Issue
Block a user