Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add niko oneshot #379

Merged
merged 3 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions 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 All @@ -60,7 +62,7 @@
onclick="location.href = 'https://s0.slopify.dev/';"
>
Click here for stale slop. &#x1F416;
</button>

Check failure on line 65 in LIVE/index.html

View workflow job for this annotation

GitHub Actions / validate-html

Stray end tag “header”.
</header>
<div class="center"><p>This is how to center a div!</p></div>
<hr />
Expand Down Expand Up @@ -110,6 +112,8 @@
the ones that track your every move. Enjoy! You can opt out by clicking
<a href="cookie/opt-out">here.</a>
</div>
<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 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();

Loading