1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
-
4
3
< head >
5
4
< meta charset ="UTF-8 ">
6
5
< title > BLT Wallet - Testnet Wallet for Bitcoin & Litecoin</ title >
12
11
< script src ="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.13/semantic.min.js "> </ script >
13
12
< script src ="https://rawgit.com/sereneblue/blt-wallet/master/src/js/app.js "> </ script >
14
13
</ head >
15
-
16
14
< body >
17
15
< div id ="app ">
18
16
< div id ="sidebar " class ="ui sidebar inverted vertical menu visible ">
19
17
< div class ="item ">
20
18
< br />
21
- < img class ="ui centered image " src ="https://rawgit.com/sereneblue/blt-wallet/master/src/ resources/icon.png ">
19
+ < img class ="ui centered image " src ="resources/icon.png ">
22
20
< div class ="ui inverted centered header "> BLT Wallet</ div >
23
21
</ div >
24
22
< div class ="item ">
27
25
</ div >
28
26
< div class ="item ">
29
27
< div class ="four ui buttons ">
30
- < button :class ="color " class ="ui basic small icon button " data-tooltip ="Create new address " data-position ="top left " onclick ="app.init(app.current) ">
28
+ < button :class ="color " class ="ui basic small icon button " data-tooltip ="Create new address " data-position ="top left " @click ="app.init(app.current) ">
31
29
< i class ="plus icon "> </ i >
32
30
</ button >
33
- < button :class ="color " class ="ui basic small icon button " data-tooltip ="Switch Currency " onclick ="switchCurrency(); ">
31
+ < button :class ="color " class ="ui basic small icon button " data-tooltip ="Switch Currency " @click ="switchCurrency(); ">
34
32
< i class ="exchange icon "> </ i >
35
33
</ button >
36
34
< button :class ="color " class ="ui basic top left pointing small dropdown icon button " data-tooltip ="Change Fiat Currency ">
40
38
< div class ="header ">
41
39
Fiat
42
40
</ div >
43
- < div class ="item " v-for ="symbol, code in currencies " v-on: click ="updateFiat(code) ">
41
+ < div class ="item " v-for ="symbol, code in currencies " @ click ="updateFiat(code) ">
44
42
{{ symbol }} {{ code }}
45
43
</ div >
46
44
</ div >
53
51
< div class ="item ">
54
52
Need some testnet coins?
55
53
</ div >
56
- < a class ="item " v-bind :href ="faucet[1] " v-for ="faucet in faucets " target ="_blank ">
57
- {{ faucet[0] }}
58
- </ a >
54
+ < a class ="item " :href ="faucet[1] " v-for ="faucet in faucets " target ="_blank ">
55
+ {{ faucet[0] }}
56
+ </ a >
59
57
</ div >
60
58
< div id ="horizontal " class ="ui inverted menu ">
61
59
< div class ="item ">
62
60
< div class ="ui inverted header "> BLT Wallet</ div >
63
61
< div class ="ui four buttons ">
64
- < button :class ="color " class ="ui basic small icon button " data-tooltip ="Create new address " data-position ="bottom left " onclick ="app.init(app.current) ">
62
+ < button :class ="color " class ="ui basic small icon button " data-tooltip ="Create new address " data-position ="bottom left " @click ="app.init(app.current) ">
65
63
< i class ="plus icon "> </ i >
66
64
</ button >
67
- < button :class ="color " class ="ui basic small icon button " data-tooltip ="Switch Currency " data-position ="bottom left " onclick ="switchCurrency(); ">
65
+ < button :class ="color " class ="ui basic small icon button " data-tooltip ="Switch Currency " data-position ="bottom left " @click ="switchCurrency(); ">
68
66
< i class ="exchange icon "> </ i >
69
67
</ button >
70
68
< button :class ="color " class ="ui basic top left pointing small dropdown icon button " data-tooltip ="Change Fiat Currency " data-position ="bottom left ">
74
72
< div class ="header ">
75
73
Fiat
76
74
</ div >
77
- < div class ="item " v-for ="symbol, code in currencies " v-on: click ="updateFiat(code) ">
75
+ < div class ="item " v-for ="symbol, code in currencies " @ click ="updateFiat(code) ">
78
76
{{ symbol }} {{ code }}
79
77
</ div >
80
78
</ div >
86
84
< div class ="header ">
87
85
Faucets
88
86
</ div >
89
- < div class ="item " v-bind :href ="faucet[1] " v-for ="faucet in faucets " target ="_blank ">
87
+ < div class ="item " :href ="faucet[1] " v-for ="faucet in faucets " target ="_blank ">
90
88
{{ faucet[0] }}
91
89
</ div >
92
90
</ div >
99
97
< div class ="price ">
100
98
< h1 > {{ amount }}</ h1 >
101
99
< h2 > {{ fiat_amount }}</ h2 >
102
- < button :class ="color " class ="ui button " onclick ="showModal() ">
100
+ < button :class ="color " class ="ui button " @click ="showModal() ">
103
101
< i class ="send outline icon "> </ i >
104
102
Send
105
103
</ button >
@@ -122,50 +120,50 @@ <h2>Transactions</h2>
122
120
< td v-if ="tx.vin[0].addr == app.address ">
123
121
< i class ="medium circular inverted red arrow right icon "> </ i >
124
122
< i v-if ="tx.confirmations < 1 " class ="medium hourglass start icon ">
125
- </ td >
126
- < td v-else >
127
- < i class ="medium circular inverted green arrow left icon "> </ i >
128
- < i v-if ="tx.confirmations < 1 " class ="medium hourglass start icon ">
129
- </ td >
130
- < td > < span v-bind:data-livestamp ="tx.time "> </ span > </ td >
131
- < td > < a v-bind:href ="app.baseURL + '/tx/' + tx.txid " target ="_blank "> {{ tx.txid }}</ a > </ td >
132
- < td v-if ="tx.vin[0].addr == app.address " class ="negative "> -{{ tx.vout[0].value }} {{ symbol }}</ td >
133
- < td v-else class ="positive "> +{{ app.getOutputValue(tx.vout) }} {{ symbol }}</ td >
134
- </ tr >
135
- </ tbody >
136
- </ table >
137
- </ div >
138
- < audio id ="audio " src ="https://rawgit.com/sereneblue/blt-wallet/master/src/ resources/ding.wav " preload ="auto "> </ audio >
139
- </ div >
140
- < div class ="ui modal ">
141
- < div class ="header "> Send Coins</ div >
142
- < div class ="content ">
143
- < div class ="ui form ">
144
- < div class ="field ">
145
- < label > Amount (A .001 miner fee is deducted from your balance)</ label >
146
- < div class ="ui action input ">
147
- < input id ="send-amount " placeholder ="Amount... " type ="number ">
148
- < button class ="ui button " onclick ="maxAmount() "> Max Amount</ button >
149
- </ div >
150
- </ div >
151
- < div class ="field ">
152
- < label > Recipient Address</ label >
153
- < input id ="receive-address " placeholder ="Address " type ="text ">
154
- </ div >
155
- < button :class ="color " class ="ui button " id ="send-button " onclick ="sendTransaction(); ">
156
- Send
157
- </ button >
158
- < button class ="ui deny button " onclick ="$('.modal').modal('hide'); ">
159
- Cancel
160
- </ button >
161
- < div v-if ="msg.title " v-bind :class ="msg.status " class ="ui message ">
162
- < div class ="header "> {{ msg.title }}</ div >
163
- < p > {{ msg.reason }}</ p >
164
- </ div >
165
- </ div >
166
- </ div >
167
- </ div >
168
- </ div >
123
+ </ td >
124
+ < td v-else >
125
+ < i class ="medium circular inverted green arrow left icon "> </ i >
126
+ < i v-if ="tx.confirmations < 1 " class ="medium hourglass start icon ">
127
+ </ td >
128
+ < td > < span v-bind:data-livestamp ="tx.time "> </ span > </ td >
129
+ < td > < a v-bind:href ="app.baseURL + '/tx/' + tx.txid " target ="_blank "> {{ tx.txid }}</ a > </ td >
130
+ < td v-if ="tx.vin[0].addr == app.address " class ="negative "> -{{ tx.vout[0].value }} {{ symbol }}</ td >
131
+ < td v-else class ="positive "> +{{ app.getOutputValue(tx.vout) }} {{ symbol }}</ td >
132
+ </ tr >
133
+ </ tbody >
134
+ </ table >
135
+ </ div >
136
+ < audio id ="audio " src ="resources/ding.wav " preload ="auto "> </ audio >
137
+ </ div >
138
+ < div class ="ui modal ">
139
+ < div class ="header "> Send Coins</ div >
140
+ < div class ="content ">
141
+ < div class ="ui form ">
142
+ < div class ="field ">
143
+ < label > Amount (A .001 miner fee is deducted from your balance)</ label >
144
+ < div class ="ui action input ">
145
+ < input id ="send-amount " placeholder ="Amount... " type ="number ">
146
+ < button class ="ui button " @click ="maxAmount() "> Max Amount</ button >
147
+ </ div >
148
+ </ div >
149
+ < div class ="field ">
150
+ < label > Recipient Address</ label >
151
+ < input id ="receive-address " placeholder ="Address " type ="text ">
152
+ </ div >
153
+ < button :class ="color " class ="ui button " id ="send-button " onclick ="sendTransaction(); ">
154
+ Send
155
+ </ button >
156
+ < button class ="ui deny button " onclick ="$('.modal').modal('hide'); ">
157
+ Cancel
158
+ </ button >
159
+ < div v-if ="msg.title " :class ="msg.status " class ="ui message ">
160
+ < div class ="header "> {{ msg.title }}</ div >
161
+ < p > {{ msg.reason }}</ p >
162
+ </ div >
163
+ </ div >
164
+ </ div >
165
+ </ div >
166
+ </ div >
169
167
</ body >
170
168
< script src ="https://cdnjs.cloudflare.com/ajax/libs/vue/2.4.2/vue.min.js "> </ script >
171
169
< script src ="https://rawgit.com/sereneblue/blt-wallet/master/src/js/script.js "> </ script >
0 commit comments