From 596a6c280345245a8dd7f3e96b2213ff2a8ef359 Mon Sep 17 00:00:00 2001 From: Kevinnnface <45556758+Kevinnnface@users.noreply.github.com> Date: Fri, 22 Mar 2019 15:06:18 -1000 Subject: [PATCH 01/18] stuff --- css/style.css | 25 ++++++++++++++++++++++++ index.html | 53 ++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 75 insertions(+), 3 deletions(-) diff --git a/css/style.css b/css/style.css index e69de29b..a97ff428 100644 --- a/css/style.css +++ b/css/style.css @@ -0,0 +1,25 @@ +.menuItems { + /* display: flex; */ + color: red; +} +:hover.menuItems{ + color: white; + background: red; +} + +#menuOptions { + padding: 10px; +} + +/* .date{ + float: right; +} */ + +#emails{ + padding: 20px 50px 20px 50px; + margin: 20px 10px 20px 10px; +} + +.body{ + padding: 0px 10px 50px 10px; +} \ No newline at end of file diff --git a/index.html b/index.html index a8a1aad9..3478ef55 100644 --- a/index.html +++ b/index.html @@ -6,13 +6,60 @@ window.onload = function(){ // ALL OF YOUR JAVASCRIPT CODE SHOULD GO HERE. // We have to use window.onload so your JavaScript doesn't execute until the page has loaded and all HTML has been downloaded to your browser - + + function getEmails(x, y){ + for (var i = 0; i < x; i++){ + + var emailBox = document.getElementById('emails'); + + var subject = document.createElement('div'); + subject.className = 'subject'; + subject.textContent = 'Subject: ' + y[i].subject; + emailBox.appendChild(subject); + subject.style.display = 'block'; + + var date = document.createElement('div'); + date.className = 'date'; + date.textContent = 'Date: ' + y[i].date; + subject.appendChild(date); + date.style.display = 'block'; + + var sender = document.createElement('div'); + sender.className = 'sender'; + sender.textContent = 'Sender: ' + y[i].sender; + date.appendChild(sender); + sender.style.display = 'block'; + + var body = document.createElement('div'); + body.className = 'body'; + body.textContent = 'Body: ' + y[i].body; + sender.appendChild(body); + body.style.display = 'block'; + + } + } + getEmails(geemails.length, geemails); + + + setInterval(function(){ + + + + }, 3000); }; -
- Build Me! +

Gee-Mail

+ +
+
\ No newline at end of file From fc2273f16d1800d459fe1f6197f99b5daa0049bb Mon Sep 17 00:00:00 2001 From: Kevinnnface <45556758+Kevinnnface@users.noreply.github.com> Date: Fri, 22 Mar 2019 15:19:27 -1000 Subject: [PATCH 02/18] need to add interval + counter --- index.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 3478ef55..e3028c90 100644 --- a/index.html +++ b/index.html @@ -40,9 +40,12 @@ } getEmails(geemails.length, geemails); - + var num = 10; + var findInbox = document.getElementById('menuOptions'); + findInbox.appendChild(num); + setInterval(function(){ - + inboxCounter.textContent = num++; }, 3000); @@ -52,7 +55,7 @@

Gee-Mail