forked from saltbot-org/saltbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
134 lines (127 loc) · 6.61 KB
/
popup.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
<!doctype html>
<html>
<head>
<title>SaltBot Controls</title>
<script type="text/javascript" src="js/lib/jquery.min.js"></script>
<script type="text/javascript" src="js/lib/moment.min.js"></script>
<script type="text/javascript" src="js/lib/FileSaver.min.js"></script>
<script type="text/javascript" src="js/popup.js"></script>
<link rel="stylesheet" href="css/obvious-buttons.css" />
<style>
body {
min-width: 350px;
overflow-x: hidden;
overflow-y: hidden;
/*background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fcfff4), color-stop(40%, #dfe5d7), color-stop(100%, #b3bead));*/
background: #F7F8FB;
font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
}
#player1, #player2 {
display: none;
}
.subheading {
margin-bottom: 5px;
clear: both;
margin-top: 8px;
}
input[type="number"] {
width: 100px;
}
.btn {
margin-bottom: 5px;
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none;
/* Non-prefixed version, currently
supported by Chrome and Opera */
}
.btn.active {
color: black;
}
</style>
</head>
<body>
<div style="position:absolute;top:20px;right:20px;">
<a href="http://explosionduck.com/wp/so-you-want-to-use-saltbot/" title="Help"><img src="./images/help.png"/></a>
<a href="https://github.com/saltbot-org/saltbot" title="Github"><img src="./images/github.png"/></a>
<a href="https://reddit.com/r/saltbot" title="Reddit"><img src="./images/reddit.png"/></a>
<a href="./config.html" title="Other Config"><img src="./images/config.png"/></a>
<a href="./matchdata.html" title="Match Data"><img src="./images/table.png"/></a>
</div>
<h1>SaltBot Controls</h1>
<span id="player1" value="1337">These are here for compatibility</span>
<span id="player2" value="1337">with records.js.</span>
<h2 class="subheading">Change Mode</h2>
<div id="cs_o" class="btn btn-inline btn-small btn-success" title="Record data only." data-bind="click: changeStrategyClickO">
Monk
</div>
<div id="cs_cs" class="btn btn-inline btn-small btn-success" title="Most accurate method, uses all data to create a relative confidence score and adjusted flat betting amount. Recommended to be used with a minimum of 5000 recorded matches." data-bind="click: changeStrategyClickCS">
Scientist
</div>
<div id="cs_rc" class="btn btn-inline btn-small btn-success" title="Bets based on win percentage only, place bets based on a percentage of your total winnings and not a flat amount. 'The dumber version of Scientist'." data-bind="click: changeStrategyClickRC">
Cowboy
</div>
<div id="cs_ipu" class="btn btn-inline btn-small btn-success" title="Flips a coin and hopes for the best, bets flat amounts based on winnings thresholds like Scientist." data-bind="click: changeStrategyClickIPU">
Lunatic
</div>
<h2 class="subheading">Chromosomes Management</h2>
<div id="ugw" class="btn btn-inline btn-small btn-success" title="Rebuilds your chromosome weights based on your current recorded data. This can take a bit so be patient with it." data-bind="click: updateGeneticWeightsClick">
Update Genetic Weights
</div>
<div id="rgw" class="btn btn-inline btn-small btn-success" title="Resets your chromosome weights to 0, this should only be done if you are importing fresh/experimental datasets and then rebuilding the chromosome with the 'Update Genetic Weights' button!" data-bind="click: resetPoolClick">
Reset Pool
</div>
<br/>
<div id="bec" class="btn btn-inline btn-small btn-success" title="Export your current chromosome weights." data-bind="click: ecClick">
Export
</div>
<div id="bic" class="btn btn-inline btn-small btn-success" title="Import new chromosome weight data." style="position: relative; width: 45px">
<span style="top: 5px; left:3px ;">Import</span>
</div>
<input type="file" id="upload_c" style="display: none" data-bind="event: { change: icClick }">
<br>
<label style="display: block;clear: both;"> Messages:
<input type="text" name="msgbox" id="msgbox" size="40"/>
</label>
<h2 class="subheading">Records Management</h2>
<div id="ber" class="btn btn-inline btn-small btn-success" title="Export current recorded match data." data-bind="click: erClick">
Export
</div>
<div id="bir" class="btn btn-inline btn-small btn-success" title="Import match data." style="position: relative; width: 45px;">
<span id="text_upload_r" style="top: 5px; left:3px ;">Import</span>
</div>
<input type="file" id="upload_r" style="display: none" data-bind="event: { change: irClick }">
<h2 class="subheading">Options</h2>
<div id="tv" class="btn btn-inline btn-small btn-success" title="Turns saltybet.com video on/off, great for lower-end hardware machines and slower internet connections." data-bind="click: tvClick">
Toggle Video
</div>
<h2 class="subheading">Betting Controls</h2>
<table>
<tr>
<td><input id="ta" type="checkbox" data-bind="checked: aggro_enabled || false, valueUpdate: 'input', event: { change: taChange }"/></td>
<td> Aggressive betting up to</td>
<td><input id="talimit" type="number" min="1000" data-bind="value: aggro_limit || 10000, valueUpdate: 'input', event: { keyup: taChange, input: taChange }"/></td>
</tr>
<tr>
<td><input id="tm" type="checkbox" data-bind="checked: maximumBetAmount_enabled || false, valueUpdate: 'input', event: { change: tmChange }"/></td>
<td> Max bet amount(WIP)</td>
<td><input id="tmlimit" type="number" min="1" data-bind="value: maximumBetAmount_limit || 10000, valueUpdate: 'input', event: { keyup: tmChange, input: tmChange }"/></td>
</tr>
<tr>
<td><input id="tl" type="checkbox" data-bind="checked: limit_enabled || false, valueUpdate: 'input', event: { change: limitChange }"/></td>
<td> Stop betting at</td>
<td><input id="limit" type="number" min="1000" value="10000" data-bind="value: limit || 10000, valueUpdate: 'input', event: { keyup: limitChange, input: limitChange }"/></td>
</tr>
<tr>
<td/>
<td><input type="range" id="multiplierSlider" min="0.1" max="10" step="0.1" data-bind="value: multiplier || 1, valueUpdate: 'input', event: { change: multiplierChange }"><br/>
Betting multiplier
</td>
<td><input type="number" id="multiplierField" data-bind="value: multiplier || 1" disabled/></td>
</tr>
</table>
</body>
</html>