-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
78 lines (65 loc) · 1.39 KB
/
index.html
File metadata and controls
78 lines (65 loc) · 1.39 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Blockchain Noter Uygulaması</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 0;
padding: 40px;
background-color: #f4f4f4;
}
h2 {
color: #333;
}
input[type="file"] {
margin: 10px auto;
display: block;
}
button {
margin: 10px auto;
padding: 10px 20px;
font-size: 16px;
background-color: #4CAF50;
border: none;
color: white;
cursor: pointer;
border-radius: 4px;
}
button:hover {
background-color: #45a049;
}
#result {
margin-top: 20px;
color: #333;
font-weight: bold;
}
.section {
background-color: white;
padding: 30px;
margin: 30px auto;
width: 60%;
border-radius: 10px;
box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/ethers@5.7.2/dist/ethers.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/crypto-js@4.1.1/crypto-js.js"></script>
<div class="section">
<h2>Belge Kaydet</h2>
<input type="file" id="uploadInput" />
<button onclick="uploadHash()">Blockchain'e Kaydet</button>
</div>
<div class="section">
<h2>Belge Doğrula</h2>
<input type="file" id="verifyInput" />
<button onclick="verifyHash()">Blockchain'de Doğrula</button>
</div>
<p id="result"></p>
<script src="functions.js"></script>
</body>
</html>