-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: semi random niko oneshot image rotation
i would have done this like three days ago but i was too busy playing miside
- Loading branch information
1 parent
b2b8c6c
commit cc81646
Showing
18 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|