-
Notifications
You must be signed in to change notification settings - Fork 24
/
write.html
78 lines (78 loc) · 1.35 KB
/
write.html
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<html>
<head>
<style>
body {
margin: 0;
font-family: arial;
}
.container {
width: 800px;
margin: 0 auto;
}
.container input[type=text]:focus {
outline: none;
}
.container input[type=text] {
width: 100%;
box-sizing: border-box;
padding: 10px;
margin: 5px 0;
}
.form {
margin: 20px;
padding: 50px;
background: rgba(0,0,0,0.03);
}
h2 {
margin: 0;
}
button {
background: gold;
padding: 10px 50px;
color: black;
border-radius: 2px;
border: none;
}
.row {
margin: 20px;
padding: 10px;
}
.row .name {
font-weight: bold;
font-size: 14px;
}
.row a.url {
color: silver;
font-size: 12px;
}
.row .description {
font-size: 12px;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function(e) {
let items = [
{ url: "https://www.bitcoinfiles.org/new", name: "Bitcoinfiles" },
{ url: "https://www.bitpaste.app/tx/new", name: "Bitpaste" },
{ url: "https://add.bico.media", name: "Bico.media" }
];
let html = items.map(function(item) {
return `<div class='row'>
<div class='name'>${item.name}</div>
<a class='url' target="_blank" href='${item.url}'>${item.url}</a>
</div>`
}).join("");
document.querySelector(".rows").innerHTML = html;
})
</script>
</head>
<body>
<div class='container'>
<div class='form'>
<h2>Create Files</h2>
</div>
<div class='rows'>
</div>
</div>
</body>
</html>