diff --git a/index.html b/index.html
index f2aff4b..98641fd 100644
--- a/index.html
+++ b/index.html
@@ -1,9 +1,15 @@
+ News
+
+
+
- 2018-04-12 12:34:56.345h UTC+1
-
+
+ 2018-04-12 12:34:56.345h UTC+1
+
+
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..6f7297f
--- /dev/null
+++ b/index.js
@@ -0,0 +1,17 @@
+function startDateTimeDisplay() {
+
+ const displayNode = document.querySelector('#datetime span')
+ let dateTime = new Date()
+
+ const updateDateTime = () => {
+ displayNode.innerHTML = dateTime.toString()
+ dateTime = new Date()
+ window.requestAnimationFrame(updateDateTime)
+ }
+
+ window.requestAnimationFrame(updateDateTime)
+}
+
+window.onload = () => {
+ startDateTimeDisplay()
+}
diff --git a/layout.css b/layout.css
index 7eb5110..fab3b16 100644
--- a/layout.css
+++ b/layout.css
@@ -5,7 +5,22 @@ html, body {
margin: 0;
}
-#datetime, #weather {
- width: 100%;
+#weather {
+ display: block;
margin: auto;
+ height: 60vh;
+}
+
+#datetime {
+ display: block;
+ width: 100%;
+ height: 15vh;
+ text-align: center;
+ line-height: 15vh;
+}
+#datetime span {
+ display: inline-block;
+ vertical-align: middle;
+ line-height: 8vh;
+ font-size: 8vh;
}