-
Notifications
You must be signed in to change notification settings - Fork 1
/
coinvista.html
155 lines (138 loc) · 6.71 KB
/
coinvista.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!doctype html>
<meta charset="utf-8">
<head>
<link rel="stylesheet" href="coinvista.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body style="background-color: #1D2330; color: white; height: 100vh">
<script src="//d3plus.org/js/d3.js"></script>
<script src="//d3plus.org/js/d3plus.js"></script>
<div id="viz"></div>
<script src='coinInfo.js'></script>
<script src='coinvista.js'></script>
<div style="text-align: center; ">
<p style="font-size: 12px">
<button id="update" onclick="updateViz()"> <i class="fa fa-refresh fa-lg" aria-hidden="true"></i></button>
<b>VIEW BY:</b>
<select id="viewSelect" onchange="updateView()">
<option value="2">CATEGORY
<option value="1">SUB-CATEGORY
</select>
<b> CATEGORIZE BY: </b>
<select id="catSelect" onchange="updateCat()">
<option value="5">ALGORITHM
<option value="6">GAINERS/LOSERS
</select>
<b> BLOCK SIZE BY: </b>
<select id="blockSelect" onchange="updateBlock()">
<option value="3">MARKET SHARE
<option value="4">24H VOLUME
</select>
<b> TIME PERIOD: </b>
<select id="timeSelect" onchange="updateTime()">
<option value="8">24 Hours
<option value="7">1 Hour
<option value="99">7 Days
</select>
<b> CURRENCY: </b>
<select id="moneySelect" onchange="updateMoney()">
<option value="100">USD
<option value="101">BITCOIN
</select>
<b> Color by: </b>
<select id="colorSelect" onchange="updateColor()">
<option value="102">GAINERS/LOSERS
<option value="103">MARKET CAP USD
<option value="104">24H VOLUME USD
<option value="105">MAX SUPPLY
<option value="106">AVAILABLE SUPPLY
</select>
</p>
</div>
<div id="vizz"> </div>
<div class="tooltip" ><i class="fa fa-info-circle fa-2x" aria-hidden="true"></i>
<span class="tooltiptext">
<p> The percentage on the bottom of each square is the block size by percentage. </p>
<p> Click on a coin (deepest level) and scroll down for more infomation about it.</p>
</span>
</div>
<div id = "coin_info" style="display: none;">
<hr>
<div>
<h1 id = "coin_name" style="text-align: center"> </h1>
<i>
<p id = "coin_intro"> </p>
</i>
<p style="text-align: center ">
<a id = "coin_site" href="" target="_blank" class="fa fa-link fa-2x"></a>
<a id = "coin_github" href="" target="_blank" class="fa fa-github fa-2x"></a>
<a id = "coin_whitepaper" href="" target="_blank" class="fa fa-file-text-o fa-2x"></a>
<a id = "coin_reddit" href="" target="_blank" class="fa fa-reddit-alien fa-2x"></a>
<a id = "coin_twitter" href="" target="_blank" class="fa fa-twitter fa-2x"></a>
<a id = "coin_wiki" href="" target="_blank" class= "fa fa-wikipedia-w fa-2x"></a>
<a id = "coin_explorer" href="" target="_blank" class= "fa fa-search fa-2x"></a>
</p>
<p> <a class= "fa fa-users fa-lg" ></a> <b id = "coin_founders" > </b> </p>
<p> <a class= "fa fa-calendar fa-lg" ></a> <b id = "coin_date" ></b></p>
<p> <a class= "fa fa-code fa-lg"></a> <b id = "coin_lang" > </b></p>
<p> <a class= "fa fa-code-fork fa-lg"></a> <b id = "coin_algo" > </b></p>
<p> <a class= "fa fa-puzzle-piece fa-lg" ></a> <b id = "coin_proof" > </b></p>
<p> <a class= "fa fa-linode fa-lg" ></a> <b id = "coin_mine" > </p>
<p> <a class= "fa fa-question-circle fa-lg" ></a> <b id = "coin_type" > </b></p>
</div>
<div id = "minnnn" style="height:500px; background-color: #1D2330; overflow:hidden; box-sizing: border-box; border: 1px solid #282E3B; border-radius: 4px; text-align: right; line-height:14px; font-size: 12px; box-sizing:content-box; font-feature-settings: normal; text-size-adjust: 100%; box-shadow: inset 0 -20px 0 0 #1D2330;padding:1px;padding: 0px; margin: 0px;">
<div style="height:540px;padding:0px;margin:0px; margin-bottom: 0">
<iframe id="myFrame" src="https://widget.coinlib.io/widget?type=chart&theme=dark&coin_id=859&pref_coin_id=1505" width="100%" height="536" scrolling="auto" marginwidth="0" marginheight="0" frameborder="0" border="0" style="border:0;margin:0;padding:0;line-height:14px;box-sizing:content-box; margin-bottom: 0">
</iframe>
</div>
</div>
<h3 style="text-align: center"> PROFILE</h3>
<div class="wrap-collabsible">
<input id="background" class="toggle" type="checkbox">
<label for="background" class="lbl-toggle">Project Background</label>
<div class="collapsible-content">
<div class="content-inner">
<p id="pb_1"> </p>
<p id="pb_2"> </p>
</div>
</div>
</div>
<div class="wrap-collabsible">
<input id="technology" class="toggle" type="checkbox">
<label for="technology" class="lbl-toggle">Technology</label>
<div class="collapsible-content">
<div class="content-inner">
<p id="tech_1"> </p>
<p id="tech_2"> </p>
<p id="tech_3"> </p>
</div>
</div>
</div>
<div class="wrap-collabsible">
<input id="distribution" class="toggle" type="checkbox">
<label for="distribution" class="lbl-toggle">Distribution</label>
<div class="collapsible-content">
<div class="content-inner">
<p id="distributionn" > </p>
</div>
</div>
</div>
<div class="wrap-collabsible">
<input id="supply" class="toggle" type="checkbox">
<label for="supply" class="lbl-toggle">Supply Details</label>
<div class="collapsible-content">
<div class="content-inner">
<p id="supplyy"> </p>
</div>
</div>
</div>
<div class="footer" style="margin-bottom: 3%">
<p>© 2018 Built by <a href="https://github.com/mvhdi" target="_blank" >Mahdi</a> with <a href="https://github.com/alexandersimoes/d3plus/tree/2.0" target="_blank" >D3Plus</a></p>
</div>
</div>
</body>