-
Notifications
You must be signed in to change notification settings - Fork 6
/
options.html
executable file
·125 lines (101 loc) · 4.67 KB
/
options.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
<html>
<head>
<meta charset="utf-8">
<title>Settings - DAO Stats</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="datahelper.js"></script>
</head>
<body>
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">DAO Stats</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="index.html">Home</a></li>
<li><a href="nav.html">Search</a></li>
<li><a href="accounts.html">Accounts</a></li>
<li><a href="proposals.html">Proposals</a></li>
<li><a href="tokenvol.html">Graphs</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="options.html">Options</a></li>
<li><a href="about.html">About</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container">
<!-- Example row of columns -->
<div class="row">
<h3>Options</h3>
Load data from GitHub raw. This may make new data appear sooner.<br /><button id="fastEn" type="button" class="btn btn-default"></button>
<br /><br />
Preferred external block explorer:<br />
<div id="explorerOption" class="list-group">
<button type="button" class="setExp list-group-item" title="chain">etherchain</a>
<button type="button" class="setExp list-group-item" title="camp">ether.camp</a>
<button type="button" class="setExp list-group-item" title="scan">Etherscan</a>
</div>
</div>
</div>
<hr />
<div class="row">
<p class="text-center"><a href="https://github.com/daostats/daostats.github.io">DAO Stats on GitHub</a></p>
</div>
</div>
<script>
function update_fastEn(){
if(localStorage.fastMode == "true"){
$("#fastEn").text("Disable");
}
else $("#fastEn").text("Enable");
}
if(typeof(Storage) !== undefined){
update_fastEn();
$("#fastEn").click(function(){
var t = localStorage.fastMode;
if (t == 'true')f = "false";
else f = "true";
localStorage.fastMode = f;
update_fastEn();
});
}
else $("#fastEn").text("Unavailable").addClass("disable");
if(typeof(Storage) !== undefined){
$(".setExp").click(function(){
console.log($(this).prop("title"));
localStorage.explorer = $(this).prop("title");
$("#explorerOption .setExp").removeClass("active");
$(this).addClass("active");
});
var current = localStorage.explorer;
if (current === undefined || current == "undefined") current = "chain";
$("button[title=\"" + current + "\"]").addClass("active");
}
else $("#explorerOption").html('<a href="#" class="list-group-item disabled">Unavailable</a>');
</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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-77332805-1', 'auto');
ga('send', 'pageview', {'page': location.pathname + location.search + location.hash});
</script>
</body>
</html>