mirror of
https://github.com/ION606/PINK-NODDERS.git
synced 2026-05-14 14:06:53 +00:00
added storage cap
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@
|
||||
<div id="cherryBlossomPopup" class="popup">
|
||||
<div class="popup-content">
|
||||
<button class="close-btn" onclick="document.getElementById('cherryBlossomPopup').style.display = 'none'">X</button>
|
||||
<h2>Cherry Blossom Popup</h2>
|
||||
<h2>PINK OPTIONS</h2>
|
||||
<input type="number" placeholder="HOW MANY PINK NODDERS">
|
||||
<div class="button-group">
|
||||
<button class="theme-button" onclick="changeNodders()">CHANGE NODDERS</button>
|
||||
|
||||
@@ -24,6 +24,7 @@ function updatePosition(emote) {
|
||||
}
|
||||
|
||||
// Create multiple emotes and make them bounce around
|
||||
if (Number(localStorage.getItem('alen')) > 10000) localStorage.setItem('alen', '20');
|
||||
const aLength = (localStorage.getItem('alen')) ? Number(localStorage.getItem('alen')) : 20;
|
||||
let emotes = Array.from({ length: aLength }, createEmote);
|
||||
|
||||
@@ -126,9 +127,13 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
animIntTime = (animIntTime <= 500) ? 2000 : animIntTime - 500;
|
||||
console.debug(animIntTime);
|
||||
|
||||
|
||||
animIntId = setInterval(animateEmotes, animIntTime);
|
||||
}
|
||||
else if (event.ctrlKey && event.key === 'l') {
|
||||
event.preventDefault();
|
||||
window.open("https://ion606.com", "_blank");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user