Template:Home/DidYouKnow: Difference between revisions

Template page
No edit summary
Tag: Reverted
m (Reverted edits by Jens (talk) to last revision by Spirit55555)
Tag: Rollback
Line 3: Line 3:
<div id="DidYouKnow" style="background-image: radial-gradient(#001321d9, black 200%);box-shadow: 0px 0px 14px rgb(192 14 170 / 75%), inset 0 0 14px rgb(246 21 115);" >
<div id="DidYouKnow" style="background-image: radial-gradient(#001321d9, black 200%);box-shadow: 0px 0px 14px rgb(192 14 170 / 75%), inset 0 0 14px rgb(246 21 115);" >
<h2>Did You Know?</h2>
<h2>Did You Know?</h2>
<ul>
<ul class="factlist">
<randomArea count="5">
<li>...that <a href="/wiki/The_Midnight_Remixed" title="The Midnight Remixed">The Midnight Remixed</a> is the band's first release to appear on a Billboard chart?</li>
<li>...that <a href="/wiki/The_Midnight_Remixed" title="The Midnight Remixed">The Midnight Remixed</a> is the band's first release to appear on a Billboard chart?</li>
<li>...that <a href="/wiki/Tyler_Lyle" title="Tyler Lyle">Tyler Lyle</a> once lived in Paris?</li>
<li>...that <a href="/wiki/Tyler_Lyle" title="Tyler Lyle">Tyler Lyle</a> once lived in Paris?</li>
Line 23: Line 22:
<li>...that <a href="/wiki/Lost_Boy" title="Lost Boy">Lost Boy</a> was featured in an episode of <i>13 Reasons Why?</i></li>
<li>...that <a href="/wiki/Lost_Boy" title="Lost Boy">Lost Boy</a> was featured in an episode of <i>13 Reasons Why?</i></li>
<li>...that <a href="/wiki/Lost_%26_Found" title="Lost & Found">Lost & Found</a> was originally released on the <a href="/wiki/Tyler_Lyle" title="Tyler Lyle">Tyler Lyle</a> album The Native Genius of Desert Plants?</li>
<li>...that <a href="/wiki/Lost_%26_Found" title="Lost & Found">Lost & Found</a> was originally released on the <a href="/wiki/Tyler_Lyle" title="Tyler Lyle">Tyler Lyle</a> album The Native Genius of Desert Plants?</li>
</randomArea>
</ul>
</ul>
<head>
<script>
jQuery(document).ready(function(){
$(".factlist > li").hide();
randomItem();
function randomItem(){
    for (var i = 0; i < 10; i++){
        var length = $(".factlist > li:not(:visible)").length;
        var random = Math.floor(Math.random() * length);
        $(".factlist > li:not(:visible)").eq(random).show();
    }
}
});
</script>
</div>
</head>
</html>
</html>
__NOCACHE__

Revision as of 16:42, 21 April 2022

Did You Know?