Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2018
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 109.87 KB | None | 0 0
  1. <state-play>\r\n
  2. <script>
  3. \
  4. r\ n\ t\ t /* Initializes Popovers so they only require 1 click\r\n\t\twith love -justo */ \ r\ n\ t\ t$(function() {\
  5. r\ n\ t\ t\ t$('[data-toggle=\"popover\"]').popover();\
  6. r\ n\ t\ t\ t$('.checkmark').popover({\
  7. r\ n\ t\ t\ t\ ttrigger: \ "hover\"\r\n\t\t\t});\r\n\t\t})\r\n\t\t\r\n\r\n\t\tsetTimeout(function() {\r\n\t\t$('.tutorialArrow').fadeOut('fast');\r\n\t\t}, 20000); // <-- time in milliseconds\r\n
  8. </script>\r\n\r\n\t
  9. <!-- fomo\t-->\r\n\t
  10. <!-- NOTE: Displays the current pot size in ETH as well as time left in current round -->\r\n\t
  11. <div class=\ "blurryboy\" if={!$this.gracePeriod}></div>\r\n\t
  12. <div class=\ "blurryboydark\" if={$this.gracePeriod}></div>\r\n\r\n\t
  13. <div class=\ "jumbotron rounded-0 text-center text-light teaser-cover\" if={!$this.roundHasPassed}>\r\n\t\t
  14. <!--\r\n\t\t<div class=\"grid-container\" if={!$this.gracePeriod}>\r\n\t\t\t<div id=\"hdgraphics\" class=\"grid-top\"></div>\r\n\t\t</div> -->\r\n\t\t
  15. <div class=\ "container\">\r\n\t\t\t
  16. <h4 class=\ "display-4 scammed\" style=\ "font-style: italic;\" if={!$this.playerIsLeader && JUST.Cache.currentRound[8] && JUST.Cache.currentRound[8] !=\ "0x0000000000000000000000000000000000000000000000000000000000000000\"}>\r\n\t\t\t{JUST.Bridges.Browser.web3.utils.toAscii(JUST.Cache.currentRound[8])} is</h4>\r\n\t\t\t
  17. <h4 class=\ "display-4 scammed\" style=\ "font-style: italic;\" if={!$this.playerIsLeader && JUST.Cache.currentRound[8] && JUST.Cache.currentRound[8]==\ "0x0000000000000000000000000000000000000000000000000000000000000000\"}>\r\n\t\t\tsomeone else is</h4>\r\n\t\t\t
  18. <h1 class=\ "display-1 scammed\" if={!$this.playerIsLeader && !$this.gracePeriod}>EXIT SCAMMING</h1>\r\n\t\t\t
  19. <h1 class=\ "display-1 scammed\" if={$this.playerIsLeader && !$this.gracePeriod}>YOU ARE EXIT SCAMMING</h1>\r\n\t\t\t
  20. <h1 class=\ "display-1 scammed\" if={!$this.playerIsLeader && $this.gracePeriod}>ICO FUNDING</h1>\r\n\t\t\t
  21. <h1 class=\ "display-1 scammed\" if={$this.playerIsLeader && $this.gracePeriod}>YOU ARE ICO FUNDING</h1>\r\n\t\t\t
  22. <h2 class=\ "display-3\" if={$this.gracePeriod}><span class=\ "ethglitch titleglow\">{BN(JUST.Cache.currentRound[0]).plus(JUST.Cache.currentRound[5]).div(1e18).toFixed(4)} <i class=\ "fab fa-ethereum ethglow\"></i></span></h2>\r\n\t\t\t
  23. <h2 class=\ "display-3\" if={!$this.gracePeriod}><span class=\ "ethglitch titleglow\">{BN(JUST.Cache.currentRound[5]).div(1e18).toFixed(4)} <i class=\ "fab fa-ethereum ethglow\"></i></span> <span class=\ "headtimer\">--</span></h2>\r\n\t\t \t
  24. <h3 if={$this.gracePeriod} class=\ "display-5\" style=\ "margin-top:50px;\">ICO ends in <span class=\ "headtimer\" style=\ "display:inline;font-size:inherit;\">--</span></h3>\r\n\r\n\t\t\t
  25. <!-- <h5 class=\"display-5\" if={!$this.playerIsLeader && !$this.gracePeriod}><a class=\"titlepopoutrightmini\">You're</a> going to stop them, right?</h5> -->\r\n\t\t\t
  26. <!-- <h5 class=\"display-5\" if={!$this.playerIsLeader && !$this.gracePeriod}>{memes.buyButtonMessagePlayer[Math.floor(memes.buyButtonMessagePlayer.length * Math.random()) - 1].replace(/\\$player/g, JUST.Bridges.Browser.web3.utils.toAscii(JUST.Cache.currentRound[8]))}</h5>-->\r\n\t\t\t
  27. <h5 class=\ "display-5\" if={$this.playerIsLeader && !$this.gracePeriod}>If no one buys a key, you drain the contract!</h5>\r\n\t\t \t
  28. <!--<a if={$this.gracePeriod} href=\"javascript:void(0)\" class=\"buyOneTicket btn btn-lg btn-block btn-purp pulse marginb\">Participate in the ICO</a> -->\r\n\t\t \t
  29. <h4 if={$this.gracePeriod} class=\ "lead\">ICO Phase: A short 1 Hour interlude. Sent eth will be rejected; wait for the round to start for the <a class=\ "titlepopoutrightmini\">first</a> and <a class=\ "titlepopoutrightmini\">cheapest</a> keys</b> </h4>\r\n\r\n\t\t\t\r\n\t\t\t\t
  30. <!-- Button Handling for Buy 1x More; -->\r\n\t\t\t\t
  31. <!-- This button appears when the player in the lead has a vanity name -->\r\n\t\t\t\t<a href=\ "javascript:void(0)\" if={!$this.playerIsLeader && !$this.gracePeriod && JUST.Cache.currentRound[8] !=\ "0x0000000000000000000000000000000000000000000000000000000000000000\"} class=\ "buyOneTicket btn btn-lg btn-block btn-purp pulse marginb\">\r\n\t\t\t\t\t<div class=row>\r\n\t\t\t\t\t\t
  32. <div class=\ "col-sm-1.5 no-mobile\" style=\ "padding-left: 10px\">\r\n\t\t\t\t\t\t 1x <i class=\ "fas fa-key\"></i>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t
  33. <div class=col-sm-11>\r\n\t\t\t\t\t\t<span style=\ "margin-right: 1rem;margin-left: -1rem\" class=\ "only-mobile mobile-text\">1x <i class=\ "fas fa-key\"></i></span>\r\n\t\t\t\t\t\t{memes.buyButtonMessagePlayer[Math.floor(memes.buyButtonMessagePlayer.length * Math.random()) - 1].replace(/\\$player/g, JUST.Bridges.Browser.web3.utils.toAscii(JUST.Cache.currentRound[8]))}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t
  34. </div>\r\n\t\t\t\t</a>\r\n\t\t\t\t\r\n\t\t\t\t
  35. <!-- This button appears when the player in the lead does not have a vanity name -->\r\n\t\t\t\t<a href=\ "javascript:void(0)\" if={!$this.playerIsLeader && !$this.gracePeriod && JUST.Cache.currentRound[8]==\ "0x0000000000000000000000000000000000000000000000000000000000000000\"} class=\ "buyOneTicket btn btn-lg btn-block btn-purp pulse marginb\">\r\n\t\t\t\t<div class=row>\r\n\t\t\t\t\t
  36. <div class=\ "col-sm-1.5 no-mobile\" style=\ "padding-left: 10px\">\r\n\t\t\t\t\t 1x <i class=\ "fas fa-key\"></i>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t
  37. <div class=col-sm-11>\r\n\t\t\t\t\t<span style=\ "margin-right: 1rem;margin-left: -1rem\" class=\ "only-mobile mobile-text\">1x <i class=\ "fas fa-key\"></i></span>\r\n\t\t\t\t\t{memes.buyButtonMessageAnon[Math.floor(memes.buyButtonMessageAnon.length * Math.random()) - 1].replace(/\\$player/g, JUST.Bridges.Browser.web3.utils.toAscii(JUST.Cache.currentRound[8]))}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t
  38. </div>\r\n\t\t\t\t</a>\r\n\t\t\t\t\r\n\t\t</div>\r\n\t\t
  39. <!--\r\n\t\t<div class=\"grid-container\">\r\n\t\t\t<div class=\"grid-bottom\"></div>\t\r\n\t\t</div>\r\n\t\t-->\r\n\t
  40. </div>\r\n\t\r\n\t\r\n\t
  41. <!-- So and So has EXIT SCAMMED -->\r\n\t
  42. <div class=\ "jumbotron rounded-0 text-center text-light teaser-cover marginb\" if={$this.roundHasPassed}>\r\n\t
  43. <div class=\ "container\">\r\n\t\r\n\t\r\n\t
  44. <!-- Grouped up into elements w/ conditionals per winner or not winning case -->\r\n\t\t
  45. <h1 class=\ "display-1 scammed\" if={$this.playerIsLeader}>YOU EXIT SCAMMED</h1>\r\n\t\t
  46. <h1 class=\ "display-1 scammed\" if={!$this.playerIsLeader}>EXIT SCAMMED</h1>\r\n\t\t\r\n\t\t\r\n\t\t
  47. <!-- Eth Amount -->\r\n\t\t
  48. <h2 class=\ "display-3\"><span class=\ "ethglitch titleglow\">{BN(JUST.Cache.currentRound[5]).div(1e18).toFixed(4)} <i class=\ "fab fa-ethereum ethglow\"></i></span> <span class=\ "headtimer\" if={!$this.playerIsLeader}>drained by <a href=\ "javascript:void(0)\">{(JUST.Cache.currentRound[8] && JUST.Cache.currentRound[8] != \"0x0000000000000000000000000000000000000000000000000000000000000000\" ? JUST.Bridges.Browser.web3.utils.toAscii(JUST.Cache.currentRound[8]) : JUST.Cache.currentRound[7].substr(0, 10).concat(\"...\"))}</a>!</span></h2>\r\n\t\r\n\t\t
  49. <!-- Custom RNG winner text -->\r\n\t\t
  50. <h6 class=\ "display-5 scammed\" if={!$this.gracePeriod && $this.playerIsLeader}>You get about 50%, and share the rest</h6>\r\n\t\t
  51. <h6 class=\ "display-5 scammed\" if={$this.gracePeriod && $this.playerIsLeader}>You got about 50%, and shared the rest</h6>\r\n\t\t
  52. <h6 class=\ "display-5 scammed titlepopoutrightmini\" if={$this.playerIsLeader}><i>{memes.exitScamTheft[Math.floor(memes.exitScamTheft.length * Math.random()) - 1]}</i></h6>\r\n\t \r\n\t\t
  53. <div style=\ "position: relative;\">\r\n\t\t
  54. <h3 class=\ "display-5\" style=\ "margin-top:50px;\">There's <strong>{BN(JUST.Cache.currentRound[5]).div(10).div(1e18).toFixed(5)}</strong> ETH in the new pot. <span style=\ "font-style: italic;\"><a class=\ "titlepopoutrightmini\">You're</a> going to take it <span if={$this.playerIsLeader}>too...</span> right?</span></h3>\r\n\t\t \r\n\t\t \r\n\t\t
  55. <!-- This button appears when an exit scam has finished, and a new ICO phase needs to start -->\r\n\t\t<a href=\ "javascript:void(0)\" class=\ " buyOneTicket btn btn-lg btn-block btn-purp pulse marginb\">\r\n\t\t\t<div class=row>\r\n\t\t\t\t\t
  56. <div class=col-sm-1.5 style=\ "padding-left: 10px\">\r\n\t\t\t\t\t 1x <i class=\ "fas fa-key\"></i>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t
  57. <div class=col-sm-11>\r\n\t\t\t\t\tStart your exit scam\r\n\t\t\t\t\t</div>\r\n\t\t\t
  58. </div>\r\n\t\t</a>\r\n\t\t\r\n\t\t\r\n\t\t</div>\r\n\t
  59. </div>\r\n\t
  60. </div>\r\n\t
  61. </div>\r\n\t
  62. <!-- /fomo -->\r\n\t
  63. <div class=\ "container\" style=\ "margin-top:-1rem;\">\r\n\t\t
  64. <div class=\ "row cta-ticket\" style=\ "margin-top:-5rem;\">\r\n\t\t\t
  65. <div class=\ "col\">\r\n\t\t\t\t
  66. <div class=\ "alert alert-purp pulse text-center text-light\" role=\ "alert\">Buy a key to start a new ICO</div>\r\n\t\t\t
  67. </div>\r\n\t\t
  68. </div>\r\n\t\t
  69. <div class=\ "row\" if={$this.gracePeriod}>\r\n\t\t\t
  70. <div class=\ "col-md-3 no-mobile\">\r\n\t\t\t\t\r\n\t\t\t</div>\r\n\t\t\t
  71. <!-- biddings & vault -->\r\n\t\t\t
  72. <div class=\ "col-sm\">\r\n\r\n\t\t\t\t
  73. <ul class=\ "nav nav-tabs tabs-border-adjust\" id=\ "buyTabs\" role=\ "tablist\">\r\n\t\t\t\t
  74. <li class=\ "nav-item tab-item\">\r\n\t\t\t\t <a class=\ "nav-link tab-link active\" id=\ "purchaseTab\" data-toggle=\ "tab\" href=\ "#purchaseArea\" role=\ "tab\" aria-controls=\ "purchaseArea\" aria-selected=\ "true\">ICO</a>\r\n\t\t\t\t </li>\r\n\t\t\t\t
  75. <li class=\ "nav-item tab-item\">\r\n\t\t\t\t <a class=\ "nav-link tab-link\" id=\ "vaultTab\" data-toggle=\ "tab\" href=\ "#vaultArea\" role=\ "tab\" aria-controls=\ "vaultArea\" aria-selected=\ "false\">Vault</a>\r\n\t\t\t\t </li>\r\n\t\t\t\t
  76. <li class=\ "nav-item tab-item\">\r\n\t\t\t\t <a class=\ "nav-link tab-link\" id=\ "refTab\" data-toggle=\ "tab\" href=\ "#refArea\" role=\ "tab\" aria-controls=\ "refArea\" aria-selected=\ "false\">Vanity &amp; Referrals</a>\r\n\t\t\t\t </li>\r\n\t\t\t\t
  77. </ul>\r\n\t\t\t\t
  78. <div class=\ "tab-content\" id=\ "buyArea\">\r\n\t\t\t\t
  79. <!-- biddings -->\r\n\t\t\t\t
  80. <div class=\ "tab-pane fade show active\" id=\ "purchaseArea\" role=\ "tabpanel\" aria-labelledby=\ "purchaseArea\">\r\n\t\t\t\t\t
  81. <div class=\ "jumbotron jumbotron-adjust text-light bg-dark jumboshade tab-rounded\">\r\n\t\t\t\t\t\t
  82. <div class=\ "row\">\r\n\t\t\t\t\t\t\t
  83. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t
  84. <p class=\ "lead nomarginb\">Initial Con Offering</p>\r\n\t\t\t\t\t\t\t
  85. </div>\r\n\t\t\t\t\t\t\t
  86. <div class=\ "col-auto\">\r\n\t\t\t\t\t\t\t\t
  87. <p class=\ "text-right nomarginb tutorial\">\r\n\t\t\t\t\t\t\t\t\t<i class=\ "fas fa-arrow-right pulsetutorial tutorialArrow\"></i>\r\n\t\t\t\t\t\t\t\t\t<a tabindex=\ "0\" type=\ "button\" class=\ "qbtn\" role=\ "button\" data-toggle=\ "popover\" data-trigger=\ "focus\" data-html=\ "true\" data-placement=\ "bottom\" title=\ "juster maek fun text pls\" data-content=\ "{popover.ico}\">\r\n\t\t\t\t\t\t\t\t\t<i class=\ "far fa-question-circle\"></i>\r\n\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t
  88. </div>\r\n\t\t\t\t\t\t
  89. </div>\r\n\t\t\t\t\t\t
  90. <hr>\r\n\t\t\t\t\t\t
  91. <!-- ICO Purchase -->\r\n\t\t\t\t\t\t
  92. <div class=\ "row\">\r\n\t\t\t\t\t\t
  93. <div class=\ "col text-center\">\r\n\t\t\t\t\t\t\t\t
  94. <p class=\ "small\">You do want a share of the scheme, right?</p>\r\n\t\t\t\t\t\t\t
  95. </div>\r\n\t\t\t\t\t\t
  96. </div>\r\n\t\t\t\t\t\t
  97. <div class=\ "row marginb\">\r\n\t\t\t\t\t\t
  98. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  99. <div id=\ "purchase\" class=\ "tab-pane fade show active\" role=\ "tabpanel\">\r\n\t\t\t\t\t\t\t
  100. <div class=\ "row\" id=\ "purchase\">\r\n\t\t\t\t\t\t\t
  101. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t
  102. <div class=\ "input-group mb-3\">\r\n\t\t\t\t\t\t\t\t
  103. <div class=\ "input-group-prepend\">\r\n\t\t\t\t\t\t\t\t\t<span class=\ "input-group-text\">\r\n\t\t\t\t\t\t\t\t\t <i class=\ "fab fa-ethereum\"></i>\r\n\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t\t\t <input type=\ "text\" id=\ "ethToSpend\" class=\ "form-control text-center\" value=\ "0.01 ETH\">\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t
  104. </div>\r\n\t\t\t\t\t\t\t
  105. </div>\r\n\t\t\t\t\t\t\t
  106. <div class=\ "row\" style=\ "position: relative;\">\r\n\t\t\t\t\t\t\t
  107. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t<button type=\ "button\" id=\ "ethSpend\" class=\ "btn btn-block btn-purp btn-lg ticketProcess\"><i class=\ "fab fa-ethereum\"></i> Send ETH</button>\r\n\t\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t\t
  108. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t<button type=\ "button\" id=\ "ethReinvest\" class=\ "btn btn-block btn-outline-purp btn-lg ticketProcess\"><i class=\ "fas fa-piggy-bank\"></i> Use Vault</button>\r\n\t\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t\t
  109. </div>\r\n\t\t\t\t\t\t
  110. </div>\r\n\t\t\t\t\t\t
  111. </div>\r\n\t\t\t\t\t\t
  112. </div>\r\n\t\t\t\t\t\t
  113. <hr>\r\n\t\t\t\t\t\t
  114. <div class=\ "row marginb\">\r\n\t\t\t\t\t\t\t
  115. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t
  116. <p class=\ "lead nomarginb\">Choose a Team</p>\r\n\t\t\t\t\t\t\t
  117. </div>\r\n\t\t\t\t\t\t\t
  118. <div class=\ "col-auto\">\r\n\t\t\t\t\t\t\t\t
  119. <p class=\ "text-right nomarginb tutorial\">\r\n\t\t\t\t\t\t\t\t<i class=\ "fas fa-arrow-right pulsetutorial tutorialArrow\"></i>\r\n\t\t\t\t\t\t\t\t\t<a tabindex=\ "0\" type=\ "button\" class=\ "qbtn\" role=\ "button\" data-toggle=\ "popover\" data-trigger=\ "focus\" data-html=\ "true\" data-placement=\ "bottom\" title=\ "Pick where the Eth Goes!\" data-content=\ "{popover.teamselect}\"><i class=\ "far fa-question-circle\"></i></a></p>\r\n\t\t\t\t\t\t\t
  120. </div>\r\n\t\t\t\t\t\t
  121. </div>\t\t\t\r\n\t\t\t\t\t\t
  122. <div class=\ "row marginb distribution\">\r\n\t\t\t\t\t\t\t
  123. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t
  124. <div class=\ "row\">\r\n\t\t\t\t\t\t\t\t\t
  125. <div class=\ "col-3 team\">\r\n\t\t\t\t\t\t\t\t\t\t<label class=\ "teamselector\">\r\n\t\t\t\t\t\t\t\t\t\t\t<input class=\ "form-check-input form-radio teamsave\" type=\ "radio\" autocomplete=\ "off\" name=\ "teamselect\" value=\ "2\" id=\ "teamsnek\">\r\n\t\t\t\t\t\t\t\t\t\t\t<img src=\ "/img/tsnek.png\" alt=\ "\">\r\n\t\t\t\t\t\t\t\t\t\t\t<h5>Snek</h5>\r\n\t\t\t\t\t\t\t\t\t\t\t
  126. <p>Trickle down Divinomics</p>\r\n\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t<div>\r\n\t\t\t\t\t\t\t\t\t\t
  127. <p style=\ "color:#2ecc71\">++ Most dividends</p>\r\n\t\t\t\t\t\t\t\t\t\t
  128. </div>\r\n\t\t\t\t\t\t\t\t\t
  129. </div>\r\n\t\t\t\t\t\t\t\t\t
  130. <div class=\ "col-3 team\">\r\n\t\t\t\t\t\t\t\t\t\t<label class=\ "teamselector\">\r\n\t\t\t\t\t\t\t\t\t\t\t<input class=\ "form-check-input form-radio teamsave\" type=\ "radio\" autocomplete=\ "off\" name=\ "teamselect\" value=\ "0\" id=\ "teamwhale\">\r\n\t\t\t\t\t\t\t\t\t\t\t<img src=\ "/img/twhale.png\" alt=\ "\">\r\n\t\t\t\t\t\t\t\t\t\t\t<h5>Whale</h5>\r\n\t\t\t\t\t\t\t\t\t\t\t
  131. <p>Feed on the greed of others.</p>\r\n\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t<p style=\ "color:#2ecc71\">++ Most eth to pot</p>\r\n\t\t\t\t\t\t\t\t\t
  132. </div>\r\n\t\t\t\t\t\t\t\t\t
  133. <div class=\ "col-3 team\">\r\n\t\t\t\t\t\t\t\t\t\t<label class=\ "teamselector\">\r\n\t\t\t\t\t\t\t\t\t\t\t<input class=\ "form-check-input form-radio teamsave\" type=\ "radio\" autocomplete=\ "off\" name=\ "teamselect\" value=\ "3\" id=\ "teambull\">\r\n\t\t\t\t\t\t\t\t\t\t\t<img src=\ "/img/tbull.png\" alt=\ "\">\r\n\t\t\t\t\t\t\t\t\t\t\t<h5>Bull</h5>\r\n\t\t\t\t\t\t\t\t\t\t\t
  134. <p>Break upwards, never stagnate.</p>\r\n\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t<p style=\ "color:#2ecc71\">+ Balanced distribution</p>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
  135. </div>\r\n\t\t\t\t\t\t\t\t\t
  136. <div class=\ "col-3 team\">\r\n\t\t\t\t\t\t\t\t\t\t<label class=\ "teamselector\">\r\n\t\t\t\t\t\t\t\t\t\t\t<input class=\ "form-check-input form-radio teamsave\" type=\ "radio\" autocomplete=\ "off\" name=\ "teamselect\" value=\ "1\" id=\ "teambear\">\r\n\t\t\t\t\t\t\t\t\t\t\t<img src=\ "/img/tbear.png\" alt=\ "\">\r\n\t\t\t\t\t\t\t\t\t\t\t<h5>Bear</h5>\r\n\t\t\t\t\t\t\t\t\t\t\t
  137. <p>Stand alone, fight alone.</p>\r\n\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t<p style=\ "color:#2ecc71\">++ Maximize eth to current round</p>\r\n\t\t\t\t\t\t\t\t\t
  138. </div>\r\n\t\t\t\t\t\t\t\t
  139. </div>\r\n\t\t\t\t\t\t\t\t
  140. <div class=\ "row\">\r\n\t\t\t\t\t\t\t\t\t
  141. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t\t
  142. <div class=\ "chart\"></div>\r\n\t\t\t\t\t\t\t\t\t
  143. </div>\r\n\t\t\t\t\t\t\t\t
  144. </div>\r\n\t\t\t\t\t\t\t
  145. </div>\r\n\t\t\t\t\t\t
  146. </div>\r\n\r\n\t\t\t\t\t
  147. <!--<p class=\"small text-center\">Your purchase will extend the game by a total of <span class=\"extender\">NaN</span> Minutes.</p> -->\t\t\t\t\t\t\t\r\n\t\t\t\t\t
  148. </div>\r\n\t\t\t\t
  149. </div>\r\n\t\t\t\t
  150. <!-- /biddings -->\t\r\n\t\t\t\t
  151. <!-- vault -->\r\n\t\t\t\t
  152. <div class=\ "tab-pane fade\" id=\ "vaultArea\" role=\ "tabpanel\" aria-labelledby=\ "vaultArea\">\r\n\t\t\t\t\t
  153. <div class=\ "jumbotron jumbotron-adjust text-light bg-dark jumboshade tab-rounded\">\r\n\t\t\t\t\t\t
  154. <div class=\ "row\">\r\n\t\t\t\t\t\t
  155. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  156. <p class=\ "lead nomarginb\">Vault</p>\r\n\t\t\t\t\t\t
  157. </div>\r\n\t\t\t\t\t\t
  158. <div class=\ "col-auto\">\r\n\t\t\t\t\t\t\t
  159. <p class=\ "text-right nomarginb tutorial\">\r\n\t\t\t\t\t\t\t\t<i class=\ "fas fa-arrow-right pulsetutorial tutorialArrow\"></i>\r\n\t\t\t\t\t\t\t<a tabindex=\ "0\" type=\ "button\" class=\ "qbtn\" role=\ "button\" data-toggle=\ "popover\" data-trigger=\ "focus\" data-html=\ "true\" data-placement=\ "bottom\" title=\ "Vault 77: Where you keep the puppets\" data-content=\ "{popover.vault}\">\r\n\t\t\t\t\t\t\t<i class=\ "far fa-question-circle\"></i>\r\n\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t
  160. </div>\r\n\t\t\t\t\t\t
  161. <hr>\r\n\t\t\t\t\t\t
  162. <div class=\ "jumbotron jumbotron-adjust teamscore\">\r\n\t\t\t\t\t\t
  163. <!-- <div class=\"row\">\r\n\t\t\t\t\t\t\t<div class=\"col\">\r\n\t\t\t\t\t\t\t <p class=\"lead\">Winning Pot (Unused)</p>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class=\"col\">\r\n\t\t\t\t\t\t\t <p class=\"h3 text-right\">{(JUST.Bridges.Metamask && JUST.Bridges.Metamask.signedIn && JUST.Cache.currentPlayer && JUST.Cache.currentPlayer.Vaults) ? BN(JUST.Cache.currentPlayer.Vaults[0]).div(1e18).toFixed(4) : BN(0).toFixed(4)} ETH</p>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t </div> -->\r\n\t\t\t\t\t\t
  164. <div class=\ "row\">\r\n\t\t\t\t\t\t\t
  165. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  166. <p class=\ "lead\">Exit Scammed</p>\r\n\t\t\t\t\t\t\t
  167. </div>\r\n\t\t\t\t\t\t\t
  168. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  169. <p class=\ "h3 text-right\">{(JUST.Bridges.Metamask && JUST.Bridges.Metamask.signedIn && JUST.Cache.currentPlayer && JUST.Cache.currentPlayer.Vaults) ? BN(JUST.Cache.currentPlayer.Vaults[1]).plus(JUST.Cache.currentPlayer.Vaults[0]).div(1e18).toFixed(4) : BN(0).toFixed(4)} ETH</p>\r\n\t\t\t\t\t\t\t
  170. </div>\r\n\t\t\t\t\t\t
  171. </div>\r\n\t\t\t\t\t\t
  172. <div class=\ "row\">\r\n\t\t\t\t\t\t\t
  173. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  174. <p class=\ "lead\">Bad Advice</p>\r\n\t\t\t\t\t\t\t
  175. </div>\r\n\t\t\t\t\t\t\t
  176. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  177. <p class=\ "h3 text-right\">{(JUST.Bridges.Metamask && JUST.Bridges.Metamask.signedIn && JUST.Cache.currentPlayer && JUST.Cache.currentPlayer.Vaults) ? BN(JUST.Cache.currentPlayer.Vaults[2]).div(1e18).toFixed(4) : BN(0).toFixed(4)} ETH</p>\r\n\t\t\t\t\t\t\t
  178. </div>\r\n\t\t\t\t\t\t
  179. </div>\r\n\t\t\t\t\t\t
  180. <hr>\r\n\t\t\t\t\t\t
  181. <div class=\ "row\">\r\n\t\t\t\t\t\t\t
  182. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  183. <p class=\ "lead\">Total Gains</p>\r\n\t\t\t\t\t\t\t
  184. </div>\r\n\t\t\t\t\t\t\t
  185. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  186. <p class=\ "h3 text-right glow\">{(JUST.Bridges.Metamask && JUST.Bridges.Metamask.signedIn && JUST.Cache.currentPlayer && JUST.Cache.currentPlayer.Vaults) ? BN(JUST.Cache.currentPlayer.Vaults[0]).plus(JUST.Cache.currentPlayer.Vaults[1]).plus(JUST.Cache.currentPlayer.Vaults[2]).div(1e18).toFixed(4) : BN(0).toFixed(4)} ETH</p>\r\n\t\t\t\t\t\t\t
  187. <p class=\ "text-right\">&#8793; {BN(JUST.Cache.currentPlayer.Vaults[0]).plus(JUST.Cache.currentPlayer.Vaults[1]).plus(JUST.Cache.currentPlayer.Vaults[2]).div(1e18).multipliedBy(JUST.Cache.fiatRatios.USD).toFixed(5)} USDT</p>\r\n\t\t\t\t\t\t\t
  188. </div>\r\n\t\t\t\t\t\t
  189. </div>\r\n\t\t\t\t\t\t
  190. <div class=\ "row\">\r\n\t\t\t\t\t\t\t
  191. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t
  192. <p class=\ "text-right nomarginb\"><button href=\ "\" class=\ "btn btn-outline-purp btn-block\" id=\ "withdrawEarnings\"><i class=\ "fas fa-hand-holding-heart\"></i> Withdraw</button></p>\r\n\t\t\t\t\t\t\t
  193. </div>\r\n\t\t\t\t\t\t
  194. </div>\r\n\t\t\t\t\t\t
  195. </div>\r\n\t\t\t\t\t
  196. </div>\r\n\t\t\t\t
  197. </div>\r\n\t\t\t\t
  198. <!-- /vault -->\r\n\r\n\t\t\t\t
  199. <!-- vanity -->\r\n\t\t\t\t
  200. <div class=\ "tab-pane fade\" id=\ "refArea\" role=\ "tabpanel\" aria-labelledby=\ "refArea\">\r\n\t\t\t\t\t
  201. <div class=\ "jumbotron jumbotron-adjust text-light bg-dark jumboshade tab-rounded\">\r\n\t\t\t\t\t\t
  202. <div class=\ "row\">\r\n\t\t\t\t\t\t
  203. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  204. <p class=\ "lead nomarginb\">Advisory Board</p>\r\n\t\t\t\t\t\t
  205. </div>\r\n\t\t\t\t\t\t
  206. <div class=\ "col-auto\">\r\n\t\t\t\t\t\t\t
  207. <p class=\ "text-right nomarginb tutorial\">\r\n\t\t\t\t\t\t\t\t<i class=\ "fas fa-arrow-right pulsetutorial tutorialArrow\"></i>\r\n\t\t\t\t\t\t\t<a tabindex=\ "0\" type=\ "button\" class=\ "qbtn\" role=\ "button\" data-toggle=\ "popover\" data-trigger=\ "focus\" data-html=\ "true\" data-placement=\ "bottom\" title=\ "Probably Bribery\" data-content=\ "{popover.referral}\">\r\n\t\t\t\t\t\t\t<i class=\ "far fa-question-circle\"></i>\r\n\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t
  208. </div>\r\n\t\t\t\t\t\t
  209. <hr>\r\n\t\t\t\t\t\t
  210. <div class=\ "jumbotron jumbotron-adjust teamscore\">\r\n\t\t\t\t\t\t\t
  211. <div class=\ "row\" if={!$this.isCEO}>\r\n\t\t\t\t\t\t\t\t
  212. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t
  213. <p>Register a unique name, and unlock the referral system permanently.</p>\r\n\t\t\t\t\t\t\t\t
  214. </div>\r\n\t\t\t\t\t\t\t
  215. </div>\r\n\t\t\t\t\t\t\t
  216. <div class=\ "row\" if={!$this.isCEO}>\r\n\t\t\t\t\t\t\t\t
  217. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t<button href=\ "\" class=\ "btn btn-purp btn-block buyceo\"><i class=\ "fas fa-check\"></i> Register a name to use on the Leaderboard/Referrals</button>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t
  218. </div>\r\n\t\t\t\t\t\t\t
  219. <div class=\ "row\" if={$this.isCEO}>\r\n\t\t\t\t\t\t\t\t
  220. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t
  221. <p class=\ "font-weight-light\">Advise others to invest in this exit scam and we'll reward you 10% of everything they lose. In Ethereum.</p>\r\n\t\t\t\t\t\t\t\t
  222. </div>\r\n\t\t\t\t\t\t\t
  223. </div>\r\n\t\t\t\t\t\t\t
  224. <div class=\ "row\" if={$this.isCEO}>\r\n\t\t\t\t\t\t\t\t
  225. <div class=\ "col text-center\">\r\n\t\t\t\t\t\t\t\t\t
  226. <p>\r\n\t\t\t\t\t\t\t\t\t\t<span>Wallet Referral</span><br>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\ "small\" id=\ "ceolink\">{$this.myLink}</span><br>\r\n\t\t\t\t\t\t\t\t\t\t<button class=\ "btn btn-outline-purp\" id=\ "copyCeoLink\" data-clipboard-target=\ "#ceolink\"}>\r\n\t\t\t\t\t\t\t\t\t\t<i class=\ "fas fa-paste\"></i> Copy</button>\r\n\t\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t\t\t
  227. <p>\r\n\t\t\t\t\t\t\t\t\t\t<span>Anyonmous Referral</span><br>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\ "small\" id=\ "ceolinkid\">{$this.myLinkid}</span><br>\r\n\t\t\t\t\t\t\t\t\t\t<button class=\ "btn btn-outline-purp\" id=\ "copyCeoLink\" data-clipboard-target=\ "#ceolinkid\"}>\r\n\t\t\t\t\t\t\t\t\t\t<i class=\ "fas fa-paste\"></i> Copy</button>\r\n\r\n\t\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t\t\t
  228. <p>\r\n\t\t\t\t\t\t\t\t\t\t<span>Vanity Referral</span><br>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\ "small\" id=\ "ceolinkvanity\">{$this.myLinkName}</span><br>\r\n\t\t\t\t\t\t\t\t\t\t<button class=\ "btn btn-outline-purp\" id=\ "copyCeoLink\" data-clipboard-target=\ "#ceolinkvanity\"}>\r\n\t\t\t\t\t\t\t\t\t\t<i class=\ "fas fa-paste\"></i> Copy</button>\r\n\t\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t\t
  229. </div>\r\n\t\t\t\t\t\t\t
  230. </div>\r\n\t\t\t\t\t\t\t
  231. <div class=\ "row\" if={$this.isCEO}>\r\n\t\t\t\t\t\t\t\t
  232. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t<button href=\ "\" class=\ "btn btn-outline-purp btn-block buyceo\"><i class=\ "fas fa-check\"></i> Register a new name</button>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t
  233. </div>\r\n\t\t\t\t\t\t
  234. </div>\r\n\t\t\t\t\t
  235. </div>\r\n\t\t\t\t
  236. </div>\r\n\t\t\t
  237. </div>\r\n\t\t
  238. </div>\r\n\t\t\t
  239. <!-- /vanity -->\r\n\t\t
  240. <div class=\ "col-md-3 no-mobile\">\r\n\t\t\t\t\r\n\t\t</div>\t\r\n\t\t
  241. </div>\r\n\t\t
  242. <div class=\ "row\" if={!$this.gracePeriod}>\r\n\t\t\t
  243. <!-- biddings & vault -->\r\n\t\t\t
  244. <div class=\ "col-sm\">\r\n\r\n\t\t\t\t
  245. <ul class=\ "nav nav-tabs tabs-border-adjust\" id=\ "buyTabs\" role=\ "tablist\">\r\n\t\t\t\t
  246. <li class=\ "nav-item tab-item\">\r\n\t\t\t\t <a class=\ "nav-link tab-link active\" id=\ "purchaseTab\" data-toggle=\ "tab\" href=\ "#purchaseArea\" role=\ "tab\" aria-controls=\ "purchaseArea\" aria-selected=\ "true\">Purchase</a>\r\n\t\t\t\t </li>\r\n\t\t\t\t
  247. <li class=\ "nav-item tab-item\">\r\n\t\t\t\t <a class=\ "nav-link tab-link\" id=\ "vaultTab\" data-toggle=\ "tab\" href=\ "#vaultArea\" role=\ "tab\" aria-controls=\ "vaultArea\" aria-selected=\ "false\">Vault</a>\r\n\t\t\t\t </li>\r\n\t\t\t\t
  248. <li class=\ "nav-item tab-item\">\r\n\t\t\t\t <a class=\ "nav-link tab-link\" id=\ "refTab\" data-toggle=\ "tab\" href=\ "#refArea\" role=\ "tab\" aria-controls=\ "refArea\" aria-selected=\ "false\">Vanity &amp; Referrals</a>\r\n\t\t\t\t </li>\r\n\t\t\t\t
  249. </ul>\r\n\t\t\t\t
  250. <div class=\ "tab-content\" id=\ "buyArea\">\r\n\t\t\t\t
  251. <!-- biddings -->\r\n\t\t\t\t
  252. <div class=\ "tab-pane fade show active\" id=\ "purchaseArea\" role=\ "tabpanel\" aria-labelledby=\ "purchaseArea\">\r\n\t\t\t\t\t
  253. <div class=\ "jumbotron jumbotron-adjust text-light bg-dark jumboshade tab-rounded\">\r\n\t\t\t\t\t\t
  254. <div class=\ "row\">\r\n\t\t\t\t\t\t\t
  255. <div class=\ "col\" if={!$this.roundHasPassed}>\r\n\t\t\t\t\t\t\t\t
  256. <p class=\ "lead nomarginb\">Keyring</p>\r\n\t\t\t\t\t\t\t
  257. </div>\r\n\t\t\t\t\t\t\t
  258. <div class=\ "col\" if={$this.roundHasPassed}>\r\n\t\t\t\t\t\t\t\t
  259. <p class=\ "lead nomarginb\">Pre-ICO Phase</p>\r\n\t\t\t\t\t\t\t
  260. </div>\r\n\t\t\t\t\t\t\t
  261. <div class=\ "col-auto\">\r\n\t\t\t\t\t\t\t\t
  262. <p class=\ "text-right nomarginb tutorial\">\r\n\t\t\t\t\t\t\t\t\t<i class=\ "fas fa-arrow-right pulsetutorial tutorialArrow\"></i>\r\n\t\t\t\t\t\t\t\t\t<a tabindex=\ "0\" type=\ "button\" class=\ "qbtn\" role=\ "button\" data-toggle=\ "popover\" data-trigger=\ "focus\" data-html=\ "true\" data-placement=\ "bottom\" title=\ "Exit Scams and You!\" data-content=\ "{popover.purchase}\">\r\n\t\t\t\t\t\t\t\t\t<i class=\ "far fa-question-circle\"></i>\r\n\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t
  263. </div>\r\n\t\t\t\t\t\t
  264. </div>\r\n\t\t\t\t\t\t
  265. <hr>\r\n\t\t\t\t\t\t
  266. <!-- Ticket Purchase -->\r\n\t\t\t\t\t\t
  267. <!-- NOTE: Ticket purchase should update the ETH value to how much is actually going to be paid by the player, as well as update the time limit extension (NaN Minutes) accordingly -->\r\n\t\t\t\t\t\t
  268. <div class=\ "row\">\r\n\t\t\t\t\t\t
  269. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  270. <div id=\ "purchase\" class=\ "tab-pane fade show active\" role=\ "tabpanel\">\r\n\t\t\t\t\t\t\t\t
  271. <p class=\ "font-weight-light small\" if={!$this.roundHasPassed} id=\ "airdrop_chance\">Purchases of .1 ETH or more have a {JUST.Cache.airdropTracker}% chance to win some of the {JUST.Cache.airdropPot} ETH airdrop pot, instantly!</p>\r\n\t\t\t\t\t\t\t
  272. <p class=\ "text-center\" if={$this.roundHasPassed}>Send ETH to start the next ICO</p>\r\n\t\t\t\t\t\t\t
  273. <div class=\ "row\" id=\ "purchase\" if={!$this.roundHasPassed}>\r\n\t\t\t\t\t\t\t
  274. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t
  275. <div class=\ "input-group mb-3\">\r\n\t\t\t\t\t\t\t\t
  276. <div class=\ "input-group-prepend\">\r\n\t\t\t\t\t\t\t\t\t<span class=\ "input-group-text\">\r\n\t\t\t\t\t\t\t\t\t <i class=\ "fas fa-key\"></i>\r\n\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t\t\t <input type=\ "text\" id=\ "tixToBuy\" class=\ "form-control text-center\" value=\ "1 Key\">\r\n\t\t\t\t\t\t\t\t <div class=\ "input-group-append\">\r\n\t\t\t\t\t\t\t\t\t<span class=\ "input-group-text\" id=\ "tixQuotation\">\r\n\t\t\t\t\t\t\t\t\t @ {BN(JUST.Cache.currentRound[3]).div(1e18).toFixed(8)} ETH\r\n\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t\t\t
  277. </div>\r\n\t\t\t\t\t\t\t
  278. </div>\r\n\t\t\t\t\t\t\t
  279. </div>\r\n\t\t\t\t\t\t\t
  280. <div class=\ "row\" if={$this.roundHasPassed}>\r\n\t\t\t\t\t\t\t\t
  281. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t
  282. <div id=\ "purchase\" class=\ "tab-pane fade show active\" role=\ "tabpanel\">\r\n\t\t\t\t\t\t\t\t\t\t
  283. <div class=\ "row\" id=\ "purchase\">\r\n\t\t\t\t\t\t\t\t\t\t
  284. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t\t\t
  285. <div class=\ "input-group mb-3\">\r\n\t\t\t\t\t\t\t\t\t\t\t
  286. <div class=\ "input-group-prepend\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\ "input-group-text\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t <i class=\ "fab fa-ethereum\"></i>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t\t\t\t\t\t <input type=\ "text\" id=\ "ethToSpend\" class=\ "form-control text-center\" value=\ "0.01 ETH\">\r\n\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t
  287. </div>\r\n\t\t\t\t\t\t\t\t\t\t
  288. </div>\r\n\t\t\t\t\t\t\t\t\t
  289. </div>\r\n\t\t\t\t\t\t\t\t
  290. </div>\r\n\t\t\t\t\t\t\t
  291. </div>\r\n\t\t\t\t\t\t\t
  292. <div class=\ "row marginb\" if={!$this.roundHasPassed}>\r\n\t\t\t\t\t\t\t
  293. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t
  294. <div class=\ "btn-group d-flex\" role=\ "group\">\r\n\t\t\t\t\t\t\t\t <button id=\ "addOne\" class=\ "btn btn-outline-yel w-100 increment\">+ 1 Key</button>\r\n\t\t\t\t\t\t\t\t <button id=\ "addTwo\" class=\ "btn btn-outline-yel w-100 increment\">+ 2 Keys</button>\r\n\t\t\t\t\t\t\t\t <button id=\ "addFive\" class=\ "btn btn-outline-yel w-40 increment\">+ 5</button>\r\n\t\t\t\t\t\t\t\t <button id=\ "addTen\" class=\ "btn btn-outline-yel w-30 increment\">+ 10</button>\r\n\t\t\t\t\t\t\t\t <button id=\ "addHundred\" class=\ "btn btn-outline-yel w-30 increment\">+ 100</button>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t
  295. </div>\r\n\t\t\t\t\t\t\t
  296. </div>\r\n\t\t\t\t\t\t\t
  297. <div class=\ "row\" style=\ "position: relative;\" if={!$this.roundHasPassed}>\r\n\t\t\t\t\t\t\t
  298. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t<button type=\ "button\" id=\ "tixBuy\" class=\ "btn btn-block btn-purp btn-lg ticketProcess\"><i class=\ "fab fa-ethereum\"></i> Send ETH</button>\r\n\t\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t\t
  299. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t<button type=\ "button\" id=\ "tixReinvest\" class=\ "btn btn-block btn-outline-purp btn-lg ticketProcess\"><i class=\ "fas fa-piggy-bank\"></i> Use Vault</button>\r\n\t\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t\t
  300. </div>\r\n\t\t\t\t\t\t\t
  301. <div class=\ "row\" style=\ "position: relative;\" if={$this.roundHasPassed}>\r\n\t\t\t\t\t\t\t
  302. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t<button type=\ "button\" id=\ "ethSpend\" class=\ "btn btn-block btn-purp btn-lg ticketProcess\"><i class=\ "fab fa-ethereum\"></i> Send ETH</button>\r\n\t\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t\t
  303. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t<button type=\ "button\" id=\ "ethReinvest\" class=\ "btn btn-block btn-outline-purp btn-lg ticketProcess\"><i class=\ "fas fa-piggy-bank\"></i> Use Vault</button>\r\n\t\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t\t
  304. </div>\r\n\t\t\t\t\t\t\t\t
  305. <p class=\ "small text-center\" if={!$this.gracePeriod}>Send eth, or use earnings from your vault!</p>\r\n\t\t\t\t\t\t
  306. </div>\r\n\t\t\t\t\t\t
  307. </div>\r\n\t\t\t\t\t\t
  308. </div>\r\n\t\t\t\t\t\t
  309. <!-- Team Selector -->\r\n\t\t\t\t\t\t
  310. <hr>\r\n\t\t\t\t\t\t
  311. <div class=\ "row marginb\">\r\n\t\t\t\t\t\t\t
  312. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t
  313. <p class=\ "lead nomarginb\">Choose a Team</p>\r\n\t\t\t\t\t\t\t
  314. </div>\r\n\t\t\t\t\t\t\t
  315. <div class=\ "col-auto\">\r\n\t\t\t\t\t\t\t\t
  316. <p class=\ "text-right nomarginb tutorial\">\r\n\t\t\t\t\t\t\t\t<i class=\ "fas fa-arrow-right pulsetutorial tutorialArrow\"></i>\r\n\t\t\t\t\t\t\t\t\t<a tabindex=\ "0\" type=\ "button\" class=\ "qbtn\" role=\ "button\" data-toggle=\ "popover\" data-trigger=\ "focus\" data-html=\ "true\" data-placement=\ "bottom\" title=\ "Pick where the Eth Goes!\" data-content=\ "{popover.teamselect}\"><i class=\ "far fa-question-circle\"></i></a></p>\r\n\t\t\t\t\t\t\t
  317. </div>\r\n\t\t\t\t\t\t
  318. </div>\t\t\t\r\n\t\t\t\t\t\t
  319. <div class=\ "row marginb distribution\">\r\n\t\t\t\t\t\t\t
  320. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t
  321. <div class=\ "row\">\r\n\t\t\t\t\t\t\t\t\t
  322. <div class=\ "col-3 team\">\r\n\t\t\t\t\t\t\t\t\t\t<label class=\ "teamselector\">\r\n\t\t\t\t\t\t\t\t\t\t\t<input class=\ "form-check-input form-radio teamsave\" type=\ "radio\" autocomplete=\ "off\" name=\ "teamselect\" value=\ "2\" id=\ "teamsnek\">\r\n\t\t\t\t\t\t\t\t\t\t\t<img src=\ "/img/tsnek.png\" alt=\ "\">\r\n\t\t\t\t\t\t\t\t\t\t\t<h5>Snek</h5>\r\n\t\t\t\t\t\t\t\t\t\t\t
  323. <p>Trickle down Divinomics</p>\r\n\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t<div>\r\n\t\t\t\t\t\t\t\t\t\t
  324. <p style=\ "color:#2ecc71\">++ Most dividends</p>\r\n\t\t\t\t\t\t\t\t\t\t
  325. </div>\r\n\t\t\t\t\t\t\t\t\t
  326. </div>\r\n\t\t\t\t\t\t\t\t\t
  327. <div class=\ "col-3 team\">\r\n\t\t\t\t\t\t\t\t\t\t<label class=\ "teamselector\">\r\n\t\t\t\t\t\t\t\t\t\t\t<input class=\ "form-check-input form-radio teamsave\" type=\ "radio\" autocomplete=\ "off\" name=\ "teamselect\" value=\ "0\" id=\ "teamwhale\">\r\n\t\t\t\t\t\t\t\t\t\t\t<img src=\ "/img/twhale.png\" alt=\ "\">\r\n\t\t\t\t\t\t\t\t\t\t\t<h5>Whale</h5>\r\n\t\t\t\t\t\t\t\t\t\t\t
  328. <p>Feed on the greed of others.</p>\r\n\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t<p style=\ "color:#2ecc71\">++ Most eth to pot</p>\r\n\t\t\t\t\t\t\t\t\t
  329. </div>\r\n\t\t\t\t\t\t\t\t\t
  330. <div class=\ "col-3 team\">\r\n\t\t\t\t\t\t\t\t\t\t<label class=\ "teamselector\">\r\n\t\t\t\t\t\t\t\t\t\t\t<input class=\ "form-check-input form-radio teamsave\" type=\ "radio\" autocomplete=\ "off\" name=\ "teamselect\" value=\ "3\" id=\ "teambull\">\r\n\t\t\t\t\t\t\t\t\t\t\t<img src=\ "/img/tbull.png\" alt=\ "\">\r\n\t\t\t\t\t\t\t\t\t\t\t<h5>Bull</h5>\r\n\t\t\t\t\t\t\t\t\t\t\t
  331. <p>Break upwards, never stagnate.</p>\r\n\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t<p style=\ "color:#2ecc71\">+ Balanced distribution</p>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
  332. </div>\r\n\t\t\t\t\t\t\t\t\t
  333. <div class=\ "col-3 team\">\r\n\t\t\t\t\t\t\t\t\t\t<label class=\ "teamselector\">\r\n\t\t\t\t\t\t\t\t\t\t\t<input class=\ "form-check-input form-radio teamsave\" type=\ "radio\" autocomplete=\ "off\" name=\ "teamselect\" value=\ "1\" id=\ "teambear\">\r\n\t\t\t\t\t\t\t\t\t\t\t<img src=\ "/img/tbear.png\" alt=\ "\">\r\n\t\t\t\t\t\t\t\t\t\t\t<h5>Bear</h5>\r\n\t\t\t\t\t\t\t\t\t\t\t
  334. <p>Stand alone, fight alone.</p>\r\n\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t<p style=\ "color:#2ecc71\">++ Maximize eth to current round</p>\r\n\t\t\t\t\t\t\t\t\t
  335. </div>\r\n\t\t\t\t\t\t\t\t
  336. </div>\r\n\t\t\t\t\t\t\t\t
  337. <div class=\ "row\">\r\n\t\t\t\t\t\t\t\t\t
  338. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t\t
  339. <div class=\ "chart\"></div>\r\n\t\t\t\t\t\t\t\t\t
  340. </div>\r\n\t\t\t\t\t\t\t\t
  341. </div>\r\n\t\t\t\t\t\t\t
  342. </div>\r\n\t\t\t\t\t\t
  343. </div>\r\n\t\t\t\t\t\t
  344. <!-- /Team Selector -->\t\t\r\n\t\t\t\t\t
  345. <!--<p class=\"small text-center\">Your purchase will extend the game by a total of <span class=\"extender\">NaN</span> Minutes.</p> -->\t\t\t\t\t\t\t\r\n\t\t\t\t\t
  346. </div>\r\n\t\t\t\t
  347. </div>\r\n\t\t\t\t
  348. <!-- /biddings -->\t\r\n\t\t\t\t
  349. <!-- vault -->\r\n\t\t\t\t
  350. <div class=\ "tab-pane fade\" id=\ "vaultArea\" role=\ "tabpanel\" aria-labelledby=\ "vaultArea\">\r\n\t\t\t\t\t
  351. <div class=\ "jumbotron jumbotron-adjust text-light bg-dark jumboshade tab-rounded\">\r\n\t\t\t\t\t\t
  352. <div class=\ "row\">\r\n\t\t\t\t\t\t
  353. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  354. <p class=\ "lead nomarginb\">Vault</p>\r\n\t\t\t\t\t\t
  355. </div>\r\n\t\t\t\t\t\t
  356. <div class=\ "col-auto\">\r\n\t\t\t\t\t\t\t
  357. <p class=\ "text-right nomarginb tutorial\">\r\n\t\t\t\t\t\t\t\t<i class=\ "fas fa-arrow-right pulsetutorial tutorialArrow\"></i>\r\n\t\t\t\t\t\t\t<a tabindex=\ "0\" type=\ "button\" class=\ "qbtn\" role=\ "button\" data-toggle=\ "popover\" data-trigger=\ "focus\" data-html=\ "true\" data-placement=\ "bottom\" title=\ "Vault 77: Where you keep the puppets\" data-content=\ "{popover.vault}\">\r\n\t\t\t\t\t\t\t<i class=\ "far fa-question-circle\"></i>\r\n\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t
  358. </div>\r\n\t\t\t\t\t\t
  359. <hr>\r\n\t\t\t\t\t\t
  360. <div class=\ "jumbotron jumbotron-adjust teamscore\">\r\n\t\t\t\t\t\t
  361. <!-- <div class=\"row\">\r\n\t\t\t\t\t\t\t<div class=\"col\">\r\n\t\t\t\t\t\t\t <p class=\"lead\">Winning Pot (Unused)</p>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class=\"col\">\r\n\t\t\t\t\t\t\t <p class=\"h3 text-right\">{(JUST.Bridges.Metamask && JUST.Bridges.Metamask.signedIn && JUST.Cache.currentPlayer && JUST.Cache.currentPlayer.Vaults) ? BN(JUST.Cache.currentPlayer.Vaults[0]).div(1e18).toFixed(4) : BN(0).toFixed(4)} ETH</p>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t </div> -->\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t
  362. <div class=\ "row\">\r\n\t\t\t\t\t\t\t
  363. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  364. <p class=\ "lead\">On Lockdown</p>\r\n\t\t\t\t\t\t\t
  365. </div>\r\n\t\t\t\t\t\t\t
  366. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  367. <!--\r\n\t\t\t\t\t\t\t <p class=\"h6 text-right\" style=\"font-size: .9rem\">{(JUST.Bridges.Metamask && JUST.Bridges.Metamask.signedIn) ? ((BN(JUST.Cache.currentPlayer.Round[2]).div(1e18).toFixed(1) : BN(0).toFixed(4)).div(BN(JUST.Cache.currentRound[2]).div(1e18).toFixed(0))).mul((BN(JUST.Cache.currentRound[5]).div(1e18).toFixed(4).div(100)).mul(30))}</p>\r\n\t\t\t\t\t\t\t -->\r\n\t\t\t\t\t\t\t
  368. <p class=\ "h3 text-right\" label=poteth>{(JUST.Bridges.Metamask && JUST.Bridges.Metamask.signedIn) ? (((BN(JUST.Cache.currentRound[5]).div(100).multipliedBy(30)).div(BN(JUST.Cache.currentRound[2]))).multipliedBy(BN(JUST.Cache.currentPlayer.Round[2])).div(1e18).toFixed(4)) : BN(0).toFixed(4)} ETH</p>\r\n\t\t\t\t\t\t\t
  369. </div>\r\n\t\t\t\t\t\t
  370. </div>\r\n\r\n\t\t\t\t\t\t
  371. <div class=\ "row\">\r\n\t\t\t\t\t\t\t
  372. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  373. <p class=\ "lead\">Exit Scammed</p>\r\n\t\t\t\t\t\t\t
  374. </div>\r\n\t\t\t\t\t\t\t
  375. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  376. <p class=\ "h3 text-right\">{(JUST.Bridges.Metamask && JUST.Bridges.Metamask.signedIn && JUST.Cache.currentPlayer && JUST.Cache.currentPlayer.Vaults) ? BN(JUST.Cache.currentPlayer.Vaults[1]).plus(JUST.Cache.currentPlayer.Vaults[0]).div(1e18).toFixed(4) : BN(0).toFixed(4)} ETH</p>\r\n\t\t\t\t\t\t\t
  377. </div>\r\n\t\t\t\t\t\t
  378. </div>\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t
  379. <div class=\ "row\">\r\n\t\t\t\t\t\t\t
  380. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  381. <p class=\ "lead\">Bad Advice</p>\r\n\t\t\t\t\t\t\t
  382. </div>\r\n\t\t\t\t\t\t\t
  383. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  384. <p class=\ "h3 text-right\">{(JUST.Bridges.Metamask && JUST.Bridges.Metamask.signedIn && JUST.Cache.currentPlayer && JUST.Cache.currentPlayer.Vaults) ? BN(JUST.Cache.currentPlayer.Vaults[2]).div(1e18).toFixed(4) : BN(0).toFixed(4)} ETH</p>\r\n\t\t\t\t\t\t\t
  385. </div>\r\n\t\t\t\t\t\t
  386. </div>\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t
  387. <hr>\r\n\t\t\t\t\t\t
  388. <div class=\ "row\">\r\n\t\t\t\t\t\t\t
  389. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  390. <p class=\ "lead\">Total Gains</p>\r\n\t\t\t\t\t\t\t
  391. </div>\r\n\t\t\t\t\t\t\t
  392. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  393. <p class=\ "h3 text-right glow\">{(JUST.Bridges.Metamask && JUST.Bridges.Metamask.signedIn && JUST.Cache.currentPlayer && JUST.Cache.currentPlayer.Vaults) ? BN(JUST.Cache.currentPlayer.Vaults[0]).plus(JUST.Cache.currentPlayer.Vaults[1]).plus(JUST.Cache.currentPlayer.Vaults[2]).div(1e18).toFixed(4) : BN(0).toFixed(4)} ETH</p>\r\n\t\t\t\t\t\t\t
  394. <p class=\ "text-right\">&#8793; {BN(JUST.Cache.currentPlayer.Vaults[0]).plus(JUST.Cache.currentPlayer.Vaults[1]).plus(JUST.Cache.currentPlayer.Vaults[2]).div(1e18).multipliedBy(JUST.Cache.fiatRatios.USD).toFixed(5)} USDT</p>\r\n\t\t\t\t\t\t\t
  395. </div>\r\n\t\t\t\t\t\t
  396. </div>\r\n \r\n\t\t\t\t\t\t
  397. <div class=\ "row\">\r\n\t\t\t\t\t\t\t
  398. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t
  399. <p class=\ "text-right nomarginb\"><button href=\ "\" class=\ "btn btn-outline-purp btn-block\" id=\ "withdrawEarnings\"><i class=\ "fas fa-hand-holding-heart\"></i> Withdraw</button></p>\r\n\t\t\t\t\t\t\t
  400. </div>\r\n\t\t\t\t\t\t
  401. </div>\r\n\t\t\t\t\t\t
  402. </div>\r\n\t\t\t\t\t
  403. </div>\r\n\t\t\t\t
  404. </div>\r\n\t\t\t\t
  405. <!-- /vault -->\r\n\r\n\t\t\t\t
  406. <!-- vanity -->\r\n\t\t\t\t
  407. <div class=\ "tab-pane fade\" id=\ "refArea\" role=\ "tabpanel\" aria-labelledby=\ "refArea\">\r\n\t\t\t\t\t
  408. <div class=\ "jumbotron jumbotron-adjust text-light bg-dark jumboshade tab-rounded\">\r\n\t\t\t\t\t\t
  409. <div class=\ "row\">\r\n\t\t\t\t\t\t
  410. <div class=\ "col\">\r\n\t\t\t\t\t\t\t
  411. <p class=\ "lead nomarginb\">Advisory Board</p>\r\n\t\t\t\t\t\t
  412. </div>\r\n\t\t\t\t\t\t
  413. <div class=\ "col-auto\">\r\n\t\t\t\t\t\t\t
  414. <p class=\ "text-right nomarginb tutorial\">\r\n\t\t\t\t\t\t\t\t<i class=\ "fas fa-arrow-right pulsetutorial tutorialArrow\"></i>\r\n\t\t\t\t\t\t\t<a tabindex=\ "0\" type=\ "button\" class=\ "qbtn\" role=\ "button\" data-toggle=\ "popover\" data-trigger=\ "focus\" data-html=\ "true\" data-placement=\ "bottom\" title=\ "Probably Bribery\" data-content=\ "{popover.referral}\">\r\n\t\t\t\t\t\t\t<i class=\ "far fa-question-circle\"></i>\r\n\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t
  415. </div>\r\n\t\t\t\t\t\t
  416. <hr>\r\n\t\t\t\t\t\t
  417. <div class=\ "jumbotron jumbotron-adjust teamscore\">\r\n\t\t\t\t\t\t\t
  418. <div class=\ "row\" if={!$this.isCEO}>\r\n\t\t\t\t\t\t\t\t
  419. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t
  420. <p>Register a unique name, and unlock the referral system permanently.</p>\r\n\t\t\t\t\t\t\t\t
  421. </div>\r\n\t\t\t\t\t\t\t
  422. </div>\r\n\t\t\t\t\t\t\t
  423. <div class=\ "row\" if={!$this.isCEO}>\r\n\t\t\t\t\t\t\t\t
  424. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t<button href=\ "\" class=\ "btn btn-purp btn-block buyceo\"><i class=\ "fas fa-check\"></i> Register a name to use on the Leaderboard/Referrals</button>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t
  425. </div>\r\n\t\t\t\t\t\t\t
  426. <div class=\ "row\" if={$this.isCEO}>\r\n\t\t\t\t\t\t\t\t
  427. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t
  428. <p class=\ "font-weight-light\">Advise others to invest in this exit scam and we'll reward you 10% of everything they lose. In Ethereum.</p>\r\n\t\t\t\t\t\t\t\t
  429. </div>\r\n\t\t\t\t\t\t\t
  430. </div>\r\n\t\t\t\t\t\t\t
  431. <div class=\ "row\" if={$this.isCEO}>\r\n\t\t\t\t\t\t\t\t
  432. <div class=\ "col text-center\">\r\n\t\t\t\t\t\t\t\t\t
  433. <p>\r\n\t\t\t\t\t\t\t\t\t\t<span>Wallet Referral</span><br>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\ "small\" id=\ "ceolink\">{$this.myLink}</span><br>\r\n\t\t\t\t\t\t\t\t\t\t<button class=\ "btn btn-outline-purp\" id=\ "copyCeoLink\" data-clipboard-target=\ "#ceolink\"}>\r\n\t\t\t\t\t\t\t\t\t\t<i class=\ "fas fa-paste\"></i> Copy</button>\r\n\t\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t\t\t
  434. <p>\r\n\t\t\t\t\t\t\t\t\t\t<span>Anyonmous Referral</span><br>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\ "small\" id=\ "ceolinkid\">{$this.myLinkid}</span><br>\r\n\t\t\t\t\t\t\t\t\t\t<button class=\ "btn btn-outline-purp\" id=\ "copyCeoLink\" data-clipboard-target=\ "#ceolinkid\"}>\r\n\t\t\t\t\t\t\t\t\t\t<i class=\ "fas fa-paste\"></i> Copy</button>\r\n\r\n\t\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t\t\t
  435. <p>\r\n\t\t\t\t\t\t\t\t\t\t<span>Vanity Referral</span><br>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\ "small\" id=\ "ceolinkvanity\">{$this.myLinkName}</span><br>\r\n\t\t\t\t\t\t\t\t\t\t<button class=\ "btn btn-outline-purp\" id=\ "copyCeoLink\" data-clipboard-target=\ "#ceolinkvanity\"}>\r\n\t\t\t\t\t\t\t\t\t\t<i class=\ "fas fa-paste\"></i> Copy</button>\r\n\t\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t\t
  436. </div>\r\n\t\t\t\t\t\t\t
  437. </div>\r\n\t\t\t\t\t\t\t
  438. <div class=\ "row\" if={$this.isCEO}>\r\n\t\t\t\t\t\t\t\t
  439. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t<button href=\ "\" class=\ "btn btn-outline-purp btn-block buyceo\"><i class=\ "fas fa-check\"></i> Register a new name</button>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t
  440. </div>\r\n\t\t\t\t\t\t
  441. </div>\r\n\t\t\t\t\t
  442. </div>\r\n\t\t\t\t
  443. </div>\r\n\t\t\t\t
  444. <!-- /vanity -->\r\n\t\t\t\t
  445. </div>\t\t\r\n\t\t\t
  446. </div>\r\n\r\n\t\t\t
  447. <!-- stat tabs -->\r\n\t\t\t
  448. <div class=\ "col-sm\">\r\n\t\t\t\t
  449. <!-- tabs -->\r\n\t\t\t\t
  450. <ul class=\ "nav nav-tabs tabs-border-adjust\" id=\ "statTabs\" role=\ "tablist\">\r\n\t\t\t\t
  451. <li class=\ "nav-item tab-item\">\r\n\t\t\t\t <a class=\ "nav-link tab-link active\" id=\ "potTab\" data-toggle=\ "tab\" href=\ "#potArea\" role=\ "tab\" aria-controls=\ "potArea\" aria-selected=\ "true\">Round</a>\r\n\t\t\t\t </li>\r\n\t\t\t\t
  452. <li class=\ "nav-item tab-item\">\r\n\t\t\t\t <a class=\ "nav-link tab-link\" id=\ "teamTab\" data-toggle=\ "tab\" href=\ "#teamArea\" role=\ "tab\" aria-controls=\ "teamArea\" aria-selected=\ "false\">Teams</a>\r\n\t\t\t\t </li>\r\n\t\t\t\t
  453. <li class=\ "nav-item tab-item\">\r\n\t\t\t\t <a class=\ "nav-link tab-link\" id=\ "playerTab\" data-toggle=\ "tab\" href=\ "#playerArea\" role=\ "tab\" aria-controls=\ "playerArea\" aria-selected=\ "false\">Recent Players</a>\r\n\t\t\t\t </li>\r\n\t\t\t\t
  454. <li class=\ "nav-item tab-item\">\r\n\t\t\t\t <a class=\ "nav-link tab-link\" id=\ "statsTab\" data-toggle=\ "tab\" href=\ "#statsArea\" role=\ "tab\" aria-controls=\ "statsArea\" aria-selected=\ "false\">Stats</a>\r\n\t\t\t\t </li>\r\n\t\t\t\t
  455. </ul>\r\n\r\n\t\t\t\t
  456. <!-- tabbable areas -->\r\n\t\t\t\t
  457. <div class=\ "tab-content\" id=\ "statArea\">\r\n\t\t\t\t\t
  458. <!-- current pot -->\r\n\t\t\t\t\t
  459. <div class=\ "tab-pane fade show active\" id=\ "potArea\" role=\ "tabpanel\" aria-labelledby=\ "potArea\">\r\n\r\n\t\t\t\t\t\t
  460. <div class=\ "jumbotron jumbotron-adjust text-light bg-dark jumboshade tab-rounded\">\r\n\t\t\t\t\t\t\t
  461. <div class=\ "row\">\r\n\t\t\t\t\t\t\t
  462. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t
  463. <p class=\ "lead nomarginb\">Round #{JUST.Cache.currentRound[1]}</p>\r\n\t\t\t\t\t\t\t
  464. </div>\r\n\t\t\t\t\t\t\t
  465. <div class=\ "col-auto\">\r\n\t\t\t\t\t\t\t\t
  466. <p class=\ "text-right nomarginb tutorial\">\r\n\t\t\t\t\t\t\t\t\t<i class=\ "fas fa-arrow-right pulsetutorial tutorialArrow\"></i>\r\n\t\t\t\t\t\t\t\t<a tabindex=\ "0\" type=\ "button\" class=\ "qbtn\" role=\ "button\" data-toggle=\ "popover\" data-trigger=\ "focus\" data-html=\ "true\" data-placement=\ "bottom\" title=\ "Important Box:\" data-content=\ "{popover.game}\">\r\n\t\t\t\t\t\t\t\t<i class=\ "far fa-question-circle\"></i>\r\n\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t\t
  467. </div>\r\n\t\t\t\t\t\t\t
  468. <hr>\r\n\t\t\t\t\t\t\t
  469. <div class=\ "row nomarginb margin-top\" if={!$this.roundHasPassed}>\r\n\t\t\t\t\t\t\t\t
  470. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t
  471. <!-- NOTE: Time limit counter -->\r\n\t\t\t\t\t\t\t\t\t
  472. <p class=\ "h2 text-center\" if={this.playerIsLeader}>You are exit scamming in <br><span class=\ "glow boxtimer\"></span></p>\r\n\t\t\t\t\t\t\t\t\t
  473. <p class=\ "h2 text-center\" if={!this.playerIsLeader}>Contract will drain in <br><span class=\ "glow boxtimer\"></span></p>\r\n\t\t\t\t\t\t\t\t
  474. </div>\r\n\t\t\t\t\t\t\t
  475. </div>\r\n\t\t\t\t\t\t\t
  476. <div class=\ "row nomarginb margin-top\" if={$this.roundHasPassed}>\r\n\t\t\t\t\t\t\t\t
  477. <div class=\ "col\" style=\ "position: relative;\">\r\n\t\t\t\t\t\t\t\t\t
  478. <!-- NOTE: Time limit counter -->\r\n\t\t\t\t\t\t\t\t\t
  479. <p class=\ "h6 text-center\">That eth is just sitting there, what are <a class=\ "titlepopoutrightmini\">you</a> waiting for?</p>\r\n\t\t\t\t\t\t\t\t\t <a style=\ "margin-bottom:40px;\" href=\ "javascript:void(0)\" class=\ "buyOneTicket btn btn-lg btn-block btn-purp pulse\"> Buy one <i class=\ "fas fa-key\"></i> Put yourself back in the lead!</a>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t
  480. </div>\r\n\t\t\t\t\t\t\t
  481. <div class=\ "row marginb\" if={!$this.roundHasPassed}>\r\n\t\t\t\t\t\t\t\t
  482. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t
  483. <div class=\ "progress\">\r\n\t\t\t\t\t\t\t\t\t\t
  484. <div class=\ "progress-bar boxglow\" role=\ "progressbar\" style=\ "width: 0%;\" aria-valuenow=\ "0\" aria-valuemin=\ "0\" aria-valuemax=\ "100\"></div>\r\n\t\t\t\t\t\t\t\t\t
  485. </div>\r\n\t\t\t\t\t\t\t\t
  486. </div>\r\n\t\t\t\t\t\t\t
  487. </div>\r\n\t\t\t\t\t\t\t
  488. <div class=\ "jumbotron jumbotron-adjust teamscore\">\r\n\t\t\t\t\t\t\t\t
  489. <div class=\ "row nomarginb\">\r\n\t\t\t\t\t\t\t\t\t
  490. <div class=\ "col-auto\">\r\n\t\t\t\t\t\t\t\t\t\t
  491. <p class=\ "h4\" if={!$this.roundHasPassed}>Active Pot</p>\r\n\t\t\t\t\t\t\t\t\t\t
  492. <p class=\ "h4\" if={$this.roundHasPassed}>Unclaimed Funds</p>\r\n\t\t\t\t\t\t\t\t\t
  493. </div>\r\n\t\t\t\t\t\t\t\t\t
  494. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t\t
  495. <!-- NOTE: Display of current pot size as well as converted USDT value -->\r\n\t\t\t\t\t\t\t\t\t\t
  496. <p class=\ "h2 text-right glow ethglitch\" if={!$this.roundHasPassed}>{BN(JUST.Cache.currentRound[5]).div(1e18).toFormat(2)} <i class=\ "fab fa-ethereum ethglow\"></i></p>\r\n\t\t\t\t\t\t\t\t\t\t
  497. <p class=\ "h2 text-right glow ethglitch\" if={$this.roundHasPassed}>{BN(JUST.Cache.currentRound[5]).div(1e19).toFormat(5)} <i class=\ "fab fa-ethereum ethglow\"></i></p>\r\n\t\t\t\t\t\t\t\t\t
  498. </div>\r\n\t\t\t\t\t\t\t\t
  499. </div>\r\n\t\t\t\t\t\t\t\t
  500. <div class=\ "row marginb\">\r\n\t\t\t\t\t\t\t\t\t
  501. <div class=\ "col text-right\" if={!$this.roundHasPassed}>&#8793; {BN(JUST.Cache.currentRound[5]).div(1e18).multipliedBy(JUST.Cache.fiatRatios.USD).toFormat(5)} USDT</div>\r\n\t\t\t\t\t\t\t\t\t
  502. <div class=\ "col text-right\" if={$this.roundHasPassed}>&#8793; {BN(JUST.Cache.currentRound[5]).div(1e19).multipliedBy(JUST.Cache.fiatRatios.USD).toFormat(5)} USDT</div>\r\n\t\t\t\t\t\t\t\t
  503. </div>\r\n\t\t\t\t\t\t\t\t
  504. <div class=\ "row nomarginb\" if={!$this.roundHasPassed}>\r\n\t\t\t\t\t\t\t\t\t
  505. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t
  506. <p class=\ "h4\">Your Keys</p>\r\n\t\t\t\t\t\t\t\t\t
  507. </div>\r\n\t\t\t\t\t\t\t\t\t
  508. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t
  509. <p class=\ "h2 text-right\">{(JUST.Bridges.Metamask && JUST.Bridges.Metamask.signedIn) ? BN(JUST.Cache.currentPlayer.Round[2]).div(1e18).toFormat(1) : BN(0).toFormat(4)} <i class=\ "fas fa-key\"></i></p>\r\n\t\t\t\t\t\t\t\t\t
  510. </div>\r\n\t\t\t\t\t\t\t\t
  511. </div>\r\n\t\t\t\t\t\t\t \t
  512. <div class=\ "row marginb\" if={!$this.roundHasPassed}>\r\n\t\t\t\t\t\t\t\t\t
  513. <div class=\ "col text-right\">Total {BN(JUST.Cache.currentRound[2]).div(1e18).toFormat(0)} Keys</div>\r\n\t\t\t\t\t\t\t \t
  514. </div>\r\n\t\t\t\t\t\t\t \t
  515. <div class=\ "row nomarginb\">\r\n\t\t\t\t\t\t\t\t\t
  516. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t
  517. <p class=\ "h4\">Your Earnings</p>\r\n\t\t\t\t\t\t\t\t\t
  518. </div>\r\n\t\t\t\t\t\t\t\t\t
  519. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t
  520. <p class=\ "h2 text-right\">{(JUST.Bridges.Metamask && JUST.Bridges.Metamask.signedIn) ? BN(JUST.Cache.currentPlayer.Vaults[0]).plus(JUST.Cache.currentPlayer.Vaults[1]).plus(JUST.Cache.currentPlayer.Vaults[2]).div(1e18).toFormat(4) : BN(0).toFormat(5)} <i class=\ "fab fa-ethereum\"></i></p>\r\n\t\t\t\t\t\t\t\t\t
  521. </div>\r\n\t\t\t\t\t\t\t\t
  522. </div>\r\n\t\t\t\t\t\t\t\t
  523. <div class=\ "row marginb\">\r\n\t\t\t\t\t\t\t\t\t
  524. <div class=\ "col text-right\">\r\n\t\t\t\t\t\t\t\t\t\t&#8793; {BN(JUST.Cache.currentPlayer.Vaults[0]).plus(JUST.Cache.currentPlayer.Vaults[1]).plus(JUST.Cache.currentPlayer.Vaults[2]).div(1e18).multipliedBy(JUST.Cache.fiatRatios.USD).toFormat(5)} USDT\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t \t
  525. </div>\r\n\t\t\t\t\t\t\t
  526. </div>\r\n\t\t\t\t\t\t
  527. </div>\r\n\t\t\t\t\t
  528. </div>\r\n\t\t\t\t\t
  529. <!-- /current pot -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t
  530. <!-- teams -->\r\n\t\t\t\t\t
  531. <div class=\ "tab-pane fade\" id=\ "teamArea\" role=\ "tabpanel\" aria-labelledby=\ "teamArea\">\r\n\t\t\t\t\t\t
  532. <div class=\ "jumbotron jumbotron-adjust text-light bg-dark jumboshade tab-rounded\">\r\n\t\t\t\t\t\t\t
  533. <div class=\ "row\">\r\n\t\t\t\t\t\t \t\t
  534. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t
  535. <p class=\ "lead nomarginb\">Teams</p>\r\n\t\t\t\t \t\t\t\t
  536. </div>\r\n\t\t\t\t\t \t\t\t
  537. <div class=\ "col-auto\">\r\n\t\t\t\t\t\t\t\t\t
  538. <p class=\ "text-right nomarginb tutorial\">\r\n\t\t\t\t\t\t\t\t\t<i class=\ "fas fa-arrow-right pulsetutorial tutorialArrow\"></i>\r\n\t\t\t\t\t\t\t\t\t<a tabindex=\ "0\" type=\ "button\" class=\ "qbtn\" role=\ "button\" data-toggle=\ "popover\" data-trigger=\ "focus\" data-html=\ "true\" data-placement=\ "bottom\" title=\ "Pick a team, get angry at those not on your team.\" data-content=\ "{popover.teams}\">\r\n\t\t\t\t\t\t\t\t\t\t<i class=\ "far fa-question-circle\"></i>\r\n\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t \t\t\t</div>\r\n\t\t\t\t\t\t\t
  539. </div>\r\n\t\t\t\t\t\t\t
  540. <div class=\ "row\">\r\n\t\t\t\t\t\t\t\t
  541. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t
  542. <div class=\ "jumbotron jumbotron-adjust text-center teamscore\">\r\n\t\t\t\t\t\t\t\t\t\t
  543. <p class=\ "lead\">Whales</p>\r\n\t\t\t\t\t\t\t\t\t\t<img src=\ "../img/twhale.png\" width=\ "25%\"</img>\r\n\t\t\t\t\t\t\t\t\t\t
  544. <hr>\r\n\t\t\t\t\t\t\t\t\t\t
  545. <p class=\ "glow-yel\">{BN(JUST.Cache.currentRound[9]).div(1e18).toFormat(4)} ETH</p>\r\n\t\t\t\t\t\t\t\t\t
  546. </div>\r\n\t\t\t\t\t\t\t\t
  547. </div>\r\n\t\t\t\t\t\t\t\t
  548. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t
  549. <div class=\ "jumbotron jumbotron-adjust text-center\tteamscore\">\r\n\t\t\t\t\t\t\t\t\t\t
  550. <p class=\ "lead\">Bears</p>\r\n\t\t\t\t\t\t\t\t\t\t<img src=\ "../img/tbear.png\" width=\ "25%\"</img>\r\n\t\t\t\t\t\t\t\t\t\t
  551. <hr>\r\n\t\t\t\t\t\t\t\t\t\t
  552. <p class=\ "glow-yel\">{BN(JUST.Cache.currentRound[10]).div(1e18).toFormat(4)} ETH</p>\r\n\t\t\t\t\t\t\t\t\t
  553. </div>\r\n\t\t\t\t\t\t\t\t
  554. </div>\r\n\t\t\t\t\t\t\t
  555. </div>\r\n\t\t\t\t\t\t\t
  556. <div class=\ "row\">\r\n\t\t\t\t\t\t\t\t
  557. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t
  558. <div class=\ "jumbotron jumbotron-adjust text-center\tteamscore\">\r\n\t\t\t\t\t\t\t\t\t\t
  559. <p class=\ "lead\">Bulls</p>\r\n\t\t\t\t\t\t\t\t\t\t<img src=\ "../img/tbull.png\" width=\ "25%\"</img>\r\n\t\t\t\t\t\t\t\t\t\t
  560. <hr>\r\n\t\t\t\t\t\t\t\t\t\t
  561. <p class=\ "glow-yel\">{BN(JUST.Cache.currentRound[12]).div(1e18).toFormat(4)} ETH </p>\r\n\t\t\t\t\t\t\t\t\t
  562. </div>\r\n\t\t\t\t\t\t\t\t
  563. </div>\r\n\t\t\t\t\t\t\t\t
  564. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t
  565. <div class=\ "jumbotron jumbotron-adjust text-center\tteamscore\">\r\n\t\t\t\t\t\t\t\t\t\t
  566. <p class=\ "lead\">Sneks</p>\r\n\t\t\t\t\t\t\t\t\t\t<img src=\ "../img/tsnek.png\" width=\ "25%\"</img>\r\n\t\t\t\t\t\t\t\t\t\t
  567. <hr>\r\n\t\t\t\t\t\t\t\t\t\t
  568. <p class=\ "glow-yel\">{BN(JUST.Cache.currentRound[11]).div(1e18).toFormat(4)} ETH </p>\r\n\t\t\t\t\t\t\t\t\t
  569. </div>\r\n\t\t\t\t\t\t\t\t
  570. </div>\r\n\t\t\t\t\t\t\t
  571. </div>\r\n\t\t\t\t\t\t
  572. </div>\r\n\t\t\t\t\t
  573. </div>\t\r\n\t\t\t\t\t
  574. <!-- /teams -->\r\n\t\r\n\t\t\t\t\t
  575. <!-- recent players -->\r\n\t\t\t\t\t
  576. <div class=\ "tab-pane fade\" id=\ "playerArea\" role=\ "tabpanel\" aria-labelledby=\ "playerArea\">\r\n\t\t\t\t\t\t
  577. <div class=\ "jumbotron jumbotron-adjust text-light bg-dark jumboshade tab-rounded\">\r\n\t\t\t\t\t\t\t
  578. <div class=\ "row\">\r\n\t\t\t\t\t\t\t
  579. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t
  580. <p class=\ "lead nomarginb\">Recent Players</p>\r\n\t\t\t\t\t\t\t
  581. </div>\r\n\t\t\t\t\t\t\t
  582. <div class=\ "col-auto\">\r\n\t\t\t\t\t\t\t\t
  583. <p class=\ "text-right nomarginb tutorial\">\r\n\t\t\t\t\t\t\t\t\t<i class=\ "fas fa-arrow-right pulsetutorial tutorialArrow\"></i>\r\n\t\t\t\t\t\t\t\t<a tabindex=\ "0\" type=\ "button\" class=\ "qbtn\" role=\ "button\" data-toggle=\ "popover\" data-trigger=\ "focus\" data-html=\ "true\" data-placement=\ "bottom\" title=\ "Like a list of envy:\" data-content=\ "{popover.leaderboard}\">\r\n\t\t\t\t\t\t\t\t<i class=\ "far fa-question-circle\"></i>\r\n\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t\t
  584. </div>\r\n\t\t\t\t\t\t\t
  585. <div class=\ "row\" style=\ "position: relative;\">\r\n\t\t\t\t\t\t\t\t
  586. <div class=\ "faded\" style=\ "position: absolute; z-index: 9; text-align: center; width: 100%; height: 100%; background: #00000085; padding-top: 75px; font-size: 54px;\">\r\n\t\t\t\t\t\t\t\t\tComing soon\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t
  587. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t
  588. <div class=\ "jumbotron jumbotron-adjust teamscore\">\r\n\t\t\t\t\t\t\t\t\t\t
  589. <!-- NOTE: Displays last 3 ticket buyers along with their chosen team and total amount of ETH spent -->\r\n\t\t\t\t\t\t\t\t\t\t
  590. <table class=\ "table\">\r\n\t\t\t\t\t\t\t\t\t\t\t
  591. <thead>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
  592. <tr>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  593. <th scope=\ "col\" class=\ "borderchange\">Player</th>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  594. <th scope=\ "col\" class=\ "borderchange text-center\">Team</th>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  595. <th scope=\ "col\" class=\ "borderchange tright\">Amount</th>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
  596. </tr>\r\n\t\t\t\t\t\t\t\t\t\t\t
  597. </thead>\r\n\t\t\t\t\t\t\t\t\t\t\t
  598. <tbody>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
  599. <tr>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  600. <th scope=\ "row\" class=\ "playername truncate\">inverate inker</th>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  601. <td class=\ "text-center\">Sneks</td>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  602. <td class=\ "tright\">0.0248 ETH</td>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
  603. </tr>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
  604. <tr>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  605. <th scope=\ "row\" class=\ "playername truncate\">antic moldmaker</th>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  606. <td class=\ "text-center\">Whales</td>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  607. <td class=\ "tright\">0.2480 ETH</td>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
  608. </tr>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
  609. <tr>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  610. <th scope=\ "row\" class=\ "playername truncate\">harjd laser</th>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  611. <td class=\ "text-center\">Bulls</td>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
  612. <td class=\ "tright\">0.0248 ETH</td>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
  613. </tr>\r\n\t\t\t\t\t\t\t\t\t\t\t
  614. </tbody>\r\n\t\t\t\t\t\t\t\t\t\t
  615. </table>\r\n\t\t\t\t\t\t\t\t\t
  616. </div>\r\n\t\t\t\t\t\t\t\t
  617. </div>\r\n\t\t\t\t\t\t\t
  618. </div>\t\t\r\n\t\t\t\t\t\t
  619. </div>\r\n\t\t\t\t\t
  620. </div>\r\n\t\t\t\t\t
  621. <!-- /recent players -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t
  622. <!-- Stats page -->\r\n\t\t\t\t\t
  623. <!-- Stats page -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t
  624. <div class=\ "tab-pane fade\" id=\ "statsArea\" role=\ "tabpanel\" aria-labelledby=\ "statsArea\">\r\n\r\n\t\t\t\t\t\t
  625. <div class=\ "jumbotron jumbotron-adjust text-light bg-dark jumboshade tab-rounded\">\r\n\t\t\t\t\t\t\t
  626. <div class=\ "row\">\r\n\t\t\t\t\t\t\t
  627. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t
  628. <p class=\ "lead nomarginb\">Stats for Round #{JUST.Cache.currentRound[1]} (Current)</p>\r\n\t\t\t\t\t\t\t
  629. </div>\r\n\t\t\t\t\t\t\t
  630. <div class=\ "col-auto\">\r\n\t\t\t\t\t\t\t\t
  631. <p class=\ "text-right nomarginb tutorial\">\r\n\t\t\t\t\t\t\t\t\t<i class=\ "fas fa-arrow-right pulsetutorial tutorialArrow\"></i>\r\n\t\t\t\t\t\t\t\t<a tabindex=\ "0\" type=\ "button\" class=\ "qbtn\" role=\ "button\" data-toggle=\ "popover\" data-trigger=\ "focus\" data-html=\ "true\" data-placement=\ "bottom\" title=\ "Important Box:\" data-content=\ "{popover.stats}\">\r\n\t\t\t\t\t\t\t\t<i class=\ "far fa-question-circle\"></i>\r\n\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t\t
  632. </div>\r\n\t\t\t\t\t\t\t
  633. <hr>\r\n\t\t\t\t\t\t\t
  634. <div class=\ "jumbotron jumbotron-adjust teamscore\">\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
  635. <div class=\ "row nomarginb\">\r\n\t\t\t\t\t\t\t\t\t
  636. <div class=\ "col-auto\">\r\n\t\t\t\t\t\t\t\t\t\t
  637. <p class=\ "h4\">Total Invested:</p>\r\n\t\t\t\t\t\t\t\t\t
  638. </div>\r\n\t\t\t\t\t\t\t\t\t
  639. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t\t
  640. <p class=\ "h2 text-right glow ethglitch\">{((BN(JUST.Cache.currentRound[9])).plus(BN(JUST.Cache.currentRound[10])).plus(BN(JUST.Cache.currentRound[11])).plus(BN(JUST.Cache.currentRound[12]))).div(1e18).toFormat(3)} <i class=\ "fab fa-ethereum ethglow\"></i></p>\r\n\t\t\t\t\t\t\t\t\t
  641. </div>\r\n\t\t\t\t\t\t\t\t
  642. </div>\r\n\t\t\t\t\t\t\t\t
  643. <div class=\ "row marginb\">\r\n\t\t\t\t\t\t\t\t\t
  644. <div class=\ "col text-right\">&#8793; {(((BN(JUST.Cache.currentRound[9])).plus(BN(JUST.Cache.currentRound[10])).plus(BN(JUST.Cache.currentRound[11])).plus(BN(JUST.Cache.currentRound[12])))).div(1e18).multipliedBy(JUST.Cache.fiatRatios.USD).toFormat(2)} USDT</div>\r\n\t\t\t\t\t\t\t\t
  645. </div>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
  646. <div class=\ "row nomarginb\">\r\n\t\t\t\t\t\t\t\t\t
  647. <div class=\ "col-auto\">\r\n\t\t\t\t\t\t\t\t\t\t
  648. <p class=\ "h4\">Distributed Rewards:</p>\r\n\t\t\t\t\t\t\t\t\t
  649. </div>\r\n\t\t\t\t\t\t\t\t\t
  650. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t\t
  651. <p class=\ "h2 text-right glow ethglitch\">{((BN(JUST.Cache.currentRound[9])).plus(BN(JUST.Cache.currentRound[10])).plus(BN(JUST.Cache.currentRound[11])).plus(BN(JUST.Cache.currentRound[12])).minus(BN(JUST.Cache.currentRound[5]))).div(1e18).toFormat(3)} <i class=\ "fab fa-ethereum ethglow\"></i></p>\r\n\t\t\t\t\t\t\t\t\t
  652. </div>\r\n\t\t\t\t\t\t\t\t
  653. </div>\r\n\t\t\t\t\t\t\t\t
  654. <div class=\ "row marginb\">\r\n\t\t\t\t\t\t\t\t\t
  655. <div class=\ "col text-right\">&#8793;{((BN(JUST.Cache.currentRound[9])).plus(BN(JUST.Cache.currentRound[10])).plus(BN(JUST.Cache.currentRound[11])).plus(BN(JUST.Cache.currentRound[12])).minus(BN(JUST.Cache.currentRound[5]))).multipliedBy(JUST.Cache.fiatRatios.USD).div(1e18).toFormat(2)} USDT </div>\r\n\t\t\t\t\t\t\t\t
  656. </div>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
  657. <div class=\ "row nomarginb\">\r\n\t\t\t\t\t\t\t\t\t
  658. <div class=\ "col-auto\">\r\n\t\t\t\t\t\t\t\t\t\t
  659. <p class=\ "h4\">Time Purchased</p>\r\n\t\t\t\t\t\t\t\t\t
  660. </div>\r\n\t\t\t\t\t\t\t\t\t
  661. <div class=\ "col\">\r\n\t\t\t\t\t\t\t\t\t\t
  662. <p class=\ "h2 text-right glow ethglitch\">{((BN(JUST.Cache.currentRound[2])).div(1e18).multipliedBy(30000)).div(31536000000).toFixed(2)} Years</p>\r\n\t\t\t\t\t\t\t\t\t
  663. </div>\r\n\t\t\t\t\t\t\t\t
  664. </div>\r\n\t\t\t\t\t\t\t\t
  665. <div class=\ "row marginb\">\r\n\t\t\t\t\t\t\t\t\t
  666. <div class=\ "col text-right\"> {((BN(JUST.Cache.currentRound[2])).div(1e18).multipliedBy(30)).toFormat(0)} Seconds</div>\r\n\t\t\t\t\t\t\t\t
  667. </div>\r\n\t\t\t\t\t\t\t
  668. </div>\r\n\t\t\t\t\t\t
  669. </div>\r\n\t\t\t\t\t
  670. </div>\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t
  671. </div>\r\n\t\t\t\t
  672. <!-- /tabbable area -->\r\n\t\t\t\t\r\n
  673. <section class=\ "copyright\">\r\n
  674. <p style=\ "font-size:1rem\" align=center>\r\n &copy; 2018 <a><b>Team JUST</b></a>. All Rights Reserved.\r\n <br />\r\n\t\t\t\t\t\t
  675. <!--\r\n\t\t\t\t\t\tCopyright 2018 TEAM JUST\r\n\t\t\t\t\t\tThis product is protected under license. Any unauthorized copy, modification, or use without express written consent from the creators is prohibited.\r\n\t\t\t\t\t\t-->\r\n
  676. </p>\r\n
  677. </section>\r\n\t\t\t
  678. </div>\r\n\t\t\t
  679. <!-- /stat tabs -->\r\n\r\n\t\t
  680. </div>\r\n\t\t\r\n\t\t\r\n\r\n\t\t
  681. </div>\r\n\r\n\t
  682. <!-- modal popup -->\r\n\t
  683. <div class=\ "modal fade\" id=\ "gameover\" tabindex=\ "-1\" role=\ "dialog\" aria-labelledby=\ "gameoverTitle\" aria-hidden=\ "true\">\r\n\t\t
  684. <div class=\ "modal-dialog modal-dialog-centered\" role=\ "document\">\r\n\t\t\t
  685. <div class=\ "modal-content bg-dark text-light\">\r\n\t\t\t\t
  686. <div class=\ "modal-header\">\r\n\t\t\t\t\t
  687. <h5 class=\ "modal-title\" id=\ "gameoverTitle\">Modal Title</h5>\r\n\t\t\t\t\t<button type=\ "button\" class=\ "close\" data-dismiss=\ "modal\" aria-label=\ "Close\">\r\n\t\t\t\t\t\t<span aria-hidden=\ "true\">&times;</span>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\t\t\t\t
  688. <div class=\ "modal-body\">\r\n\t\t\t\t\tModal Content\r\n\t\t\t\t</div>\r\n\t\t\t
  689. </div>\r\n\t\t
  690. </div>\r\n\t
  691. </div>\r\n\t
  692. <!-- /modal popup -->\r\n\t
  693. <!-- airdrop custom modal popup \r\n\tcleanup\r\n\t<div class=\"container\" id=\"airdrop\" style=\"z-index: 999;\">\r\n <div class=\"row\">\r\n <div class=\"col-6\" style=\"position: fixed; bottom:0; left:25%;\">\r\n <div class=\"jumbotron jumbotron-adjust jumboshade bg-dark text-light\">\r\n <div class=\"row\">\r\n <div class=\"col\">\r\n <div class=\"row\">\r\n <div class=\"col\">\r\n <p class=\"lead\">Airdrop: Your buying power has been multiplied!</p>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col\">\r\n <p class=\"font-weight-light string\">You've recieved at least a 2x multiplier on your last purchase! (PLACEHOLDER)</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-auto\">\r\n <i class=\"fas fa-parachute-box airdropicon ethglow-its-okay-justo\"></i>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\t/airdrop custom modal popup -->\r\n\t\r\n\t
  694. <!-- If something breaks delet this script justo made; -->\r\n\t
  695. <script>
  696. \
  697. r\ n\ t // Contain the popover within the body NOT the element it was called in.\r\n\t\t$('[data-toggle=\"popover\"]').popover({\r\n\t\t\tcontainer: 'body'\r\n\t\t});\r\n\r\n\t\t$this = this\r\n\t\t$this.refresher = _.debounce(async () => {\r\n\t\t\tJUST.Cache.currentRound = await JUST.Bridges.Browser.contracts.Fomo3D.read(\"getCurrentRoundInfo\")\r\n\t\t\tclearInterval(window.globalTimerObject)\r\n\t\t\t$this.update()\r\n\t\t}, 500)\r\n\r\n\t\tasync function assemble() {\r\n\t\t\t$this.roundHasPassed = Math.floor( JUST.date().getTime() / 1000) > JUST.Cache.currentRound[3]\r\n\t\t\t$this.playerIsLeader = JUST.Bridges.Metamask && JUST.Bridges.Metamask.signedIn && Math.floor(parseInt(JUST.Cache.currentRound[6]/10)) == parseInt(JUST.Cache.currentPlayer.PID)\r\n\t\t\t$this.playerHasWon = $this.roundHasPassed && $this.playerIsLeader\r\n\t\t\t$this.isCEO = JUST.Bridges.Metamask && JUST.Bridges.Metamask.signedIn && JUST.Cache.currentPlayer && JUST.Cache.currentPlayer.Round && JUST.Cache.currentPlayer.Round[1] !== \"0x0000000000000000000000000000000000000000000000000000000000000000\"\r\n\t\t\t$this.myLink = $this.isCEO ? `${window.location.origin}/${JUST.Bridges.Metamask.web3.eth.defaultAccount}` : `#`\r\n\t\t\t$this.gracePeriod = false\r\n\t\t\t// $this.gracePeriod = true\r\n\t\t\t$this.myLinkid = $this.isCEO ? `${window.location.origin}/${JUST.Cache.currentPlayer.PID.toFixed()}` : `#`\r\n\t\t\t$this.myLinkName = $this.isCEO ? `${window.location.origin}/${JUST.Bridges.Browser.web3.utils.toAscii(JUST.Cache.currentPlayer.Round[1])}` : `#`\r\n\t\t\t$this.myLinkName = $this.myLinkName.replace(/ /g,'%20')\r\n\t\t}\r\n\r\n\t\tasync function rewire() {\r\n\r\n\t\t\tif($this.isCEO) jQuery(\".afflink span\").text($this.myLinkName)\r\n\r\n\t\t\t // open vanity from ceo box\r\n\t\t\tjQuery(\".buyceo\").click(async e => {\r\n\t\t\t\tlet correctNetwork = await JUST.checkNetwork()\r\n\t\t\t\tif(!correctNetwork) return alertify.alert(\"You are not in the correct network. Please navigate to <a style='color: #1e10f8;text-decoration: underline;' href='https://testnet.teamjust.io'>the testnet portal</a> and follow the instructions.\")\r\n\t\t\t\tjQuery('#vanity').modal()\r\n\t\t\t})\r\n\r\n\t\t\t/* Check for graphics quality switch settings\r\n\t\t\tlet sd_mode = localStorage.getItem('fancy')\r\n\t\t\tif(sd_mode && sd_mode == \"true\"){\r\n\t\t\t\tjQuery(\"#fancyswitch\").prop(\"checked\", false);\r\n\t\t\t\tjQuery('#hdgraphics').toggle();\r\n\t\t\t} else{\r\n\t\t\t\tjQuery(\"#fancyswitch\").prop(\"checked\", true);\r\n\t\t\t}*/\r\n\r\n\t\t\t// Check for tutorial switch settings\r\n\t\t\tif(tutorial_mode != \"true\"){\r\n\t\t\t\tjQuery('.tutorial').css({\"display\": \"none\"});\r\n\t\t\t\tjQuery(\"#tutorialswitch\").prop(\"checked\", false);\r\n\t\t\t}\r\n\r\n\t\t\t // Teamselect localstorage thingy\r\n\t\t\tlet saved_team = localStorage.getItem(\"team\")\r\n\t\t \tif(saved_team){\r\n\t\t \t\tif(saved_team == \"0\"){\r\n\t\t\t\t\tjQuery(\"#teamsnek\").prop(\"checked\", true);\r\n\t\t\t\t}\r\n\t\t\t\tif(saved_team == \"1\"){\r\n\t\t\t\t\tjQuery(\"#teamwhale\").prop(\"checked\", true);\r\n\t\t\t\t}\r\n\t\t\t\tif(saved_team == \"2\"){\r\n\t\t\t\t\tjQuery(\"#teambull\").prop(\"checked\", true);\r\n\t\t\t\t}\r\n\t\t\t\tif(saved_team == \"3\"){\r\n\t\t\t\t\tjQuery(\"#teambear\").prop(\"checked\", true);\r\n\t\t\t\t}\r\n\t\t \t} else {\r\n\t\t \t\tjQuery(\"#teamsnek\").prop(\"checked\", true);\r\n\t\t \t}\r\n\t\t\t\r\n\t\t\tif(!$this.roundHasPassed) {\r\n\t\t\t\t/* WIP\r\n\t\t\t\t// add airdrop text to html\r\n\t\t\t\tlet priceQuotation = await JUST.Bridges.Browser.contracts.Fomo3D.read('iWantXKeys', count)\r\n\t\t\t\tlet purchase_amount = BN(priceQuotation).plus(100).div(1e18).toFixed(2)\r\n\t\t\t\tswitch(purchase_amount){\r\n\t\t\t\t\tcase >10:\r\n\t\t\t\t\t\t$('#airdrop_chance').text({JUST.Cache.airdropTracker} + \"% chance to receive a 4x Key Airdrop with your next purchase with at least 10 ETH!\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase >1:\r\n\t\t\t\t\t\t$('#airdrop_chance').text({JUST.Cache.airdropTracker} + \"% chance to receive a 3x Key Airdrop with your next purchase with at least 1 ETH!\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$('#airdrop_chance').text({JUST.Cache.airdropTracker} + \"% chance to receive a 2x Key Airdrop with your next purchase with at least .1 ETH!\");\r\n\t\t\t\t}\r\n\t\t\t\t*/\r\n\t\t\t\tjQuery(\"#quotes\").addClass(\"active\")\r\n\t\t\t\tif(JUST.Bridges.Metamask && JUST.Bridges.Metamask.signedIn){\r\n\t\t\t\t\tjQuery(\".keycount\").text(BN(JUST.Cache.currentPlayer.Round[2]).div(1e18).toFixed(4))\r\n\t\t\t\t} else {\r\n\t\t\t\t\tjQuery(\".keycount\").text(\"0\")\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif($this.timer) $this.timer.Destroy()\r\n\t\t\t\t$this.timer = new Countdown(JUST.Cache.currentRound[3], async (data, expired) => {\r\n\t\t\t\t\tnow = (JUST.date().getTime() / 1000)\r\n\r\n\t\t\t\t\t// console.log({\r\n\t\t\t\t\t// \tcurrentTime: new Date(now * 1000), \r\n\t\t\t\t\t// \troundEnd: new Date(parseInt(JUST.Cache.currentRound[3]) * 1000),\r\n\t\t\t\t\t// \troundOver: now < parseInt(JUST.Cache.currentRound[3]),\r\n\t\t\t\t\t// \troundID: JUST.Cache.currentRound[1],\r\n\t\t\t\t\t// \tpot: JUST.Cache.currentRound[5]\r\n\r\n\t\t\t\t\t// })\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(Math.floor( JUST.date().getTime() / 1000) > (parseInt(JUST.Cache.currentRound[3]) - 90) && $this.gracePeriod) {\r\n\r\n\t\t\t\t\t\t$this.gracePeriod = false\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// pepe\r\n\t\t\t\t\t\tfunction pepe(){\r\n\t\t\t\t\t\t$(\".animation\").animate({bottom: \"-30px\"}, \"slow\");\r\n\t\t\t\t\t\t $(\".animation\").animate({left: \"100%\"}, \"slow\", function () {\r\n\t\t\t\t\t\t $(this).removeAttr('style'); \r\n\t\t\t\t\t\t });\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tpepe()\r\n\r\n\t\t\t\t\t\t// clear timer from stack\r\n\t\t\t\t\t\tclearInterval(window.globalTimerObject)\r\n\r\n\t\t\t\t\t\t$this.refresher()\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(!expired){\r\n\t\t\t\t\t\tif($this.gracePeriod){\r\n\t\t\t\t\t\t\tlet actualTime = parseDifference(new Date(parseInt(JUST.Cache.currentRound[3]) - 90), JUST.date())\r\n\t\t\t\t\t\t\tjQuery(\".headtimer\").text(`${(actualTime.hours == \"00\" ? \"\" : actualTime.hours + \":\") }${actualTime.minutes}:${actualTime.seconds}`)\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tjQuery(\".headtimer\").text(`${(data.hours == \"00\" ? \"\" : data.hours + \":\") }${data.minutes}:${data.seconds}`)\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tjQuery(\".boxtimer\").text(`${(data.hours == \"00\" ? \"\" : data.hours + \":\") }${data.minutes}:${data.seconds}`)\r\n\r\n\t\t\t\t\t\tvar timeTotal = parseInt(parseInt(JUST.Cache.currentRound[4]) - parseInt(JUST.Cache.currentRound[4])) + 3600\r\n\t\t\t\t\t\tvar timeRemaining = parseInt(JUST.Cache.currentRound[3]) - now \r\n\t\t\t\t\t\tvar timePercentage = 100 - timeRemaining / (timeTotal / 100)\r\n\r\n\t\t\t\t\t\t//console.log(timeTotal, timeRemaining, Math.floor(timePercentage))\r\n\r\n\t\t\t\t\t\tjQuery(\".progress-bar.boxglow\").css('width', `${Math.floor(timePercentage)}%`)\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tjQuery(\"#quotes\").removeClass(\"active\")\r\n\t\t\t\t\t\t// refresh dom\r\n\t\t\t\t\t\t$this.refresher()\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t\tif($this.gracePeriod && !this.graceTimer) {\r\n\r\n\t\t\t\tconsole.log(\"execute\", parseInt(JUST.Cache.currentRound[3]) + 300)\r\n\t\t\t\tnew Countdown(parseInt(JUST.Cache.currentRound[3]) + 300, async (data, expired) => {\r\n\t\t\t\t\t$this.graceTimer = true\r\n\t\t\t\t\tnow = (JUST.date().getTime() / 1000)\r\n\r\n\r\n\t\t\t\t\tif(now < (parseInt(JUST.Cache.currentRound[3]) + 300) ){\r\n\t\t\t\t\t\tjQuery(\".graceTimer\").text(`${(data.hours == \"00\" ? \"\" : data.hours + \":\") }${data.minutes}:${data.seconds}`)\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$this.gracePeriod = false\r\n\t\t\t\t\t\t// clear timer from stack\r\n\t\t\t\t\t\t$this.graceTimer = false\r\n\t\t\t\t\t\t// refresh dom\r\n\t\t\t\t\t\t$this.refresher()\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t}\r\n\r\n\t\t\tawait jQuery( \".buyOneTicket\" ).unbind()\r\n\t\t\tawait jQuery( \"#tixBuy\" ).unbind()\r\n\t\t\tawait jQuery( \"#tixReinvest\" ).unbind()\r\n\t\t\tawait jQuery( \"#withdrawEarnings\" ).unbind()\r\n\t\t\tawait jQuery( \"#ethSpend\" ).unbind()\r\n\t\t\tawait jQuery( \"#ethReinvest\" ).unbind()\r\n\r\n\t\t\tjQuery(\".buyOneTicket\").click(async e => {\r\n\t\t\t\tif(!JUST.Bridges.Metamask || !JUST.Bridges.Metamask.signedIn) return alertify.alert(\"You are not signed into metamask.\")\r\n\t\t\t\tlet correctNetwork = await JUST.checkNetwork()\r\n\t\t\t\tif(!correctNetwork) return alertify.alert(\"You are not in the correct network. Please navigate to <a style='color: #1e10f8;text-decoration: underline;' href='https://testnet.teamjust.io'>the testnet portal</a> and follow the instructions.\")\r\n\t\t\t\tvar masternode = window.localStorage.getItem(\"masternode\") ? window.localStorage.getItem(\"masternode\") : \"0x0\" \r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlet priceQuotation = await JUST.Bridges.Browser.contracts.Fomo3D.read('iWantXKeys', [BN(1050000000000000000)])\r\n\t\t\t\t\tjQuery('#loading').modal({backdrop: 'static', keyboard: false})\r\n\t\t\t\t\tlet team = $(\"input[name='teamselect']:checked\").val()\r\n\t\t\t\t\tif(!team) team = 0\r\n\t\t\t\t\tlet receipt = await JUST.Bridges.Metamask.contracts.Fomo3D.purchaseKeys(priceQuotation, team)\r\n\t\t\t\t\t//let receipt = await JUST.Bridges.Metamask.contracts.Fomo3D.write(\"buy\", [masternode, 1], {value: priceQuotation})\r\n\t\t\t\t\tjQuery('#loading').modal('hide')\r\n\t\t\t\t\talertify.log(`Your key purchasing request has been submitted to the blockchain!`)\r\n\t\t\t\t\tconsole.log(receipt)\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\tconsole.log(e)\r\n\t\t\t\t\talertify.log(`Buy order has been cancelled.`)\r\n\t\t\t\t\tjQuery('#loading').modal('hide')\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t})\r\n\r\n\t\t\t/**\r\n\t\t\t * Whenever the input of tixToBuy changes..\r\n\t\t\t */\r\n\t\t\tjQuery(\"#tixToBuy\").bind('input', getQuote)\r\n\r\n\t\t\t/**\r\n\t\t\t * When the purchase button is clicked.\r\n\t\t\t */\r\n\t\t\tjQuery(\"#tixBuy\").click( async e => {\r\n\t\t\t\tif(!JUST.Bridges.Metamask || !JUST.Bridges.Metamask.signedIn) return alertify.alert(\"You are not signed into metamask.\")\r\n\t\t\t\tlet correctNetwork = await JUST.checkNetwork()\r\n\t\t\t\tif(!correctNetwork) return alertify.alert(\"You are not in the correct network. Please navigate to <a style='color: #1e10f8;text-decoration: underline;' href='https://testnet.teamjust.io'>the testnet portal</a> and follow the instructions.\")\r\n\t\t\t\tlet count = String(jQuery(\"#tixToBuy\").val()).replace(\"keys\", \"\").replace(\"key\", \"\").replace(\"Keys\", \"\").replace(\"Key\", \"\")\r\n\t\t\t\tif(!Number.isInteger(parseInt(count))) return\r\n\t\t\t\tvar masternode = window.localStorage.getItem(\"masternode\") ? window.localStorage.getItem(\"masternode\") : \"0x0\" \r\n\t\t\t\tcount = BN((parseInt(count)) * 1e18)\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlet priceQuotation = await JUST.Bridges.Browser.contracts.Fomo3D.read('iWantXKeys', count)\r\n\t\t\t\t\tjQuery('#loading').modal({backdrop: 'static', keyboard: false})\r\n\t\t\t\t\tlet team = $(\"input[name='teamselect']:checked\").val()\r\n\t\t\t\t\tif(!team) team = 0\r\n\t\t\t\t\tlet receipt = await JUST.Bridges.Metamask.contracts.Fomo3D.purchaseKeys(BN(priceQuotation).plus(100).toString(), team)\r\n\t\t\t\t\talertify.log(`Your ticket purchasing request has been submitted to the blockchain!`)\r\n\t\t\t\t\tjQuery('#loading').modal('hide')\r\n\r\n\t\t\t\t\tconsole.log(receipt)\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\talertify.log(`Buy order has been cancelled.`)\r\n\t\t\t\t\tjQuery('#loading').modal('hide')\r\n\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t})\r\n\r\n\t\t\t/**\r\n\t\t\t * When the reinvest button is clicked.\r\n\t\t\t */\r\n\t\t\tjQuery(\"#tixReinvest\").click( async e => {\r\n\t\t\t\tif(!JUST.Bridges.Metamask || !JUST.Bridges.Metamask.signedIn) return alertify.alert(\"You are not signed into metamask.\")\r\n\t\t\t\tlet correctNetwork = await JUST.checkNetwork()\r\n\t\t\t\tif(!correctNetwork) return alertify.alert(\"You are not in the correct network. Please navigate to <a style='color: #1e10f8;text-decoration: underline;' href='https://testnet.teamjust.io'>the testnet portal</a> and follow the instructions.\")\r\n\t\t\t\tlet vaultEarnings = BN(JUST.Cache.currentPlayer.Vaults[0]).plus(JUST.Cache.currentPlayer.Vaults[1]).plus(JUST.Cache.currentPlayer.Vaults[2])\r\n\t\t\t\tlet count = String(jQuery(\"#tixToBuy\").val()).replace(\"keys\", \"\").replace(\"key\", \"\").replace(\"Keys\", \"\").replace(\"Key\", \"\")\r\n\t\t\t\tvar masternode = window.localStorage.getItem(\"masternode\") ? window.localStorage.getItem(\"masternode\") : \"0x0\" \r\n\t\t\t\tif(!Number.isInteger(parseInt(count))) return\r\n\t\t\t\tcount = BN((parseInt(count) ) * 1e18)\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlet priceQuotation = await JUST.Bridges.Browser.contracts.Fomo3D.read('iWantXKeys', [BN(count)])\r\n\t\t\t\t\tif(vaultEarnings.isLessThan(BN(priceQuotation))) return alertify.alert(`You don't have ${BN(priceQuotation).div(1e18).toFixed(4)} ETH in your vault to pay for ${count.div(1e18).toFixed(4)} keys. You only have ${vaultEarnings.div(1e18).toFixed(4)} ETH in your vault.`)\r\n\t\t\t\t\tjQuery('#loading').modal({backdrop: 'static', keyboard: false})\r\n\t\t\t\t\tlet team = $(\"input[name='teamselect']:checked\").val()\r\n\t\t\t\t\tif(!team) team = 0\r\n\t\t\t\t\tlet receipt = await JUST.Bridges.Metamask.contracts.Fomo3D.purchaseKeys(BN(priceQuotation).plus(100).toString(), team, true)\r\n\t\t\t\t\talertify.log(`Your ticket purchasing request has been submitted to the blockchain!`)\r\n\t\t\t\t\tjQuery('#loading').modal('hide')\r\n\r\n\t\t\t\t\tconsole.log(receipt)\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\tconsole.error(e)\r\n\t\t\t\t\talertify.log(`Buy order has been cancelled.`)\r\n\t\t\t\t\tjQuery('#loading').modal('hide')\r\n\r\n\t\t\t\t}\r\n\t\t\t})\r\n\r\n\t\t\t/**\r\n\t\t\t * When the ICO invest button is pressed\r\n\t\t\t */\r\n\t\t\tjQuery(\"#ethSpend\").click( async e => {\r\n\t\t\t\tif(!JUST.Bridges.Metamask || !JUST.Bridges.Metamask.signedIn) return alertify.alert(\"You are not signed into metamask.\")\r\n\t\t\t\tlet correctNetwork = await JUST.checkNetwork()\r\n\t\t\t\tif(!correctNetwork) return alertify.alert(\"You are not in the correct network. Please navigate to <a style='color: #1e10f8;text-decoration: underline;' href='https://testnet.teamjust.io'>the testnet portal</a> and follow the instructions.\")\r\n\t\t\t\tlet count = String(jQuery(\"#ethToSpend\").val()).replace(\"ethereum\", \"\").replace(\"Ethereum\", \"\").replace(\"eth\", \"\").replace(\"ETH\", \"\")\r\n\t\t\t\tif(!Number.isInteger(parseInt(count))) return\r\n\t\t\t\tcount = BN(count).multipliedBy(1e18)\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlet team = $(\"input[name='teamselect']:checked\").val()\r\n\t\t\t\t\tif(!team) team = 1\r\n\t\t\t\t\tjQuery('#loading').modal({backdrop: 'static', keyboard: false})\r\n\t\t\t\t\tlet receipt = await JUST.Bridges.Metamask.contracts.Fomo3D.purchaseKeys(count.toString(), team)\r\n\t\t\t\t\talertify.log(`Your ICO funding request has been submitted to the blockchain!`)\r\n\t\t\t\t\tjQuery('#loading').modal('hide')\r\n\t\t\t\t\tconsole.log(receipt)\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\talertify.log(`Funding request been cancelled.`)\r\n\t\t\t\t\tjQuery('#loading').modal('hide')\r\n\r\n\t\t\t\t}\r\n\t\t\t})\r\n\r\n\t\t\t/**\r\n\t\t\t * When the ICO invest button is pressed\r\n\t\t\t */\r\n\t\t\tjQuery(\"#ethReinvest\").click( async e => {\r\n\t\t\t\tif(!JUST.Bridges.Metamask || !JUST.Bridges.Metamask.signedIn) return alertify.alert(\"You are not signed into metamask.\")\r\n\t\t\t\tlet correctNetwork = await JUST.checkNetwork()\r\n\t\t\t\tif(!correctNetwork) return alertify.alert(\"You are not in the correct network. Please navigate to <a style='color: #1e10f8;text-decoration: underline;' href='https://testnet.teamjust.io'>the testnet portal</a> and follow the instructions.\")\r\n\t\t\t\tlet count = String(jQuery(\"#ethToSpend\").val()).replace(\"ethereum\", \"\").replace(\"Ethereum\", \"\").replace(\"eth\", \"\").replace(\"ETH\", \"\")\r\n\t\t\t\tif(!Number.isInteger(parseInt(count))) return\r\n\t\t\t\tcount = BN(count).multipliedBy(1e18)\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlet team = $(\"input[name='teamselect']:checked\").val()\r\n\t\t\t\t\tif(!team) team = 1\r\n\t\t\t\t\tlet receipt = await JUST.Bridges.Metamask.contracts.Fomo3D.purchaseKeys(count.toString(), team, true)\r\n\t\t\t\t\talertify.log(`Your ICO funding request has been submitted to the blockchain!`)\r\n\t\t\t\t\tjQuery('#loading').modal('hide')\r\n\t\t\t\t\tconsole.log(receipt)\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\talertify.log(`Funding request been cancelled.`)\r\n\t\t\t\t\tjQuery('#loading').modal('hide')\r\n\r\n\t\t\t\t}\r\n\t\t\t})\r\n\r\n\t\t\tjQuery(\"#withdrawEarnings\").click(async e => {\r\n\t\t\t\tlet correctNetwork = await JUST.checkNetwork()\r\n\t\t\t\tif(!correctNetwork) return alertify.alert(\"You are not in the correct network. Please navigate to <a style='color: #1e10f8;text-decoration: underline;' href='https://testnet.teamjust.io'>the testnet portal</a> and follow the instructions.\")\r\n\t\t\t\tif(!JUST.Bridges.Metamask || !JUST.Bridges.Metamask.signedIn) return alertify.alert(\"You are not signed into metamask.\")\r\n\t\t\t\tjQuery('#loading').modal({backdrop: 'static', keyboard: false})\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlet receipt = await JUST.Bridges.Metamask.contracts.Fomo3D.write(\"withdraw\")\r\n\t\t\t\t\tjQuery('#loading').modal('hide')\r\n\t\t\t\t\talertify.log(`Your withdrawal request has been submitted to the blockchain!`)\r\n\t\t\t\t\tconsole.log(receipt)\r\n\r\n\t\t\t\t} catch(e) {\r\n\t\t\t\t\talertify.log(`Withdrawal has been cancelled.`)\r\n\t\t\t\t\tjQuery('#loading').modal('hide')\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t})\r\n\r\n\r\n\t\t\tgetQuote()\t\t\r\n\t\t}\r\n\r\n\t\tasync function getQuote(){\r\n\t\t\tlet count = String(jQuery(\"#tixToBuy\").val()).replace(\"key\", \"\").replace(\"keys\", \"\").replace(\"Key\", \"\").replace(\"Keys\", \"\")\r\n\t\t\tif(!Number.isInteger(parseInt(count))) return\r\n\t\t\tcount = BN(parseInt(count) * 1e18)\r\n\t\t\t\r\n\t\t\tlet priceQuotation = await JUST.Bridges.Browser.contracts.Fomo3D.read('iWantXKeys', count)\r\n\r\n\t\t\tjQuery(\"#tixQuotation\").text(`@ ${BN(priceQuotation).plus(100).div(1e18).toFixed(8)} ETH`)\r\n\r\n\t\t\tconsole.log(priceQuotation)\r\n\t\t}\r\n\r\n\r\n\t\t$this.on('update', assemble)\r\n\t\t$this.on('updated', rewire)\r\n\t\t$this.on('before-mount', assemble)\r\n\t\tthis.on('unmount', fn => {\r\n\t\t\tif(window.globalTimerObject && typeof window.globalTimerObject !== \"undefined\") clearInterval(window.globalTimerObject)\r\n\t\t})\r\n\t\t\r\n\r\n\t\tJUST.UI.on('ui.refresh', () => {\r\n\t\t\tconsole.log('refreshing ui')\r\n\t\t\t$this.refresher()\r\n\t\t} )\r\n\r\n\t\t\t\r\n\t\t$this.on('mount', function(){\r\n\t\t\t\r\n\t\t\t// wire listeners\r\n\t\t\trewire()\r\n\r\n\t\t\tnew ClipboardJS('.btn');\r\n\r\n\t\t // Teamselection to var\r\n\t\t jQuery('.ticketProcess').click(function(){\r\n\t\t\tvar team = $(\"input[name='teamselect']:checked\").val()\r\n\t\t\t//console.log(team)\r\n\t\t });\r\n\t\t\t\t\r\n\t\t // Increase ticket amount to buy with buttons\r\n\t\t jQuery('.increment').click(function(){\r\n\t\t\tlet id = this.id\r\n\t\t\t\r\n\t\t\tif(id == 'addOne'){ \r\n\t\t\t var increment = 1\r\n\t\t\t}\r\n\t\t\tif(id == 'addTwo'){ \r\n\t\t\t var increment = 2\r\n\t\t\t}\r\n\t\t\tif(id == 'addFive'){\r\n\t\t\t var increment = 5\r\n\t\t\t}\r\n\t\t\tif(id == 'addTen'){\r\n\t\t\t var increment = 10\r\n\t\t\t}\r\n\r\n\t\t\tif(id == 'addHundred'){\r\n\t\t\t var increment = 100\r\n\t\t\t}\r\n\t\t\tif(jQuery('#tixToBuy').val()){\r\n\t\t\t\t///replace(\"key\", \"\").replace(\"keys\", \"\").replace(\"Key\", \"\").replace(\"Keys\", \"\")\r\n\t\t\t\tvar iVal = parseInt(String(jQuery(\"#tixToBuy\").val()).replace(\"keys\", \"\").replace(\"key\", \"\").replace(\"Keys\", \"\").replace(\"Key\", \"\"))\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tvar iVal = 1\r\n\t\t\t}\r\n\r\n\t\t\tlet nVal = iVal + increment\r\n\r\n\t\t\tjQuery(\"#tixToBuy\").val(nVal.toString())\r\n\r\n\t\t\tgetQuote()\r\n\r\n\t\t });\r\n\r\n\t\t // Quote script\r\n\t\t //jQuery(\".qTarget\").text(memes.global.quoteRoulette[Math.floor(Math.random()*memes.global.quoteRoulette.length)]);\r\n\r\n\t\t // Enable popovers\r\n\t\t jQuery(\".qbtn\").click(function(){\r\n\t\t\tjQuery('[data-toggle=\"popover\"').popover()\r\n\t\t })\r\n\t\t \r\n\t\t \r\n\r\n\t\t \r\n\t\t\t\t\r\n\t\t\t// save team\r\n\t\t\tjQuery('.teamselector input').click(function(){\r\n\t\t\t\tlet thisteam = $(this).attr('id')\r\n\t\t\t\tif(thisteam == \"teamsnek\"){\r\n\t\t\t\t\tlocalStorage.setItem('team', '0');\r\n\t\t\t\t}\r\n\t\t\t\tif(thisteam == \"teamwhale\"){\r\n\t\t\t\t\tlocalStorage.setItem('team', '1');\r\n\t\t\t\t}\r\n\t\t\t\tif(thisteam == \"teambull\"){\r\n\t\t\t\t\tlocalStorage.setItem('team', '2');\r\n\t\t\t\t}\r\n\t\t\t\tif(thisteam == \"teambear\"){\r\n\t\t\t\t\tlocalStorage.setItem('team', '3');\r\n\t\t\t\t}\r\n\t\t\t})\r\n\r\n\t\t\t// airdrop modal animation\r\n\t\t\t\r\n\t\t\tairdrop_animate = function(){\r\n\t\t\t\t$(\"#airdrop row col-6\").animate({bottom: \"-30px\"}, \"fast\", function(){\r\n\t\t\t\t\t$(this).removeAttr('style');\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\t\r\n\t\t// bash\r\n\t\t$(\"#terminal\").click(function(){\r\n\t\t\t$(\".commandInput\").focus();\r\n\t\t})\r\n\t\t$(\"#commandLine li input\").val('');\r\n\t\t$(\"#commandLine\").on(\"keypress\", \".commandInput\", function(e){\r\n\t\t\tif(e.which == 13){\r\n\t\t\t\tvar command = $(\"input.active\").val().toLowerCase();\r\n\t\t\t\tif(/^[a-zA-Z0-9- ?.=/]*$/.test(command) == false){\r\n\t\t\t\t\tcommand = \"syntax_error\"\r\n\t\t\t\t}\r\n\t\t\t\t$(\"#commandLine li input\").each(function(){\r\n\t\t\t\t\t$(this).removeClass(\"active\");\r\n\t\t\t\t\t$(this).attr(\"disabled\", true);\r\n\t\t\t\t});\r\n\t\t\t\tswitch(command){\t\t\t\t\t\t\r\n\t\t\t\t\t// include more cases for custom commands here\r\n\t\t\t\t\tcase \"\":\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"help\":\r\n\t\t\t\t\tcase \"?\":\r\n\t\t\t\t\t\t$(\"#commandLine\").append('<li class=\"prompt\"><span class=\"ps1 noselect good\">&rarr; List of available commands</span>');\r\n\t\t\t\t\t\t$(\"#commandLine\").append('<li class=\"prompt\"><span class=\"ps1 noselect good\">help, ?: display this message</span>');\r\n\t\t\t\t\t\t$(\"#commandLine\").append('<li class=\"prompt\"><span class=\"ps1 noselect good\">clear, cls: clear lines</span>');\r\n\t\t\t\t\t\t$(\"#commandLine\").append('<li class=\"prompt\"><span class=\"ps1 noselect good\">uname: show kernel information</span>');\r\n\t\t\t\t\t\t$(\"#commandLine\").append('<li class=\"prompt\"><span class=\"ps1 noselect good\">exit: quit this application</span>');\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"syntax_error\":\r\n\t\t\t\t\t\t$(\"#commandLine\").append('<li class=\"prompt\"><span class=\"ps1 noselect error\">&rarr; syntax error</span>');\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase \"uname\":\r\n\t\t\t\t\tcase \"uname -a\":\r\n\t\t\t\t\t\t$(\"#commandLine\").append('<li class=\"prompt\"><span class=\"ps1 noselect good\">&rarr; FomoOS jekyllisland 2.3.2-180708 #232-TeamJUST x86_256 GAHNOO/Fomo</span>');\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"uptime\":\r\n\t\t\t\t\t\t$(\"#commandLine\").append('<li class=\"prompt\"><span class=\"ps1 noselect good\">&rarr; TIME up DIFFERENCE TO LAUNCH, USERS users, load average: 0,89, 0,92, 0,90</span>');\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"clear\":\r\n\t\t\t\t\tcase \"cls\":\r\n\t\t\t\t\t\t$(\".prompt\").each(function(){\r\n\t\t\t\t\t\t\t$(this).remove();\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"exit\":\r\n\t\t\t\t\tcase \"quit\":\r\n\t\t\t\t\t\t$(\"#commandLine li input\").val('');\r\n\t\t\t\t\t\t$(\".prompt\").each(function(){\r\n\t\t\t\t\t\t\t$(this).remove();\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t$(\"#terminal\").css({\r\n\t\t\t\t\t\t\tvisibility: \"hidden\",\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tdefault: // defaults to not found\r\n\t\t\t\t\t\t$(\"#commandLine\").append('<li class=\"prompt\"><span class=\"ps1 noselect error\">&rarr; \"' + command + '\" command not found</span>');\r\n\t\t\t\t}\r\n\t\t\t\t$(\"#commandLine\").append('<li class=\"prompt\"><span class=\"ps1 noselect\">player@jekyllisland ~ $ <input type=\"text\" class=\"commandInput active\"></li>'); \r\n\t\t\t\t$(\".commandInput.active\").focus();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t })\r\n\t
  698. </script>\r\n\r\n
  699. </state-play>\r\n\r\n
  700. <state-airdrop>\r\n\t
  701. <!-- airdrop custom modal popup -->\r\n
  702. <div class=\ "container\" id=\ "airdrop\" style=\ "z-index: 999; display:none;\">\r\n
  703. <div class=\ "row\">\r\n
  704. <div class=\ "col-6\" style=\ "position: fixed; bottom:0; left:25%;\">\r\n
  705. <div class=\ "jumbotron jumbotron-adjust jumboshade bg-dark text-light\">\r\n
  706. <div class=\ "row\">\r\n
  707. <div class=\ "col\">\r\n
  708. <div class=\ "row\">\r\n
  709. <div class=\ "col\">\r\n
  710. <p class=\ "lead\">Airdrop: You just hit the jackpot baby,</p>\r\n
  711. </div>\r\n
  712. </div>\r\n
  713. <div class=\ "row\">\r\n
  714. <div class=\ "col\">\r\n
  715. <p class=\ "font-weight-light string\">You've drained at least 25% of the airdrop POT. (PLACEHOLDER)</p>\r\n
  716. </div>\r\n
  717. </div>\r\n
  718. </div>\r\n
  719. <div class=\ "col-auto\">\r\n <i class=\ "fas fa-parachute-box airdropicon ethglow-its-okay-justo\"></i>\r\n </div>\r\n
  720. </div>\r\n
  721. </div>\r\n
  722. </div>\r\n
  723. </div>\r\n
  724. </div>\r\n
  725. <!-- /airdrop custom modal popup -->\r\n
  726. <script>
  727. \
  728. r\ n\ t$this = this\ r\ n\ t$this.on('mount', e => {\
  729. r\ n\ t\ tconsole.log('mounted')\ r\ n\ t
  730. })\ r\ n
  731. </script>\r\n
  732. </state-airdrop>\r\n\r\n\r\n\r\n"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement