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

completed  =  0;
                       $('#result').html('');
                 };

                    function  enableControl()  {
                       $('#control').attr("disabled",  false);
                       state  =  1;
                 }
                    function  disableControl()  {
                       $('#control').attr("disabled",  true);
                       state  =  0;
                 }
                 function  printResult()  {
                       var  res;
                            if(win[a.pos]  ===  win[b.pos]  &&  win[a.pos]  ===  win[c.pos])  {
                         if(win[a.pos]  ==  2){
                            swal({
                               title  :  "JACKPOT!!",

                               //text  :  "",
                               showConfirmButton  :  false,
                               imageUrl:  "images/JACKPOT.png"
                            });
                                        Money  +=  1000*77;
                               setTimeout(function()  {
                                    webiopi().digitalWrite(6, 1);
                                    console.log('1');
                                    setTimeout(function()  {
                                         webiopi().digitalWrite(6,  0);
                                         console.log('2');
                                         setTimeout(function() {
                                               webiopi().digitalWrite(6, 1);
                                               console.log('3');
                                                        },  200);
                                                },  200);
                                        },  1000);3

                         } else  {
                            swal({
                               title  :  "YOU  WIN!!",
                               //text  :  "",
                               showConfirmButton  :  false
                            },setTimeout(function(){



                                                         -  415  -
   417   418   419   420   421   422   423   424   425   426   427