-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwrite.html
More file actions
127 lines (112 loc) · 6.81 KB
/
write.html
File metadata and controls
127 lines (112 loc) · 6.81 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Crypto Pets</title>
<link rel="shortcut icon" type="image/png" href="assets/favicon.png"/>
<link rel="stylesheet" type="text/css" href="index.css">
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
</head>
<body class="bg-dark">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">Crypto Pets</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="index.html" target="_self">Home</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="write.html" target="_self">Mint</a>
</li>
<li class="nav-item">
<a class="nav-link" href="read.html" target="_self">View Token</a>
</li>
</ul>
<form class="d-flex">
<button type="button" class="btn btn-outline-success" id="btn-connect" onclick="ethEnabled()">
Connect wallet
</button>
<div id="connected" style="display: none">
<button type="button" class="btn btn-outline-danger" id="btn-disconnect">
</button>
</form>
</div>
</div>
</form>
</nav>
<hr class="bg-light">
<div class=”container”>
<div class="container">
<div class="row">
<div class="col">
<h2 id=”instructor” class="text">Mint your Crypto Pet!</h2>
<form>
<div class="mb-3">
<label for="nameInputField" class="text form-label">Pet name</label>
<input type="text" class="form-control" id="nameInputField" aria-describedby="nameInputHelp">
<div id="nameInputHelp" class="form-text">This will be the name of your Crypto Pet.</div>
</div>
<div class="mb-3">
<label class="form-label text" for="customFile">Upload</label>
<input type="file" class="form-control" id="customFile">
</div>
<div class="mb-3">
<label class="text form-label"><p><em>Optional</em></p></label><br>
<label class="form-label text" for="customFile">Donate some xDai to an animal shelter!</label><br>
<div class="btn-group me-2 xDaiDonationBox" role="group" aria-label="xDai donation">
<button type="button" class="btn btn-secondary">◈1</button>
<button type="button" class="btn btn-secondary">◈5</button>
<button type="button" class="btn btn-secondary">◈10</button>
<button type="button" class="btn btn-secondary">◈50</button>
<div class="input-group">
<span class="input-group-text" id="inputGroupPrepend3">◈</span>
<input type="text" class="form-control customDonationBox" id="customDonationAmmount" aria-describedby="inputGroupPrepend3" required="">
</div>
</div>
</div>
<button type="button" class="sendEthButton btn btn-primary">Mint</button>
</form>
<div class="text" style="display: none;" id="mintResult">
<h2>Minted!</h2>
</div>
</div>
<div class="col border rounded col-xs-1" align="center">
<h1 class="text" style="padding-top: 10px">Crypto Pets</h1>
<figure class="figure" id="petImgPlaceholder">
<svg class="bd-placeholder-img figure-img img-fluid rounded" width="400" height="300" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: 400x300" preserveAspectRatio="xMidYMid slice" focusable="false"><title>Placeholder</title><rect width="100%" height="100%" fill="#868e96"></rect><text x="25%" y="50%" fill="#dee2e6" dy=".3em">Input valid CID to view image</text></svg>
</figure>
<img src="" class="rounded mx-auto d-block" alt="" id="petImg">
<div id="cardInfo" >
<h3 class="text">Name:</h3>
<h4 class="text" id="cardName">¯\_(ツ)_/¯</h4>
<h3 class="text" style="padding-top: 35px">ID:</h3>
<h4 class="text" style="padding-bottom: 25px" id="cardId">¯\_(ツ)_/¯</h4>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://unpkg.com/web3modal@1.9.0/dist/index.js"></script>
<script type="text/javascript" src="https://unpkg.com/evm-chains@0.2.0/dist/umd/index.min.js"></script>
<script src="./script/contractInfo.js"></script>
<script src="./script/web3.js"></script>
<script src="./script/writeInput.js"></script>
<script src="./script/write.js"></script>
<script src="./script/readFunctions.js"></script>
<footer class="footer mt-auto py-3 bg-dark text">
<div class="container">
<span class="text-muted">Made by <a href="https://github.com/makemake-kbo/CryptoPets" style="color: #fff;text-decoration: none;">Vukasin Gostovic</a> with ❤️. Licensed under 3BSD.</span>
</div>
</footer>
</body>
</html>