{
document.documentElement.style.overflowY = 'scroll';
+let timer = -1;
+const postButton = document.getElementById('postButton');
+window.addEventListener('scroll', () => {
+ if (timer !== -1) {
+ if (postButton != null) {
+ postButton.style.animation = 'shrink 0.5s linear 1';
+ }
+ clearTimeout(timer);
+ }
+ timer = setTimeout(() => {
+ if (postButton != null) {
+ postButton.style.animation = 'grow 0.5s linear 1';
+ }
+ }, 150);
+}, false);
+
if (defaultStore.state.widgets.length === 0) {
defaultStore.set('widgets', [{
name: 'calendar',
@@ -175,6 +192,24 @@ const wallpaper = localStorage.getItem('wallpaper') != null;