test avatar randomiser

This commit is contained in:
2023-11-15 22:09:26 +10:30
parent 2f13928ebb
commit c5f9905ba6
4 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,4 @@
import sys
import os
import re
import sys, os, re
from PIL import Image as im
# width in pixels

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

BIN
src/_assets/img/dp/0.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -1,7 +1,11 @@
<a href="/" class="profile-img-link">
<img class="profile-img" src="/_assets/img/dp.webp" alt=""/>
<img class="profile-img" src="/_assets/img/dp/0.jpeg" alt=""/>
</a>
<div class="sidebar-contents">
{% include 'partials/navigation.njk' %}
<img src="/_assets/img/143.gif" alt=""/>
</div>
</div>
{# <script>
document.getElementById("profile-image").src="/_assets/img/dp/" + Math.floor(Math.random()*3) + ".jpg";
</script> #}