You are on page 1of 24

Request Head:

POST /api2/user/info.json HTTP/1.1


Host: web.ctree.id
Connection: keep-alive
Content-Length: 0
Accept: application/json, text/javascript, */*; q=0.01
Origin: http://web.ctree.id
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Linux; Android 8.0.0; SM-J600G Build/R16NW; wv)
AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/68.0.3440.91 Mobile
Safari/537.36 Cashtree/23040 com.vitiglobal.cashtree
Referer: http://web.ctree.id/app/cashview?lc=in_ID&v=1071
Accept-Encoding: gzip, deflate
Accept-Language: id-ID,en-US;q=0.9
Cookie: 494668b4c0ef4d25bda4e75c27de2817=3674205c-e6c2-48f3-a4bf-b1944920447d
%3A2%3A2; _ga=GA1.2.287435219.1544838915; _gid=GA1.2.549251134.1544838915;
mmses=ZV6suqBmPBmTaqxRz4vb2rGHpNlng8jBtgYpiIyXDsEa6skpHH11vc2r5j4MQ9T7PCkaW5ccDz+h3
FNUZw6hbg==

Body:

Response Head:

HTTP/1.1 200 OK
Content-Encoding: gzip
Content-Type: application/json
Date: Sat, 15 Dec 2018 02:20:23 GMT
Server: nginx
Vary: Accept-Encoding
Content-Length: 363
Connection: keep-alive

Body:

{
"code":0,
"result":{
"cash_status":{
"total":320,
"earn_today":320
},
"info":{
"u":16911398,
"id":"",
"inv_code":"dec3a7c",
"reg_tm":1544838368,
"ph":"089679885491",
"lock_screen":true,
"allow_noti":true,
"opname":"Tri",
"opcode":"51089",
"gender":"U",
"birth":""
},
"lv":"2.2.9.9",
"notice_last":1543574383,
"token":"cWDRV65i2l0:APA91bE5yye66CkpKw6LKCkNZ9BlAje76ptT8hdT3ls7zIYZTZ
-3Z6gt_6BffXoNoQLrEByMC_FP69TjLVvXcoI6OW0UfD9GsijCAWTH9LyuOzG_H6r-
Lroi8gHtPn26z_w1IAEGLbJs"
},
"msg":""
}

Request Head:

POST /app/cashplus/game/stat HTTP/1.1


Host: web.ctree.id
Connection: keep-alive
Content-Length: 8
Accept: application/json, text/javascript, */*; q=0.01
Origin: http://web.ctree.id
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Linux; Android 8.0.0; SM-J600G Build/R16NW; wv)
AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/68.0.3440.91 Mobile
Safari/537.36 Cashtree/23040 com.vitiglobal.cashtree
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: http://web.ctree.id/app/cashplus?lc=in_ID&v=609
Accept-Encoding: gzip, deflate
Accept-Language: id-ID,en-US;q=0.9
Cookie: 494668b4c0ef4d25bda4e75c27de2817=3674205c-e6c2-48f3-a4bf-b1944920447d
%3A2%3A2; _ga=GA1.2.287435219.1544838915; _gid=GA1.2.549251134.1544838915;
mmses=ZV6suqBmPBmTaqxRz4vb2rGHpNlng8jBtgYpiIyXDsEa6skpHH11vc2r5j4MQ9T7PCkaW5ccDz+h3
FNUZw6hbg==

Body:

w_used=f

Response Head:

HTTP/1.1 200 OK
Content-Encoding: gzip
Content-Type: application/json
Date: Sat, 15 Dec 2018 02:20:29 GMT
Server: nginx
Vary: Accept-Encoding
X-CT-App: 1544840429
Content-Length: 204
Connection: keep-alive

Body:

{
"code":0,
"result":{
"week":"201850",
"wlabel":"Sesi 50",
"wenc":"ZNI1N71Oiy2WBvuZZmC50DtsnCN5+U053SN1eDELNEE=",
"remain":139170,
"coupon":0,
"phone":"089679885491",
"bio":{
"job":"1",
"bank":"99",
"birth":0,
"gender":0,
"address":"15"
}
},
"msg":""
}

Request Head:

GET /app/game/ab/v2?lc=in_ID&inst_type=297 HTTP/1.1


Host: web.ctree.id
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Linux; Android 8.0.0; SM-J600G Build/R16NW; wv)
AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/68.0.3440.91 Mobile
Safari/537.36 Cashtree/23040 com.vitiglobal.cashtree
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0
.8
accept-language: in_ID
Accept-Encoding: gzip, deflate
Cookie: 494668b4c0ef4d25bda4e75c27de2817=3674205c-e6c2-48f3-a4bf-b1944920447d
%3A2%3A2; _ga=GA1.2.287435219.1544838915; _gid=GA1.2.549251134.1544838915;
mmses=ZV6suqBmPBmTaqxRz4vb2rGHpNlng8jBtgYpiIyXDsEa6skpHH11vc2r5j4MQ9T7OpOfIJAl2DaC4
P2CPLrnwQ==
X-Requested-With: com.vitiglobal.cashtree

Body:

Response Head:

HTTP/1.1 200 OK
Content-Encoding: gzip
Content-Type: text/html; charset=UTF-8
Date: Sat, 15 Dec 2018 02:20:32 GMT
Server: nginx
Vary: Accept-Encoding
X-CT-App: 1544840432
Content-Length: 17922
Connection: keep-alive

Body:

<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta id="viewport" name="viewport" content="width=360">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="apple-mobile-web-app-capable" content="yes" />

<link href="/static/favicon.png" type="image/x-icon" rel="icon" />

<meta name="keywords" content="Cashtree, Pulsa, Hadiah Gratis, Reward, AD,


Indonesia" />
<meta name="description" content="Cashtree: Pulsa &amp; Hadiah Gratis, Reward
app terpopuler wajib punya yang dimiliki oleh 90% anak muda di Korea kini hadir di
Indonesia!" />

<title>
Tebak OX : Cashtree </title>

<style type="text/css" media="all"></style>


