Subversion Repositories SmartDukaan

Rev

Rev 18118 | Rev 18145 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18118 Rev 18119
Line 354... Line 354...
354
				format: "json"
354
				format: "json"
355
			},
355
			},
356
			// Work with the response
356
			// Work with the response
357
			success: function( response ) {
357
			success: function( response ) {
358
				if(response.success && response.type=='redirect'){
358
				if(response.success && response.type=='redirect'){
359
					console.log(store);
359
					//console.log(store);
360
					if(store == 5) {
360
					if(store == 5) {
361
						//check if shopclues is active or not
361
						//check if shopclues is active or not
362
						active = getCookie('shopcluesActive',1);
362
						active = getCookie('shopcluesActive',1);
363
						response.url = 'http://mobilehotindia.com/r.html?'+Base64.encode(response.url);
363
						response.url = 'http://mobilehotindia.com/r.html?'+Base64.encode(response.url);
364
						if(active && active == 'true'){							
364
						if(active && active == 'true'){							
Line 716... Line 716...
716
  hidden = "webkitHidden";
716
  hidden = "webkitHidden";
717
  visibilityChange = "webkitvisibilitychange";
717
  visibilityChange = "webkitvisibilitychange";
718
}
718
}
719
if (typeof document.addEventListener === "undefined" || 
719
if (typeof document.addEventListener === "undefined" || 
720
  typeof document[hidden] === "undefined") {
720
  typeof document[hidden] === "undefined") {
721
  console.log("This feature requires a browser, such as Google Chrome or Firefox, that supports the Page Visibility API.");
721
  //console.log("This feature requires a browser, such as Google Chrome or Firefox, that supports the Page Visibility API.");
722
} else {
722
} else {
723
  // Handle page visibility change   
723
  // Handle page visibility change   
724
  document.addEventListener(visibilityChange, handleVisibilityChange, false);
724
  document.addEventListener(visibilityChange, handleVisibilityChange, false);
725
}    
725
}    
726
$('.notificationok').on('click',function(e){
726
$('.notificationok').on('click',function(e){
Line 1093... Line 1093...
1093
});
1093
});
1094
$(document).on('click','.selectbrand',function(e){
1094
$(document).on('click','.selectbrand',function(e){
1095
	e.preventDefault();
1095
	e.preventDefault();
1096
	var brands = $(this).data('id');
1096
	var brands = $(this).data('id');
1097
	var brandname = $(this).html();
1097
	var brandname = $(this).html();
1098
	console.log(brandname);
1098
	//console.log(brandname);
1099
 
1099
 
1100
	setCookie('brandschosen', brands, 1, true);
1100
	setCookie('brandschosen', brands, 1, true);
1101
	var url = $(this).data('href');
1101
	var url = $(this).data('href');
1102
	ga('send', 'event', 'selectbrand', 'brand', brandname);
1102
	ga('send', 'event', 'selectbrand', 'brand', brandname);
1103
	properties = {};
1103
	properties = {};
Line 1114... Line 1114...
1114
$(document).on('click','.selectsubcat',function(e){
1114
$(document).on('click','.selectsubcat',function(e){
1115
	e.preventDefault();
1115
	e.preventDefault();
1116
	$('.clearfilters').click();
1116
	$('.clearfilters').click();
1117
	var brands = $(this).data('id');
1117
	var brands = $(this).data('id');
1118
	var brandname = $(this).html();
1118
	var brandname = $(this).html();
1119
	console.log(brandname);
1119
	//console.log(brandname);
1120
	
1120
	
1121
	setCookie('subcategorieschosen', brands, 1, true);
1121
	setCookie('subcategorieschosen', brands, 1, true);
1122
	var url = $(this).data('href');
1122
	var url = $(this).data('href');
1123
	// alert(url);
1123
	// alert(url);
1124
	// ga('send', 'event', 'subcategorieschosen', 'brand', brandname);
1124
	// ga('send', 'event', 'subcategorieschosen', 'brand', brandname);