A question people asked in chat this morning regarding the staker/horse split in staking made me think of the old calculator I made for my old site. I have made some small adjustments to make it usable here just download the file, rename .txt to .html, and dbl click from computer, it will load in browser (I guarantee virus and spam free, anyone can view source and verify). Try it out and give feedback, And I will try to make more useful tools available as I have time
By request of the mods, here is the text from the file, open so its visible here, if so inclined, you may copy/paste this tet into your own file you create (save as your_file.html) and run that file by dbl click, it'll work the same.
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html dir="ltr" lang="en"> <head><title>Tools</title> <script type="text/javascript"> function calculate(task){ var f1 = document.getElementById("stake"); var f2 = document.getElementById("cash"); var f3 = document.getElementById("horseshare"); var f4 = document.getElementById("stakershare"); var f6 = document.getElementById("adjustedhorse"); var f7 = document.getElementById("sharesquantity"); var f8 = document.getElementById("sharevalue"); var f9 = document.getElementById("cut"); var f10 = document.getElementById("shareset"); var f11 = document.getElementById("stakeb"); var f12 = document.getElementById("cashb"); var f13 = document.getElementById("horseshareb"); var f16 = document.getElementById("adjustedhorseb"); var f17 = document.getElementById("cutb"); var f18 = document.getElementById("sharesquantityb"); var f19 = document.getElementById("sharesetb"); if(task == "compute"){ if(isNaN(f1.value) || isNaN(f2.value) || isNaN(f9.value)) alert("Invalid field entry!"); else if(f9.value > 85) alert("Can not pick a staker share at that high a level. Please change number to a value 85% or less."); else{ f6.value = ((f2.value - f1.value) * (1-(f9.value/100))).toFixed(2); f3.value = (f6.value *1).toFixed(2); f4.value = (f2.value - f3.value).toFixed(2); } } if(task == "computenosb"){ if(isNaN(f1.value) || isNaN(f2.value) || isNaN(f9.value)) alert("Invalid field entry!"); else if(f9.value > 85) alert("Can not pick a staker share at that high a level. Please change number to a value 85% or less."); else{ f6.value = (f2.value * (1-(f9.value/100))).toFixed(2); f3.value = (f6.value *1).toFixed(2); f4.value = (f2.value - f3.value).toFixed(2); } } if(task == "computebap"){ if(isNaN(f7.value) || isNaN(f12.value) || isNaN(f11.value) || isNaN(f17.value)) alert("Invalid field entry!"); else { f18.value = f10.value; f16.value = ((f12.value - f11.value) * (1-(f17.value/100))).toFixed(2); f13.value = (f16.value *1).toFixed(2); f8.value = ((f12.value - f13.value)/f7.value).toFixed(2); f19.value = (f8.value * f10.value).toFixed(2); } } if(task == "reset"){ document.calcform.reset(); f1.value = "0"; f2.value = "0"; f3.value = "0"; f4.value = "0"; f5.value = "0"; f6.value = "0"; f7.value = "0"; f8.value = "0"; f9.value = "0"; f10.value = "0"; } if(task == "reset2"){ document.calcform2.reset(); f1.value = "0"; f2.value = "0"; f3.value = "0"; f4.value = "0"; f5.value = "0"; f6.value = "0"; f7.value = "0"; f8.value = "0"; f9.value = "0"; f10.value = "0"; f11.value = "0"; f12.value = "0"; f13.value = "0"; f14.value = "0"; f15.value = "0"; f16.value = "0"; f17.value = "0"; f18.value = "0"; f19.value = "0"; } } </script> <style type="text/css"> td, input { font-size:16px; } a { border:0px; } p { margin-top:2px; } </style> </head> <body> <div class="alt1" style="vertical-align:top;font-size:9px;width:460px;"> <table width="470"><tr><td align="left" width="220" valign="top"> <fieldset style="padding:0px;"> <legend>Rail Bankroll Calculator</legend> <form name="calcform"> <table valign="top" width="208" style="height:468px;"> <tr> <td valign="top"> <p> Stake Amt: $ <input type="text" id="stake" size="6" /></p> <p>Stakers %: <input type="text" id="cut" size="5" /> </p> <p> Total Cash: $ <input type="text" id="cash" size="5" /> </p> <a href="javascript:void(0)" onclick="calculate('compute');"><img src="http://i253.photobucket.com/albums/hh76/s810car/calc.png" alt="" style="height:19;width:26px;border:0px;padding:1px;" /></a> <a href="javascript:void(0)" onclick="calculate('computenosb');"><img src="http://i253.photobucket.com/albums/hh76/s810car/nosb_calc.png" alt="" style="height:19;width:26px;border:0px;padding:1px;" /></a> <a href="javascript:void(0)" onclick="calculate('reset');"><img src="http://i253.photobucket.com/albums/hh76/s810car/clearcalc.png" alt="" style="height:19;width:26px;border:0px;padding:1px;" /></a> <br /> Ship to: <p>Staker: $<input type="text" id="stakershare" size="6" /></p> <input type="hidden" id="adjustedhorse" /> <p> Keep: $<input type="text" id="horseshare" size="6" /></p> </td></tr> </table> </form> </fieldset> </td> <td align="left" width="220" valign="top"> <fieldset style="padding:0px;"> <legend>Bap Calculator</legend> <form name="calcform2"> <table width="216" valign="top" style="height:468px;"> <tr> <td valign="top"> <p>Stake Amt: $<input type="text" id="stakeb" size="6" /></p> <p>Stakers %: <input type="text" id="cutb" size="5" /></p> <p>Total # Shares: <input type="text" id="sharesquantity" size="4" /> </p> <p>Total Cash: $<input type="text" id="cashb" size="6" /></p> <input id="shareset" type="hidden" /> <a href="javascript:void(0)" onclick="calculate('computebap');"><img src="http://i253.photobucket.com/albums/hh76/s810car/calc.png" alt="" style="height:19;width:26px;border:0px;padding:1px;" /></a> <a href="javascript:void(0)" onclick="calculate('reset2');"><img src="http://i253.photobucket.com/albums/hh76/s810car/clearcalc.png" alt="" style="height:19;width:26px;border:0px;padding:1px;" /></a> <br /> Ship to: <p>Per Share: $<input type="text" id="sharevalue" size="6" /></p> <input type="hidden" id="adjustedhorseb" /> <p> Keep: $<input type="text" id="horseshareb" size="6" /></p> <input id="sharesquantityb" type="hidden" /> <input type="hidden" id="sharesetb" /> </td></tr> </table> </form> </fieldset> </td></tr></table> </div> </body></html>
Results 1 to 10 of 12
-
12-26-2013, 12:49 PM #1
New to Staking? Here's a tool to help
Last edited by s810car; 12-26-2013 at 08:48 PM.
-
12-26-2013, 12:52 PM #2
I'm not comfortable with our forum having download links to executables or anything else - it's a liability.
-
12-26-2013, 12:53 PM #3
not an executable, its a browser page, same as if you save page as, on anything online
-
12-26-2013, 01:07 PM #4
Per request, edit made to remove zip file, it is now txt file, just needs to be renamed from .txt to .html to work
-
12-26-2013, 01:13 PM #5
If it's a browser page, how about you just post the web link? It has to be somewhere online. It was bookmarked at some point.
-
12-26-2013, 01:42 PM #6
No it was built on my site and stored there, sites closed what i can do though is post code in the bbcode tag 'code' and someone can save that as copy/paste in there own .html file, ill do that when home, in meantime, its a txt file and anyone with the most novice of html skill can read it and verify its safe
-
12-26-2013, 03:27 PM #7
- Join Date
- Oct 2011
- Posts
- 736
-
12-26-2013, 04:45 PM #8
-
12-26-2013, 04:51 PM #9
someone stake me in something lol... for real hit me up
-
12-26-2013, 08:12 PM #10
- Join Date
- Jul 2013
- Posts
- 94
Word of cauion. Bever sake your firends or get staked by tyour friends bc you will end up in make up hell more often that not