Subversion Repositories SmartDukaan

Rev

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

Rev 2923 Rev 2939
Line 29... Line 29...
29
$(function(){
29
$(function(){
30
    var e = document.createElement('script');
30
    var e = document.createElement('script');
31
    e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
31
    e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
32
    e.async = true;
32
    e.async = true;
33
    document.getElementById('fb-root').appendChild(e);
33
    document.getElementById('fb-root').appendChild(e);
34
    
-
 
35
    if (fbData.page)	{
-
 
36
        if (fbData.page.liked)	{
-
 
37
    		$(".like").show();
-
 
38
    	} else	{
-
 
39
    		$(".unlike").show();
-
 
40
    	}
-
 
41
    } else	{
-
 
42
    	window.top.location.href = 'http://www.facebook.com/mysaholic?sk=app_209449825766256';
-
 
43
    }
-
 
44
	
34
	
45
	$('#share').click(function(){
35
	$('#share').click(function(){
46
		publishStream();
36
		publishStream();
47
	});
37
	});
48
	
38
	
Line 51... Line 41...
51
			method: 'apprequests',
41
			method: 'apprequests',
52
			title: 'Invite Friends to Android Festival',
42
			title: 'Invite Friends to Android Festival',
53
			message: 'Check out Android Festival on Saholic.com - Massive discounts on hot selling Android smart phones'
43
			message: 'Check out Android Festival on Saholic.com - Massive discounts on hot selling Android smart phones'
54
		});
44
		});
55
	});
45
	});
-
 
46
	
-
 
47
	$('.link-coupon').click(function(){
-
 
48
		console.log('clicked');
-
 
49
		$(this).hide()
-
 
50
			.siblings('span.coupon').show();
-
 
51
	});
56
});
52
});
57
53