added storage cap

This commit is contained in:
2024-04-25 11:59:56 -07:00
parent f176e7d773
commit 46374404f3
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -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>
+6 -1
View File
@@ -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");
}
});
});