mirror of
https://github.com/ION606/PINK-NODDERS.git
synced 2026-05-14 22:16:52 +00:00
added storage cap
This commit is contained in:
@@ -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