kirby-img : init image randomizer :)

This commit is contained in:
minoplhy 2023-10-28 19:03:33 +07:00
parent ba3e5a0b09
commit 0e23730ea2
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF
59 changed files with 55 additions and 5 deletions

View File

@ -6,9 +6,42 @@
<article class="post">
<center><h1> <span style="color:red;">U</span><span style="color:aquamarine">u</span><span style="color:deepskyblue">U</span><span style="color:indianred">W</span><span style="color:palegreen">w</span><span style="color:plum">U</span><span style="color:slateblue">P</span><span style="color:gold">O</span><span style="color:crimson">d</span> </h1></center>
<br>
<center><img src="/assets/images/akira!.gif" alt="Akira!" width="225"/></center>
<center><img decoding="async" id="homepage-rand-img" src="/assets/images/index_rand/com_26.gif" alt="Akira!" width="300"/></center>
<center><a style="color:darkmagenta;" href="/projects/">Projects</a> | <a style="color:firebrick;" href="/blog/">Blog</a> | <a style="color:maroon;" href="/p-p/">Source</a> | <a style="color:peru;" href="/about/">About</a></center>
<center><h2>On <span style="color:thistle">Git{}</span></s></h2></center>
<center><h2>On <span style="color:thistle">Git{}</span></h2></center>
<center><h4><a href="https://github.com/minoplhy" target="_blank"><i class="svg-others github"></i></a> <a href="https://owu.se/p-p/minoplhy" target="_blank"><i class="svg-others gitea"></i></a> <a href="https://framagit.org/meeillo" target="_blank"><i class="svg-others framagit"></i></a> <a href="https://codeberg.org/DoulpaGllo" target="_blank"><i class="svg-others codeberg"></i></a></h4></center>
</article>
</div>
</div>
<script src="{{ site.baseurl }}/assets/js/kirby-img.js"></script>
<script>
const imgArray = [
'/assets/images/index_rand/com_1.gif',
'/assets/images/index_rand/com_2.gif',
'/assets/images/index_rand/com_3.gif',
'/assets/images/index_rand/com_4.gif',
'/assets/images/index_rand/com_5.gif',
'/assets/images/index_rand/com_6.gif',
'/assets/images/index_rand/com_7.gif',
'/assets/images/index_rand/com_8.gif',
'/assets/images/index_rand/com_9.gif',
'/assets/images/index_rand/com_10.gif',
'/assets/images/index_rand/com_11.gif',
'/assets/images/index_rand/com_12.gif',
'/assets/images/index_rand/com_13.gif',
'/assets/images/index_rand/com_14.gif',
'/assets/images/index_rand/com_15.gif',
'/assets/images/index_rand/com_16.gif',
'/assets/images/index_rand/com_17.gif',
'/assets/images/index_rand/com_18.gif',
'/assets/images/index_rand/com_19.gif',
'/assets/images/index_rand/com_20.gif',
'/assets/images/index_rand/com_21.gif',
'/assets/images/index_rand/com_22.gif',
'/assets/images/index_rand/com_23.gif',
'/assets/images/index_rand/com_24.gif',
'/assets/images/index_rand/com_25.gif',
'/assets/images/index_rand/com_26.gif'
];
document.onload = randomImageBroker('homepage-rand-img', imgArray);
</script>

View File

@ -4,9 +4,16 @@ title: Blog
permalink: /blog/
---
## <img src="/assets/images/toshino.gif" alt="Toshino Kyoko!" width="100"/> Yaw! Sometimes I write a blog, though mostly not.
> <code style="color:black;">Blah, Please don't expect any informative or technical blogs. <img src="/assets/images/akari!!_thumbsup.gif" alt="Akari!!!!" width="100"/></code>
## <img decoding="async" id="blog-rand-img" src="/assets/images/toshino.gif" alt="Toshino Kyoko!" width="100"/> Yaw! Sometimes I write a blog, though mostly not.
> <code style="color:black;">Blah, Please don't expect any informative or technical blogs. <img decoding="async" id="blog-rand-img-2" src="/assets/images/akari!!_thumbsup.gif" alt="Akari!!!!" width="100"/></code>
<script src="{{ site.baseurl }}/assets/js/kirby-img.js"></script>
<script>
const Img_1 = ['/assets/images/toshino.gif', '/assets/images/senior.gif'];
const Img_2 = ['/assets/images/akari!!_thumbsup.gif', '/assets/images/toshino-hehe.gif'];
document.onload = randomImageBroker('blog-rand-img', Img_1);
document.onload = randomImageBroker('blog-rand-img-2', Img_2);
</script>
<hr>
<div class="posts">

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 945 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 902 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 866 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 518 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 455 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 773 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

BIN
assets/images/senior.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

10
assets/js/kirby-img.js Normal file
View File

@ -0,0 +1,10 @@
function randomImageBroker(ElemName, imgArray) {
const imgEl = document.getElementById(ElemName);
randomImage(imgEl, imgArray)
}
function randomImage(imgELM, srcArray) {
const randomIndex = Math.floor(Math.random()*srcArray.length);
imgELM.src = srcArray[randomIndex];
}