From b58f8e416a7c41bceb35b74ecf81f6652ada6a87 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Tue, 5 Feb 2019 00:29:06 -0600 Subject: [PATCH] more work on mail --- onionr/static-data/www/mail/index.html | 10 +++++++++- onionr/static-data/www/mail/mail.css | 12 ++++++++++++ onionr/static-data/www/mail/mail.js | 15 +++++++++++---- onionr/static-data/www/shared/main/style.css | 19 ++++++++++++++++--- 4 files changed, 48 insertions(+), 8 deletions(-) diff --git a/onionr/static-data/www/mail/index.html b/onionr/static-data/www/mail/index.html index dc7e6c65..01584f09 100755 --- a/onionr/static-data/www/mail/index.html +++ b/onionr/static-data/www/mail/index.html @@ -24,7 +24,15 @@
Nothing here yet 😞
-
+
+ +
+
From: +
+
+
+
+
diff --git a/onionr/static-data/www/mail/mail.css b/onionr/static-data/www/mail/mail.css index fc39509b..c3da2296 100755 --- a/onionr/static-data/www/mail/mail.css +++ b/onionr/static-data/www/mail/mail.css @@ -40,4 +40,16 @@ input{ .activeTab{ color: black; background-color: gray; + } + + .overlayContent{ + background-color: lightgray; + border: 3px solid black; + border-radius: 3px; + opacity: 1.0; + color: black; + font-family: Verdana, Geneva, Tahoma, sans-serif; + min-height: 100%; + padding: 1em; + margin: 1em; } \ No newline at end of file diff --git a/onionr/static-data/www/mail/mail.js b/onionr/static-data/www/mail/mail.js index 5f26f694..d39c0380 100755 --- a/onionr/static-data/www/mail/mail.js +++ b/onionr/static-data/www/mail/mail.js @@ -26,8 +26,9 @@ myPub = httpGet('/getActivePubkey') function openThread(bHash, sender, date){ var messageDisplay = document.getElementById('threadDisplay') - stuff = httpGet('/getblockbody/' + bHash) - messageDisplay.innerText = stuff + blockContent = httpGet('/getblockbody/' + bHash) + document.getElementById('fromUser').value = sender + messageDisplay.innerText = blockContent overlay('messageDisplay') } @@ -91,7 +92,6 @@ function loadInboxEntrys(bHash){ }.bind(bHash)) } - function getInbox(){ var showed = false var requested = '' @@ -144,4 +144,11 @@ for (var i = 0; i < idStrings.length; i++){ for (var i = 0; i < document.getElementsByClassName('refresh').length; i++){ document.getElementsByClassName('refresh')[i].style.float = 'right' -} \ No newline at end of file +} + +for (var i = 0; i < document.getElementsByClassName('closeOverlay').length; i++){ + document.getElementsByClassName('closeOverlay')[i].onclick = function(e){ + document.getElementById(e.target.getAttribute('overlay')).style.visibility = 'hidden' + } +} + diff --git a/onionr/static-data/www/shared/main/style.css b/onionr/static-data/www/shared/main/style.css index 0c220f40..c481b7a0 100755 --- a/onionr/static-data/www/shared/main/style.css +++ b/onionr/static-data/www/shared/main/style.css @@ -132,10 +132,23 @@ body{ left: 0px; top: 0px; width:100%; - opacity: 0.9; + opacity: 0.95; height:100%; - text-align:center; + text-align:left; z-index: 1000; - background-color: black; + background-color: #2c2b3f; color: white; } + + .closeOverlay{ + background-color: white; + color: black; + border: 1px solid red; + border-radius: 5px; + float: right; + font-family: sans-serif; + } + .closeOverlay:after{ + content: '❌'; + padding: 5px; + } \ No newline at end of file