chore(web): remove comments from index.js
authorMA Beaudet <ma@beaudet.xyz>
Fri, 5 Nov 2021 10:05:03 +0000 (11:05 +0100)
committerMA Beaudet <ma@beaudet.xyz>
Fri, 5 Nov 2021 10:05:03 +0000 (11:05 +0100)
static/index.js

index c6ebd3f..4f6d712 100644 (file)
@@ -27,35 +27,3 @@ const VALUE_STR = [
   "One Pair",
   "High Card",
 ];
-
-// import { eval_from_str, hand_rank } from "poker-eval";
-
-// const evalButton = document.getElementById("eval-button");
-// // const evalForm = document.getElementById("eval-form");
-// // evalForm.addEventListener("click", event => {
-// //  event.preventDefault();
-// // })
-
-// evalButton.addEventListener("click", _ => {
-//   const inputText = document.getElementById("eval-input").value;
-//   const resultDiv = document.getElementById("result");
-
-//   const result = eval_from_str(inputText);
-//   const rank = hand_rank(result);
-//   resultDiv.innerHTML = "Score: " + result + "<br />";
-//   resultDiv.innerHTML += "Hand value: " + VALUE_STR[rank];
-// });
-
-// const VALUE_STR = [
-//     "",
-//     "Straight Flush",
-//     "Four of a Kind",
-//     "Full House",
-//     "Flush",
-//     "Staight",
-//     "Three of a Kind",
-//     "Two Pair",
-//     "One Pair",
-//     "High Card",
-// ];
-