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.00000001"/><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)};