﻿$(document).ready(function(){
/*
        $.post("/PageService/Common.asmx/title",function(data){
            alert(data);
        });
    

*/
        Gets();
        window.setInterval(Gets,3000);
       
        function Gets(){
                     $.ajax({
                    url:'/PageService/Common.asmx/SummaryPoint21',
                    data:'{}',
                    type:'POST',
                    dataType:'json',
                    contentType: "application/json;utf-8",
                    success: function(data){
                           
                          var summary = eval('('+data.d+')');
                          $(".bjBankerNet").text(summary["bjBankerNet"]);
                          $(".bjBankerCount").text(summary["bjBankerCount"]);
                          $(".bjPlayerNet").text(summary["bjPlayerNet"]);
                          $(".bjPlayerCount").text(summary["bjPlayerCount"]);
                    },
                    error:function(xml,status){
                         if(status=='error'){
                             try{
                             var json = eval('(' + xml.responseText + ')');
                            // alert(json.Message+'\n'+json.StackTrace);
                             }catch(e){}
                         }else{
                          //   alert(status);
                         }
                       }
                });
            }  
});
