diff --git a/yuto/game/judge.js b/yuto/game/judge.js new file mode 100644 index 0000000..b008179 --- /dev/null +++ b/yuto/game/judge.js @@ -0,0 +1,19 @@ +function answer1(){ + const nazo1 = document.getElementById("nazo1"); + + if(nazo1.answer.value == "さかた"){ + document.write("正解!!"); + }else{ + document.write("不正解…"); + } +} + +function answer2(){ + const nazo2 = document.getElementById("nazo2"); + + if(nazo2.answer.value == "しょうない"){ + document.write("正解!!"); + }else{ + document.write("不正解…"); + } +}