-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
29 lines (27 loc) · 848 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Web3 Dapp</title>
<!-- CSS links -->
<link rel="stylesheet" href="style.css" />
<!-- ethers.js links -->
<script
src="https://cdn.ethers.io/lib/ethers-5.7.2.umd.min.js"
type="application/javascript"
></script>
</head>
<body>
<div class="container">
<h1>This is my simple Decentralized Application</h1>
<p>Here you can set or get the mood:</p>
<label for="mood">Input mood: </label>
<input type="text" name="text" id="mood" />
<button onclick="setMood()">Set Mood</button>
<button onclick="getMood()">Get Mood</button>
<p id="showMood"></p>
</div>
<script src="main.js"></script>
</body>
</html>