xxhash.html 769 B

1234567891011121314151617181920212223
  1. <html>
  2. <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
  3. <body>
  4. <div>
  5. Result:
  6. <div id='input'></div>
  7. <div id='seed'></div>
  8. <div id='xxhash'></div>
  9. <div id='xxhash64'></div>
  10. </div>
  11. <script type="text/javascript" src="../build/xxhash.min.js"></script>
  12. <script type="text/javascript">
  13. var input='heiå'
  14. var seed = '0'
  15. var h = XXH.h32( input, seed ).toString(16)
  16. var h64 = XXH.h64( input, seed ).toString(16)
  17. document.getElementById('input').innerHTML = "input ='" + input + "'"
  18. document.getElementById('seed').innerHTML = "seed='" + seed + "'"
  19. document.getElementById('xxhash').innerHTML = "xxHash='" + h + "'"
  20. document.getElementById('xxhash64').innerHTML = "xxHash64='" + h64 + "'"
  21. </script>
  22. </body>
  23. </html>