:: StoryTitle
SugarCube: Hidden Link
:: UserScript[script]
postdisplay['hidden-link-setup'] = function () {
/*
Hidden links that are always hidden:
[[A hidden link]]
*/
$('.hidden')
.addClass('hidden');
/*
Hidden links that hide unless you're hovering over them:
[[A hidden link]]
*/
$('.hides')
.addClass('hidden')
.on('mouseenter', function () {
$(this).removeClass('hidden');
})
.on('mouseleave', function () {
$(this).addClass('hidden');
});
/*
Hidden links that reveal themselves when you hover over them:
[[A hidden link]]
*/
$('.reveals')
.addClass('hidden')
.one('mouseenter', function () {
$(this).removeClass('hidden');
});
};
:: UserStylesheet[stylesheet]
.hidden a {
color: transparent;
}
:: Start
A hidden link that's always hidden: [[A hidden link]]
A hidden link that hides unless you're hovering over it: [[A hidden link]]
A hidden link that reveals itself when you hover over it: [[A hidden link]]
:: A hidden link
You found it!