diff --git a/css/style.css b/css/style.css
index 14b8b16..2dafc51 100644
--- a/css/style.css
+++ b/css/style.css
@@ -8,4 +8,9 @@
.messageFeed{
font-family: Georgia, 'Times New Roman', Times, serif;
+}
+
+footer{
+ padding-top: 1em;
+ padding-bottom: 0.5em;
}
\ No newline at end of file
diff --git a/index.html b/index.html
index e983d6b..eb190de 100644
--- a/index.html
+++ b/index.html
@@ -9,7 +9,7 @@
-
+
@@ -71,13 +71,17 @@
-
+
diff --git a/js/message-creator.js b/js/message-creator.js
index 2b209fc..09f77eb 100644
--- a/js/message-creator.js
+++ b/js/message-creator.js
@@ -18,6 +18,8 @@
document.getElementById("createMessageBtn").onclick = async function(){
document.getElementById("createMessageBtn").setAttribute("disabled", true)
+ document.getElementById("creatingMessage").classList.remove("is-hidden")
+ document.getElementById("creatingCount").innerText = parseInt(document.getElementById("creatingCount").innerText) + 1
let field = document.getElementById("postMessageField")
var postMessage = field.value
if (document.getElementById('use-markdown').checked){
@@ -67,6 +69,10 @@ async function doUpload(data){
}
powWorker.addEventListener('message', function(e) {
+ document.getElementById("creatingCount").innerText = parseInt(document.getElementById("creatingCount").innerText) - 1
+ if (parseInt(document.getElementById("creatingCount").innerText) <= 0){
+ document.getElementById("creatingMessage").classList.add("is-hidden")
+ }
console.debug("Generated block: " + doHashHex(e.data))
doUpload(e.data)
}, false)