forked from SamueleA/simple-Ethereum-Dapp-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
91 lines (87 loc) · 4.09 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Basic Dapp template</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="./css/index.css">
<link rel="stylesheet" href="./css/jquery.mCustomScrollbar.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="https://unpkg.com/vue"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="./libs/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="./libs/humanize-duration.js"></script>
<script src="./libs/xss-filters.min.js"></script>
<script src="./libs/moment.min.js"></script>
<script src="./js/components.js"></script>
<script src="./js/web3_contractsLoader.js"></script>
<script src="./js/index.js"></script>
</head>
<body>
<div class="container-fluid site-main">
<div class ="warnings" hidden='true' >
<div id="noWeb3AccountWarning" hidden='true' align='center' class = "row">
<div class="alert alert-danger col-md-offset-3 col-md-6" style='display:inline-block;'>
<p><strong>No Ethereum account found.</strong></p>
<p>You are currently unable to initiate any commands. Make sure Metamask is installed and unlocked, and refresh.</p>
</div>
</div>
<div id="networkWarning" hidden='true' align='center' class = "row" >
<div class="alert alert-danger col-md-offset-3 col-md-6" style='display:inline-block;'>
<p><strong>You are currently operating on the Ropsten testnet.</strong></p>
<p>To interact with a real contract, change your Metamask network to the "Main" Ethereum network, and refresh.</p>
</div>
</div>
</div>
<div class="header" >
<div class="title" align='center' ><h1 >Dapp title goes here :)</h1></div>
</div>
<div id="mainVue">
<h2>User information</h2>
<div class="mainBlock balances">
<div class="well well-sm row">
<div class="col-md-6">
<div>Your address</div>
<eth-address-output :shorten-to=10 :address='userAddress'>
</div>
<div class="col-md-6">
<div>Your balance</div>
<ether-output :wei='userBalance'></ether-output>
</div>
</div>
</div>
<h2>Events history</h2>
<div class="mainBlock eventList">
<div class="row well well-sm">
<div class="col-md-12 eventLog scrollBar">
<event-row v-for="event in events" :event="event"></event-row>
</div>
</div>
</div>
<!-- What follows is an examples of an empty block ready to be filled -->
<h2>This is a custom block</h2>
<div class="mainBlock">
<div class="row well well-sm">
<div class="col-md-12">
<p>You can fill me with content!</p>
</div>
</div>
</div>
<!-- What follows is an examples of an empty block ready to be filled -->
<h2>This is a custom block</h2>
<div class="mainBlock">
<div class="row well well-sm">
<div class="col-md-12">
<p>You can fill me with content!</p>
</div>
</div>
</div>
<div class="mainBlock">
<div class='footer' style = 'color:white; margin-bottom: 20px;'>Powered by <a style='color:orange;' href="https://github.com/cryptoprimitive/" target="_blank">CryptoPrimitve</a></div>
</div>
</div>
</div>
</body>
</html>