blob: 9fe0a9e43508df723b9c14f0e3d091b353628d71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// Arching Kaos Welcome Section
//
// Kaotisk Hund - 2024
//
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
//
const label = {
element : "h3",
innerText: "Get a file via AKFS"
};
const input = {
element: "input",
id:"hash-field",
type:"text",
name:"search",
placeholder:"Enter a hash"
};
const button = {
element:"button",
onclick:"akfsGetMap(this.parentElement.querySelector('#hash-field').value)",
innerText:"Get!"
}
const container = {
element: "div",
style:"padding: 1vh 1vw; display: flex; flex-direction: row; align-items: center; gap: 10px;",
innerHTML: [
input,
button
]
};
export const akfsGetForm = {
element: "div",
style:"padding: 1vh 1vw; display: flex; flex-direction: column; align-items: center; gap: 10px;",
innerHTML: [
label,
container
]
}
// @license-end
|