m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/template.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'src/template.html.erb')
-rw-r--r--src/template.html.erb39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/template.html.erb b/src/template.html.erb
new file mode 100644
index 0000000..d61054e
--- /dev/null
+++ b/src/template.html.erb
@@ -0,0 +1,39 @@
+<head>
+ <title><%= head_title %></title>
+ <link rel='stylesheet' type='text/css' href='<%= path_to 'style' %>'>
+ <meta charset='utf8'>
+</head>
+<body>
+ <h1><%= h1_title %></h1>
+
+ <hr />
+
+ <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 href='<%= path_to 'projects' %>'>Projects</a></li>
+ </ul>
+
+ <hr />
+
+ <%= content %>
+
+ <script type='text/javascript'>
+ var synonyms = [
+ 'Writings',
+ 'Blog',
+ 'Articles',
+ 'Posts',
+ 'Notes',
+ 'Memos',
+ 'Thoughths',
+ 'Words'
+ ]
+ var writings = document.getElementById('writings')
+ writings.addEventListener('mouseenter', function (event) {
+
+ writings.innerHTML =
+ synonyms[Math.floor(Math.random() * synonyms.length)]
+ })
+ </script>
+</body>