nearest.html 641 B

123456789101112131415161718
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Pokemon By Color</title>
  6. <script src="nearest.js"></script>
  7. </head>
  8. <body>
  9. <noscript>Requires javascript</noscript>
  10. <div id="root">
  11. <div>Click random, or enter six digit hex code (no #) and press enter</div>
  12. <button onclick="onRandomColor()">Random color</button>
  13. <input id="color-input" onchange="onColorChange()" />
  14. <img src="https://img.pokemondb.net/sprites/sword-shield/icon/bulbasaur.png" />
  15. <ul id="best-list"></ul>
  16. </div>
  17. </body>
  18. </html>