MultiPlay Game


SUBMITTED BY: AnD888

DATE: Oct. 6, 2016, 1:02 p.m.

FORMAT: Text only

SIZE: 12.7 kB

HITS: 2919

  1. function createCSS(){
  2. var head = document.head || document.getElementsByTagName('head')[0];
  3. var warna = document.createElement('style');
  4. warna.innerHTML='#kanan,#kiri,#waktuMulai{text-align:center}#popBet{background:#f3f3f3;border:1px solid;border-radius:10px;position:relative;padding:13px;margin:5px}#xclosed{position:absolute;border-radius:50%;font-size:20px;color:#fff;box-shadow:2px 2px 2px #666;cursor:pointer;background:linear-gradient(to bottom,#ffa84c 0,#ff7b0d 100%);border:1px solid #fff;font-weight:700;padding:9px;top:-20px;right:-15px}#kiri{color:#006400;border:1px solid;margin:0}.h5atas{color:green;border-bottom:1px solid;background:#ccc;padding-bottom:5px;margin-top:0}.ptab{color:green;font-size:12px;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-o-transition:all 1s ease;-ms-transition:all 1s ease}#mulai{margin:10px;width:90px}#berhenti{width:90px;color:#fb0526;text-shadow:1px 1px 1px #fff}#waktuMulai{border-radius:50%;font-weight:700;border:5px solid;background:red;text-shadow:5px 5px 3px #000;display:block;margin:0 auto;width:100px;height:100px;font-size:50px;padding-top:18px;box-shadow:0 0 10px #000 inset}';
  5. head.appendChild(warna);
  6. }
  7. function runBitco(){
  8. var newDiv1 = document.createElement("div");
  9. newDiv1.setAttribute("id", "popBet");
  10. newDiv1.innerHTML = '<span id="xclosed">close</span>'+
  11. '<div id="kiri">'+
  12. '<h5 class="h5atas">LAPORAN PROFIT </h5>'+
  13. '<h5 style="color:#ccc">MODAL : <span id="saldo_awal"></span></h5>'+
  14. '<h5 style="color:#000">BALANCE : <span id="saldo_akhir"></span></h5>'+
  15. '<hr/>'+
  16. '<h5 style="color:green">BET ON : <span id="min_bet"></span></h5>'+
  17. '<h5 style="color:blue">RESULT : <span id="profit">0.00000000</span></h5>'+
  18. '<p class="ptab">TABUNGAN : <span id="tabungan">0.00000000</span></p>'+
  19. '</div><div id="kanan">'+
  20. '<button id="mulai" class="button medium success">START</button>'+
  21. '<button id="berhenti" class="button medium success">STOP</button>'+
  22. '<br/>'+
  23. '<button id="hapus">RESET DATA</button>'+
  24. '</div>';
  25. document.getElementById('double_your_btc_right_section').firstChild.style.display="none";
  26. document.getElementById("double_your_btc_right_section").appendChild(newDiv1);
  27. document.getElementById('double_your_btc_right_section').scrollIntoView();
  28. /*EventListener*/
  29. function eventAdd(e, eventName, handler) {
  30. if (e.addEventListener) e.addEventListener(eventName, handler, false);
  31. else e.attachEvent('on' + eventName, handler);
  32. }
  33. /* Close */
  34. eventAdd(document.getElementById('xclosed'), 'click', function() {
  35. document.getElementById('double_your_btc_right_section').firstChild.style.display="block";
  36. document.getElementById('xclosed').parentNode.remove();
  37. });
  38. /* Hapus */
  39. function hapus(){
  40. document.getElementById("profit").style.color="blue";
  41. document.getElementById("tabungan").textContent ="0.00000000";
  42. document.getElementById("profit").textContent ="0.00000000";
  43. document.getElementById('saldo_awal').textContent = document.getElementById('balance').textContent;
  44. document.getElementById('saldo_akhir').textContent = document.getElementById('balance').textContent;
  45. document.getElementById('double_your_btc_min').click();
  46. document.getElementById('min_bet').textContent=document.getElementById('double_your_btc_stake').value;
  47. }
  48. hapus();
  49. eventAdd(document.getElementById('hapus'), 'click', function() {
  50. hapus();
  51. });
  52. /* Warna Profit */
  53. function warna(){
  54. var wtab = Number(document.getElementById("profit").innerHTML);
  55. if (wtab<0){document.getElementById("profit").style.color="red";}
  56. else document.getElementById("profit").style.color="green";
  57. }
  58. /* Acak */
  59. function acak(){
  60. document.getElementById('tabungan').style["font-size"] = "12px";
  61. var pilih = Math.floor((Math.random() * 2) + 1);
  62. if (pilih===1){document.getElementById("double_your_btc_bet_hi_button").click();}
  63. else {document.getElementById("double_your_btc_bet_lo_button").click();}
  64. }
  65. /* Bet */
  66. var betTerus;
  67. eventAdd(document.getElementById('mulai'), 'click', function() {
  68. /*Time Counter*/
  69. var countDiv = document.createElement("div");
  70. countDiv.setAttribute("id", "waktuMulai");
  71. countDiv.setAttribute("style", "display:none;");
  72. document.getElementById("double_your_btc_middle_section").appendChild(countDiv);
  73. function hitungMulai(){
  74. var count =4;
  75. var hitungMundur = setInterval(function waktu(){
  76. if (count<=0){
  77. clearInterval(hitungMundur)
  78. document.getElementById('waktuMulai').style.display="none";
  79. }
  80. else{
  81. count--
  82. document.getElementById('waktuMulai').style.display="block";
  83. document.getElementById("waktuMulai").textContent = count;
  84. }
  85. }, 1000);
  86. }
  87. hapus();
  88. var balance = document.getElementById('balance').innerHTML;
  89. var tabungan = document.getElementById('tabungan').innerHTML;
  90. if(Number(balance)<=Number(tabungan)){clearInterval(betTerus)}
  91. betTerus = setInterval( function gambler(){
  92. acak(); warna();
  93. setTimeout(function(){
  94. var saldo_awal = document.getElementById('saldo_awal').innerHTML;
  95. var balance = document.getElementById('balance').innerHTML;
  96. var tabungan = document.getElementById('tabungan').innerHTML;
  97. var idmin_bet = document.getElementById('min_bet');
  98. var prop = Number(Number(balance)-Number(saldo_awal)).toFixed(8);
  99. var simpanan = Number(Number(prop)+Number(tabungan)).toFixed(8);
  100. document.getElementById("profit").textContent = prop;
  101. document.getElementById('saldo_akhir').textContent = balance;
  102. if(prop>=0.00000002){
  103. document.getElementById('tabungan').textContent = simpanan;
  104. document.getElementById('tabungan').style["font-size"] = "24px";
  105. document.getElementById('saldo_awal').textContent = balance;
  106. document.getElementById('saldo_akhir').textContent = balance;
  107. document.getElementById('double_your_btc_min').click();
  108. idmin_bet.textContent=document.getElementById('double_your_btc_stake').value;
  109. idmin_bet.style.color="green";
  110. }
  111. else if(prop<0){
  112. document.getElementById("profit").style.color="red";
  113. document.getElementById('double_your_btc_2x').click();
  114. idmin_bet.textContent=document.getElementById('double_your_btc_stake').value;
  115. idmin_bet.style.color="red";
  116. }
  117. else {
  118. document.getElementById("profit").style.color="green";
  119. document.getElementById('double_your_btc_min').click();
  120. idmin_bet.textContent=document.getElementById('double_your_btc_stake').value;
  121. idmin_bet.style.color="green";
  122. }
  123. }, 1000);
  124. }, 3000);
  125. });
  126. /*Stop Bet*/
  127. eventAdd(document.getElementById('berhenti'), 'click', function() {
  128. clearInterval(betTerus);
  129. });
  130. }
  131. function runDoge(){
  132. var newDiv1 = document.createElement("div");
  133. newDiv1.setAttribute("id", "popBet");
  134. newDiv1.innerHTML = '<span id="xclosed">close</span>'+
  135. '<div id="kiri">'+
  136. '<h5 class="h5atas">LAPORAN PROFIT </h5>'+
  137. '<h5 style="color:#ccc">MODAL : <span id="saldo_awal"></span></h5>'+
  138. '<h5 style="color:#000">BALANCE : <span id="saldo_akhir"></span></h5>'+
  139. '<hr/>'+
  140. '<h5 style="color:green">BET ON : <span id="min_bet"></span></h5>'+
  141. '<h5 style="color:blue">RESULT : <span id="profit">0.00000000</span></h5>'+
  142. '<p class="ptab">TABUNGAN : <span id="tabungan">0.00000000</span></p>'+
  143. '</div><div id="kanan">'+
  144. '<button id="mulai" class="button medium success">START</button>'+
  145. '<button id="berhenti" class="button medium success">STOP</button>'+
  146. '<br/>'+
  147. '<button id="hapus">RESET DATA</button>'+
  148. '</div>';
  149. document.getElementById('double_your_doge_right_section').firstChild.style.display="none";
  150. document.getElementById("double_your_doge_right_section").appendChild(newDiv1);
  151. document.getElementById('double_your_doge_right_section').scrollIntoView();
  152. //EventListener
  153. function eventAdd(e, eventName, handler) {
  154. if (e.addEventListener) e.addEventListener(eventName, handler, false);
  155. else e.attachEvent('on' + eventName, handler);
  156. }
  157. /* Close */
  158. eventAdd(document.getElementById('xclosed'), 'click', function() {
  159. document.getElementById('double_your_doge_right_section').firstChild.style.display="block";
  160. document.getElementById('xclosed').parentNode.remove();
  161. });
  162. /* Hapus */
  163. function hapus(){
  164. document.getElementById("profit").style.color="blue";
  165. document.getElementById("tabungan").textContent ="0.00000000";
  166. document.getElementById("profit").textContent ="0.00000000";
  167. document.getElementById('saldo_awal').textContent = document.getElementById('balance').textContent;
  168. document.getElementById('saldo_akhir').textContent = document.getElementById('balance').textContent;
  169. document.getElementById('double_your_doge_min').click();
  170. document.getElementById('min_bet').textContent=document.getElementById('double_your_doge_stake').value;
  171. };
  172. eventAdd(document.getElementById('hapus'), 'click', function() {
  173. hapus();
  174. });
  175. /* Warna Profit */
  176. function warna(){
  177. var wtab = Number(document.getElementById("profit").innerHTML);
  178. if (wtab<0){document.getElementById("profit").style.color="red";}
  179. else document.getElementById("profit").style.color="green";
  180. };
  181. /* Acak */
  182. function acak(){
  183. document.getElementById('tabungan').style["font-size"] = "12px";
  184. var pilih = Math.floor((Math.random() * 2) + 1);
  185. if (pilih===1){document.getElementById("double_your_doge_bet_hi_button").click();}
  186. else {document.getElementById("double_your_doge_bet_lo_button").click();}
  187. };
  188. /* Bet */
  189. var betTerus;
  190. eventAdd(document.getElementById('mulai'), 'click', function() {
  191. //Time Counter
  192. var countDiv = document.createElement("div");
  193. countDiv.setAttribute("id", "waktuMulai");
  194. countDiv.setAttribute("style", "display:none;");
  195. document.getElementById("double_your_doge_middle_section").appendChild(countDiv);
  196. function hitungMulai(){
  197. var count =4;
  198. var hitungMundur = setInterval(function waktu(){
  199. if (count<=0){
  200. clearInterval(hitungMundur)
  201. document.getElementById('waktuMulai').style.display="none";
  202. }
  203. else{
  204. count--
  205. document.getElementById('waktuMulai').style.display="block";
  206. document.getElementById("waktuMulai").textContent = count;
  207. }
  208. }, 1000);
  209. };
  210. hapus();
  211. var balance = document.getElementById('balance').innerHTML;
  212. var tabungan = document.getElementById('tabungan').innerHTML;
  213. if(Number(balance)<=Number(tabungan)){clearInterval(betTerus)}
  214. betTerus = setInterval(function gambler(){
  215. acak(); warna();
  216. setTimeout(function(){
  217. var saldo_awal = document.getElementById('saldo_awal').innerHTML;
  218. var balance = document.getElementById('balance').innerHTML;
  219. var tabungan = document.getElementById('tabungan').innerHTML;
  220. var idmin_bet = document.getElementById('min_bet');
  221. var prop = Number(Number(balance)-Number(saldo_awal)).toFixed(8);
  222. var simpanan = Number(Number(prop)+Number(tabungan)).toFixed(8);
  223. document.getElementById("profit").textContent = prop;
  224. document.getElementById('saldo_akhir').textContent = balance;
  225. if(prop>=0.026){
  226. document.getElementById('tabungan').textContent = simpanan;
  227. document.getElementById('tabungan').style["font-size"] = "24px";
  228. document.getElementById('saldo_awal').textContent = balance;
  229. document.getElementById('saldo_akhir').textContent = balance;
  230. document.getElementById('double_your_doge_min').click();
  231. idmin_bet.textContent=document.getElementById('double_your_doge_stake').value;
  232. idmin_bet.style.color="green";
  233. }
  234. else if(prop<0){
  235. document.getElementById("profit").style.color="red";
  236. document.getElementById('double_your_doge_2x').click();
  237. idmin_bet.textContent=document.getElementById('double_your_doge_stake').value;
  238. idmin_bet.style.color="red";
  239. }
  240. else {
  241. document.getElementById("profit").style.color="green";
  242. document.getElementById('double_your_doge_min').click();
  243. idmin_bet.textContent=document.getElementById('double_your_doge_stake').value;
  244. idmin_bet.style.color="green";
  245. }
  246. }, 1000);
  247. }, 3000);
  248. });
  249. /*Stop Bet*/
  250. eventAdd(document.getElementById('berhenti'), 'click', function() {
  251. clearInterval(betTerus);
  252. });
  253. };
  254. if(document.getElementById("time_remaining").textContent!==""){
  255. var ad_id = ['main_content_ad_left','top_user_ads_container','box_ad_middle','bottom_user_ads_container'];
  256. for(i = 0; i < ad_id.length; i++) {
  257. if(document.getElementById(ad_id[i])){
  258. document.getElementById(ad_id[i]).textContent = '';
  259. }
  260. };
  261. var class_ad = document.getElementsByClassName('adsbygoogle');
  262. for(var c=0; c < class_ad.length; c++){
  263. if(class_ad[c]) {
  264. class_ad[c].textContent = '';
  265. }
  266. };
  267. };
  268. if (document.getElementById('double_your_doge_right_section')!==null) {createCSS(); runDoge();}
  269. if (document.getElementById('double_your_btc_right_section')!==null) {createCSS(); runBitco();}

comments powered by Disqus