Updated 31 files via CloudCannon
This commit is contained in:
parent
a6605f9cbe
commit
37b183ffea
31 changed files with 692 additions and 560 deletions
|
|
@ -38,7 +38,7 @@
|
|||
<title>Play Swipe by 徒 Setto セット | 徒&nbsp;setto&nbsp;セット</title>
|
||||
<meta name="title" content="Play "Swipe" by 徒 Setto セット" />
|
||||
<meta name="description" content="A track by 徒 Setto セット named "Swipe" 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:14+00:00" />
|
||||
<meta name="robots" content="index" />
|
||||
|
||||
<link rel="canonical" href="https://setto.basspistol.com/darkweb/1-swipe/" />
|
||||
|
|
@ -74,7 +74,7 @@
|
|||
<meta property="og:site_name" content="徒&nbsp;setto&nbsp;セット" />
|
||||
<meta property="og:type" content="music:album:track" />
|
||||
<meta property="og:audio" content="https://media.basspistol.com/setto.basspistol.com/darkweb/1-swipe.mp3" />
|
||||
<meta property="article:published_time" content="2020-12-10T07:07:13+00:00" />
|
||||
<meta property="article:published_time" content="2020-12-10T19:07:14+00:00" />
|
||||
<meta property="og:image" content="https://media.basspistol.com/setto.basspistol.com/darkweb/1-swipe.jpeg" />
|
||||
<!-- Twitter Card -->
|
||||
|
||||
|
|
@ -120,48 +120,36 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
|
||||
function generateRandomPosts()
|
||||
{
|
||||
$.getJSON("/posts.json", function(data) {
|
||||
console.log("[posts.json loaded for random posts]");
|
||||
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;
|
||||
|
||||
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++;
|
||||
}
|
||||
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();
|
||||
$(document).ready(function () {
|
||||
generateRandomPosts();
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue