Updated 31 files via CloudCannon

This commit is contained in:
CloudCannon 2020-12-15 20:17:12 +00:00
parent a6605f9cbe
commit 37b183ffea
31 changed files with 692 additions and 560 deletions

View file

@ -48,7 +48,7 @@
<title>Play &quot;Live with hardware&quot; by 徒 Setto セット | 徒&amp;nbsp;setto&amp;nbsp;セット</title>
<meta name="title" content="Play &quot;Live with hardware&quot; by 徒 Setto セット" />
<meta name="description" content="A release by 徒 Setto セット named &quot;Live with hardware&quot; published on 徒&amp;nbsp;setto&amp;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>