forked from stenlan/BaBSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
174 lines (171 loc) · 9.3 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
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel='stylesheet prefetch' href='css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='css/glyphicons.css'>
<link rel="stylesheet" href="css/style.css">
<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-84886300-2', 'auto');
ga('send', 'pageview');
</script>
<title>Bustabit Script Simulator</title>
</head>
<body>
<div class="form-horizontal">
<legend> BustaBit Script Simulator <sup style="color:#ff0000;">BETA</sup> <a href="https://discord.gg/2h5UUb7" class="btn btn-info discordBtn"><span class="glyphicons glyphicons-cloud unlift"></span> Join our Discord!</a> <a href="bitcoin:13hNDSZRZsVAMDFsh4tjVkjbnTzyVNNjr3" class="btn btn-warning btcBtn"><span class="glyphicons glyphicons-bitcoin unlift"></span> Donate to me</a><span class="themeSwitch" id="switchTheme">Go black</span><a href="disclaimer.html" target="_blank" class="checkboxy btcBtn disclaimer"><small>Disclaimer</small></a></legend>
<fieldset>
<!-- Text input-->
<div class="form-group">
<label class="col-md-9 control-label">Starting Balance</label>
<div class="col-md-9 inputGroupContainer">
<div class="input-group"> <span class="input-group-addon"><i class="glyphicons glyphicons-bitcoin"></i></span>
<input id="startBalInput" placeholder="Starting Balance" class="form-control" type="text"> </div>
</div>
</div>
<!-- Text input-->
<div class="form-group">
<label class="col-md-9 control-label">Game Hash</label>
<div class="col-md-9 inputGroupContainer">
<div class="input-group"> <span class="input-group-addon"><i class="glyphicons glyphicons-keys"></i></span>
<input id="endHash" placeholder="Game Hash" class="form-control" type="text" value="721b235bb66c568cd1669188c172a07ffe1cd74605148b280760d00a3abc1446"> </div>
</div>
</div>
<!-- Text input-->
<div class="form-group">
<label class="col-md-9 control-label">Amount of games</label>
<div class="col-md-9 inputGroupContainer">
<div class="input-group"> <span class="input-group-addon"><i class="glyphicons glyphicons-hash"></i></span>
<input id="backAmount" placeholder="Amount of games to calculate back" class="form-control" type="text"> </div>
</div>
</div>
<div class="form-group">
<label class="col-md-9 control-label">Script</label>
<div class="col-md-9 inputGroupContainer">
<div class="input-group"> <span class="input-group-addon"><i class="glyphicons glyphicons-edit"></i></span>
<textarea id="scriptText" class="form-control" placeholder="Paste your script here"></textarea>
</div>
</div>
</div>
<!-- Button -->
<div class="form-group">
<div class="col-md-3 startCalc">
<button id="startCalcBtn" class="btn btn-primary">(Re)Start Calculation <span class="glyphicons glyphicons-calculator unlift"></span></button>
</div>
<div class="col-md-9 unlift" id="chartCheck">
<label class="checkboxy">
<input type="checkbox" class="checkboxy" id="chartCheckbox"> Enable Chart</label>
</div>
<div class="col-md-9 unlift" id="autoCheck">
<label class="checkboxy">
<input type="checkbox" class="checkboxy" id="autoCheckbox"> Use Auto Config (ignores script)</label> <a class="checkboxy" data-toggle="modal" data-target="#autoModal"><small>(Configure)</small></a></div>
</div>
</fieldset>
<div class="resultscontainer">
<table class="table">
<tbody>
<tr>
<th># Games played</th>
<td id="numGames"></td>
</tr>
<tr>
<th>Starting Balance</th>
<td id="startBal"></td>
</tr>
<tr>
<th>Lowest Balance</th>
<td id="lowestBal"></td>
</tr>
<tr>
<th>Lowest Net</th>
<td id="lowestNet"></td>
</tr>
<tr>
<th>Balance</th>
<td id="balance"></td>
</tr>
<tr>
<th>Profit</th>
<td id="netProfit"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal fade" id="autoModal" tabindex="-1" role="dialog" aria-labelledby="autoModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button>
<h4 class="modal-title" id="autoModalLabel">Auto Settings</h4> </div>
<div class="modal-body">
<table class="table table-striped">
<tbody>
<tr>
<td>Base Bet:
<input id="autoBaseBet" type="text" class="autoInput" value="1"> Bits</td>
</tr>
<tr>
<td>Auto Cashout at:
<input id="autoAutoCashout" type="text" class="autoInput" value="2">×</td>
</tr>
<tr>
<td>Stop if bet is >
<input id="autoStopAt" type="text" class="autoInput" value="1000000"> Bits</td>
</tr>
<tr>
<td>On loss:
<br>
<label class="radioey">
<input id="lossRtbb" class="radioey" type="radio" name="onLoss" checked> Return to base bet</label>
<br/>
<label class="radioey">
<input class="radioey" type="radio" name="onLoss" id="lossDRtbb"> Increase bet by:
<input type="text" id="lossIbb" class="autoInput" value="2">× </label>
</td>
</tr>
<tr>
<td>On win:
<br>
<label class="radioey">
<input id="winRtbb" class="radioey" type="radio" name="onWin" checked> Return to base bet</label>
<br>
<label class="radioey">
<input class="radioey" type="radio" name="onWin" value="ibbb" id="winDRtbb"> Increase bet by:
<input type="text" id="winIbb" class="autoInput" value="2">× </label>
</td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal" onclick="babScriptTester.savePrefs();">Save</button>
</div>
</div>
</div>
</div>
<div id="chartdiv"></div>
<script src='https://code.jquery.com/jquery-1.11.2.min.js'></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
<script src="https://www.amcharts.com/lib/3/serial.js"></script>
<script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
<script src="https://www.amcharts.com/lib/3/themes/dark.js"></script>
<script src="js/core.js"></script>
<script src="js/sha256.js"></script>
<script src="js/hmac.js"></script>
<script src="js/BaBScriptTest.js"></script>
</body>
</html>