Skip to content

Commit

Permalink
feat: semi random niko oneshot image rotation
Browse files Browse the repository at this point in the history
i would have done this like three days ago but i was too busy playing
miside
  • Loading branch information
WilliamAnimate committed Jan 10, 2025
1 parent b2b8c6c commit cc81646
Show file tree
Hide file tree
Showing 18 changed files with 55 additions and 1 deletion.
5 changes: 4 additions & 1 deletion LIVE/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<link rel="stylesheet" href="src/static/css/fox_styles.css" />
<script src="src/static/js/ip.js"></script>
<link rel="stylesheet" href="src/static/css/ip.css" />
<link rel="stylesheet" href="src/static/css/niko_oneshot.css"/>

<link
rel="stylesheet"
Expand All @@ -47,6 +48,7 @@
<script src="https://sleepie.uk/random_shit/calc_button_2.js"></script>

<script src="./src/static/js/dipshit.js" defer></script>
<script src="./src/static/js/niko_oneshot.js" defer></script>
</head>

<body>
Expand Down Expand Up @@ -110,7 +112,8 @@ <h3>Navigation:</h3>
the ones that track your every move. Enjoy! You can opt out by clicking
<a href="cookie/opt-out">here.</a>
</div>
<img src="./src/static/img/nikooneshot.jpg">
<h2>random niko oneshot</h2>

Check failure on line 115 in LIVE/index.html

View workflow job for this annotation

GitHub Actions / validate-html

An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.
<img src="./src/static/img/nikos/1.png" id="noikoneshor">

<a href="cloud/">
<img
Expand Down
5 changes: 5 additions & 0 deletions LIVE/src/static/css/niko_oneshot.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* im too lazy to make this actually look appealing lmao */
#noikoneshor {
border: dotted 10px #f5c2e7;
max-height: 450px;
}
Binary file removed LIVE/src/static/img/nikooneshot.jpg
Binary file not shown.
Binary file added LIVE/src/static/img/nikos/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added LIVE/src/static/img/nikos/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added LIVE/src/static/img/nikos/11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added LIVE/src/static/img/nikos/12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added LIVE/src/static/img/nikos/13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added LIVE/src/static/img/nikos/14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added LIVE/src/static/img/nikos/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added LIVE/src/static/img/nikos/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added LIVE/src/static/img/nikos/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added LIVE/src/static/img/nikos/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added LIVE/src/static/img/nikos/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added LIVE/src/static/img/nikos/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added LIVE/src/static/img/nikos/8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added LIVE/src/static/img/nikos/9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions LIVE/src/static/js/niko_oneshot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*++
*
* Abstract:
*
* Niko Oneshot.
*
* File description:
*
* Noik oneshor.
*
--*/

function
rollOneShot(

)
/*++
*
* Description:
*
* Get a good LSP lmao this is way superior
*
* Arguments:
*
* I actually need mental help. what the fuck is wrong with me
*
--*/
{
const MIN = 1; // first image index is 1 instead of zero.
const MAX = 14; // there's only 14 images so far.
// this is good code i swear

// #define NIKOS_PATH
const NIKOS_PATH = "./src/static/img/nikos/";
const EXTENSION = ".png";

const randomNum = Math.floor(Math.random() * MAX) + MIN;

const nikoElement = document.getElementById("noikoneshor");

console.warn("niko");
nikoElement.src = `${NIKOS_PATH}${randomNum}${EXTENSION}`;
}

rollOneShot();

0 comments on commit cc81646

Please sign in to comment.