-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
107 lines (88 loc) · 2.65 KB
/
index.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html>
<head>
<title>Coinjoin Demo</title>
<style>
/* Add some basic styles for the demo */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
}
h1 {
text-align: center;
}
.container {
max-width: 500px;
margin: 0 auto;
}
.form-group {
margin-bottom: 10px;
}
label {
display: block;
font-weight: bold;
}
input[type="text"], input[type="number"] {
width: 100%;
padding: 5px;
}
button {
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="container">
<h1>Coinjoin Demo</h1>
<div class="form-group">
<label for="amount1">Amount 1:</label>
<input type="number" id="amount1" name="amount1" step="0.01" placeholder="Enter amount">
</div>
<div class="form-group">
<label for="amount2">Amount 2:</label>
<input type="number" id="amount2" name="amount2" step="0.01" placeholder="Enter amount">
</div>
<div class="form-group">
<label for="PubKey">PubKey:</label>
<input type="text" id="pubkey" name="pubkey" placeholder="Enter PubKey(Nostr)">
</div>
<div class="form-group">
<label for="PubKey">PubKey:</label>
<input type="text" id="pubkey" name="pubkry" placeholder="Enter PubKey(Nostr)">
</div>
<div class="form-group">
<label for="address1">Alice:</label>
<input type="text" id="address1" name="address1" placeholder="Enter address">
</div>
<div class="form-group">
<label for="address2">Bob:</label>
<input type="text" id="address2" name="address2" placeholder="Enter address">
</div>
<button onclick="coinjoin()">Perform Coinjoin</button>
<div id="result"></div>
</div>
<script>
function coinjoin() {
// Retrieve values from the input fields
var amount1 = document.getElementById("amount1").value;
var amount2 = document.getElementById("amount2").value;
var address1 = document.getElementById("address1").value;
var address2 = document.getElementById("address2").value;
var pubkey = document.getElementById("PubKey").value;
var pubkey = document.getElementById("PubKey").value;
// Perform the Coinjoin logic here
// Display the result
var resultElement = document.getElementById("result");
resultElement.innerHTML = "Coinjoin performed successfully!";
}
</script>
</body>
</html>