m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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>