<style type="text/css" media="all">
@font-face{font-family:'Open Sans';font-style:normal;font-
weight:400;src:local('Open
Sans'),local('OpenSans'),url(//cors.ctree.id/fonts/OpenSans.woff2)
format('woff2')}@font-face{font-family:'Open Sans';font-style:normal;font-
weight:600;src:local('Open
Sans'),local('OpenSans'),url(//cors.ctree.id/fonts/OpenSans-Semibold.woff2)
format('woff2')}@font-face{font-family:'Open Sans';font-style:normal;font-
weight:700;src:local('Open
Sans'),local('OpenSans'),url(//cors.ctree.id/fonts/OpenSans-Bold.woff2)
format('woff2')}html,body{margin:0 auto;padding:0;height:100%;font-family:'Open
Sans','Droid Sans',sans-serif;-webkit-user-select:none;-moz-user-select:none;-ms-
user-select:none;user-select:none;color:#555;font-size:14px;-webkit-tap-highlight-
color:rgba(0,0,0,0)}body{width:360px;overflow:auto;margin:0 auto}*{background-
clip:padding-box;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-text-
size-adjust:auto;text-size-adjust:auto}input,textarea,select{font-family:'Open
Sans',sans-serif;-webkit-user-select:all;-moz-user-select:all;-ms-user-
select:all;user-select:all}a{text-
decoration:none;color:#555}a:focus,a:visited,a:hover{text-
decoration:none}.bold{font-weight:700}.bold2{font-weight:200}.bold3{font-
weight:300}.bold5{font-weight:500}.bold6{font-weight:600}.bold9{font-
weight:900}.bg-key{background-color:#f03b44;color:white}.text-
key{color:#FF2D55}.text-center{text-align:center}.text-right{text-
align:right}.pull-left{float:left}.pull-
right{float:right}nav.top{height:56px;overflow:hidden;background-
color:white;position:fixed;left:0;top:0;right:0;width:100%;z-index:9999;box-
shadow:0 2px 4px 0 rgba(0,0,0,.08)}nav.dark{background-
color:#555;color:white}nav.top.static{position:inherit;box-shadow:none}nav.top
h2{margin:0;padding:0;height:56px;color:#282828;font-weight:400;font-
size:22px;letter-spacing:-.7px;text-align:left;white-space:nowrap}nav.dark
h2{color:white}nav.top h2 a.back,nav.top h2 a.menu{display:inline-block;padding:0
35px 0 20px;width:17px;height:56px;text-indent:-1000px;overflow:hidden;vertical-
align:top;background:url('data:image/svg+xml;utf8,<svg width="16px" height="16px"
viewBox="20 44 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg"><polygon
id="Shape" stroke="none" fill="#555" fill-rule="evenodd" points="36 51 23.8 51 29.4
45.4 28 44 20 52 28 60 29.4 58.6 23.8 53 36 53"></polygon></svg>') no-repeat 20px
center}nav.dark h2 a.back{background-image:url('data:image/svg+xml;utf8,<svg
width="16px" height="16px" viewBox="20 44 16 16" version="1.1"
xmlns="http://www.w3.org/2000/svg"><polygon id="Shape" stroke="none" fill="#fff"
fill-rule="evenodd" points="36 51 23.8 51 29.4 45.4 28 44 20 52 28 60 29.4 58.6
23.8 53 36 53"></polygon></svg>')}nav.top h2 a.menu{background-
image:none;position:absolute;top:0;right:0}nav.top h2 span{vertical-
align:top;display:inline-block;line-height:58px;overflow:hidden;text-
overflow:ellipsis;width:240px}.after-nav{margin-top:56px;overflow:hidden}.after-
rolling{margin-top:92px}.logo{width:36px;height:43px;display:inline-
block;background-size:36px 43px;background:url('data:image/svg+xml;utf8,<svg
xmlns="http://www.w3.org/2000/svg" width="36" height="43" viewBox="56 80 36
43"><path fill="#D3D3D8" fill-rule="evenodd" stroke="#D3D3D8" stroke-width=".5"
d="M86.005 92.23c1.227 1.392 2.44 2.8 3.28 4.08 1.167 1.798 1.788 3.946 1.708
6.19-.094 2.624-1.22 5.14-3.17 7.09-1.95 1.948-4.468 3.07-7.09
3.162-.13.005-.257.007-.385.007-.833 0-1.652-.1-
2.485-.3-.144-.036-.288-.074-.493-.13-.14-.04-.277-.086-.466-.15-.148-.05-.294-.104
-.455-.167-.06-.02-.11-.047-.17-.07v8.277c0 1.294-1.05 2.34-2.34 2.34s-2.34-1.046-
2.34-2.34v-
8.23l-.15.06-.11.04c-.178.067-.35.128-.59.203l-.16.045c-.08.024-.16.047-.247.07l-.1
15.03c-.057.01-.113.026-.17.04-.906.21-1.843.3-2.798.266-2.622-.09-5.14-1.213-7.09-
3.16-1.95-1.95-3.076-4.467-3.17-7.09-.104-2.914.973-5.66 2.89-7.693.834-.88 1.826-
1.626 2.947-2.192.317-.18.53-.517.53-.924-.017-.335-.02-.563-.016-.84.02-.97.176-
1.926.45-2.836.496-1.64 1.388-3.153 2.627-4.41 1.93-1.95 4.488-3.072 7.206-3.164
3.537-.118 6.894 1.518 8.977 4.38.76 1.045.53 2.51-.514 3.27-1.048.76-2.51.53-
3.27-.515-1.17-1.603-3.05-2.52-5.037-2.454-1.516.05-2.946.682-4.027 1.776-1.08
1.098-1.695 2.537-1.728 4.05-.007.24.002.476.03.798.038.234.06.476.06.722 0 1.826-
1.1 3.394-2.672 4.08-.1.052-.197.102-.297.15-2.2 1.01-3.56 3.223-3.474 5.644.105
2.954 2.79 5.636 5.744 5.74 1.33.045 2.605-.337 3.73-1.14.185-.152.384-.29.597-.414
1.566-.9 3.452-.744 4.83.25.1.06.2.13.3.2 1.075.77 2.35 1.15 3.68 1.104 2.953-.103
5.637-2.785 5.743-5.74.04-1.095-.148-2.232-.713-3.18-.55-.922-1.345-1.73-1.955-
2.613-1.014-1.46-1.25-3.2-.902-4.93.07-.35.36-1.24.82-
1.513.133-.08.378-.16.69.19l1.757 1.945z"/></svg>') no-
repeat}.eol{width:27px;height:32.25px;background-size:27px
32.25px;display:block;margin:20px auto;opacity:.5}.fixed-
loading{display:none;background-color:rgba(0,0,0,.6);position:fixed;z-
index:9998;left:0;right:0;top:0;bottom:0}.fixed-loading
.wrap{position:absolute;top:50%;left:50%;width:200px;height:80px;font-
size:12px;margin-left:-100px;margin-top:-40px;text-
align:center;color:rgba(255,255,255,.5)}.progress{text-align:center;padding:10px
0}.progress:after{content:'Please Wait';color:#aaa}.rlink:after,.rlink-
black:after,.rlink-dark:after{content:' ';width:6px;height:11px;margin-
left:5px;margin-top:-1px;vertical-align:middle;display:inline-
block;opacity:.5;background:url('data:image/svg+xml;utf8,<svg width="6px"
height="11px" viewBox="30 1 6 11" version="1.1"
xmlns="http://www.w3.org/2000/svg"><path d="M30,1.94736842 L30.9473684,1
L36,6.05263158 L30.9473684,11.1052632 L30,10.1578947 C30,10.1578947
34.0748598,6.235558 34.0748598,6.05070987 C34.0748598,5.81450537 30,1.94736842
30,1.94736842 Z" stroke="none" fill="#FFFFFF" fill-rule="evenodd"></path></svg>')
no-repeat}.rlink-dark:after{background-image:url('data:image/svg+xml;utf8,<svg
width="6px" height="11px" viewBox="30 1 6 11" version="1.1"
xmlns="http://www.w3.org/2000/svg"><path d="M30,1.94736842 L30.9473684,1
L36,6.05263158 L30.9473684,11.1052632 L30,10.1578947 C30,10.1578947
34.0748598,6.235558 34.0748598,6.05070987 C34.0748598,5.81450537 30,1.94736842
30,1.94736842 Z" stroke="none" fill-opacity="1" fill="#a6a6a6" fill-
rule="evenodd"></path></svg>')}.rlink-black:after{background-
image:url('data:image/svg+xml;utf8,<svg width="6px" height="11px" viewBox="30 1 6
11" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M30,1.94736842
L30.9473684,1 L36,6.05263158 L30.9473684,11.1052632 L30,10.1578947 C30,10.1578947
34.0748598,6.235558 34.0748598,6.05070987 C34.0748598,5.81450537 30,1.94736842
30,1.94736842 Z" stroke="none" fill-opacity="1" fill="#979797" fill-
rule="evenodd"></path></svg>')}.num-up:before{content:'
';width:10px;height:7px;margin-right:7px;vertical-align:middle;display:inline-
block;background:url('data:image/svg+xml;utf8,<svg width="10px" height="7px"
viewBox="0 4 10 7" version="1.1" xmlns="http://www.w3.org/2000/svg"><polygon
stroke="none" fill="#ff2d55" fill-rule="evenodd" points="0 10.25 5 4 10
10.25"></polygon></svg>') no-repeat}.num-up-
red:before{background:url('data:image/svg+xml;utf8,<svg width="10px" height="7px"
viewBox="0 4 10 7" version="1.1" xmlns="http://www.w3.org/2000/svg"><polygon
stroke="none" fill="#f03b44" fill-rule="evenodd" points="0 10.25 5 4 10
10.25"></polygon></svg>') no-repeat}.sup-rp:before{content:'Rp ';font-
weight:500;vertical-align:super;font-size:50%;margin-left:-25px;top:-
1px;position:relative}.rp:before{content:'Rp ';font-weight:300}.btn{background-
color:transparent;border:none;text-align:center;padding:0 20px;font-size:16px;font-
weight:600;letter-spacing:-1px;line-height:38px;border-
radius:100px}.btn:disabled{opacity:.5}.btn-lg{font-size:18px;font-
weight:700;color:#f03b44;line-height:50px;padding:0 40px}.btn-key{border:solid 1px
#ffccce;color:#f03b44}.btn-fill{object-fit:contain;border-radius:7px;background-
color:#ff4b6e;background-repeat:no-repeat;background-image:linear-
gradient(100deg,#ff4b6e,#ff4784);color:white;font-weight:400;letter-spacing:0}.btn-
fill2{border-radius:7px;background-color:#929cff;background-repeat:no-
repeat;background-image:linear-gradient(281deg,#929cff,#b87cf9);border:solid .5px
#d5d5d5;object-fit:contain;color:white;font-weight:400;letter-spacing:0}.btn-
fill.btn-lg,.btn-fill2.btn-lg{line-height:57px}.btn-
block{display:block;padding:0;width:100%}section{clear:both}section>.notice{backgro
und-color:#f9f9f9;padding:10px;text-align:center;font-
size:12px;color:gray}section>.title{font-size:13px;height:18px;font-
weight:600;letter-spacing:-.5px;color:#a6a6a6;display:block;margin:30px 0 12px
16px}section>ul.content{list-style:none;padding:0 15px 0 15px;margin:0;background-
color:white;border-top:1px solid #e6e6e6;border-bottom:1px solid
#e6e6e6}section>ul.content li{padding:19px 0 19px 2px;border-bottom:1px solid
#e6e6e6}section>ul.content li:last-child{border-bottom:none}section>ul.list{list-
style:none;padding:0;margin:0;background-color:white}section>ul.list
li{padding:15px 17px;border-bottom:1px solid #f2f2f2}section>ul.list
.title{margin:0;font-size:15px;line-height:19px;font-weight:400;letter-
spacing:-.4px;color:#555;overflow:hidden;text-overflow:ellipsis}section>ul.list
time,section>ul.list .small{display:block;font-size:12px;line-height:14px;font-
weight:400;letter-spacing:-.5px;color:#a6a6a6;padding-top:2px}.tab-
container{border-top:1px solid #f2f2f2}nav ul.tab{list-
style:none;padding:0;margin:0;overflow:hidden;display:table;width:100%;position:rel
ative}nav .tab li{display:table-cell;text-align:center;border-bottom:1px solid
#f2f2f2;width:1%}nav .tab li a{display:block;padding:0;font-size:14px;font-
weight:500;color:#d5d5d5}nav .tab li a span{display:inline-block;padding:17px 15px
13px;border-bottom:2px solid transparent}nav .tab li.active a span{border-
bottom:2px solid #ff2d55;color:#555;font-weight:600}.tab-content{display:none}.tab-
content>.tab-container{border-top:none}.tab-content
nav ul.tab{background-color:#f9f9f9}.tab-content nav .tab li{border-
bottom:none}.tab-content nav .tab li a span{padding:0 6px;min-
width:90px;margin:12px 0 12px;font-size:14px;line-
height:29px;height:27px;overflow:hidden;font-weight:400;color:silver}.tab-content
nav .tab li:after{content:'
';display:block;position:absolute;overflow:hidden;width:1px;height:27px;background-
color:#e5e5e5;top:12px}.tab-content nav .tab li:first-
child:after{display:none}.tab-content nav .tab li.active a span{background-
color:#ff2d55;color:white}.ad-fb-wd{width:320px;height:50px;margin:0 auto;border-
radius:3px;overflow:hidden;position:relative;box-shadow:0 0 4px 0
rgba(0,0,0,.2)}select{-webkit-appearance:none}.icon-help:before{content:'
';display:inline-block;vertical-align:middle;margin-
right:4px;width:14px;height:13px;background:url('data:image/svg+xml;utf8,<svg
xmlns="http://www.w3.org/2000/svg" viewBox="-532 204 14 13"><path fill="#4A4A4A"
d="M-524.3 208.8c0-.5-.3-.9-.9-.9-.4 0-.8.2-1.1.5l-.6-.5c.4-.5 1-.9 1.8-.9 1 0
1.8.6 1.8 1.6 0 1.3-1.6 1.8-1.4 3.1h-.9c-.2-1.3 1.3-1.9 1.3-2.9zm-1.5
4.6c0-.4.3-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7-.4 0-.7-.3-.7-.7z"
class="st0"/><ellipse cx="-525" cy="210.5" fill="transparent" stroke="#4A4A4A"
class="st2" rx="6" ry="5.9"/></svg>') no-repeat}.blank{padding:20px 20px 30px;text-
align:center;font-size:14px;font-weight:300;line-height:1.29;letter-
spacing:-.5px;color:gray}.blank h3{font-size:18px;font-weight:600;letter-
spacing:-.7px;text-align:center;color:#6a61e7;margin:4px 0 10px}.banner-vp-
wide{width:320px;max-height:50px;overflow:hidden;margin:0
auto}.banner{width:312px;height:86px;overflow:hidden;margin:0 auto 16px;border-
radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.2)}.banner
img{width:312px;height:86px}.col{margin-left:8px}.col .banner,.col .banner
img{width:148px;height:203px}.col .banner{float:left;margin-
left:16px}.col:after{content:' ';clear:both;display:block}.rolling-
notice{background-color:#555;line-height:36px;height:36px;overflow:hidden;text-
align:center;color:white;display:block;font-size:12px;box-shadow:0 2px 4px 0
rgba(0,0,0,.1);position:relative}.rolling-
notice.fixed{position:fixed;left:0;top:56px;right:0;z-index:9998}.rolling-notice
div{height:36px}.rolling-notice span{color:#3ADDFF}.rolling-notice
span.id{color:#FFC620}section.desc{background-color:#f2f2f2;padding:22px 24px;line-
height:1.6}section.desc label{opacity:.8;font-size:12px;font-
weight:700;color:gray}section.desc ul,section.desc ol{padding-
left:10px;opacity:.7;font-weight:200;font-size:10px}.dialog{position:fixed;z-
index:10000;display:none;left:0;top:0;width:100%;height:100%;background-
color:rgba(0,0,0,.7)}.dialog-
body{position:absolute;left:10px;top:50%;width:340px;border-radius:6px;background-
color:#fff;box-shadow:0 2px 4px 0 rgba(0,0,0,.3);text-align:center;padding:24px
24px 86px;font-size:16px;line-height:20px}.dialog-body h2{margin:20px 0 0;padding-
bottom:7px;color:#555;font-size:22px;font-weight:700;line-height:24px;letter-
spacing:-.4px}.dialog-content{padding-top:5px}.dialog-body
.icon{position:absolute;left:50%;top:-33px;margin-left:-
33px;width:66px;height:66px;background-color:#f7ee00;background-repeat:no-
repeat;background-position:center center;border:solid 4px #fff;border-
radius:100px;background-clip:border-box}.dialog-
buttons{position:absolute;bottom:0;left:0;right:0;height:63px;overflow:hidden;borde
r-top:1px solid #d5d5d5}.dialog-buttons
button{height:100%;display:block;float:left;background-
color:white;border:none;border-left:1px solid #d5d5d5;width:100%;font-
size:16px;letter-spacing:-.2px;outline:none}.confirm .dialog-buttons
button{width:50%}.dialog-buttons button{color:#6c59e4;font-weight:700}.confirm
.dialog-buttons button.ok{color:#a6a6a6}.dialog-buttons button:first-child{border-
bottom-left-radius:6px;margin-left:-1px}.dialog-buttons button:last-child{border-
bottom-right-radius:6px}.dialog .icon-info{background-
image:url(/static/img/webapp/cashplus/gc/icon_info.svg)}input::-webkit-input-
placeholder{color:#a6a6a6} </style>
<style type="text/css" media="all">
</style>

<script type="text/javascript"
src="//webcdn.ctree.id/static/jquery/jquery.min.js"></script>
<script type="text/javascript">
(function(__){var _w=window;var _d=document;function _(){}
_.Ready=function(cb){$(_d).ready(cb)};_.Loaded=function(cb){$(_w).load(function()
{setTimeout(function(){cb()},10)})};_.API=function(api,opt,cb){opt=opt||{};var
success=!
1;$.ajax({url:api,method:opt.method||'post',data:opt.data,dataType:opt.dataType||'j
son',success:function(result){success=!
0;if(cb)cb(null,result)},complete:function(res,err){if(success)return;var
errObj=null;try{errObj=JSON.parse(res.responseText)}catch(e){}
if(cb)cb(errObj||{msg:err,code:-1,result:{}})}})};_.UserInfo=function(cb){$
$.API('/api2/user/info.json',{method:'post'},cb)};_.GA=function(sn,id){if(!
window.ga||_.GA.last==sn)return;if(!_.GA.init){_.GA.init=!0;ga('create',id||'UA-
66204428-1','auto')}
_.GA.last=sn;if(sn=='pageview')
ga('send','pageview');else ga('send','event',sn)};_.Bridge=function(cmd,p,cb){var
n='WebViewJavascriptBridge';if(window[n]){try{window[n].callHandler(cmd)}catch(e)
{}}};_.Now=function(){return Math.floor((new
Date().getTime())/1000)};_.LocalPush=function(title,msg,url,at)
{_w.location.href='cashtree://notification?at='+(at?encodeURIComponent(at):'')
+'&title='+(title?encodeURIComponent(title):'')+'&msg='+(msg?
encodeURIComponent(msg):'')+'&url='+(url?
encodeURIComponent(url):'')};_.ShowBanner=function(div,p){if(!_w.VP)
return;div=$(div);_.AD_VP();var size=VP.getRecommendedAdSize(div.addClass('banner-
vp-wide').get(0),
{maxWidth:312,maxHeight:50});VP.ad(div.attr('id'),p,size.width,size.height,
{forceWidth:'100%',hideIframeDuringLoad:!0,callback:function(filled){if(filled)
{div.addClass('banner')}}})};_.AppVer=function(){return
parseInt((((navigator.userAgent||'').match(/Cashtree\/([0-9]+)/)||[])
[1]||'0'))};_.ShowAD=function(onClose,type){if(_w.VP&&!onClose)
{_.AD_VP();VP.interstitial('cashplus-interstitial',{callback:function(res)
{}})}else{if(_w.ga)
ga('send','screenview',
{screenName:'AD/Interstitial/Impression'});_w.location.href='cashtree://link?
page=interstitial&type='+(type||'24')}};_.Loading=function(v){var o=_.Loading;if(!
o.div){o.div=$('<div class="fixed-loading"><div class="wrap"><div
class="logo"></div><br />Please Wait</div></div>').appendTo('body')}
var a=o.div;if(v)
a.fadeIn(200);else a.fadeOut(100)};_.Close=function()
{_w.location.href='cashtree://close'};_.Back=function(forceClose,showAD){if(!
forceClose){var href=location.href;history.back();setTimeout(function()
{if(href==location.href)
_.Close()},500)}else{if(showAD){_.ShowAD(!0);setTimeout(_.Close,500)}else
_.Close()}};_.LoadJS=function(path,cb){$.ajax({url:path,dataType:'script',cache:!
0,success:function(){if(cb)cb()}})};_.Locale=function(){return 'in-
ID'};_.Rolling=function(div,t){setInterval(function()
{div.find('div:visible').slideUp(function(){div.append($
(this))}).next('div').slideDown()},t||3000)};_.Dialog=function(t,b,opt){opt=opt||
{};var o=_.Dialog;if(!t){if(o.div)
o.div.hide();return}
if(!o.div){o.div=$('<div class="dialog"><div class="dialog-body" style="top:
10%;"><div class="icon icon-info"></div><h2 class="title"></h2><div
class="body"></div><div class="dialog-buttons"><button class="ok" type="button"
onclick="$
(this).parents(\'.dialog\').hide();"></button></div></div></div>').appendTo('body')
}
var a=o.div;a.removeClass('confirm').find('button.action').remove();if(opt.confirm)
{var c=opt.confirm;a.addClass('confirm');$('<button class="action"
type="button"></button>').text(c.label).click(function()
{a.hide();c.click()}).appendTo(a.find('.dialog-buttons'))}
a.find('h2.title').html(t||'');a.find('div.body').html(b||'');a.find('.dialog-
buttons .ok').text(opt.ok||'OK');a.show();var b=a.find('.dialog-body');b.css('top',
(a.height()-b.height())/3)};_.Go=function(url){_w.location=url};__.WebApp=__['$
$']=_;_.TabInit=function(){function tabClick(tab){tab=$
(tab);tab.parent().addClass('active').siblings().removeClass('active');var
id=(tab.attr('href')||'').replace(/^#/,'');tab.closest('.tab-container').find('>
.tab-content').hide();$('#tab-'+id+'.tab-content').show();var
parents=tab.parents('.tab-content');if(parents.get(0))
{id=parents.attr('id').replace(/^tab-/,'');tabClick($('ul.tab li a[href="#'+(id)
+'"]'))}}
$('ul.tab li a').click(function(){tabClick(this);return!1});var selected=$('ul.tab
li a[href="'+(_w.location.hash)+'"]').parent();if(!selected.get(0))
selected=$('ul.tab li.active');if(!selected.get(0))
selected=$($('ul.tab li').get(0));var parents=selected.parents('.tab-
content');if(parents.get(0)){var
id=parents.attr('id').replace(/^tab-/,'');tabClick($('ul.tab li a[href="#'+(id)
+'"]'))}
selected.find('a').click();$(_w).on('hashchange',function(e){if(!$('ul.tab li
a[href="'+(_w.location.hash)+'"]').click().get(0)){$($('ul.tab li
a').get(0)).click()}})};_.DB={Get:function(k){try{return
_w.localStorage.getItem(k)}catch(e){return null}},Set:function(k,v){try{return
_w.localStorage.setItem(k,v)}catch(e){}}};var msg={};_.SetLocaleMessage=function(m)
{msg=m||{}};_.AddLocaleMessage=function(k,m){msg[k]=m};_.gt=function(txt)
{txt=msg[txt]||txt;if(arguments.length>1){for(var i=1;i<arguments.length;i++)
txt=txt.replace(/%s/,arguments[i]);}
return txt};_.gtTos=function(txt){txt=msg[txt]||txt;if(arguments.length>1){for(var
i=1;i<arguments.length;i++)
txt=txt.replace(/%s/,arguments[i]);}
return txt};_.FontFit=function(el){if(!el.get(0))return;var p=el.css('white-
space');el.css('white-space','nowrap');var w=el.width();for(var i=4;i-->0;)
{if(w>=el.get(0).scrollWidth)
break;el.css('font-size',parseFloat(el.css('font-size'))-1+'px')}
el.css('white-space',p)};$(_d).ready(function(){$
(_d.documentElement).css('zoom',Math.min(1,_d.body.clientWidth/360));var tm=new
Date().getTime();$(_w).on('focus',function(){var tmp=new Date().getTime();if(tmp-
tm>1000*60*60){_w.location.reload()}
tm=tmp}).on('blur',function(){tm=new Date().getTime()});_.FontFit($('nav.top h2
span'))});_.AD_VP=function(){if(_.AD_VP.init)return;_.AD_VP.init=!0;if(window.VP)
{VP.init({hybrid:!0})}}})
(window);String.prototype.Num=Number.prototype.Num=function(p,fp){var
number=parseFloat(this);if(isNaN(number))number=0;var opt={};var
a='minimumFractionDigits';opt[a]=fp?p:(p||0);var txt=number.toLocaleString($
$.Locale(),opt);if(txt==number.toString()){txt=txt.toString().replace(/\B(?
=(?:\d{3})+(?!\d))/g,'.')}
return txt};String.prototype.nl2br=function(){return this.replace(/\n/g,'<br
/>')};String.prototype.escapeHTML=function(){return
this.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;')};String.protot
ype.lpad=function(len,append){var ret=this;while(ret.length<len)
ret=append+ret;return ret};"use strict";!function(e){function t(){var e=s();e!
==r&&(r=e,u.trigger("orientationchange"))}function a(t,a,o,n){var
i=o.type;o.type=a,e.event.dispatch.call(t,o,n),o.type=i}e.attrFn=e.attrFn||{};var
o=navigator.userAgent.toLowerCase(),n=o.indexOf("chrome")>-
1&&(o.indexOf("windows")>-1||o.indexOf("macintosh")>-1||o.indexOf("linux")>-
1)&&o.indexOf("mobile")<0&&o.indexOf("android")<0,i={tap_pixel_range:5,swipe_h_thre
shold:50,swipe_v_threshold:50,taphold_threshold:750,doubletap_int:500,touch_capable
:"ontouchstart"in window&&!n,orientation_support:"orientation"in
window&&"onorientationchange"in window,startevent:"ontouchstart"in window&&!
n?"touchstart":"mousedown",endevent:"ontouchstart"in window&&!
n?"touchend":"mouseup",moveevent:"ontouchstart"in window&&!
n?"touchmove":"mousemove",tapevent:"ontouchstart"in window&&!
n?"tap":"click",scrollevent:"ontouchstart"in window&&!
n?"touchmove":"scroll",hold_timer:null,tap_timer:null};e.isTouchCapable=function()
{return i.touch_capable},e.getStartEvent=function(){return
i.startevent},e.getEndEvent=function(){return i.endevent},e.getMoveEvent=function()
{return i.moveevent},e.getTapEvent=function(){return
i.tapevent},e.getScrollEvent=function(){return
i.scrollevent},e.each(["tapstart","tapend","tapmove","tap","tap2","tap3","tap4","si
ngletap","doubletap","taphold","swipe","swipeup","swiperight","swipedown","swipelef
t","swipeend","scrollstart","scrollend","orientationchange"],function(t,a)
{e.fn[a]=function(e){return e?this.on(a,e):this.trigger(a)},e.attrFn[a]=!
0}),e.event.special.tapstart={setup:function(){var
t=this,o=e(t);o.on(i.startevent,function n(e){if(o.data("callee",n),e.which&&1!
==e.which)return!1;var c=e.originalEvent,s={position:{x:i.touch_capable?
c.touches[0].screenX:e.screenX,y:i.touch_capable?
c.touches[0].screenY:e.screenY},offset:{x:Math.round(i.touch_capable?
c.changedTouches[0].pageX-o.offset().left:e.pageX-
o.offset().left),y:Math.round(i.touch_capable?c.changedTouches[0].pageY-
o.offset().top:e.pageY-o.offset().top)},time:Date.now(),target:e.target};return
a(t,"tapstart",e,s),!0})},remove:function()
{e(this).off(i.startevent,e(this).data.callee)}},e.event.special.tapmove={setup:fun
ction(){var t=this,o=e(t);o.on(i.moveevent,function n(e){o.data("callee",n);var
c=e.originalEvent,s={position:{x:i.touch_capable?
c.touches[0].screenX:e.screenX,y:i.touch_capable?
c.touches[0].screenY:e.screenY},offset:{x:Math.round(i.touch_capable?
c.changedTouches[0].pageX-o.offset().left:e.pageX-
o.offset().left),y:Math.round(i.touch_capable?c.changedTouches[0].pageY-
o.offset().top:e.pageY-o.offset().top)},time:Date.now(),target:e.target};return
a(t,"tapmove",e,s),!0})},remove:function()
{e(this).off(i.moveevent,e(this).data.callee)}},e.event.special.tapend={setup:funct
ion(){var t=this,o=e(t);o.on(i.endevent,function n(e){o.data("callee",n);var
c=e.originalEvent,s={position:{x:i.touch_capable?
c.changedTouches[0].screenX:e.screenX,y:i.touch_capable?
c.changedTouches[0].screenY:e.screenY},offset:{x:Math.round(i.touch_capable?
c.changedTouches[0].pageX-o.offset().left:e.pageX-
o.offset().left),y:Math.round(i.touch_capable?c.changedTouches[0].pageY-
o.offset().top:e.pageY-o.offset().top)},time:Date.now(),target:e.target};return
a(t,"tapend",e,s),!0})},remove:function()
{e(this).off(i.endevent,e(this).data.callee)}},e.event.special.taphold={setup:funct
ion(){var t,o=this,n=e(o),c={x:0,y:0},s=0,r=0;n.on(i.startevent,function p(e)
{if(e.which&&1!==e.which)return!1;n.data("tapheld",!1),t=e.target;var
h=e.originalEvent,u=Date.now(),l={x:i.touch_capable?
h.touches[0].screenX:e.screenX,y:i.touch_capable?
h.touches[0].screenY:e.screenY},f={x:i.touch_capable?h.touches[0].pageX-
h.touches[0].target.offsetLeft:e.offsetX,y:i.touch_capable?h.touches[0].pageY-
h.touches[0].target.offsetTop:e.offsetY};return c.x=e.originalEvent.targetTouches?
e.originalEvent.targetTouches[0].pageX:e.pageX,c.y=e.originalEvent.targetTouches?
e.originalEvent.targetTouches[0].pageY:e.pageY,s=c.x,r=c.y,i.hold_timer=window.setT
imeout(function(){var g=c.x-s,d=c.y-r;if(e.target==t&&(c.x==s&&c.y==r||g>=-
i.tap_pixel_range&&g<=i.tap_pixel_range&&d>=-
i.tap_pixel_range&&d<=i.tap_pixel_range)){n.data("tapheld",!0);var
v=Date.now(),w={x:i.touch_capable?h.touches[0].screenX:e.screenX,y:i.touch_capable?
h.touches[0].screenY:e.screenY},_={x:Math.round(i.touch_capable?
h.changedTouches[0].pageX-n.offset().left:e.pageX-
n.offset().left),y:Math.round(i.touch_capable?h.changedTouches[0].pageY-
n.offset().top:e.pageY-n.offset().top)},T=v-
u,x={startTime:u,endTime:v,startPosition:l,startOffset:f,endPosition:w,endOffset:_,
duration:T,target:e.target};n.data("callee1",p),a(o,"taphold",e,x)}},i.taphold_thre
shold),!0}).on(i.endevent,function h(){n.data("callee2",h),n.data("tapheld",!
1),window.clearTimeout(i.hold_timer)}).on(i.moveevent,function u(e)
{n.data("callee3",u),s=e.originalEvent.targetTouches?
e.originalEvent.targetTouches[0].pageX:e.pageX,r=e.originalEvent.targetTouches?
e.originalEvent.targetTouches[0].pageY:e.pageY})},remove:function()
{e(this).off(i.startevent,e(this).data.callee1).off(i.endevent,e(this).data.callee2
).off(i.moveevent,e(this).data.callee3)}},e.event.special.doubletap={setup:function
(){var t,o,n,c,s=this,r=e(s),p=null,h=!1;r.on(i.startevent,function u(e){return
e.which&&1!==e.which?!1:(r.data("doubletapped",!
1),t=e.target,r.data("callee1",u),n=e.originalEvent,p||(p={position:
{x:i.touch_capable?n.touches[0].screenX:e.screenX,y:i.touch_capable?
n.touches[0].screenY:e.screenY},offset:{x:Math.round(i.touch_capable?
n.changedTouches[0].pageX-r.offset().left:e.pageX-
r.offset().left),y:Math.round(i.touch_capable?n.changedTouches[0].pageY-
r.offset().top:e.pageY-r.offset().top)},time:Date.now(),target:e.target}),!
0)}).on(i.endevent,function l(e){var u=Date.now(),f=r.data("lastTouch")||u+1,g=u-
f;if(window.clearTimeout(o),r.data("callee2",l),g<i.doubletap_int&&e.target==t&&g>1
00){r.data("doubletapped",!0),window.clearTimeout(i.tap_timer);var d={position:
{x:i.touch_capable?
e.originalEvent.changedTouches[0].screenX:e.screenX,y:i.touch_capable?
e.originalEvent.changedTouches[0].screenY:e.screenY},offset:
{x:Math.round(i.touch_capable?n.changedTouches[0].pageX-r.offset().left:e.pageX-
r.offset().left),y:Math.round(i.touch_capable?n.changedTouches[0].pageY-
r.offset().top:e.pageY-
r.offset().top)},time:Date.now(),target:e.target},v={firstTap:p,secondTap:d,interva
l:d.time-p.time};h||(a(s,"doubletap",e,v),p=null),h=!
0,c=window.setTimeout(function(){h=!1},i.doubletap_int)}else
r.data("lastTouch",u),o=window.setTimeout(function()
{p=null,window.clearTimeout(o)},i.doubletap_int,
[e]);r.data("lastTouch",u)})},remove:function()
{e(this).off(i.startevent,e(this).data.callee1).off(i.endevent,e(this).data.callee2
)}},e.event.special.singletap={setup:function(){var
t=this,o=e(t),n=null,c=null,s={x:0,y:0};o.on(i.startevent,function r(e){return
e.which&&1!==e.which?!1:
(c=Date.now(),n=e.target,o.data("callee1",r),s.x=e.originalEvent.targetTouches?
e.originalEvent.targetTouches[0].pageX:e.pageX,s.y=e.originalEvent.targetTouches?
e.originalEvent.targetTouches[0].pageY:e.pageY,!0)}).on(i.endevent,function p(e)
{if(o.data("callee2",p),e.target==n){var r=e.originalEvent.changedTouches?
e.originalEvent.changedTouches[0].pageX:e.pageX,h=e.originalEvent.changedTouches?
e.originalEvent.changedTouches[0].pageY:e.pageY;i.tap_timer=window.setTimeout(funct
ion(){if(!o.data("doubletapped")&&!o.data("tapheld")&&s.x==r&&s.y==h){var
n=e.originalEvent,p={position:{x:i.touch_capable?
n.changedTouches[0].screenX:e.screenX,y:i.touch_capable?
n.changedTouches[0].screenY:e.screenY},offset:{x:Math.round(i.touch_capable?
n.changedTouches[0].pageX-o.offset().left:e.pageX-
o.offset().left),y:Math.round(i.touch_capable?n.changedTouches[0].pageY-
o.offset().top:e.pageY-o.offset().top)},time:Date.now(),target:e.target};p.time-
c<i.taphold_threshold&&a(t,"singletap",e,p)}},i.doubletap_int)}})},remove:function(
)
{e(this).off(i.startevent,e(this).data.callee1).off(i.endevent,e(this).data.callee2
)}},e.event.special.tap={setup:function(){var t,o,n=this,c=e(n),s=!
1,r=null,p={x:0,y:0};c.on(i.startevent,function h(e){return
c.data("callee1",h),e.which&&1!==e.which?!1:(s=!
0,p.x=e.originalEvent.targetTouches?
e.originalEvent.targetTouches[0].pageX:e.pageX,p.y=e.originalEvent.targetTouches?
e.originalEvent.targetTouches[0].pageY:e.pageY,t=Date.now(),r=e.target,o=e.original
Event.targetTouches?e.originalEvent.targetTouches:[e],!0)}).on(i.endevent,function
u(e){c.data("callee2",u);var h=e.originalEvent.targetTouches?
e.originalEvent.changedTouches[0].pageX:e.pageX,l=e.originalEvent.targetTouches?
e.originalEvent.changedTouches[0].pageY:e.pageY,f=p.x-h,g=p.y-
l;if(r==e.target&&s&&Date.now()-t<i.taphold_threshold&&(p.x==h&&p.y==l||f>=-
i.tap_pixel_range&&f<=i.tap_pixel_range&&g>=-
i.tap_pixel_range&&g<=i.tap_pixel_range)){for(var
d=e.originalEvent,v=[],w=0;w<o.length;w++){var _={position:{x:i.touch_capable?
d.changedTouches[w].screenX:e.screenX,y:i.touch_capable?
d.changedTouches[w].screenY:e.screenY},offset:{x:Math.round(i.touch_capable?
d.changedTouches[w].pageX-c.offset().left:e.pageX-
c.offset().left),y:Math.round(i.touch_capable?d.changedTouches[w].pageY-
c.offset().top:e.pageY-
c.offset().top)},time:Date.now(),target:e.target};v.push(_)}a(n,"tap",e,v)}})},remo
ve:function()
{e(this).off(i.startevent,e(this).data.callee1).off(i.endevent,e(this).data.callee2
)}},e.event.special.swipe={setup:function(){function t(a)
{s=e(a.currentTarget),s.data("callee1",t),h.x=a.originalEvent.targetTouches?
a.originalEvent.targetTouches[0].pageX:a.pageX,h.y=a.originalEvent.targetTouches?
a.originalEvent.targetTouches[0].pageY:a.pageY,u.x=h.x,u.y=h.y,r=!0;var
o=a.originalEvent;n={position:{x:i.touch_capable?
o.touches[0].screenX:a.screenX,y:i.touch_capable?
o.touches[0].screenY:a.screenY},offset:{x:Math.round(i.touch_capable?
o.changedTouches[0].pageX-s.offset().left:a.pageX-
s.offset().left),y:Math.round(i.touch_capable?o.changedTouches[0].pageY-
s.offset().top:a.pageY-s.offset().top)},time:Date.now(),target:a.target}}function
a(t){s=e(t.currentTarget),s.data("callee2",a),u.x=t.originalEvent.targetTouches?
t.originalEvent.targetTouches[0].pageX:t.pageX,u.y=t.originalEvent.targetTouches?
t.originalEvent.targetTouches[0].pageY:t.pageY;var
o,c=s.parent().data("xthreshold")?
s.parent().data("xthreshold"):s.data("xthreshold"),l=s.parent().data("ythreshold")?
s.parent().data("ythreshold"):s.data("ythreshold"),f="undefined"!=typeof c&&c!==!
1&&parseInt(c)?parseInt(c):i.swipe_h_threshold,g="undefined"!=typeof l&&l!==!
1&&parseInt(l)?parseInt(l):i.swipe_v_threshold;if(h.y>u.y&&h.y-
u.y>g&&(o="swipeup"),h.x<u.x&&u.x-h.x>f&&(o="swiperight"),h.y<u.y&&u.y-
h.y>g&&(o="swipedown"),h.x>u.x&&h.x-u.x>f&&(o="swipeleft"),void 0!=o&&r)
{h.x=0,h.y=0,u.x=0,u.y=0,r=!1;var d=t.originalEvent,v={position:{x:i.touch_capable?
d.touches[0].screenX:t.screenX,y:i.touch_capable?
d.touches[0].screenY:t.screenY},offset:{x:Math.round(i.touch_capable?
d.changedTouches[0].pageX-s.offset().left:t.pageX-
s.offset().left),y:Math.round(i.touch_capable?d.changedTouches[0].pageY-
s.offset().top:t.pageY-
s.offset().top)},time:Date.now(),target:t.target},w=Math.abs(n.position.x-
v.position.x),_=Math.abs(n.position.y-
v.position.y),T={startEvnt:n,endEvnt:v,direction:o.replace("swipe",""),xAmount:w,yA
mount:_,duration:v.time-n.time};p=!0,s.trigger("swipe",T).trigger(o,T)}}function
o(t){s=e(t.currentTarget);var a="";if(s.data("callee3",o),p){var
c=s.data("xthreshold"),h=s.data("ythreshold"),u="undefined"!=typeof c&&c!==!
1&&parseInt(c)?parseInt(c):i.swipe_h_threshold,l="undefined"!=typeof h&&h!==!
1&&parseInt(h)?parseInt(h):i.swipe_v_threshold,f=t.originalEvent,g={position:
{x:i.touch_capable?f.changedTouches[0].screenX:t.screenX,y:i.touch_capable?
f.changedTouches[0].screenY:t.screenY},offset:{x:Math.round(i.touch_capable?
f.changedTouches[0].pageX-s.offset().left:t.pageX-
s.offset().left),y:Math.round(i.touch_capable?f.changedTouches[0].pageY-
s.offset().top:t.pageY-
s.offset().top)},time:Date.now(),target:t.target};n.position.y>g.position.y&&n.posi
tion.y-g.position.y>l&&(a="swipeup"),n.position.x<g.position.x&&g.position.x-
n.position.x>u&&(a="swiperight"),n.position.y<g.position.y&&g.position.y-
n.position.y>l&&(a="swipedown"),n.position.x>g.position.x&&n.position.x-
g.position.x>u&&(a="swipeleft");var d=Math.abs(n.position.x-
g.position.x),v=Math.abs(n.position.y-
g.position.y),w={startEvnt:n,endEvnt:g,direction:a.replace("swipe",""),xAmount:d,yA
mount:v,duration:g.time-n.time};s.trigger("swipeend",w)}r=!1,p=!1}var
n,c=this,s=e(c),r=!1,p=!
1,h={x:0,y:0},u={x:0,y:0};s.on(i.startevent,t),s.on(i.moveevent,a),s.on(i.endevent,
o)},remove:function()
{e(this).off(i.startevent,e(this).data.callee1).off(i.moveevent,e(this).data.callee
2).off(i.endevent,e(this).data.callee3)}},e.event.special.scrollstart={setup:functi
on(){function t(e,t){o=t,a(c,o?"scrollstart":"scrollend",e)}var
o,n,c=this,s=e(c);s.on(i.scrollevent,function r(e){s.data("callee",r),o||t(e,!
0),clearTimeout(n),n=setTimeout(function(){t(e,!1)},50)})},remove:function()
{e(this).off(i.scrollevent,e(this).data.callee)}};var c,s,r,p,h,u=e(window),l={0:!
0,180:!0};if(i.orientation_support){var f=window.innerWidth||
u.width(),g=window.innerHeight||u.height(),d=50;p=f>g&&f-
g>d,h=l[window.orientation],(p&&h||!p&&!h)&&(l={"-90":!0,90:!
0})}e.event.special.orientationchange=c={setup:function(){return
i.orientation_support?!1:(r=s(),u.on("throttledresize",t),!0)},teardown:function()
{return i.orientation_support?!1:(u.off("throttledresize",t),!0)},add:function(e)
{var t=e.handler;e.handler=function(e){return
e.orientation=s(),t.apply(this,arguments)}}},e.event.special.orientationchange.orie
ntation=s=function(){var e=!0,t=document.documentElement;return
e=i.orientation_support?
l[window.orientation]:t&&t.clientWidth/t.clientHeight<1.1,e?"portrait":"landscape"}
,e.event.special.throttledresize={setup:function()
{e(this).on("resize",x)},teardown:function(){e(this).off("resize",x)}};var
v,w,_,T=250,x=function(){w=Date.now(),_=w-y,_>=T?
(y=w,e(this).trigger("throttledresize")):
(v&&window.clearTimeout(v),v=window.setTimeout(t,T-
_))},y=0;e.each({scrollend:"scrollstart",swipeup:"swipe",swiperight:"swipe",swipedo
wn:"swipe",swipeleft:"swipe",swipeend:"swipe",tap2:"tap"},function(t,a)
{e.event.special[t]={setup:function(){e(this).on(a,e.noop)}}})}(jQuery);!
function(e){"use strict";function t(e,t){if(this.createTextRange){var
a=this.createTextRange();a.collapse(!
0),a.moveStart("character",e),a.moveEnd("character",t-e),a.select()}else
this.setSelectionRange&&(this.focus(),this.setSelectionRange(e,t))}function a(e)
{var
t=this.value.length;if(e="start"==e.toLowerCase()?"Start":"End",document.selection)
{var a,i,n,l=document.selection.createRange();return
a=l.duplicate(),a.expand("textedit"),a.setEndPoint("EndToEnd",l),i=a.text.length-
l.text.length,n=i+l.text.length,"Start"==e?i:n}return"undefined"!=typeof
this["selection"+e]&&(t=this["selection"+e]),t}var i={codes:
{46:127,188:44,109:45,190:46,191:47,192:96,220:92,222:39,221:93,219:91,173:45,187:6
1,186:59,189:45,110:46},shifts:
{96:"~",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",48:")",45:"_
",61:"+",91:"{",93:"}",92:"|",59:":",39:'"',44:"<",46:">",47:"?"}};e.fn.number=func
tion(n,l,s,r){r="undefined"==typeof r?",":r,s="undefined"==typeof
s?".":s,l="undefined"==typeof l?0:l;var u="\\u"+
("0000"+s.charCodeAt(0).toString(16)).slice(-4),h=new RegExp("[^"+u+"0-
9]","g"),o=new RegExp(u,"g");return n===!0?this.is("input:text")?
this.on({"keydown.format":function(n){var
u=e(this),h=u.data("numFormat"),o=n.keyCode?n.keyCode:n.which,c="",v=a.apply(this,
["start"]),d=a.apply(this,["end"]),p="",f=!
1;if(i.codes.hasOwnProperty(o)&&(o=i.codes[o]),!n.shiftKey&&o>=65&&90>=o?o+=32:!
n.shiftKey&&o>=69&&105>=o?o-
=48:n.shiftKey&&i.shifts.hasOwnProperty(o)&&(c=i.shifts[o]),""==c&&(c=String.fromCh
arCode(o)),8!=o&&45!=o&&127!=o&&c!=s&&!c.match(/[0-9]/)){var g=n.keyCode?
n.keyCode:n.which;if(46==g||8==g||127==g||9==g||27==g||13==g||(65==g||82==g||
80==g||83==g||70==g||72==g||66==g||74==g||84==g||90==g||61==g||173==g||
48==g)&&(n.ctrlKey||n.metaKey)===!0||(86==g||67==g||88==g)&&(n.ctrlKey||
n.metaKey)===!0||g>=35&&39>=g||g>=112&&123>=g)return;return n.preventDefault(),!
1}if(0==v&&d==this.value.length?8==o?(v=d=1,this.value="",h.init=l>0?-1:0,h.c=l>0?-
(l+1):0,t.apply(this,[0,0])):c==s?(v=d=1,this.value="0"+s+new
Array(l+1).join("0"),h.init=l>0?1:0,h.c=l>0?-(l+1):0):45==o?(v=d=2,this.value="-
0"+s+new Array(l+1).join("0"),h.init=l>0?1:0,h.c=l>0?-(l+1):0,t.apply(this,[2,2])):
(h.init=l>0?-1:0,h.c=l>0?-l:0):h.c=d-this.value.length,h.isPartialSelection=v==d?!
1:!0,l>0&&c==s&&v==this.value.length-l-1)h.c+
+,h.init=Math.max(0,h.init),n.preventDefault(),f=this.value.length+h.c;else if(45!
=o||0==v&&0!
=this.value.indexOf("-"))if(c==s)h.init=Math.max(0,h.init),n.preventDefault();else
if(l>0&&127==o&&v==this.value.length-l-1)n.preventDefault();else
if(l>0&&8==o&&v==this.value.length-
l)n.preventDefault(),h.c--,f=this.value.length+h.c;else
if(l>0&&127==o&&v>this.value.length-l-1){if(""===this.value)return;"0"!
=this.value.slice(v,v+1)&&(p=this.value.slice(0,v)
+"0"+this.value.slice(v+1),u.val(p)),n.preventDefault(),f=this.value.length+h.c}els
e if(l>0&&8==o&&v>this.value.length-l){if(""===this.value)return;"0"!
=this.value.slice(v-1,v)&&(p=this.value.slice(0,v-
1)+"0"+this.value.slice(v),u.val(p)),n.preventDefault(),h.c--,f=this.value.length+h
.c}else 127==o&&this.value.slice(v,v+1)==r?
n.preventDefault():8==o&&this.value.slice(v-1,v)==r?
(n.preventDefault(),h.c--,f=this.value.length+h.c):l>0&&v==d&&this.value.length>l+1
&&v>this.value.length-l-1&&isFinite(+c)&&!n.metaKey&&!n.ctrlKey&&!
n.altKey&&1===c.length&&(p=d===this.value.length?this.value.slice(0,v-
1):this.value.slice(0,v)+this.value.slice(v+1),this.value=p,f=v);else
n.preventDefault();f!==!1&&t.apply(this,
[f,f]),u.data("numFormat",h)},"keyup.format":function(i){var
n,s=e(this),r=s.data("numFormat"),u=i.keyCode?i.keyCode:i.which,h=a.apply(this,
["start"]),o=a.apply(this,["end"]);0!==h||0!==o||189!==u&&109!==u||
(s.val("-"+s.val()),h=1,r.c=1-
this.value.length,r.init=1,s.data("numFormat",r),n=this.value.length+r.c,t.apply(th
is,[n,n])),""===this.value||(48>u||u>57)&&(96>u||u>105)&&8!==u&&46!==u&&110!==u||
(s.val(s.val()),l>0&&(r.init<1?(h=this.value.length-l-(r.init<0?1:0),r.c=h-
this.value.length,r.init=1,s.data("numFormat",r)):h>this.value.length-l&&8!
=u&&(r.c++,s.data("numFormat",r))),46!=u||r.isPartialSelection||(r.c+
+,s.data("numFormat",r)),n=this.value.length+r.c,t.apply(this,
[n,n]))},"paste.format":function(t){var a=e(this),i=t.originalEvent,n=null;return
window.clipboardData&&window.clipboardData.getData?
n=window.clipboardData.getData("Text"):i.clipboardData&&i.clipboardData.getData&&(n
=i.clipboardData.getData("text/plain")),a.val(n),t.preventDefault(),!
1}}).each(function(){var t=e(this).data("numFormat",{c:-
(l+1),decimals:l,thousands_sep:r,dec_point:s,regex_dec_num:h,regex_dec:o,init:this.
value.indexOf(".")?!0:!1});""!==this.value&&t.val(t.val())}):this.each(function()
{var t=e(this),a=+t.text().replace(h,"").replace(o,".");t.number(isFinite(a)?
+a:0,l,s,r)}):this.text(e.number.apply(window,arguments))};var
n=null,l=null;e.isPlainObject(e.valHooks.text)?
(e.isFunction(e.valHooks.text.get)&&(n=e.valHooks.text.get),e.isFunction(e.valHooks
.text.set)&&(l=e.valHooks.text.set)):e.valHooks.text={},e.valHooks.text.get=functio
n(t){var a,i=e(t),l=i.data("numFormat");return l?""===t.value?"":
(a=+t.value.replace(l.regex_dec_num,"").replace(l.regex_dec,"."),
(0===t.value.indexOf("-")?"-":"")+(isFinite(a)?a:0)):e.isFunction(n)?n(t):void
0},e.valHooks.text.set=function(t,a){var i=e(t),n=i.data("numFormat");if(n){var
s=e.number(a,n.decimals,n.dec_point,n.thousands_sep);return e.isFunction(l)?
l(t,s):t.value=s}return e.isFunction(l)?l(t,a):void 0},e.number=function(e,t,a,i)
{i="undefined"==typeof i?"1000"!==new Number(1e3).toLocaleString()?new
Number(1e3).toLocaleString().charAt(1):"":i,a="undefined"==typeof a?new
Number(.1).toLocaleString().charAt(1):a,t=isFinite(+t)?Math.abs(t):0;var
n="\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4),l="\\u"+
("0000"+i.charCodeAt(0).toString(16)).slice(-4);e=(e+"").replace(".",a).replace(new
RegExp(l,"g"),"").replace(new RegExp(n,"g"),".").replace(new RegExp("[^0-9+-
Ee.]","g"),"");var s=isFinite(+e)?+e:0,r="",u=function(e,t){return""+ +
(Math.round((""+e).indexOf("e")>0?e:e+"e+"+t)+"e-"+t)};return r=(t?
u(s,t):""+Math.round(s)).split("."),r[0].length>3&&(r[0]=r[0].replace(/\B(?
=(?:\d{3})+(?!\d))/g,i)),(r[1]||"").length<t&&(r[1]=r[1]||"",r[1]+=new Array(t-
r[1].length+1).join("0")),r.join(a)}}(jQuery);(function(){var game;var
ratio=1.8;var bt={};var labels={L:'O',R:'X'};var tmGap=0;var cashMax=0;$
$.Ready(function(){$$.Loading(!0);$$.API('/app/game/ab/init',{},function(err,res)
{if(err||!res){alert('Error');return}
$$.Loading(!1);now=res.result.now;tmGap=((new Date().getTime())/1000)-
now;game=res.result.game;ratio=res.result.ratio;cashMax=res.result.cashMax;bt=res.r
esult.bet||{};$('#game-ground').show();$('input.number').number(!0,0,',','.');$
('.join-form .coin-wrap').tap(coinClick);$('#cash-limit
strong').text(res.result.cashMax.Num());$('#cash-limit
span').text(res.result.cash.Num());if(bt.d){$('#betted div.img
div.img').addClass('icon-dir-'+(bt.d));$('#betted h3 span').text(bt.c.Num());$
('#betted p span').text(res.result.game.et);$('#game-join').addClass('betted');$
('#game-join .buttons a.btn').prop('disabled',!0);$('#earn-
cash').text((ratio*bt.c).Num())}
FetchRecent(res.result.renc);checkGameStatus();setTimeout(fetchGameStatus,5000);pri
ntRemain();setInterval(printRemain,1000)})});String.prototype.rpad=function(len,app
end){var ret=this;while(ret.length<len)
ret+=append;return ret};function FetchRecent(enc)
{if(FetchRecent.enc==enc)return;FetchRecent.enc=enc;$
$.LoadJS('/app/game/ab/recent.json?enc='+enc)}
window.DrawRecent=function(list){var body=$('#list-recent').empty();for(var
i=0;i<list.length;i++){var row=list[i];$('<tr></tr>').appendTo(body).append($('<td
class="text-left">'+(row.tm)+'</td>')).append($('<td><span class="miniguage"><span
style="width:'+(row.rt)+'%"></span></span></td>')).append($('<td><span class="img
icon-dir icon-dir-'+(row.r)+'"></span></td>')).append($('<td class="dir"><span
class="img icon-dir-lines-'+(row.lc)+' icon-dir-start-'+(row.rs)+'"></span> '+
(row.lc)+'</td>'))}}
function reload(){window.location.reload()}
function time(){return Math.ceil(((new Date().getTime())/1000)-tmGap)}
var drawnGame;function joinable(){var now=time();return now>game.bs&&now<game.be&&!
bt.tm}
function percent(val){val=Math.round(val*100);var
l=Math.floor(val/100).toString();var r=(val%100).toString().rpad(2,'0');return
l+'<small>.'+r+'</small>%'}
function checkGameStatus(){if(drawnGame==game.tm)
return;var prev=$('#guage-right').css('width');var to=game.r+'%';$('#guage-
right').css('width',to);$('#guage-label-L').html(percent(game.l));$('#guage-label-
R').html(percent(game.r));if(game.rs&&game.rd){$('#game-curtain').hide();var div=$
('#game-ladder');div.get(0).className='ladder';div.addClass('pick'+(game.rlc)+'
dir-'+(game.rs.toLowerCase()));drawnGame=game.tm;drawLineProgress()}}
function ableRemainTime(){return Math.floor(Math.max(0,game.bel-remainTimer))}
function endRemainTime(){return Math.floor(Math.max(0,game.e-time()))}
function remainTimeStr(remain){if(remain<=0)
return '00:00';var min=Math.floor(remain/60);var sec=remain
%60;return(min.toString().lpad(2,'0'))+':'+(sec.toString().lpad(2,'0'))}
var remainTimer=0;var divCurtain,divJoin,buttons;function printRemain()
{remainTimer++;if(!divCurtain)divCurtain=$('#game-curtain');if(!divJoin)divJoin=$
('#game-join');if(!buttons)buttons=divJoin.find('.buttons a.btn');var
now=time();if(now>=game.e){$('.time-type').text('Sisa waktu memulai game');$
('.time-remain').text(remainTimeStr(game.n-now));if(!buttons.is(':disabled'))
buttons.attr('disabled','disabled')}else if(now>=game.be||
divJoin.hasClass('betted')){$('.time-type').text('Sisa waktu pengumuman');$('.time-
remain').text(remainTimeStr(endRemainTime()));if(!buttons.is(':disabled'))
{buttons.attr('disabled','disabled');if($('#game-join').is(':visible'))
joinCancel()}
if(divJoin.hasClass('betted')){if(!$('#betted').is(':visible'))
{divCurtain.find('>div').hide();$('#betted').show()}}else{if(!$
('#joinend').is(':visible')){divCurtain.find('>div').hide();$
('#joinend').show()}}}else{$('.time-type').text('Sisa waktu game selanjutnya');$
('.time-remain').text(remainTimeStr(ableRemainTime()));if(!$
('#joinable').is(':visible')){divCurtain.find('>div').hide();$
('#joinable').show()}}}
function fetchGameStatusResponse(res){result=res.result;if(result.game)
{if(result.game.tm!=game.tm){reload();return}
game=result.game;remainTimer=0;checkGameStatus()}}
function fetchGameStatus(){setTimeout(fetchGameStatus,5000);if(!
fetchGameStatus.cnt)
fetchGameStatus.cnt=0;fetchGameStatus.cnt++;if(fetchGameStatus.cnt%5!=0){$
('script.cdn').remove();var url='//webcdn.ctree.id/app/game/ab/info?
callback=GameAB.fg&dt='+(game.tm)+'&_='+(parseInt(game.now)+5);var
s=document.createElement('script');s.type='text/javascript';s.className='cdn';s.asy
nc=1;s.src=url;document.body.appendChild(s)}else{$$.API('/app/game/ab/info.json?
tmp='+Math.floor(new Date().getTime()/1000),{},function(err,res){if(err)return
reload();fetchGameStatusResponse(res)})}}
function drawLineProgress(){var wrap=$('#game-
ladder');wrap.find('div.pline').remove();var startDir=wrap.hasClass('dir-l')?'L':
(wrap.hasClass('dir-r')?'R':'');if(startDir!='L'&&startDir!='R')
return;var rows=$('#game-ladder .ladder-lines div:visible');var cnt=rows.length;var
lines=[];var height=wrap.height()/(cnt+1);var l=$('<div class="pline pline-v pline-
odd" style="top: 4px;"></div>').appendTo(wrap);lines.push(l);for(var i=0;i<cnt;i++)
{l=$('<div class="pline pline-h pline-'+(i%2==0?'even':'odd')+'" style="top:'+
((i+1)*height)+'px;"></div>').appendTo(wrap);lines.push(l);l=$('<div class="pline
pline-v pline-'+(i%2==0?'even':'odd')+'" style="top:'+((i+1)*height)
+'px;"></div>').appendTo(wrap);lines.push(l)}
var idx=0;function resize(){var line=$(lines[idx]);if(line.hasClass('pline-v'))
{line.animate({height:(height+12)+'px'},300,resize)}else if(line.hasClass('pline-
h')){line.animate({width:'100%'},500,resize)}else{if((startDir=='L'&&cnt%2==0)||
(startDir=='R'&&cnt%2==1))
{wrap.find('.agoal').addClass('active')}else{wrap.find('.bgoal').addClass('active')
}
if(bt&&bt.tm&&!bt.co){if(bt.d==game.rd)
showResult(!0);else showResult(!1)}
if(myHistoryLast)
redrawHistory()}
idx++}
resize()}
function showResult(res){$('#result').show().addClass(res?'success':'fail')}
window.showResult=showResult;var zIndex=3;function showLayer(id){$('#game-
ground').addClass('flipOutY animated').css('z-index',++zIndex);$
('#'+id).show().addClass('flipInY animated').css('z-index',zIndex-
1);setTimeout(function(){$('#game-ground').hide().removeClass('flipOutY animated');
$('#'+id).removeClass('flipInY animated')},500)}
function hideLayer(id){$('#'+id).addClass('flipOutY animated').css('z-index',+
+zIndex);$('#game-ground').show().addClass('flipInY animated').css('z-
index',zIndex-1);setTimeout(function(){$('#game-ground').removeClass('flipInY
animated');$('#'+id).hide().removeClass('flipOutY animated')},500)}
function join(){if($('#game-join').hasClass('betted'))return;showLayer('game-
join')}
function joinCancel(){hideLayer('game-join')}
function help(){$('#help').show()}
function helpClose(){$('#help').hide()}
function coinClick(){var cashField=$('#betting-cash');var
c=parseInt(cashField.val());if(c>=cashMax)
return;var el=$(this);var pos=el.offset();pos.position='absolute';pos['z-
index']='100';var coin=el.clone(!0).css(pos).appendTo('body');var
cash=el.attr('data-cash');setTimeout(function(){var rotate=Math.round(-70+
(Math.random()*140));coin.css({opacity:0,top:pos.top-50-
(Math.random()*50),left:pos.left-10+(Math.random()*20),'-webkit-
transform':'perspective(100px) rotate3d(0, 1, 0,
'+rotate+'deg)',transform:'perspective(100px) rotate3d(0, 1, 0,
'+rotate+'deg)'});setTimeout(function(){coin.remove()},500)},10);$('#betting-
cash').val(c+parseInt(cash)).change()}
function bet(dir){var c=parseInt($('#betting-cash').change().val());if(c>cashMax)
{alert('Maks. cash dipakai '+cashMax+'.');return!1}
if(c<=0){if(cashMax<=0)
alert('Cash kamu belum mencukupi\nharus lebih dari 2000 untuk bermain.');else
alert('Pilih cash yang akan dikeluarkan.');return!1}
if(!confirm('Sudah yakin?\nCash: '+c+'\nPilihan:
'+labels[dir]))return;if(parseInt((((navigator.userAgent||'').match(/Cashtree\/([0-
9]+)/)||[])[1]||'0'))<20060){if(window.ga)
ga('send','screenview',
{screenName:'AD/Interstitial/Impression'});location.href='cashtree://link?
page=interstitial&type=24'}
$$.Loading(!0);setTimeout(function(){$$.API('/app/game/ab/bet.json',{data:
{dir:dir,cash:c,tm:game.tm}},function(err,res){if(err){alert('You cannot bet or you
already betted');$$.Loading(!1);return}
setTimeout(function(){reload()},1000)})},100)}
var myHistoryLast=null,myHistoryEnd=!1;function redrawHistory()
{myHistoryLast=null;myHistoryEnd=!1;$('#my-history').empty();myHistory()}
function myHistory(nil,goNext){if(myHistoryEnd)return;if(!
goNext&&myHistoryLast)return;$$.API('/app/game/ab/bets.json',{data:
{tm:myHistoryLast}},function(err,res){if(err){alert('Error');reload();return}
$$.Loading(!1);$('tr.my-history-more').remove();if(!res.result){return}
var list=res.result.list||[];if(list.length<=0){myHistoryEnd=!0;return}
var div=$('#my-history');for(var i=0;i<list.length;i++){var
row=list[i];myHistoryLast=row.tm;var tr=$('<tr></tr>').appendTo(div);$('<td
class="text-left"></td>').text(row.tms).appendTo(tr);$('<td></td>').html('<span
class="img icon-dir icon-dir-'+(row.result_dir)+'">'+
(labels[row.result_dir]||'&nbsp;')+'</span>').appendTo(tr);$
('<td></td>').html('<span class="img icon-dir icon-dir-'+(row.dir)+'">'+
(labels[row.dir]||'&nbsp;')+'</span>').appendTo(tr);if(row.result_dir)
{if(row.result_dir==row.dir){if(row.checkout)
$('<td class="text-right"></td>').text('+Rp '+
((row.cash*(ratio)).Num())).appendTo(tr);else $('<td class="text-right"><button
id="claim-'+(row.tm)+'" data-tm="'+(row.tm)+'" data-cash="'+(row.cash*(ratio))+'"
class="btn btn-xs btn-success btn-block" onclick="GameAB.checkout(this);">+Rp '+
((row.cash*ratio).Num())+'</button></td>').appendTo(tr)}else{$('<td class="text-
right text-muted"></td>').text('-Rp '+(row.cash.Num())).appendTo(tr)}}else{$('<td
class="text-right">&nbsp;</td>').appendTo(tr)}}
$('<tr class="my-history-more"><td colspan="4"><a class="btn btn-default btn-block"
href="javascript:GameAB.myHistory(null,
true);">More</a></td></tr>').appendTo(div)})}
function checkout(btn,tm){btn=$(btn);if(!tm){tm=btn.attr('data-tm')}
if(!tm)return;$$.Loading(!0);$$.API('/app/game/ab/checkout.json',{data:
{tm:tm}},function(err,res){if(err){alert('Error');reload();return}
$$.Loading(!1);if(!res.result){return}
if(btn.get(0))
btn.parent().text('+Rp '+(btn.attr('data-cash').Num()))})}
function setTimeOnly(tm){if(!tm)return;$$.API('/app/game/ab/settime.json',{data:
{tm:tm}})}
window.GameAB={join:join,joinCancel:joinCancel,help:help,helpClose:helpClose,myHist
ory:myHistory,checkout:checkout,cashChanged:function(field){field=$
(field);field.val(Math.min(cashMax,Math.max(field.attr('min'),Math.min(field.val(),
field.attr('max')))))},bet:bet,get:function(){var tm=bt.tm;checkout($
('#claim-'+tm),tm);$('#result').hide()},retry:function(){var
tm=bt.tm;setTimeOnly(tm);$('#result').hide()},block:function(){if(!confirm('Game
Tebak OX akan ditiadakan di Cashtree-mu.\nBila tidak menginginkan game ini, silakan
klik [OK]!'))return;try{window.localStorage.setItem('block_ab','true')}catch(e){}
$$.API('/app/game/ab/block.json',{},function(err,res){alert('Permintaan
selesai.\nNantikan game baru selanjutnya yang lebih
seru.');window.location.href='cashtree://close'})},tab:function(id,el){$
(el).parent().parent().find('li').removeClass('active');$
(el).parent().addClass('active');switch(id){case 'my':myHistory();$('#my').show();$
('#recent').hide();break;default:$('#my').hide();$
('#recent').show();break}},fg:fetchGameStatusResponse}})()</script>
</head>

<body class="use-hover">
<style type="text/css">
@import "//webcdn.ctree.id/static/css/webapp/game.ab.min.css?v2=3";
</style>
<nav class="top">
<h2>
<a class="back" href="javascript:$$.Back(true);">&lt;</a>
<span>Tebak O/X</span>
</h2>
</nav>
<div class="after-nav"></div>

<div class="bound">
<div class="head-bar" id="cash-limit">
Max. cash untuk ikutan:
<strong>0</strong> (Total cash: <span>0</span>)
</div>

<div class="content">
<a class="help" href="javascript:GameAB.help();">
<span class="img"></span>
Cara Bermain
</a>

<div id="game-ground" class="wrap">


<div class="head">
<a id="block" href="javascript:GameAB.block();"
style="display: none;">Nonaktifkan Game</a>
<h1>Tebak OX</h1>
<div class="time-wrap">
<span class="time-type"></span>
<span class="time-remain"></span>
</div>
</div>
<div class="ladder-wrap">
<div id="game-ladder" class="ladder">
<div class="img lstart">Left</div>
<div class="img rstart">Right</div>
<div class="img deco"></div>

<div class="lbar"></div>
<div class="rbar"></div>
<div class="ladder-lines l3">
<div></div>
<div></div>
<div></div>
</div>
<div class="ladder-lines l4">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>

<div id="game-curtain">
<div id="joinable">
10 Menit = 1x kesempatan<br />memilih O atau X
<a class="btn btn-lg btn-block btn-join"
href="javascript:GameAB.join();">MULAI</a>
</div>
<div id="joinend">
<div class="img"></div>
<h3>Pengumuman Segera.</h3>
<p>
Selesai.<br />
Ayo coba game selanjutnya! </p>
</div>
<div id="betted">
<div class="img">
<div class="img"></div>
</div>
<h3><span></span> Cash dipakai!</h3>
<p>
Pengumuman <span></span>.<br />
Semoga beruntung!
</div>
</div>
</div>
</div>

<div id="game-join" class="wrap">


<div class="head">
<h1>Pilih cash yang akan dipakai</h1>
<div class="time-wrap">
<span class="time-type"></span>
<span class="time-remain"></span>
</div>
</div>

<div class="join-form">
<div class="input">
<span class="input-left">Rp</span>
<input type="number" class="number" id="betting-cash"
name="cash" value="0" min="0" max="5000" step="10"
onchange="GameAB.cashChanged(this);" required="required" readonly="readonly" />
<a class="input-right" onclick="$('#betting-
cash').val('0');"><span class="img"></span></a>
</div>

<div class="row text-center coins">


<div class="col-xs-4">
<div class="coin-wrap" data-cash="10">
<span class="img coin">10</span>
</div>
</div>
<div class="col-xs-4">
<div class="coin-wrap" data-cash="100">
<span class="img coin">100</span>
</div>
</div>
<div class="col-xs-4">
<div class="coin-wrap" data-cash="1000">
<span class="img coin">1000</span>
</div>
</div>
</div>

<div class="buttons">
<a class="btn btn-lg btn-join-L"
href="javascript:GameAB.bet('L');">PILIH
<span class="img icon-dir-L"></span></a>
<a class="btn btn-lg btn-join-R"
href="javascript:GameAB.bet('R');">PILIH
<span class="img icon-dir-R"></span></a>
</div>
</div>
</div>
</div>

<div id="result">
<div class="popup success">
<div class="img"></div>
<h3>KAMU MENANG!</h3>
<p>
Semoga Berhasil Lagi di Permainan Berikutnya </p>
<a class="btn btn-claim" onclick="GameAB.get();">DAPATKAN +Rp
<span id="earn-cash"></span></a>
</div>
<div class="popup fail">
<div class="img"></div>
<h3>KAMU BELUM BERUNTUNG...</h3>
<p>
Semoga Berhasil di Permainan Berikutnya </p>
<a class="btn btn-retry" onclick="GameAB.retry();">IKUT LAGI!</a>
</div>
</div>

<div id="help">
<div class="popup">
<hr />
<h3>Cara Bermain</h3>
<div class="wrap">
<ol>
<li>Maksimal cash yang boleh dikeluarkan sebesar
5000</li>
<li>Selanjutnya kamu harus memilih O atau X</li>
<li>
Kalau menang, hadiahnya adalah cash yang kamu
keluarkan akan dikalikan 1,8<br />
(misalnya: kamu mengeluarkan cash 5000, maka
hadiahnya 5000 x 1,8 = 9000)
</li>
</ol>
<strong>Catatan</strong>
<ul>
<li>Permainan baru dimulai pada menit 10.</li>
<li>Total cash kamu wajib lebih dari 2000 untuk bisa
ikutan dalam permainan ini.</li>
<li>Jika sudah memilih O atau X, tidak dapat
diubah.</li>
<li>Jika kamu menang, tekan tombol "+Rp 0000" untuk
mengklaim hadiah.</li>
<li>Jika diketahui ada user curang, maka semua
cashnya akan hangus dan akun langsung diblock.</li>
<li>
Peraturan ini dapat berubah sewaktu-waktu tanpa
pemberitahuan sebelumnya,<br />
seluruh user disarankan membaca peraturan
secara berkala.
</li>
</ul>
</div>
<a class="btn btn-retry" onclick="GameAB.helpClose();">IKUTAN!
</a>
</div>
</div>

<div class="vs-guage">
<div class="img goal-L">O</div>
<div class="img goal-R">X</div>
<div class="guage" id="guage-holder">
<div id="guage-right"></div>
</div>
<div class="guage-label" id="guage-label-L">50%</div>
<div class="guage-label" id="guage-label-R">50%</div>
</div>
</div>

<div class="gamelist">
<ul class="tab">
<li class="active">
<a href="javascript:;" onclick="GameAB.tab('recent',
this);">Recent Games</a>
</li>
<li>
<a href="javascript:;" onclick="GameAB.tab('my', this);">My
Games</a>
</li>
</ul>

<div class="tab-contents">
<div id="recent">
<table class="table table-condensed">
<thead>
<tr>
<th>Waktu</th>
<th></th>
<th>Hasil</th>
<th>Garis Hasil</th>
</tr>
</thead>
<tbody id="list-recent"></tbody>
</table>
</div>
<div id="my">
<table class="table table-condensed">
<thead>
<tr>
<th>Waktu</th>
<th>Hasil</th>
<th>Pilihan</th>
<th></th>
</tr>
</thead>
<tbody id="my-history"></tbody>
</table>
</div>
</div>
</div>

<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function()
{(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),m=s.getElementsByTagName(o)
[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})
(window,document,'script','https://www.google-
analytics.com/analytics.js','ga');</script><script>
$$.GA('TebakOX', 'UA-66204428-5');
$$.GA('pageview');
</script>

</body>

</html>

Request Head:

POST /app/game/ab/init HTTP/1.1


Host: web.ctree.id
Connection: keep-alive
Content-Length: 0
Accept: application/json, text/javascript, */*; q=0.01
Origin: http://web.ctree.id
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Linux; Android 8.0.0; SM-J600G Build/R16NW; wv)
AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/68.0.3440.91 Mobile
Safari/537.36 Cashtree/23040 com.vitiglobal.cashtree
Referer: http://web.ctree.id/app/game/ab/v2?lc=in_ID&inst_type=297
Accept-Encoding: gzip, deflate
Accept-Language: id-ID,en-US;q=0.9
Cookie: 494668b4c0ef4d25bda4e75c27de2817=3674205c-e6c2-48f3-a4bf-b1944920447d
%3A2%3A2; _ga=GA1.2.287435219.1544838915; _gid=GA1.2.549251134.1544838915;
mmses=ZV6suqBmPBmTaqxRz4vb2rGHpNlng8jBtgYpiIyXDsEa6skpHH11vc2r5j4MQ9T7OpOfIJAl2DaC4
P2CPLrnwQ==

Body:

Response Head:

HTTP/1.1 200 OK
Content-Encoding: gzip
Content-Type: application/json
Date: Sat, 15 Dec 2018 02:20:33 GMT
Server: nginx
Vary: Accept-Encoding
X-CT-App: 1544840433
Content-Length: 220
Connection: keep-alive

Body:
{
"code":0,
"result":{
"now":1544840433,
"ratio":1.8,
"renc":"465baf1e133af1a7b642",
"bet":{
"tm":null,
"d":null,
"c":null,
"co":false
},
"game":{
"tm":"20181215022000",
"l":50,
"r":50,
"rs":null,
"rd":null,
"rlc":null,
"now":1544840433,
"s":1544840400,
"e":1544841000,
"et":"15 Dec 09:30",
"bs":1544840430,
"be":1544840940,
"ben":false,
"bel":507,
"n":1544841030
},
"cash":320,
"cashMax":0
},
"msg":""
}

Request Head:

GET /app/game/ab/recent.json?enc=465baf1e133af1a7b642 HTTP/1.1


Host: web.ctree.id
Connection: keep-alive
Accept: text/javascript, application/javascript, application/ecmascript,
application/x-ecmascript, */*; q=0.01
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Linux; Android 8.0.0; SM-J600G Build/R16NW; wv)
AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/68.0.3440.91 Mobile
Safari/537.36 Cashtree/23040 com.vitiglobal.cashtree
Referer: http://web.ctree.id/app/game/ab/v2?lc=in_ID&inst_type=297
Accept-Encoding: gzip, deflate
Accept-Language: id-ID,en-US;q=0.9
Cookie: 494668b4c0ef4d25bda4e75c27de2817=3674205c-e6c2-48f3-a4bf-b1944920447d
%3A2%3A2; _ga=GA1.2.287435219.1544838915; _gid=GA1.2.549251134.1544838915;
mmses=ZV6suqBmPBmTaqxRz4vb2rGHpNlng8jBtgYpiIyXDsEa6skpHH11vc2r5j4MQ9T7OpOfIJAl2DaC4
P2CPLrnwQ==

Body:
Response Head:

HTTP/1.1 200 OK
Content-Encoding: gzip
Content-Type: text/html; charset=UTF-8
Date: Sat, 15 Dec 2018 02:20:33 GMT
Server: nginx
Vary: Accept-Encoding
X-CT-App: 1544840433
Content-Length: 354
Connection: keep-alive

Body:

DrawRecent([{"tm":"15 Dec 09:20","r":"L","lc":"3","rs":"R","rt":63.636363636364},


{"tm":"15 Dec 09:10","r":"L","lc":"3","rs":"R","rt":58.75},{"tm":"15 Dec
09:00","r":"L","lc":"3","rs":"R","rt":68.78612716763},{"tm":"15 Dec
08:50","r":"L","lc":"3","rs":"R","rt":45.578231292517},{"tm":"15 Dec
08:40","r":"L","lc":"3","rs":"R","rt":44.776119402985},{"tm":"15 Dec
08:30","r":"L","lc":"3","rs":"R","rt":39.655172413793},{"tm":"15 Dec
08:20","r":"L","lc":"4","rs":"L","rt":37.58389261745},{"tm":"15 Dec
08:10","r":"R","lc":"3","rs":"L","rt":39.160839160839},{"tm":"15 Dec
08:00","r":"R","lc":"3","rs":"L","rt":47.826086956522},{"tm":"15 Dec
07:50","r":"L","lc":"4","rs":"L","rt":49.618320610687},{"tm":"15 Dec
07:40","r":"R","lc":"3","rs":"L","rt":65.384615384615},{"tm":"15 Dec
07:30","r":"L","lc":"3","rs":"R","rt":53.284671532847},{"tm":"15 Dec
07:20","r":"L","lc":"4","rs":"L","rt":46.35761589404},{"tm":"15 Dec
07:10","r":"R","lc":"4","rs":"R","rt":64.615384615385},{"tm":"15 Dec
07:00","r":"L","lc":"3","rs":"R","rt":51.968503937008},{"tm":"15 Dec
06:50","r":"L","lc":"3","rs":"R","rt":32.967032967033},{"tm":"15 Dec
06:40","r":"R","lc":"4","rs":"R","rt":59.375},{"tm":"15 Dec
06:30","r":"L","lc":"3","rs":"R","rt":60.330578512397},{"tm":"15 Dec
06:20","r":"L","lc":"3","rs":"R","rt":64.957264957265},{"tm":"15 Dec
06:10","r":"L","lc":"4","rs":"L","rt":50.413223140496}]);

You might also like