Add stylesheet to config page

This commit is contained in:
Saba
2021-11-27 14:39:05 -05:00
parent 49461a0c97
commit d150bd9ad7
3 changed files with 5 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<head> <head>
<title>Set directories for your config file.</title> <title>Set directories for your config file.</title>
<link rel="stylesheet" href="views/style.css">
</head> </head>
<body> <body>
<button type="button" id="show-config">Show Config</button> <button type="button" id="show-config">Show Config</button>

View File

@@ -14,6 +14,7 @@ function processChildren(element, data) {
for (let key in data) { for (let key in data) {
var child = document.createElement("div"); var child = document.createElement("div");
child.id = key; child.id = key;
child.className = "config-element";
child.appendChild(document.createTextNode(key + ": ")); child.appendChild(document.createTextNode(key + ": "));
if (data[key] === Object(data[key])) { if (data[key] === Object(data[key])) {
console.log(key, data[key]); console.log(key, data[key]);

3
views/style.css Normal file
View File

@@ -0,0 +1,3 @@
.config-element {
margin: 8px;
}