1<html lang="en" class="fontawesome-i2svg-active fontawesome-i2svg-complete"> 2<head> 3<!-- Global site tag (gtag.js) - Google Analytics -->
vendor: 64 bytes, lines 3-4
3 4<script async src="https://www.googletagmanager.com/gtag/js?id=
4UA-124238698-1
vendor: 12 bytes, line 4
4"></script>
5<script> 6
vendor: 134 bytes, lines 6-10
6window.dataLayer = window.dataLayer || []; 7 function gtag(){dataLayer.push(arguments);} 8 gtag('js', new Date()); 9 10 gtag('config', '
10UA-124238698-1
vendor: 4 bytes, line 10
10');
11</script>
11 12 <link rel="shortcut icon" type="image/png" href="img/favicon.ico"/> 13 <meta charset="utf-8"> 14 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> 15 <meta name="theme-color" content="#343a40"> 16 17 <meta name="description" content="Finally, an EOS-based smart-contract game that follows the same rules as PoWH3D. Buy keys on either the blue or red teams, and hope that you're the last one to do so before the clock reaches zero!"> 18 <meta name="keywords" content="EOS, scam, F3D, Fomo, Fomo3D, Proof of Weak Hands, P3D, PoWH3D, Cryptocurrency, ICO, Parody, Satire, Gambling, Jackpot, Lottery, Referral, Passive Income, UBI"> 19 20 21 <link rel="stylesheet" href="css/bootstrap.min.css"> 22 <link rel="stylesheet" href="css/custom.css"> 23 <link rel="stylesheet" href="css/alertify.css"> 24 <link rel="stylesheet" href="css/base.css"> 25 <link rel="stylesheet" href="css/ghostframe.css"> 26 <link rel="stylesheet" href="css/dialog.css"> 27
27<script src="js/jquery.min.js"></script>
27 28 <title>EOS FOMO GAME</title> 29</head> 30<body> 31<div id="main-wrapper"> 32 <header class="topbar fixed-top"> 33 <module-navbar data-is="state-navbar"> 34 <nav class="navbar navbar-expand-lg navbar-dark bg-dark jumboshade"> 35 <div class="container"> 36 <a class="navbar-brand" style="font-size:1.5rem" href="">EOS FOMO GAME</a> 37 <div class="dropdown"> 38 <a href="#" class="dropdown-toggle" data-toggle="dropdown"> 39 Settings 40 <b class="caret"></b> 41 </a> 42 <ul class="dropdown-menu"> 43 <li style="padding-left: 5px;padding-right: 5px"><a href="#" id="log-btn">Login With Scatter</a></li> 44 <li style="padding-left: 5px;padding-right: 5px"> 45 <a href="https://bloks.io/account/eosfomogame1" target="_blank">Contract Address</a> 46 </li> 47 <li style="padding-left: 5px;padding-right: 5px"> 48 <a href="https://github.com/eosfomogame/contract/tree/master/smartcontract" target="_blank">Source Code</a> 49 </li> 50 <li style="padding-left: 5px;padding-right: 5px"> 51 <a href="https://t.me/eosfomogame" target="_blank">Telegram Group</a> 52 </li> 53 </ul> 54 </div> 55 56 <div id="divselect"> 57 <em>Select Account</em> 58 <ul class="account-ul"> 59 </ul> 60 </div> 61 </div> 62 </nav> 63 </module-navbar> 64 </header> 65</div> 66<div id="spacer" class="spacer"></div> 67<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> 68 <div class="modal-dialog" role="document"> 69 <div class="modal-content"> 70 <div class="modal-header"> 71 <h5 class="modal-title" id="exampleModalLabel">Rules</h5> 72 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 73 <span aria-hidden="true">×</span> 74 </button> 75 </div> 76 <div class="modal-body"> 77 <p style="font-weight: bold;color: #e6ae49"> 78 79 The game is inspired by the now popular FOMO3D based on the ethereum blockchain. With the high scalability of EOS and no fees, we will show that usability and gaming experience are the best. 80 </p> 81 <p style="font-weight: bold;color: #ff0000">REMEMBER: PLAY FOR FUN. DON'T BET TOO MUCH!!!</p> 82 <h5><b>Earn EOS:</b></h5> 83 <p>The game allows you to earn EOS by getting dividends*. Buying the keys early will give you an advantage to obtaining dividends. Then you can win a large part of the final pot** if at the end of the timer you are the last one to have bought the keys. 84 <b>But wait, now comes the fun: every time that 1 key will be bought by the players the timer will be increased by 36 seconds.</b><p> 85 <h5><b>*Dividend rules:</b></h5> 86 <p>If you choose the red team to buy keys:<br>60% of your sent EOS will be given to the current key holders; and 30% will be kept in the active pot until the countdown becomes 0.</p> 87 <p>If you choose the blue team to buy keys: 30% key holders, 60% pot</p> 88 89 <h5><b>**Active pot distribution:</b></h5> 90 <p>Each round officially ends when the countdown clock reaches zero. The last player who have purchased a key before the timer reaches zero becomes the winner. The last team selected by the winner before the timer runs out becomes the winning team.</p> 91 <p>If the red team wins,<br> 60% of the active pot will be given directly to this last lucky player, and 30% of the active pot will be divided among the red team key holders.</p> 92 <p>If the blue team wins, 30% of the active pot will be given diretly to this last lucky player, and 60% of the active pot will be divided among the blue team key holders.</p> 93 94 <h5><b>Referral bonus:</b></h5> 95 <p>An earlier play will earn 8% of all the EOS put into the game by anyone that joins through his link as referral bonus. If someone tries to cheat by visiting his own referral, he won't get the bonus as his account is not an earlier player yet. If this earlier player hasn't bought any key yet, he won't get the referral bonus either.</p> 96 97 <h5><b>Entrance threshold:</b></h5> 98 <p>Each time you must buy more than 100 keys at least. When the total sold key amount reaches 1 million, the entrance threshold will raise to 1/10000 of the total sold keys going forward. It's designed to improve the bot cost and lower the bot advantage during the final pot competing process.</p> 99 100 <h5><b>Special Round:</b></h5> 101 <p>This will be a special round with <b>5000 EOS guaranteed*</b> in total!</p> 102 <p>Total = pot + distributed rewards</p> 103 <p>Some conditions are NECESSARY:<br> 104 <b>- at least 100 unique users must participate in the game;<br>
105 - minimum quota of 2500 EOS must be reached autonomously.</p></b> 106 <p>The bonus will be distributed in tranches at random times of the game after the conditions above will be reached.</p> 107 108 <h5>Frequently asked questions:</h5> 109 110 <p style="font-weight: bold;color: #000000">Q: Could the team win the active pot by cheating?</p> 111 <p>A: The game behavior is fully controlled by the contract code and the EOS main network. Nobody could decide who/which team or when this lucky player could win the active pot.</p> 112 113 <p style="font-weight: bold;color: #000000">Q: Why do I sometimes see the wrong countdown time?</p> 114 <p>A: Your browser will show the correct remaining time wherever your timezone is. But the remaining time could go wrong if you encounter a network glitch which could be resolved by refreshing again.</p> 115 116 117 </div> 118 <div class="modal-footer"> 119 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> 120 </div> 121 </div> 122 </div> 123</div> 124 125 126<!-- advise!!! --> 127 128 129<module-template data-is="state-play"> 130 <div class="blurryboyblue"></div> 131 <div class="jumbotron rounded-0 text-center text-light teaser-cover"> 132 <div class="container" id="startedContainer"> 133 <h4 class="display-4 scammed" style="font-style: italic;" id="current-user"> someone else is</h4> 134 <h1 class="display-1 scammed">WARNING</h1> There is a problem in the new round. The game has been suspended. All funds paid will be returned to their respective owners. We apologize for the inconvenience 135 <h2 class="display-3"> 136 <span class="ethglitch titleglow-slow pot">loading...</span> 137 138 </h2> 139 <br> 140 <a href="javascript:void(0)" class="buyOneTicket btn btn-lg btn-block btn-blu pulse marginb"> 141 <div class="row"> 142 <div class="col-sm-11"> 143 <span id="fade"> THE GAME HAS BEEN SUSPENDED</span> 144 </div> 145 </div> 146 </a> 147 </div> 148 <div class="container" id="toStartContainer" style="display: none"> 149 <h4 class="display-4 scammed" style="font-style: italic;">The special round (5000 EOS guaranteed) will be started in</h4> 150 <h2 class="display-3"> 151 <span class="ethglitch titleglow-slow" id="headtimer2">loading...</span> 152 </h2> 153 <h2> 154 <span id="headtimer3">loading...</span> 155 </h2> 156 <br> 157 <a href="javascript:void(0)" class="buyOneTicket btn btn-lg btn-block btn-blu pulse marginb"> 158 <div class="row"> 159 <div class="col-sm-11"> 160 Think Different, Think EOS 161 </div> 162 </div> 163 </a> 164 </div> 165 166 <div class="container scatter" style="display: none"> 167 <h2> 168 <a href="https://chrome.google.com/webstore/detail/scatter/ammjpmhgckkpcamddpolhchgomcojkle" target="_blank">To Install Scatter</a> 169 </h2> 170 <br> 171 </div> 172 </div> 173 <div class="container" style="margin-top:-1rem;"> 174 <div class="row"> 175 <div class="col-sm"> 176 <ul class="nav nav-tabs tabs-border-adjust" id="buyTabs" role="tablist"> 177 <li class="nav-item tab-item"> 178 <a class="nav-link tab-link active" id="purchaseTab" data-toggle="tab" href="#purchaseArea" role="tab" aria-controls="purchaseArea" aria-selected="true">Purchase</a> 179 </li> 180 <li class="nav-item tab-item"> 181 <a class="nav-link tab-link" id="vaultTab" data-toggle="tab" href="#vaultArea" role="tab" aria-controls="vaultArea" aria-selected="false">Vault</a> 182 </li> 183 <li class="nav-item tab-item"> 184 <a class="nav-link tab-link" id="inviteTab" data-toggle="tab" href="#inviteArea" role="tab" aria-controls="inviteArea" aria-selected="false">Invite Url</a> 185 </li> 186 </ul> 187 <div class="tab-content" id="buyArea"> 188 <div class="tab-pane fade show active" id="purchaseArea"> 189 <div class="jumbotron jumbotron-adjust text-light bg-dark jumboshade tab-rounded"> 190 <div class="row"> 191 <div class="col"> 192 <p class="lead nomarginb">Keyring</p> 193 </div> 194 </div> 195 <hr> 196 <div class="row"> 197 <div class="col"> 198 <div id="purchase" class="tab-pane fade show active" role="tabpanel"> 199 <div class="row" id="purchase"> 200 <div class="col"> 201 <div class="input-group mb-3"> 202 <div class="input-group-prepend">
203 <span class="input-group-text"> 204 <svg class="svg-inline--fa fa-key fa-w-16" aria-hidden="true" data-prefix="fas" data-icon="key" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" data-fa-i2svg=""><path fill="currentColor" d="M512 176.001C512 273.203 433.202 352 336 352c-11.22 0-22.19-1.062-32.827-3.069l-24.012 27.014A23.999 23.999 0 0 1 261.223 384H224v40c0 13.255-10.745 24-24 24h-40v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-78.059c0-6.365 2.529-12.47 7.029-16.971l161.802-161.802C163.108 213.814 160 195.271 160 176 160 78.798 238.797.001 335.999 0 433.488-.001 512 78.511 512 176.001zM336 128c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48z"></path></svg> 205 </span> 206 </div> 207 <input type="text" class="form-control text-center" value="100" id="keysToBuy"> 208 <div class="input-group-append"> 209 <span class="input-group-text" id="current-money">loading...</span> 210 </div> 211 </div> 212 </div> 213 </div> 214 <div class="row marginb"> 215 <div class="col"> 216 <div class="btn-group d-flex" role="group"> 217 <button class="btn btn-outline-yel w-100 increment" id="btnAdd1">+ 100 Keys</button> 218 <button class="btn btn-outline-yel w-100 increment" id="btnAdd2">+ 200 Keys</button> 219 <!--<button class="btn btn-outline-yel w-40 increment" id="btnAdd5">+ 500</button>--> 220 <button class="btn btn-outline-yel w-30 increment" id="btnAdd10">+ 1000</button> 221 <button class="btn btn-outline-yel w-30 increment" id="btnAdd100">+ 10000</button> 222 </div> 223 </div> 224 </div> 225 <div class="row" style="position: relative;"> 226 <div class="col"> 227 <button type="button" id="tixBuy" class="btn btn-block btn-blu btn-lg ticketProcess">Send EOS</button> 228 </div> 229 </div> 230 </div> 231 </div> 232 </div> 233 <hr> 234 <div class="row marginb"> 235 <div class="col"> 236 <p class="lead nomarginb" id="selectedTeam">Please choose a team !</p> 237 </div> 238 </div> 239 <div class="row marginb distribution"> 240 <div class="col"> 241 <div class="row"> 242 <div class="col-6 team"> 243 <label class="teamselector"> 244 <input class="form-check-input form-radio teamsave" type="radio" autocomplete="off" name="teamselect" value="1" id="1"> 245 <img src="img/red.png" id="redTeam"> 246 <h5>Red</h5> 247 <p>Trickle down Divinomics</p> 248 </label> 249 <div> 250 <p style="color:#2ecc71">60% to dividends</p> 251 <p style="color:#2ecc71">30% to pot</p> 252 </div> 253 </div> 254 <div class="col-6 team"> 255 <label class="teamselector"> 256 <input class="form-check-input form-radio teamsave" type="radio" autocomplete="off" name="teamselect" value="2" id="2" checked> 257 <img src="img/blue.png" id="blueTeam"> 258 <h5>Blue</h5> 259 <p>Feed on the greed of others.</p> 260 </label> 261 <p style="color:#2ecc71">30% to dividends</p> 262 <p style="color:#2ecc71">60% to pot</p> 263 </div> 264 </div> 265 </div> 266 </div> 267 </div> 268 </div> 269 <div class="tab-pane fade" id="vaultArea"> 270 <div class="jumbotron jumbotron-adjust text-light bg-dark jumboshade tab-rounded"> 271 <div class="row"> 272 <div class="col"> 273 <p class="lead nomarginb">Vault</p> 274 </div> 275 </div> 276 <hr> 277 <div class="jumbotron jumbotron-adjust teamscore"> 278 <div class="row"> 279 <div class="col"> 280 <p class="lead">Exit Game</p> 281 </div> 282 <div class="col"> 283 <p class="h3 text-right" id="scammed">0.0000 EOS</p> 284 </div> 285 </div> 286 <div class="row"> 287 <div class="col"> 288 <p class="lead">Bad Advice</p> 289 </div> 290 <div class="col"> 291 <p class="h3 text-right" id="advice">0.0000 EOS</p> 292 </div> 293 </div> 294 <hr> 295 <div class="row"> 296 <div class="col"> 297 <p class="lead">Total Gains</p> 298 </div> 299 <div class="col"> 300 <p class="h3 text-right glow-slow gains">0.0000 EOS</p> 301 <p class="text-right gains-usdt">â 0.00 USDT</p> 302 </div> 303 </div> 304 <div class="row"> 305 <div class="col"> 306 <p class="text-right nomarginb"> 307 <button href="" class="btn btn-outline-purp btn-block" id="withdrawEarnings"> 308 <svg class="svg-inline--fa fa-hand-holding-heart fa-w-18" aria-hidden="true" data-prefix="fas" data-icon="hand-holding-heart" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" data-fa-i2svg="">
308<path fill="currentColor" d="M275.3 250.5c7 7.4 18.4 7.4 25.5 0l108.9-114.2c31.6-33.2 29.8-88.2-5.6-118.8-30.8-26.7-76.7-21.9-104.9 7.7L288 36.9l-11.1-11.6C248.7-4.4 202.8-9.2 172 17.5c-35.3 30.6-37.2 85.6-5.6 118.8l108.9 114.2zm290 77.6c-11.8-10.7-30.2-10-42.6 0L430.3 402c-11.3 9.1-25.4 14-40 14H272c-8.8 0-16-7.2-16-16s7.2-16 16-16h78.3c15.9 0 30.7-10.9 33.3-26.6 3.3-20-12.1-37.4-31.6-37.4H192c-27 0-53.1 9.3-74.1 26.3L71.4 384H16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h356.8c14.5 0 28.6-4.9 40-14L564 377c15.2-12.1 16.4-35.3 1.3-48.9z"></path></svg> 309 Withdraw 310 </button> 311 </p> 312 </div> 313 </div> 314 </div> 315 </div> 316 </div> 317 <div class="tab-pane fade" id="inviteArea"> 318 <div class="jumbotron jumbotron-adjust text-light bg-dark jumboshade tab-rounded"> 319 <div class="row"> 320 <div class="col"> 321 <p class="lead nomarginb">To get 8%:</p> 322 </div> 323 </div> 324 <br> 325 <div class="row"> 326 <div class="col" id="refUrl"> 327 https://eosfomogame.github.io?ref=eos_account_name 328 </div> 329 </div> 330 </div> 331 </div> 332 </div> 333 </div> 334 <div class="col-sm"> 335 <ul class="nav nav-tabs tabs-border-adjust" id="statTabs" role="tablist"> 336 <li class="nav-item tab-item"> 337 <a class="nav-link tab-link active" id="potTab" data-toggle="tab" href="#potArea" role="tab" aria-controls="potArea" aria-selected="true"> 338 Round 339 </a> 340 </li> 341 <li class="nav-item tab-item"> 342 <a class="nav-link tab-link" id="teamTab" data-toggle="tab" href="#teamArea" role="tab" aria-controls="teamArea" aria-selected="false"> 343 Teams 344 </a> 345 </li> 346 <li class="nav-item tab-item"> 347 <a class="nav-link tab-link" id="statsTab" data-toggle="tab" href="#statsArea" role="tab" aria-controls="statsArea" aria-selected="false"> 348 Stats 349 </a> 350 </li> 351 </ul> 352 <div class="tab-content" id="statArea"> 353 <div class="tab-pane fade show active" id="potArea" role="tabpanel" aria-labelledby="potArea"> 354 <div class="jumbotron jumbotron-adjust text-light bg-dark jumboshade tab-rounded"> 355 <div class="row nomarginb margin-top"> 356 <div class="col"> 357 <p class="h2 text-center" >Contract will drain in <br> 358 <span class="glow-slow boxtimer" id="boxtimer">loading...</span> 359 </p> 360 </div> 361 </div> 362 <div class="row marginb"> 363 <div class="col"> 364 <div class="progress"> 365 <div class="progress-bar boxglow" role="progressbar" style="width: 0%;" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div> 366 </div> 367 </div> 368 </div> 369 <div class="jumbotron jumbotron-adjust teamscore"> 370 <div class="row nomarginb"> 371 <div class="col-auto"> 372 <p class="h4">Active Pot</p> 373 </div> 374 <div class="col"> 375 <p class="h2 text-right glow-slow ethglitch pot">loading...</p> 376 </div> 377 </div> 378 <div class="row marginb"> 379 <div class="col text-right" id="pot-usdt">loading...</div> 380 </div> 381 <div class="row nomarginb"> 382 <div class="col"> 383 <p class="h4">Your Keys</p> 384 </div> 385 <div class="col"> 386 <p class="h2 text-right" id="your-keys">0.00 </p> 387 </div> 388 </div> 389 <div class="row marginb"> 390 <div class="col text-right" id="total-keys">loading...</div> 391 </div> 392 <div class="row nomarginb"> 393 <div class="col"> 394 <p class="h4">Your Cost</p> 395 </div> 396 <div class="col"> 397 <p class="h2 text-right" id="cost">0.0000 EOS</p> 398 </div> 399 </div> 400 <div class="row nomarginb"> 401 <div class="col"> 402 <p class="h4">Your Earnings</p> 403 </div> 404 <div class="col"> 405 <p class="h2 text-right gains">0.0000 EOS</p> 406 </div> 407 </div> 408 <div class="row marginb"> 409 <div class="col text-right gains-usdt">â 0.00 USDT</div> 410 </div> 411 </div> 412 </div> 413 </div> 414 <div class="tab-pane fade" id="teamArea" role="tabpanel" aria-labelledby="teamArea"> 415 <div class="jumbotron jumbotron-adjust text-light bg-dark jumboshade tab-rounded"> 416 <div class="row"> 417 <div class="col"> 418 <p class="lead nomarginb">Teams</p> 419 </div> 420 </div> 421 <div class="row"> 422 <div class="col"> 423 <div class="jumbotron jumbotron-adjust text-center teamscore"> 424 <p class="lead">Red</p> 425 <img src="img/red.png" width="25%"> 426 <hr> 427 <p class="glow-yel" id="red-eos">loading...</p> 428 </div> 429 </div> 430 <div class="col"> 431 <div class="jumbotron jumbotron-adjust text-center teamscore"> 432 <p class="lead">Blue</p> 433 <img src="img/blue.png" width="25%"> 434 <hr> 435 <p class="glow-yel" id="blue-eos">loading...</p> 436 </div> 437 </div> 438 </div> 439 </div> 440 </div> 441 <div class="tab-pane fade" id="statsArea" role="tabpanel" aria-labelledby="statsArea"> 442 <div class="jumbotron jumbotron-adjust text-light bg-dark jumboshade tab-rounded"> 443 <div class="jumbotron jumbotron-adjust teamscore"> 444 <div class="row nomarginb"> 445 <div class="col-auto"> 446 <p class="h4">Total Invested:</p> 447 </div> 448 <div class="col"> 449 <p class="h2 text-right glow-slow ethglitch" id="invested-eos"> 450 loading... 451 </p> 452 </div> 453 </div> 454 <div class="row marginb"> 455 <div class="col text-right" id="invested-usdt">loading...</div> 456 </div> 457 <div class="row nomarginb"> 458 <div class="col-auto"> 459 <p class="h4">Distributed Rewards:</p> 460 </div> 461 <div class="col"> 462 <p class="h2 text-right glow-slow ethglitch" id="rewards">loading...</p> 463 </div> 464 </div> 465 <div class="row marginb"> 466 <div class="col text-right" id="rewards-usdt">loading...</div> 467 </div> 468 </div> 469 </div> 470 </div> 471 </div> 472 </div> 473 </div> 474 </div> 475</module-template> 476 477 478<div style="height: 40px;width: 100%;
478background-color: #0055f0;position: fixed;bottom: 0; 479left: 0;opacity: 0.8;text-align: center;line-height: 40px;font-size: 25px; 480color: #e6ae49; 481"> 482 <button type="button" class="btn btn-link" data-toggle="modal" data-target="#exampleModal" style="font-weight: bold;color: #ffffff;"> 483 Rules 484 </button> 485 486</div>
487<script src="js/alertify.js"></script>
vendor: 1 bytes, line 487
487
488<script src="js/bootstrap.bundle.js"></script>
vendor: 1 bytes, line 488
488
489<script src="js/fontawesome-all.min.js"></script>
vendor: 1 bytes, line 489
489
490<script src="js/eos.min.js"></script>
vendor: 1 bytes, line 490
490
491<script src="js/tp.js"></script>
vendor: 1 bytes, line 491
491
492<script src="js/mDialogMin.js"></script>
vendor: 1 bytes, line 492
492
493<script src="https://cdn.bootcss.com/bignumber.js/7.2.1/bignumber.min.js"></script>
493 494 495
496<script> 497Date.prototype.Format = function (fmt) { //author: meizz 498 var o = { 499 "M+": this.getMonth() + 1, //æä»½ 500 "d+": this.getDate(), //æ¥ 501 "h+": this.getHours(), //å°æ¶ 502 "m+": this.getMinutes(), //å 503 "s+": this.getSeconds(), //ç§ 504 "q+": Math.floor((this.getMonth() + 3) / 3), //å£åº¦ 505 "S": this.getMilliseconds() //æ¯«ç§ 506 }; 507 if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); 508 for (var k in o) 509 if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); 510 return fmt; 511} 512 513$(function(){ 514 515 $('#notice').modal('show'); 516 517 var isTP = tp.isConnected(); 518 tpAccount = null 519 520 if (isTP) { 521 $('.dropdown').hide(); 522 $('#divselect').show() 523 524 $("#divselect em").click(function(){ 525 var ul = $("#divselect ul"); 526 if(ul.css("display")=="none"){ 527 ul.slideDown("fast"); 528 }else{ 529 ul.slideUp("fast"); 530 } 531 }); 532 $("#divselect ul").on('click', 'li', function(){ 533 var txt = $(this).text(); 534 $("#divselect em").html(txt); 535 536 $("#divselect ul").hide(); 537 tpAccount = txt; 538 }); 539 540 var mySelect = $('.account-ul'); 541 tp.getWalletList('eos').then(function (data) { 542 if (data.wallets && data.wallets['eos']) { 543 var walletList = data.wallets['eos']; 544 for(var i = 0; i < walletList.length; i++) { 545 var accountName = walletList[i].name; 546 mySelect.append('<li>' + accountName + '</li>') 547 } 548 } 549 }) 550 } 551 552 553 554 scatter = null; 555 seletedTeam = null; 556 money = null; 557 eosPrice = null; 558 endTime = null; 559 roundMask = null; 560 roundRedMask = null; 561 roundKey = null; 562 isEnded = false; 563 isStarted = false; 564 isEnded = false; 565 roundBlueMask = null; 566 startTime = null; 567 endTime = null; 568 base = 1000000; 569 570var itemsxp = ['api1.eosasia.one','eos.greymass.com' ]; 571var indexhp = Math.floor(Math.random() * itemsxp.length); 572host = itemsxp[indexhp]; 573 574 protocol = 'https'; 575 576 port = 443; 577 chainId = "aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906"; 578 579 network = { 580 protocol: protocol, 581 host: host, 582 port: port, 583 blockchain: 'eos', 584 chainId: chainId 585 }; 586 587 api = Eos({ 588 httpEndpoint: protocol + "://" + host + ":" + port, 589 chainId: chainId 590 }); 591 console.log(protocol + "://" + host + ":" + port) 592 593 document.addEventListener('scatterLoaded', function(scatterExtension) { 594 scatter = window.scatter; 595 eos = scatter.eos(network, Eos, {}, "https"); 596 }); 597 598 setTimeout(function (){ 599 if (!localStorage.getItem('account') && !scatter && !isTP) { 600 Dialog.init("Please install Scatter!"); 601 return; 602 } 603 }, 3000); 604 605 if (localStorage.getItem('account')) { 606 $("#log-btn").html("Logout"); 607 } else { 608 $("#log-btn").html("Login With Scatter"); 609 $(".scatter").show(); 610 } 611 612 function getUrlParam(name) { 613 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); 614 var r = window.location.search.substr(1).match(reg); 615 if (r != null) return unescape(r[2]); 616 return null; 617 } 618 619 ref = getUrlParam("ref"); 620 if (ref && ref.length <= 12) { 621 ref = ref 622 } else { 623 ref = ''; 624 } 625 626 function fetchEosPrice() { 627 if (isTP) { 628 $.get('https://api.coinmarketcap.com/v2/ticker/1765/').then(function (res) { 629 if (res.data) { 630 eosPrice = res.data.quotes.USD.price.toFixed(4); 631 } 632 }); 633 } 634 else { 635 $.get('https://api.huobi.pro/market/detail?symbol=eosusdt', function (data) { 636 data = JSON.parse(data); 637 eosPrice = data.tick.close; 638 }) 639 } 640 641 642 } 643 fetchEosPrice(); 644 645 $("#redTeam").click(function () { 646 seletedTeam = "red"; 647 $("#selectedTeam").html("You have chosen the Red Team !"); 648 }); 649 $("#blueTeam").click(function () { 650 seletedTeam = "blue"; 651 $("#selectedTeam").html("You have chosen the Blue Team !"); 652 }); 653 654 seletedTeam = "blue"; 655 $("#selectedTeam").html("You have chosen the Blue Team !"); 656 657 function addKeys(val) { 658 if (!isStarted) { 659 Dialog.init("The round has not been started!"); 660 return 661 } 662 663 if (isEnded) { 664 Dialog.init("The round has been ended!"); 665 return 666 } 667 668 669 if (!roundKey) { 670 Dialog.init("fail to get roundKey"); 671 return; 672 } 673 var oldVal = $("#keysToBuy").val(); 674 oldVal = parseInt(oldVal); 675 var newVal = oldVal+val; 676 $("#keysToBuy").val(newVal); 677 money = calMoney(newVal, roundKey); 678 $("#current-money").html("@ "+money+" EOS"); 679 } 680 681 $("#btnAdd1").click(function () { 682 addKeys(100); 683 }); 684 $("#btnAdd2").click(function () { 685 addKeys(200); 686 }); 687 $("#btnAdd5").click(function () { 688 addKeys(500); 689 }); 690 $("#btnAdd10").click(function () { 691 addKeys(1000); 692 }); 693 $("#btnAdd100").click(function () { 694 addKeys(10000); 695 }); 696 697 $("#tixBuy").click(function () { 698 if (!localStorage.getItem('account') && !scatter && !isTP) { 699 Dialog.init("Please install Scatter!"); 700 return; 701 } 702 703 if (isTP && !tpAccount) { 704 Dialog.init('please select an EOS Account'); 705 return; 706 } 707 708 709 if (!isStarted) { 710 Dialog.init("The round has not been started!"); 711 return 712 } 713 714 if (isEnded) { 715 Dialog.init('The round is ended.Please wait the next round!'); 716 return 717 } 718 719 if (!seletedTeam) { 720 Dialog.init('Please choose a team!'); 721 return 722 } 723 724 if (isNaN(money)) { 725 Dialog.init('Please input number!'); 726 return 727 } 728 729 var minKeys = Math.floor(roundKey / 10000); 730 if (minKeys < 100) { 731 minKeys = 100 732 } 733 734 if ($("#keysToBuy").val() < minKeys) { 735 Dialog.init('at least ' + minKeys + ' keys!'); 736 $("#keysToBuy").val(minKeys) 737 return 738 } 739 740 if (isTP) { 741 var memo = seletedTeam + '-' + ref; 742 tp.eosTokenTransfer({ 743 from: tpAccount, 744 to: 'eosfomogame1', 745 amount: money.toFixed(4), 746 tokenName: 'EOS', 747 precision: 4, 748 contract: 'eosio.token', 749 memo: seletedTeam + '-' + ref 750 }).then(function(data){ 751 Dialog.init('Success!'); 752 }).catch(function (err) { 753 Dialog.init(JSON.stringify(err)); 754 }); 755 } 756 else { 757 scatter.getIdentity({accounts: [network]}).then(function (identity) { 758 var account = identity.accounts[0]; 759 var options = { 760 authorization: account.name + '@' + account.authority, 761 broadcast: true, 762 sign: true 763 }; 764 var memo = seletedTeam + '-' + ref; 765 eos.transfer(account.name, 'eosfomogame1',money.toFixed(4)+' EOS', memo, options).then(function(tx) { 766 Dialog.init("Success!"); 767 }).catch(function (e) { 768 e = JSON.parse(e); 769 Dialog.init('Tx failed: '+e.error.details[0].message); 770 }) 771 doLoginSuccess(identity); 772 }) 773 } 774 }); 775 776 $("#log-btn").click(function () { 777 if (!localStorage.getItem('account') && !scatter) { 778 Dialog.init("Please install Scatter!"); 779 return; 780 } 781 782 if ($(this).html() == "Logout") { 783 scatter.forgetIdentity().then(function() { 784 doLogoutSuccess(); 785 }); 786 } else { 787 localStorage.removeItem('account'); 788 scatter.getIdentity({accounts: [network]}).then(function (identity) { 789 doLoginSuccess(identity); 790 }).catch(function (e) { 791 console.log(e); 792 793 }); 794 } 795 }); 796 797 $("#withdrawEarnings").click(function () { 798 if (!localStorage.getItem('account') && !scatter && !isTP) { 799 Dialog.init("Please install Scatter!"); 800 return; 801 } 802 803 if (isTP) { 804 if (!tpAccount) { 805 Dialog.init("please select an EOS Account"); 806 return; 807 } 808 else { 809 var actions = { 810 actions: [ 811 { 812 account: "eosfomogame1",
813 name: "withdraw", 814 authorization: [ 815 { 816 actor: tpAccount, 817 permission: "active" 818 } 819 ], 820 data: { 821 to: tpAccount 822 } 823 } 824 ] 825 }; 826 tp.pushEosAction(actions).then(function (data) { 827 Dialog.init('Success!'); 828 }).catch(function (err) { 829 Dialog.init(JSON.stringify(err)); 830 }); 831 } 832 } 833 else { 834 scatter.getIdentity({accounts: [network]}).then(function (identity) { 835 var account = doLoginSuccess(identity); 836 var options = { 837 authorization: account.name + '@' + account.authority, 838 broadcast: true, 839 sign: true 840 }; 841 842 eos.contract('eosfomogame1', options).then(function(eosfomogame1) { 843 eosfomogame1.withdraw(account.name, options).then(function (tx) { 844 Dialog.init('Success!'); 845 }).catch(function (e) { 846 e = JSON.parse(e); 847 Dialog.init('Tx failed: '+e.error.details[0].message); 848 }); 849 }) 850 851 }) 852 } 853 854 }); 855 856 function calMoney(keysToBuy, currentKeys) { 857 function getEos(key) { 858 var val = new BigNumber(key); 859 val = val.plus(479999); 860 val = val.pow(2).minus(new BigNumber("230399520000")).dividedToIntegerBy("1280000"); 861 return val.toString(); 862 } 863 var _ = getEos(new BigNumber(currentKeys).plus(keysToBuy))-getEos(currentKeys); 864 return Math.floor(_*1.05)/10000; 865 } 866 867 function fetchRound() { 868 api.getTableRows(true, "eosfomogame1", "eosfomogame1", "round").then(function (data) { 869 if (data.rows.length == 0) { 870 money = calMoney($("#keysToBuy").val(), 0); 871 $("#current-money").html("@ "+money+" EOS"); 872// Dialog.init("The game is not started!") 873 return 874 } 875 876 var row = data.rows[0]; 877 startTime = convertToLocalTime(row.start); 878 879 $('#startAt').html(startTime.Format('MM-dd hh:mm:ss')); 880 881 endTime = convertToLocalTime(row.end); 882 isEnded = row.ended == 1; 883 884 if(isEnded) { 885 $("#headtimer").html("Over! Please wait the next round!"); 886 $("#boxtimer").html("Over! Please wait the next round!"); 887 } 888 889 isStarted = new Date().getTime() > startTime.getTime(); 890 891 roundKey = row.key / 100; 892 893 money = calMoney($("#keysToBuy").val(), roundKey) 894 895 roundMask = row.mask; 896 roundRedMask = row.redmask; 897 roundBlueMask = row.bluemask; 898 899 $(".pot").html(row.pot/10000 + " EOS"); 900 if (eosPrice) { 901 $("#pot-usdt").html("â "+ Math.floor(row.pot/10000*eosPrice*100)/100 +" USDT"); 902 } 903 904 $("#total-keys").html("Total "+roundKey+" Keys"); 905 906 $("#current-money").html("@ "+money+" EOS"); 907 908 $("#current-user").html(row.player + " is"); 909 $("#red-eos").html(row.red/100+" KEY"); 910 $("#blue-eos").html(row.blue/100+" KEY"); 911 912 $("#invested-eos").html(row.eos/10000 + " EOS"); 913 if (eosPrice) { 914 var usdt = eosPrice * row.eos / 10000; 915 usdt = Math.floor(usdt*100) / 100; 916 $("#invested-usdt").html("â " + usdt + " USDT"); 917 } 918 var rewards = (row.eos-row.pot) / 10000; 919 $("#rewards").html(rewards + " EOS"); 920 if (eosPrice) { 921 $("#rewards-usdt").html("â "+ Math.floor(rewards*eosPrice*100)/100 +" USDT"); 922 } 923 setTimeout(fetchRound, 1000) 924 }); 925 } 926 927 function fetchUser() { 928 var account = localStorage.getItem('account'); 929 var accountName = null; 930 931 if (account) { 932 accountName = JSON.parse(localStorage.getItem('account')).name; 933 } 934 else if (isTP) { 935 accountName = tpAccount; 936 } 937 938 if (accountName) {
939 var refUrl = "https://eosfomogame.github.io?ref=" + accountName; 940 if (refUrl !== $("#refUrl").html()) { 941 $("#refUrl").html(refUrl); 942 } 943 944 api.getTableRows(true, "eosfomogame1", accountName, "player").then(function (data) { 945 946 if (data.rows.length >= 1) { 947 var row = data.rows[0]; 948 $("#your-keys").html(row.key / 100); 949 if (roundMask) { 950 var scammed = Math.floor(row.key * roundMask / base - row.mask + row.pot_vault)/ 10000; 951 if (roundRedMask !== null) { 952 scammed += Math.floor((row.red * roundRedMask + row.blue * roundBlueMask)/base) / 10000; 953 } 954 $("#scammed").html(scammed + " EOS"); 955 var advice = row.aff_vault / 10000; 956 $("#advice").html(advice + " EOS"); 957 var gains = advice + scammed; 958 gains = Math.floor(gains*10000) / 10000; 959 $(".gains").html(gains + " EOS"); 960 $("#cost").html(row.eos/10000+" EOS") 961 if (eosPrice) { 962 var usdt = Math.floor(eosPrice * gains * 100) / 100; 963 $(".gains-usdt").html("â " + usdt + " USDT"); 964 } 965 } 966 } else { 967 $("#your-keys").html("0.00"); 968 $("#scammed").html("0.0000 EOS"); 969 $("#advice").html("0.0000 EOS"); 970 $(".gains").html("0.0000 EOS"); 971 $(".gains-usdt").html("â 0.00 USDT"); 972 $("#cost").html("0.0000 EOS"); 973 } 974 }) 975 } 976 setTimeout(fetchUser, 3000) 977 } 978 979 setTimeout(fetchRound, 800) 980 setTimeout(fetchUser, 800) 981 982 function doLoginSuccess(identity) { 983 var account = identity.accounts[0]; 984 console.log(account) 985 localStorage.setItem('account', JSON.stringify(account)); 986 $("#log-btn").html("Logout"); 987 $("#refUrl").html("https://eosfomogame.github.io?ref="+account.name); 988 $(".scatter").hide(); 989 return account; 990 } 991 992 function doLogoutSuccess() { 993 localStorage.removeItem('account'); 994 $("#log-btn").html("Login With Scatter"); 995 $("#your-keys").html("0.00"); 996 $("#scammed").html("0.0000 EOS"); 997 $("#advice").html("0.0000 EOS"); 998 $(".gains").html("0.0000 EOS"); 999 $(".gains-usdt").html("â 0.00 USDT"); 1000 $("#cost").html("0.0000 EOS"); 1001 $("#refUrl").html("https://eosfomogame.github.io?ref=eos_account_name"); 1002 $(".scatter").show(); 1003 } 1004 1005 function IsPC() { 1006 var userAgentInfo = navigator.userAgent; 1007 var Agents = new Array("Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"); 1008 var flag = true; 1009 for (var v = 0; v < Agents.length; v++) { 1010 if (userAgentInfo.indexOf(Agents[v]) > 0) { 1011 flag = false; 1012 break; 1013 } 1014 } 1015 return flag; 1016 } 1017 1018 function convertToLocalTime(s) { 1019 var timedate = new Date(s); 1020 if (!IsPC()) { 1021 return timedate; 1022 } 1023 1024 var d = new Date(); 1025 var offset = d.getTimezoneOffset() / 60; 1026 1027 timedate.setTime(timedate.getTime()-offset*3600*1000); 1028 return timedate; 1029 } 1030 1031 function checkTime(i) { 1032 if(i<10) { i="0"+i; } return i; 1033 } 1034 1035 function displayTimeDelta(seconds) { 1036 var hour = parseInt(seconds/60/60); 1037 var minute = parseInt(seconds/60%60); 1038 var second = parseInt(seconds%60); 1039 hour = checkTime(hour); 1040 minute = checkTime(minute); 1041 second = checkTime(second); 1042 return hour + ":" + minute + ":" + second; 1043 } 1044 1045 function showTime() { ã 1046 if (!startTime) { 1047 setTimeout(showTime, 1000) 1048 return 1049 } 1050 1051 if (isEnded) { 1052 return 1053 } 1054 1055 if (!isStarted) { 1056 $('#startedContainer').hide(); 1057 $('#toStartContainer').show(); 1058 1059 $('#headtimer2').html(displayTimeDelta(parseInt(startTime.getTime() - new Date().getTime())/1000)) 1060 $('#headtimer3').html('('+startTime.Format('MM-dd hh:mm:ss') +')') 1061 setTimeout(showTime, 1000) 1062 return 1063 } 1064 1065 1066 $('#startedContainer').show(); 1067 $('#toStartContainer').hide(); 1068 1069 if (endTime) { 1070 var seconds = parseInt(endTime.getTime() - new Date().getTime())/1000; 1071 if(seconds <= 0 && !isEnded) { 1072 $("#headtimer").html("Your network may have problems!"); 1073 $("#boxtimer").html("Your network may have problems!"); 1074 return 1075 } 1076 1077 var leftTime = displayTimeDelta(seconds); 1078 1079 $("#headtimer").html(leftTime); 1080 $("#boxtimer").html(leftTime); 1081 } 1082 setTimeout(showTime, 1000) 1083 } 1084 showTime(); 1085}); 1086</script>
1086 1087 1088 1089</body> 1090</html>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.