mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Add stylesheet to config page
This commit is contained in:
parent
49461a0c97
commit
d150bd9ad7
3 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<head>
|
||||
<title>Set directories for your config file.</title>
|
||||
<link rel="stylesheet" href="views/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<button type="button" id="show-config">Show Config</button>
|
||||
|
|
|
@ -14,6 +14,7 @@ function processChildren(element, data) {
|
|||
for (let key in data) {
|
||||
var child = document.createElement("div");
|
||||
child.id = key;
|
||||
child.className = "config-element";
|
||||
child.appendChild(document.createTextNode(key + ": "));
|
||||
if (data[key] === Object(data[key])) {
|
||||
console.log(key, data[key]);
|
||||
|
|
3
views/style.css
Normal file
3
views/style.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
.config-element {
|
||||
margin: 8px;
|
||||
}
|
Loading…
Reference in a new issue