forked from dailyblockchain/dailyblockchain.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
78 lines (72 loc) · 3.01 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Blockchain visualisation</title>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/vivagraph.js"></script>
<script type="text/javascript" src="js/webgl-programs.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-69722974-2', 'auto');
ga('send', 'pageview');
</script>
<style>
body{
margin: 0;
padding: 0;
position: relative;
}
.input-node{color:green;}
.output-node{color:red;}
.input-output-node{color:orange;}
.transaction-node{color:blue;}
#output{display:none;}
#info{
position: absolute;
right:4px;
top:4px;
width:300px;
background-color: #ccc;
padding:4px;
}
</style>
</head>
<body>
<div id="g" style="background-color:black; width:100%; height:900px;"></div>
<div id="info">Addred/Transaction details (hover over nodes)</div>
<p>About: Visualization of unconfirmed bitcoin transactions as they are propagated.</p>
<span>Node size scale: </span>
<label>LINEAR</label>
<input type="radio" name="scaleType" value="LINEAR" />
<label>LOG</label>
<input type="radio" name="scaleType" value="LOG" checked />
<br />
LEGEND:
<span class="input-node">Green = input</span>, <span class="output-node">Red = output</span>,
<span class="input-output-node">Yellow = input+output</span>, <span class="transaction-node">Blue = transaction</span>
<br />
NAVIGATION: mouse + scroll = pan/zoom, SPACE = run/pause
<br />
<h1><a href="https://gitreports.com/issue/gappleto97/visualizer">Submit an issue Here! No login needed.</a></h1>
<p>This is a reference implementation of the <a href="https://github.com/gappleto97/visualizer">Blockchain Visualization</a> project.</p>
TODO:
<pre>
☑ auto remove transactions older then x min or verified
- show transaction details on hover
- connect disconect button
- listen for a specyfic address and color it and display alert when present
- render graph for specyfic address/transaction
- categorise transactions (simple, payments, mixing etc )
</pre>
<div id="output" ></div>
</a>Found this interesting? Please send some Satoshis here to keep me going:</h3>
<p><strong>1JTGcHS3GMhBGLcFRuHLk6Gww4ZEDmP7u9</strong></p>
<p><img src="https://blockchain.info/qr?data=1JTGcHS3GMhBGLcFRuHLk6Gww4ZEDmP7u9&size=200" alt="donate"></p>
<p>This visualisation was possible thanks to blockchain.info api and vivagraph.js library.</p>
</body>
<script language="javascript" src="main.js"> </script>
</html>