mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 05:39:12 +00:00
Add stylesheet to config page
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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
3
views/style.css
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.config-element {
|
||||||
|
margin: 8px;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user