-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
180 lines (162 loc) · 8.61 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<html>
<head>
<title>Kadena Transfer Tool</title>
<script src="https://code.jquery.com/jquery-3.1.1.min.js" crossorigin="anonymous"></script>
<link rel="icon" href="https://explorer.chainweb.com/static/img/favicon/0d63dkd822sxczcy51lbhqgflzdxw6lhgf88x2j7kc55hcpk120y-favicon-96x96.png">
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css"> -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/pact-lang-api-global.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/CrossChainStyle.css">
<script>
function download(data, filename, type) {
var file = new Blob([data], {type: type});
if (window.navigator.msSaveOrOpenBlob) // IE10+
window.navigator.msSaveOrOpenBlob(file, filename);
else { // Others
var a = document.createElement("a"),
url = URL.createObjectURL(file);
a.href = url;
a.download = filename;
document.body.appendChild(a);
a.click();
setTimeout(function() {
document.body.removeChild(a);
window.URL.revokeObjectURL(url);
}, 0);
}
}
document.addEventListener('click', async function (event) {
if (!event.target.matches('#gen-button')) return;
event.preventDefault();
var kp = Pact.crypto.genKeyPair();
var id = kp.publicKey.substring(0, 6);
var priv = `public: ${kp.publicKey}\nsecret: ${kp.secretKey}`
var privName = `private-keypair-${id}.kda`
var pub = `public: ${kp.publicKey}`
var pubName = `public-keypair-${id}.kda`
download(priv, privName, "text/plain;charset=utf-8");
download(pub, pubName, "text/plain;charset=utf-8");
}, false);
function simpleToggle() {
var menuD = document.getElementById("menuDiv");
if (menuD.style.display === "none") {
menuD.style.display = "block";
} else {
menuD.style.display = "none";
}
}
</script>
</head>
<body>
<div id="main">
<!-- <img class="graph" src="img/graph.png" alt="graph"> -->
<script>
(function() {
var currentDate = new Date();
var targetDate = new Date('2025-01-31T23:59:59');
if (currentDate > targetDate) {
window.location.href = "https://tools.kadena.io";
}
})();
</script>
<div class="nav">
<h1>Kadena Coin Transfer</h1>
<div class="container">
<!--<div id="subhead">
<a class="headlink" href="cross-chain.html" >Cross Chain Transfer</span>
<span class="headlink current" >Coin Transfer</span>
</div>-->
</div>
<div class="container-right">
<div id="subhead" class="subheadButton">
<span class="headlink" onclick="simpleToggle()">
<div>Menu</div>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>
</span>
</div>
<span id="menuDiv" class="headlinkContainer" style="display: none;">
<a class="headlinkSite" href="docs/transfer-create.html">
<div>Coin Transfer</div>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" opacity="0.6"><path d="M5 12h13M12 5l7 7-7 7"/></svg>
</a>
<a class="headlinkSite" href="docs/cross-chain.html">
<div>Cross Chain Transfer</div>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" opacity="0.6"><path d="M16 3h5v5M4 20L20.2 3.8M21 16v5h-5M15 15l5.1 5.1M4 4l5 5"/></svg>
</a>
<a class="headlinkSite" href="docs/balance-checker.html">
<div>Balance Checker</div>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" opacity="0.6"><line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path></svg>
</a>
<a class="headlinkSite" href="docs/code-viewer.html">
<div>Code Viewer</div>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" opacity="0.6"><polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline></svg>
</a>
<a class="headlinkSite" id="gen-button" >
<div id="gen-button">Generate KeyPair</div>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" opacity="0.6"><path d="M3 15v4c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2v-4M17 9l-5 5-5-5M12 12.8V2.5"/></svg>
</a>
</span>
</div>
</div>
<div>
<p>NOTICE: This website is deprecated in favor of <a href="https://tools.kadena.io">tools.kadena.io</a></p>
<p>The website will go offline at January 31st, 2025</p>
<p>Issues can be reported at <a href="https://github.com/kadena-community/kadena.js/issues/new/choose">github.com/kadena-community/kadena.js</a></p>
</div>
<div class="container">
<div class="container">
<a href="docs/transfer-create.html">
<button id="submit-button" class="button">
Transfer
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M7 17l9.2-9.2M17 17V7H7"/></svg>
</button>
</a>
<a href="docs/cross-chain.html">
<button id="xchain-button" class="button">
Finish Cross Chain Transfer
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M7 17l9.2-9.2M17 17V7H7"/></svg>
</button>
</a>
<a href="docs/balance-checker.html">
<button class="button">
Check Account Balance
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M7 17l9.2-9.2M17 17V7H7"/></svg>
</button>
</a>
<a href="docs/code-viewer.html">
<button class="button">
Code Viewer
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M7 17l9.2-9.2M17 17V7H7"/></svg>
</button>
</a>
<button id="gen-button" class="button">
Generate KeyPair
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 15v4c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2v-4M17 9l-5 5-5-5M12 12.8V2.5"/></svg>
</button>
<!-- <a href="address.html"><button id="submit-button" class="button">Generate Kadena Address</button></a> -->
</div>
</div>
</body>
<style>
.button {
width: 100%;
padding: 2rem 2rem;
margin: 0.5rem 0rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
font-size: 1.2rem;
}
#gen-button {
background-color: #00000044;
}
#gen-button:hover {
background-color: #00000063;
}
#gen-button:active {
background-color: #0000002d;
}
</style>
</html>