m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-05-28 17:46:49 +0200
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-05-28 17:46:49 +0200
commit264b3aedd28aa09a761a6b317140234d3bbcaeef (patch)
treeb6adabe4c268aa904ed273adaf3a3d58320d3586 /src
parentf425bbb5fba6a6028c28d08cc715907898f24847 (diff)
Be less pretentious
Diffstat (limited to 'src')
-rw-r--r--src/template.html.erb8
1 files 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 @@
<ul class='links'>
<li><a href='<%= path_to 'index' %>'>Home</a></li>
- <li><a id='writings' href='<%= path_to 'blog' %>'>Writings</a></li>
+ <li><a id='blog' href='<%= path_to 'blog' %>'>Blog</a></li>
<li><a href='<%= path_to 'projects' %>'>Projects</a></li>
</ul>
@@ -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)]
})
</script>