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
|
// 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: "Connect to specific peer manually"
};
const input = {
element: "input",
id:"peer-field",
type:"text",
name:"search",
placeholder:"Enter an arching-kaos node address"
};
const button = {
element:"button",
onclick:"seekPeer(this.parentElement.querySelector('#peer-field').value, ['search', false])",
innerText:"Try"
};
const container = {
element: "div",
style:"padding: 1vh 1vw; display: flex; flex-direction: row; align-items: center; gap: 10px;",
innerHTML: [
input,
button
]
};
export const manualPeerForm = {
element: "div",
style:"padding: 1vh 1vw; display: flex; flex-direction: column; align-items: center; gap: 10px;",
innerHTML: [
label,
container
]
};
// @license-end
|