| Line 221... |
Line 221... |
| 221 |
$('#loadingModal').modal();
|
221 |
$('#loadingModal').modal();
|
| 222 |
if($(this).data('source')==2){
|
222 |
if($(this).data('source')==2){
|
| 223 |
//in case of flipkart, close popup after 5 seconds
|
223 |
//in case of flipkart, close popup after 5 seconds
|
| 224 |
setTimeout(function(){ $('#loadingModal').modal('hide'); }, 1000*5);
|
224 |
setTimeout(function(){ $('#loadingModal').modal('hide'); }, 1000*5);
|
| 225 |
}
|
225 |
}
|
| - |
|
226 |
var store = $(this).data('source');
|
| 226 |
// console.log($(this).data('id'));
|
227 |
// console.log($(this).data('id'));
|
| 227 |
var url = apihost+"clicks/add/"+me+"/"+$(this).data('id')+'/'+$(this).data('source')+'/?url='+encodeURIComponent($(this).data('url'))+'&price='+$(this).data('price');
|
228 |
var url = apihost+"clicks/add/"+me+"/"+$(this).data('id')+'/'+$(this).data('source')+'/?url='+encodeURIComponent($(this).data('url'))+'&price='+$(this).data('price');
|
| 228 |
$.ajax({
|
229 |
$.ajax({
|
| 229 |
url: url,
|
230 |
url: url,
|
| 230 |
// The name of the callback parameter, as specified by the YQL service
|
231 |
// The name of the callback parameter, as specified by the YQL service
|
| Line 236... |
Line 237... |
| 236 |
format: "json"
|
237 |
format: "json"
|
| 237 |
},
|
238 |
},
|
| 238 |
// Work with the response
|
239 |
// Work with the response
|
| 239 |
success: function( response ) {
|
240 |
success: function( response ) {
|
| 240 |
if(response.success && response.type=='redirect'){
|
241 |
if(response.success && response.type=='redirect'){
|
| 241 |
if(me == 1) {
|
242 |
if(store == 1) {
|
| 242 |
document.location = 'http://mobilehotindia.com/r.html?'+Base64.encode(response.url);
|
243 |
document.location = 'http://mobilehotindia.com/r.html?'+Base64.encode(response.url);
|
| 243 |
}else{
|
244 |
}else{
|
| 244 |
document.location = response.url;
|
245 |
document.location = response.url;
|
| 245 |
}
|
246 |
}
|
| 246 |
}
|
247 |
}
|
| Line 517... |
Line 518... |
| 517 |
document.addEventListener(visibilityChange, handleVisibilityChange, false);
|
518 |
document.addEventListener(visibilityChange, handleVisibilityChange, false);
|
| 518 |
}
|
519 |
}
|
| 519 |
$('.notificationok').on('click',function(e){
|
520 |
$('.notificationok').on('click',function(e){
|
| 520 |
e.preventDefault();
|
521 |
e.preventDefault();
|
| 521 |
$('.notificationmodal').modal('hide');
|
522 |
$('.notificationmodal').modal('hide');
|
| 522 |
setTimeout(function(){ $('.notificationmodal').modal('hide'); }, 1000);
|
523 |
// setTimeout(function(){ $('.notificationmodal').modal('hide'); }, 1000);
|
| 523 |
ga('send', 'event', 'popupnotification', 'ok', me);
|
524 |
ga('send', 'event', 'popupnotification', 'ok', me);
|
| 524 |
document.location = $(this).parent().prop('href');
|
525 |
document.location = $(this).parent().prop('href');
|
| 525 |
});
|
526 |
});
|
| 526 |
$(document).on('click','.clearfilter',function(){
|
527 |
$(document).on('click','.clearfilter',function(){
|
| 527 |
$('.filterbrand').each(function(){
|
528 |
$('.filterbrand').each(function(){
|