From: MA Beaudet Date: Fri, 5 Nov 2021 10:05:03 +0000 (+0100) Subject: chore(web): remove comments from index.js X-Git-Url: https://git.beaudet.xyz/?a=commitdiff_plain;h=200b85fcde4f274bd67969518f50269beca28604;p=poker-eval.git chore(web): remove comments from index.js --- diff --git a/static/index.js b/static/index.js index c6ebd3f..4f6d712 100644 --- a/static/index.js +++ b/static/index.js @@ -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 + "
"; -// 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", -// ]; -