| Line -... |
Line 1... |
| - |
|
1 |
var pheight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
|
| - |
|
2 |
if(document.getElementsByClassName('mobile-recharge')[0] != undefined){
|
| - |
|
3 |
document.getElementsByClassName('mobile-recharge')[0].style.minHeight = pheight - 195 +'px';
|
| - |
|
4 |
}
|
| - |
|
5 |
if(document.getElementsByClassName('dth-recharge')[0] != undefined){
|
| - |
|
6 |
document.getElementsByClassName('dth-recharge')[0].style.minHeight = pheight - 195 +'px';
|
| - |
|
7 |
}
|
| - |
|
8 |
if(document.getElementsByClassName('conf-cont')[0] != undefined){
|
| - |
|
9 |
document.getElementsByClassName('conf-cont')[0].style.minHeight = pheight - 170 +'px';
|
| - |
|
10 |
}
|
| - |
|
11 |
|
| - |
|
12 |
|
| - |
|
13 |
|
| - |
|
14 |
|
| 1 |
var operatorId;
|
15 |
var operatorId;
|
| 2 |
var circleCode;
|
16 |
var circleCode;
|
| 3 |
function operator(){
|
17 |
function operator(){
|
| 4 |
var number = document.getElementById('mobile-number').value;
|
18 |
var number = document.getElementById('mobile-number').value;
|
| 5 |
if(number.length == 10)
|
19 |
if(number.length == 10)
|
| Line 272... |
Line 286... |
| 272 |
if(document.getElementById('captcha').style.display == 'none'){
|
286 |
if(document.getElementById('captcha').style.display == 'none'){
|
| 273 |
changeCaptcha();
|
287 |
changeCaptcha();
|
| 274 |
}
|
288 |
}
|
| 275 |
//document.getElementById('amount').value = parseInt(data.payAmount);
|
289 |
//document.getElementById('amount').value = parseInt(data.payAmount);
|
| 276 |
document.getElementById('recharge_Amount').innerHTML = parseInt(data.payAmount);
|
290 |
document.getElementById('recharge_Amount').innerHTML = parseInt(data.payAmount);
|
| 277 |
document.getElementById('payAmount').innerHTML = 'Rs '+parseInt(data.payAmount);
|
291 |
document.getElementById('payAmount').innerHTML = parseInt(data.payAmount);
|
| 278 |
if(document.getElementById('walletAmount')){
|
292 |
if(document.getElementById('walletAmount')){
|
| 279 |
var walletAmount = parseInt(document.getElementById('walletAmount').innerHTML);
|
- |
|
| 280 |
document.getElementById('walletAmount').innerHTML = parseInt(data.walletAmount);
|
293 |
document.getElementById('walletAmount').innerHTML = parseInt(data.walletAmount);
|
| 281 |
}
|
294 |
}
|
| 282 |
if(document.getElementById('walletAmountLeft')){
|
295 |
if(document.getElementById('walletAmountLeft')){
|
| 283 |
var walletAmountLeft = walletAmount - parseInt(data.walletAmount);
|
- |
|
| 284 |
document.getElementById('walletAmountLeft').innerHTML = walletAmountLeft;
|
296 |
document.getElementById('walletAmountLeft').innerHTML = parseInt(data.walletAmountLeft);
|
| 285 |
}
|
297 |
}
|
| 286 |
document.getElementById('coupon_code').value = document.getElementById('couponCode').value;
|
298 |
document.getElementById('coupon_code').value = document.getElementById('couponCode').value;
|
| - |
|
299 |
document.getElementById('payAmount').value = parseInt(data.payAmount);
|
| 287 |
document.getElementById('coupon').style.display = "none";
|
300 |
document.getElementById('coupon').style.display = "none";
|
| 288 |
document.getElementById('coupon_msg').innerHTML ='Coupon Code applied!';
|
301 |
document.getElementById('coupon_msg').innerHTML ='Coupon Code applied!';
|
| 289 |
document.getElementById('submit').value ='Recharge Now';
|
302 |
document.getElementById('submit').value ='Recharge Now';
|
| 290 |
}else{
|
303 |
}else{
|
| 291 |
//document.getElementById('amount').value = parseInt(data.payAmount);
|
304 |
//document.getElementById('amount').value = parseInt(data.payAmount);
|
| Line 420... |
Line 433... |
| 420 |
_gaq.push(['_trackEvent', 'Payment Option', 'Payment option tab-payoption selected',title]);
|
433 |
_gaq.push(['_trackEvent', 'Payment Option', 'Payment option tab-payoption selected',title]);
|
| 421 |
}
|
434 |
}
|
| 422 |
}
|
435 |
}
|
| 423 |
function submitform(){
|
436 |
function submitform(){
|
| 424 |
debugger
|
437 |
debugger
|
| 425 |
if(parseInt(document.getElementById('amountPayable').value) == 0 ){
|
438 |
if(parseInt(document.getElementById('payAmount').value) == 0 ){
|
| 426 |
if(document.getElementById('captcha_response_box').value == ''){
|
439 |
if(document.getElementById('captcha_response_box').value == ''){
|
| 427 |
// document.forms['recharge-confirm'].submit();
|
440 |
// document.forms['recharge-confirm'].submit();
|
| 428 |
// }else{
|
441 |
// }else{
|
| 429 |
var bRed = document.getElementById('captcha_response_box');
|
442 |
var bRed = document.getElementById('captcha_response_box');
|
| 430 |
bRed.style.border = 'red solid 1px';
|
443 |
bRed.style.border = 'red solid 1px';
|