-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
165 lines (149 loc) · 5.33 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>XCSwap</title>
<link rel="stylesheet" href="https://bulma.io/vendor/fontawesome-free-5.15.2-web/css/all.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
<link rel="shortcut icon" href="./images/dapp-icon2.png" />
<style>
.wrap {
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-all;
hyphens: auto;
overflow: scroll;
/* word-wrap: break-word; */
}
</style>
</head>
<body>
<!-- mt-4 mb-4 -->
<div class="panel">
<nav class="navbar mt-2">
<div class="container">
<div class="navbar-brand">
<div class="content">
<h3>Welcome to
<b class="has-text-primary">XCSwap</b>!
</h3>
<p class="subtitle">A confidential cross-chain transaction system</p>
</div>
</div>
<div class="navbar-end">
<p> Disclaimer:
this is a prototype website
</p>
<div class="navbar-divider"></div>
</div>
</div>
</nav>
</div>
<div class="container mt-2" id="page">
<div class="box">
<div class="content mb-5">
<h4> <b> WebRTC </b>: creating a secure peer-to-peer communication channel </h4>
<hr>
<h4> How should we address you? </h4>
<div class="field has-addons">
<input class="input" type="text" placeholder="Enter your preferred name" id="name-input">
<button class="button is-primary" id="name-button">
<b> Enter </b>
</button>
</div>
<br>
<h4>Are you setting up first?</h4>
<div class="field is-grouped is-grouped-centered">
<div class="control">
<label class="radio box">
<input type="radio" name="r" value="B">
<b>Yes</b>
</label>
<label class="radio box">
<input type="radio" name="r" value="A">
<b>No</b>
</label>
</div>
</div>
<h4> Session Description Protocol (SDP) Exchange</h4>
<div class="field wrap" id="rtcbox">
<button class="button is-primary mt" id="rtc-setup-btn">
<b> Generate SDP </b>
</button>
<br> <br>
</div>
<textarea class="textarea" placeholder="Paste your partner's SDP here" id="rtc-offer"></textarea>
<br>
<button class="button is-primary is-pulled-right" id="rtc-offer-btn">
<b> Receive Partner's SDP </b>
</button>
</div>
</div>
<div class="columns">
<div class="column is-half">
<div class="box">
<div class="content">
<h4>Your Network</h4>
</div>
<div class="field is-grouped is-grouped-centered mb-5">
<img src="https://seeklogo.com/images/G/ganache-logo-1EB72084A8-seeklogo.com.png" alt="ganache" border="0" style="width:50px;height:50px" id="mimg">
<div class = "select is-rounded is-primary is-medium" id="mnet-border">
<select id="mnet">
<option value="ganache">Ganache</option>
<option value="klaytn">Klaytn</option>
<option value="sepolia">Sepolia</option>
<option value="goerli">Goerli</option>
</select>
</div>
</div>
</div>
</div>
<div class="column is-half" style="height:100%">
<div class="box" >
<div class="content">
<h4 id="pnetbox">Partner's Network</h4>
</div>
<div class="field is-grouped is-grouped-centered mb-5">
<img src= "https://seeklogo.com/images/G/ganache-logo-1EB72084A8-seeklogo.com.png" alt="truffle" border="0" style="width:50px;height:50px" id="pimg">
<div class = "select is-rounded is-primary is-medium" id="pnet-border">
<select id="pnet">
<option value="ganache">Ganache</option>
<option value="klaytn">Klaytn</option>
<option value="sepolia">Sepolia</option>
<option value="goerli">Goerli</option>
</select>
</div>
</div>
<p></p>
</div>
</div>
</div>
<div class="box" id="tktype-border">
<div class="content">
<h4 id="tktypebox">Transaction Token</h4>
</div>
<div class="field is-grouped is-grouped-centered">
<label class="box control">
<input type="radio" name="tkty" value="ERC20">
<b>ERC20</b>
</label>
<label class="box control">
<input type="radio" name="tkty" value="ERC721">
<b>ERC721</b>
</label>
</div>
</div>
<div class="container mt-4">
<button class="button is-medium is-primary is-light is-pulled-right" id="next">
<span>
<strong>Next</strong>
</span>
<i>→</i>
</button>
</div>
</div>
<script type = "module" src="index.js"></script>
</body>
</html>