Simple block halving countdown website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8"/>
  5. <meta name="author" content="Trey Del Bonis"/>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  7. <title>Bitcoin Halving Countdown</title>
  8. <script src="main.js"></script>
  9. <link rel="stylesheet" type="text/css" href="style.css"/>
  10. </head>
  11. <body onload="init();">
  12. <div id="content">
  13. <div id="heading">
  14. <h1>Bitcoin Block Halving Countdown!</h1>
  15. <h3><span id="blocksleft">...</span> blocks left</h3>
  16. <h3><span id="timeleft">... remaining</span></h3>
  17. <h3 id="halftimectr"><span id="halftime">ETA ...</span></h3>
  18. <p>
  19. Click/tap on the rows for more statistics - <a href="#faq">FAQ</a>
  20. </p>
  21. </div>
  22. <div id="blocklist">
  23. <span id="blocklistloading">Loading blocks...</span>
  24. </div>
  25. </div>
  26. <hr/>
  27. <div id="faq">
  28. <h2 style="text-align: center;">Halving FAQ</h2>
  29. <p>Q: What's a halving? Does that mean I'll have twice/half as many coins?</p>
  30. <p>
  31. A: No, a reward halving is when the fixed subsidy for miners gets cut in
  32. half. This has happened twice before, and will happen many more times
  33. until all bitcoins have been mined (21 million).
  34. </p>
  35. <p>
  36. Q: Who decides when halvings happen? Can this be stopped?
  37. </p>
  38. <p>
  39. A: Satoshi embedded the halving algorithm into the consensus protocol of
  40. the Bitcoin network. It can only be changed if every user of the
  41. network decided to change it as part of a hard fork. One of Bitcoin's
  42. core offerings is its fixed and unchangable monetary policy, so it's
  43. <em>exceedingly unlikely</em> that it is going to be changed.
  44. <br/><br/>
  45. The reward function (in Bitcoins) is
  46. <code>r(h) = 50 / (2 ** floor(h / 210000))</code>, where h is block height.
  47. </p>
  48. <p>
  49. Q: I noticed some of your measurments here are different than those on
  50. other countdown clocks. Why is that?
  51. </p>
  52. <p>
  53. A: Since mining is a probabilistic process, it's impossible to predict
  54. when new blocks will be mined. <em>On average</em>, new blocks are
  55. mined every 10 minutes, but this can vary a lot. So it's hard to
  56. predict <em>exactly</em> when block number 630000 will be mined, but all
  57. answers will converge when the time comes.
  58. </p>
  59. <p>
  60. Q: Can I use this event to make money?
  61. </p>
  62. <p>
  63. A: Probably not. But it's been observed that crypto bull markets have
  64. happened in the (roughly) year after each of the previous two halvings,
  65. so take that how you will
  66. </p>
  67. <p>
  68. Q: Bear markets? Does that mean I should buy Bitcoin?
  69. </p>
  70. <p>
  71. A: That's up to you. I'm not your financial advisor. Don't invest what
  72. you can't afford to lose.
  73. <!-- But also, buy Bitcoin! -->
  74. </p>
  75. <p>
  76. Q: I have another question for you
  77. </p>
  78. <p>
  79. A: I can be contacted at the following addresses...
  80. <ul>
  81. <li>Matrix: @trey:foobar.style</li>
  82. <li>IRC on Freenode: treyzania</li>
  83. <li>Briar: <a href="briar://ac22od43vo66zsclxawfcd63ltweyfbfbqgk2w67vswpxshuwckr6">briar://ac22od43vo66zsclxawfcd63ltweyfbfbqgk2w67vswpxshuwckr6</a></li>
  84. </ul>
  85. </div>
  86. <hr/>
  87. <div id="footer">
  88. Made by <a href="https://tr3y.io">Trey</a> - <a href="https://code.tr3y.io/treyzania/minihalf">Source</a>
  89. <div id="donations">
  90. <p>BTC bc1qj4tw5zuw3cl2wy5jw0lt4jghksrex8dnndp3vn</p>
  91. <p>BTC legacy 3MgDA5Ukc6waaaK6BVndLdQBtKnYhZHuTK</p>
  92. <p>DOGE DBDgYidXBpSCkFhhAZV8Lfp4NuMDD4SNxk</p>
  93. <p>ETH 0x08CA026673F0dD458fef8d7f9Df72Ad105558eA3</p>
  94. </div>
  95. </div>
  96. </body>
  97. </html>
  98. <!--
  99. The student asked his master, "Is this good for Bitcoin?".
  100. The master, looking up from his tea towards the rising sun, said,
  101. "Yes, this is good for Bitcoin."
  102. And it was good.
  103. -->