Updated 31 files via CloudCannon
This commit is contained in:
parent
a6605f9cbe
commit
37b183ffea
31 changed files with 692 additions and 560 deletions
|
|
@ -48,7 +48,7 @@
|
|||
<title>Play "Live with hardware" by 徒 Setto セット | 徒&nbsp;setto&nbsp;セット</title>
|
||||
<meta name="title" content="Play "Live with hardware" by 徒 Setto セット" />
|
||||
<meta name="description" content="A release by 徒 Setto セット named "Live with hardware" published on 徒&nbsp;setto&nbsp;セット" />
|
||||
<meta name="dc.date.modified" scheme="ISO8601" content="2020-12-10T07:07:13+00:00" />
|
||||
<meta name="dc.date.modified" scheme="ISO8601" content="2020-12-10T19:07:13+00:00" />
|
||||
<meta name="robots" content="index" />
|
||||
|
||||
<link rel="canonical" href="https://setto.basspistol.com/live-with-hardware/" />
|
||||
|
|
@ -155,7 +155,53 @@
|
|||
|
||||
</header>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function generateRandomPosts()
|
||||
{
|
||||
$.getJSON("/posts.json", function(data) {
|
||||
console.log("[posts.json loaded for random posts]");
|
||||
|
||||
var postsCount = data.length;
|
||||
var posts = data;
|
||||
|
||||
var randomIndexUsed = [];
|
||||
var counter = 0;
|
||||
var numberOfPosts = 1;
|
||||
|
||||
var divRandomPosts = $("#random_posts");
|
||||
|
||||
while (counter < numberOfPosts)
|
||||
{
|
||||
var randomIndex = Math.floor(Math.random() * postsCount);
|
||||
|
||||
if (randomIndexUsed.indexOf(randomIndex) == "-1")
|
||||
{
|
||||
var postHREF = posts[randomIndex].href;
|
||||
var postTitle = posts[randomIndex].title;
|
||||
|
||||
if (counter == (numberOfPosts - 1))
|
||||
{
|
||||
divRandomPosts.append('<a class="button" href="' + postHREF + '">🔥</a>');
|
||||
}
|
||||
else
|
||||
{
|
||||
divRandomPosts.append('<a class="button" href="' + postHREF + '">🔥</a>');
|
||||
}
|
||||
|
||||
randomIndexUsed.push(randomIndex);
|
||||
|
||||
counter++;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
generateRandomPosts();
|
||||
});
|
||||
|
||||
</script>
|
||||
<section id="play">
|
||||
<div class="album-player">
|
||||
|
||||
|
|
@ -271,9 +317,11 @@
|
|||
|
||||
|
||||
<p class="right" id="npTitle" style="font-weight: bold;"></p>
|
||||
<p class="left" id="npAction">Paused...</p>
|
||||
</div>
|
||||
|
||||
<p id="npTitle" style="font-weight: bold;"></p>
|
||||
<div id="random_posts" style="margin-right: 40px;"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue