From 264b3aedd28aa09a761a6b317140234d3bbcaeef Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Thu, 28 May 2020 17:46:49 +0200 Subject: Be less pretentious --- src/template.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/template.html.erb b/src/template.html.erb index 2055571..c4270c8 100644 --- a/src/template.html.erb +++ b/src/template.html.erb @@ -12,7 +12,7 @@ @@ -31,10 +31,10 @@ 'Thoughths', 'Words' ] - var writings = document.getElementById('writings') - writings.addEventListener('mouseenter', function (event) { + var blog = document.getElementById('blog') + blog.addEventListener('mouseenter', function (event) { - writings.innerHTML = + blog.innerHTML = synonyms[Math.floor(Math.random() * synonyms.length)] }) -- cgit v1.2.3