Page 448 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 448

if  (!isNaN(ex.val()))  {
                                                 console.log("1");
                                                 if  (ex.val()  >  game.CashInBank  ||  ex.val()  <  1)  {

                                                       console.log("2");
                                                       $("#placeBetTextBox").css({
                                                            "border": "1px  solid  red",
                                                            "color":  "red"
                                                       });
                                                 } else  {
                                                       console.log("3");
                                                       $("#placeBetTextBox").css({
                                                            "border": "1px  solid  white",
                                                            "color":  "white"
                                                       });
                                                       textBoxIsValid = true;
                                                 }
                                            }  else  {

                                                 console.log("4");
                                                 $("#placeBetTextBox").css({
                                                       "border":  "1px solid  red",
                                                       "color": "red"
                                                 });
                                            }
                                         }
                                         if(gamestate==1){
                                            $("#startButton").click();
                                         }
                                         if(gamestate==2){
                                            $("#middlecup").click();
                                         }
                                            break;
                                       }


                                 case  68:    //d

                                       {
                                            if(gamestate==0){
                                         $("button.confirm").click();}
                                            if(gamestate==1){
                                               $("#startButton").click();
                                            }



                                                         -  441  -
   443   444   445   446   447   448   449   450   451   452   453