diff --git a/config.json b/config.json
index 42b01ac..c23c7dc 100644
--- a/config.json
+++ b/config.json
@@ -29,5 +29,6 @@
]
}
],
- "user": "Deepjyoti"
+ "user": "Deepjyoti",
+ "disableMessage": true
}
diff --git a/index.html b/index.html
index 66b75ae..c48f0a5 100644
--- a/index.html
+++ b/index.html
@@ -16,34 +16,6 @@
-
diff --git a/js/main.js b/js/main.js
index 82c7cc3..4a18524 100644
--- a/js/main.js
+++ b/js/main.js
@@ -3,6 +3,7 @@ window.onload = function() {
}
searchBarId = "search-bar-input"
+messageDivId = "message"
messageId = "message-text"
otherContentId = "other-content"
userName = "Deepjyoti"
@@ -94,6 +95,11 @@ function parseAndCreate(jsonData) {
builtMsg = `Hello ${this.userName}` : builtMsg = `Hey ${this.userName}, ${builtMsg}!`
document.getElementById(messageId).textContent = builtMsg
+ // Check if welcome message is supposed to be disabled
+ disableMsg = jsonData["disableMessage"]
+ if (disableMsg)
+ document.getElementById(messageDivId).style.display = "none"
+
sqrs = jsonData["squares"]