-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (68 loc) · 2.63 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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8" />
<title>Bridge-erc20</title>
</head>
<body>
<script src="./env.js"></script>
<button class="getBalanceOf">getBalanceOf</button>
<script src="./Token/getBalanceOf.js" type="module"></script>
<button class="transfer">transfer</button>
<script src="./Token/transfer.js" type="module"></script>
<button class="burn">burn</button>
<script src="./Token/burn.js" type="module"></script>
<button class="getBalanceOfWrapped">getBalanceOfWrapped</button>
<script src="./wrappedToken/getBalanceOfWrapped.js" type="module"></script>
<form>
<label for="number-input">Введите число *burn*:</label>
<input type="number" id="number-input" name="number-input">
<button type="submit">Отправить</button>
</form>
<!-- <form>
<label for="text-input2">Введите адрес контракта для перевода на другой блокчейн:</label>
<input type="text" id="text-input2" name="text-input2">
<button type="submit" class="submit2">Отправить</button>
</form> -->
<form>
<label for="text-input">Введите адрес контракта:</label>
<input type="text" id="text-input" name="text-input">
<button type="button" id="submit-text">Отправить</button>
</form>
<!-- <form>
<label for="inputAddress">Change token:</label>
<input type="text" id="inputAddress" name="inputAddress">
<button type="button" onclick="changeAddress()">inputAddress</button>
</form> -->
<form id="change-form">
<label for="new-value">New Value:</label>
<input type="text" id="new-value" name="new-value">
<button type="submit">Submit</button>
</form>
<h1 id="myHeading">Hello World!</h1>
<script>
const state = {
address: 'Hello World!',
};
function changeAddress() {
const newAddressText = 'New Heading!';
state.address = newAddressText;
const headingElement = document.getElementById('myHeading');
headingElement.textContent = newAddressText;
}
</script>
<script>
const form = document.getElementById('change-form');
form.addEventListener('submit', (event) => {
event.preventDefault();
const newValue = document.getElementById('new-value').value;
changeGlobalVariable(newValue);
});
</script>
<!-- 0x2263e6f927AF4Dbc440c0a8DECADff3eE3A71c8C -->
<script
src="https://cdn.ethers.io/lib/ethers-5.0.umd.min.js"
type="text/javascript"
></script>
</body>
</html>