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

},  1000);
                                Money  +=  2000;
                       }  else {

                         setTimeout(function() {
                               webiopi().digitalWrite(13, 1);
                               console.log('1');
                               setTimeout(function()  {
                                    webiopi().digitalWrite(13, 0);
                                    console.log('2');
                                    setTimeout(function()  {
                                         webiopi().digitalWrite(13,  1);
                                         console.log('3');
                                                },  200);
                                        },  200);
                                },  1000);
                                Money  +=  3000;
                       }

                       setTimeout(function(){
                         location.href="/";
                            },2000)


                       };
                       function senddata()  {
                         var data  =  {UID  : UID,  Nick :  Nick,  Money  : Money};
                         data  =  JSON.stringify(data);
                         $.ajax({
                            type  :  "GET",
                            url:  "/GameDone",
                            data: data,
                            dataType: 'json',
                            success :  function(){console.log("SUCCESS!!");}
                         });
                       }
                       return Game;

                 })();
                 ShellGame.Game  =  Game;
            })(ShellGame  ||  (ShellGame  =  {}));
            });







                                                         -  449  -
   451   452   453   454   455   456   457   458   459   460   461