forked from h4x3rotab/btg-transparent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
112 lines (96 loc) · 3.85 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>BTG Transparency</title>
<link rel="stylesheet" href="https://unpkg.com/buefy/dist/buefy.min.css">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-39767786-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-39767786-2');
</script>
</head>
<body>
<div id="app">
<div class="container">
<div class="section">
<div class="level">
<div class="level-left">
<div>
<h1 class="title">{{ $t("title") }}</h1>
<p class="subtitle">
{{ $t("subtitle") }}
</p>
<p class="details">
{{ $t("details") }}<a href="https://bitcoingold.org/endowment-wallets/">{{ $t("linktext") }}</a>
</p>
</div>
</div>
<div class="level-right" style="margin-top: auto;">
<span><a href="#" @click.prevent="$i18n.locale = 'en'">🇺🇸·</a></span>
<span><a href="#" @click.prevent="$i18n.locale = 'ar'">🇸🇦·</a></span>
<span><a href="#" @click.prevent="$i18n.locale = 'pl'">🇵🇱·</a></span>
<span><a href="#" @click.prevent="$i18n.locale = 'cn'">🇨🇳</a></span>
</div>
</div>
<hr>
</div>
<div class="hero">
<div class="level">
<div class="level-item has-text-centered">
<div>
<div class="is-size-4">{{ $t('total') }}</div>
<div class="is-size-3">{{ totalBalance >= 0 ? sattobtg(totalBalance) : $t("loading") }}</div>
</div>
</div>
</div>
<div class="level">
<div class="level-item has-text-centered">
<div>
<div class="is-size-4">{{ $t('total_unlocked') }}</div>
<div class="is-size-3">{{ totalUnlockedBalance >= 0 ? sattobtg(totalUnlockedBalance) : $t("loading") }}</div>
</div>
</div>
</div>
</div>
<div class="section">
<div class="level is-family-monospace" v-for="w in wallets" v-bind:key="w.addr">
<div class="level-left">
<a :href="'https://explorer.bitcoingold.org/insight/address/' + w.addr">{{w.addr}}</a>
</div>
<div class="level-right">
<span>{{chaintip > 0 && chaintip >= w.cltv ? '' : '🔒' }}</span>
<span>{{w.balance != null ? sattobtg(w.balance) : "-"}}</span>
</div>
</div>
</div>
<div class="footer">
<div class="level">
<div class="level-item has-text-centered">
<div>
<p>{{$t('more_tools')}}</p>
<p>2019 - <a href="https://github.com/h4x3rotab">h4x3rotab</a> @ Bitcoin Gold</p>
</div>
</div>
</div>
</div>
</div>
</div>
<style>
.is-family-monospace {
font-family: 'Courier New', Courier, monospace;
}
</style>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src="https://unpkg.com/vue-i18n/dist/vue-i18n.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://unpkg.com/buefy/dist/buefy.min.js"></script>
<script src="js/translation.js"></script>
<script src="js/endowment.js"></script>
<script src="js/index.js"></script>
</body>
</html>