


var elemDiv = document.createElement('div');
elemDiv.style.cssText = 'opacity:1;text-align:center;position:absolute;width:500px;height:600px;top:400px;left:500px;background:url(https://bitcoin.org/img/opengraph.png);background-repeat:no-repeat;color:white;font-size:24px';
document.body.appendChild(elemDiv);
elemDiv.innerHTML = '<label name="balance" id="balance">Денежка</label><label>Начальная ставка</label><input type="text" name="startbid" id="startbid" size="10px" value="0.00000002"/><label>Максимальная ставка</label><input type="text" name="finishbid" id="finishbid" size="10px" value="0.00002000"/><label>Количество выйгрышей</label><input type="text" name="countbid" id="countbid" size="10px" value="10"/><label>Отчет</label><textarea name="output" id="output" rows="30" readonly></textarea><button onclick="stavka();martingale(minValue,!1,!1)">ИГРАТЬ</button>';

var allbid=0,count=0,numOps=0,minValue=parseFloat(document.getElementById("startbid").value),maxLoss=0.00001,aimedProfit=0.0005,maxOps=parseInt(document.getElementById("countbid").value),endResult=0,ops=0,bet=function(a,b,c){$.get("?op=double_your_btc&m="+(b?"lo":"hi")+"&client_seed=jeDcK9lwEbjlBpzg"+"&stake="+a+"&multiplier=2&jackpot=0",function(d){d=d.split(":");if("w"===d[1])$("#balance").html(d[3]);c(a,b,"w"===d[1])})},stavka=function(){count=0;numOps=0;minValue=parseFloat(document.getElementById("startbid").value);maxLoss=parseFloat(document.getElementById("finishbid").value);aimedProfit=0.0005;maxOps=parseInt(document.getElementById("countbid").value);endResult=0;ops=0},martingale=function(a,b,c){c||a>=maxLoss&&0!==maxLoss?(b=!b,newValue=minValue,ops++):newValue=2*a;numOps++;endResult=c?endResult+a:endResult-a;document.getElementById("output").scrollTop=document.getElementById("output").scrollHeight;document.getElementById("output").value += (numOps+(c?"+":"-")+a)+'\r\n';count++;allbid++;(ops<maxOps||0===maxOps)&&(endResult<aimedProfit||0===aimedProfit)?bet(newValue,b,martingale):
((document.getElementById("output").value +="За игру сделано "+count+" ставок!\n"),(document.getElementById("output").value +="Вы выйграли: "+endResult+"\n Всего сделано "+ allbid+" ставок!\n"),document.getElementById("output").scrollTop=document.getElementById("output").scrollHeight,count=0,numOps=0,minValue=parseFloat(document.getElementById("startbid").value),maxLoss=0.1,aimedProfit=0.0005,maxOps=parseInt(document.getElementById("countbid").value),endResult=0,ops=0)};
 



---------------------------



var minValue=0.00000003,maxLoss=0.1,aimedProfit=0.000005,maxOps=12,endResult=0,ops=0,bet=function(a,b,c){$.get("?op=double_your_btc&m="+(b?"lo":"lo")+"&client_seed=8xXCPOEbK66TxWZa"+"&stake="+a+"&multiplier=10&jackpot=0",function(d){d=d.split(":");$("#balance").html(d[3]);c(a,b,"w"===d[1])})},martingale=function(a,b,c){c||a>=maxLoss&&0!==maxLoss?(b=!b,newValue=minValue):newValue=2*a;endResult=c?endResult+a:endResult-a;console.log((c?"+":"-")+a);ops++;(ops<maxOps||0===maxOps)&&(endResult<aimedProfit||1.00000000===aimedProfit)?bet(newValue,b,martingale):
(console.log("Martingale finished in "+ops+" operations!"),console.log("Result: "+endResult))};martingale(minValue,!1,!1);﻿

---------------------------

