html
<iframe src="https://dabric.neocities.org/linkshuffle.min.html?lsstyle-foreground=lime" frameborder="0" title="linkshuffle">
<iframe src="https://dabric.neocities.org/linkshuffle.min.html?lsstyle-foreground=lime" frameborder="0" title="linkshuffle">
data-
attributes. you can also manipulate
the attributes with javascript to make it more dynamic, if you want.
linkshuffle does this reactivity via MutationObserver.<iframe src="https://dabric.neocities.org/linkshuffle.min.html" frameborder="0" title="linkshuffle">
<script>
const frame = document.querySelector("iframe");
let hue = 0;
setInterval(() => {
hue += 5
hue %= 360
const color = `hsl(${hue}deg, 100%, 50%)`;
frame.setAttribute("data-lsstyle-foreground", color)
frame.setAttribute("data-lsstyle-overlay-foreground", color)
frame.setAttribute("data-lsstyle-outline-color", color)
}, 100);
</script>
ls-delay
ls-showrandombutton
ls-showtitle
ls-list
url!
. for example:
url!https://example.com/links.json
ls-brandlinklocation
lsstyle-background
lsstyle-overlay-background
lsstyle-foreground
lsstyle-font
lsstyle-padding
lsstyle-outline-color
lsstyle-outline-thickness
lsstyle-border-radius
// remember that JSON does not have comments;
// i'm only using them here to document the format.
// do not use comments in your actual link list.
[
// an example link. you can have an
// unlimited number of them.
{
// the name of the link.
// - will shown on hover, unless data-ls-showtitle
// was set to false.
// - will also be shown in place of the image if
// there isn't one, or if it fails to load.
"name": "dabric",
// the images to use. it'll be picked at random.
"images": [
// an example image. you can have
// an unlimited number of them.
{
// the link to the image.
"src": "https://dabric.neocities.org/dabric.png",
// the alt text for the image.
"alt": "a short tv-head robot."
}
],
// the link.
"url": "https://dabric.neocities.org"
}
]
You can view it, but page content may be outdated.
I've tried my best to update links but some may be incorrect. Adding /archive/v2/ to the start of the url should work if you somehow 404.
The current version can be found at just dabric.xyz.