diff --git a/css/reset.css b/css/reset.css
new file mode 100644
index 00000000..af944401
--- /dev/null
+++ b/css/reset.css
@@ -0,0 +1,48 @@
+/* http://meyerweb.com/eric/tools/css/reset/
+ v2.0 | 20110126
+ License: none (public domain)
+*/
+
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+b, u, i, center,
+dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td,
+article, aside, canvas, details, embed,
+figure, figcaption, footer, header, hgroup,
+menu, nav, output, ruby, section, summary,
+time, mark, audio, video {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ font-size: 100%;
+ font: inherit;
+ vertical-align: baseline;
+}
+/* HTML5 display-role reset for older browsers */
+article, aside, details, figcaption, figure,
+footer, header, hgroup, menu, nav, section {
+ display: block;
+}
+body {
+ line-height: 1;
+}
+ol, ul {
+ list-style: none;
+}
+blockquote, q {
+ quotes: none;
+}
+blockquote:before, blockquote:after,
+q:before, q:after {
+ content: '';
+ content: none;
+}
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
\ No newline at end of file
diff --git a/index.html b/index.html
index a8a1aad9..1fd18708 100644
--- a/index.html
+++ b/index.html
@@ -1,18 +1,86 @@
+
+ GeeMail
+
+
-
-
+
+
+
-
- Build Me!
+
+
+
+
+
+
+
+ | Subject |
+ Sender |
+ Date |
+
+
+
+
+ |
+
+
+
+
+
\ No newline at end of file
diff --git a/js/app.js b/js/app.js
new file mode 100644
index 00000000..1b233088
--- /dev/null
+++ b/js/app.js
@@ -0,0 +1,37 @@
+'use strict';
+
+window.onload = function() {
+ console.log(window.geemails);
+ let tbl = document.getElementById('tbl');
+ let email = 0;
+
+ window.geemails.forEach(function(msg) {
+ loadEmail(msg)
+ });
+
+ function loadEmail(msg) {
+ email++;
+ // show number of messages
+ document.getElementById('inbox').innerHTML = `Inbox ${email}`;
+
+ // create row and cell for the email
+ let rows = tbl.insertRow(1);
+ let senderCell = rows.insertCell(0);
+ senderCell.innerHTML = msg.sender;
+ let subjectCell = rows.insertCell(1);
+ subjectCell.innerHTML = msg.subject;
+ let dateCell = rows.insertCell(2);
+ dateCell.innerHTML = msg.date;
+ let body = msg.body;
+
+ // print info and message
+ rows.onclick = function() {
+ document.getElementById('email-info').innerHTML = `${msg.date}
${msg.sender}
${msg.subject}`;
+ document.getElementById('email-content').innerHTML = `${body}`;
+ }
+ };
+ // render new message
+ setInterval(function() {
+ loadEmail(getNewMessage());
+ }, 8000)
+};
\ No newline at end of file