diff options
Diffstat (limited to 'themes/danix-xyz-hacker/assets/js/fortune.js')
| -rw-r--r-- | themes/danix-xyz-hacker/assets/js/fortune.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/themes/danix-xyz-hacker/assets/js/fortune.js b/themes/danix-xyz-hacker/assets/js/fortune.js deleted file mode 100644 index d4f981b..0000000 --- a/themes/danix-xyz-hacker/assets/js/fortune.js +++ /dev/null @@ -1,9 +0,0 @@ -(function() { - const el = document.getElementById('fortune-quote'); - if (!el) return; - const quotes = JSON.parse(el.dataset.quotes); - if (!quotes || quotes.length === 0) return; - const q = quotes[Math.floor(Math.random() * quotes.length)]; - el.querySelector('.fortune-text').textContent = '"' + q.text + '"'; - el.querySelector('.fortune-author').textContent = '— ' + q.author; -})(); |
