' + response.status); if(is_mobile()) // Show model box if not the mobile device. { setTimeout(function() { $('#basic-modal-content').show(); $('#img_close_div').show(); $('#modalCloseImg').click(function(){ document.cookie = "visited=true; max-age=" + 60 * 60 * 24 * 2; $('#basic-modal-content').hide(); $('#img_close_div').hide(); }); }, 15000); } } }); }; (function(d) { var js, id = 'facebook-jssdk'; if (d.getElementById(id)) { return; } js = d.createElement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_US/all.js"; d.getElementsByTagName('head')[0].appendChild(js); }(document)); } else // cookie existed app initialization for rightside facebook like box. { console.log('else'); window.fbAsyncInit = function() { FB.init ({ appId: '82489327140', status: true, cookie: true, xfbml: true, oauth: true }); FB.Event.subscribe('edge.create', function(response) { console.log('like'); var CookieDate = new Date; CookieDate.setFullYear(CookieDate.getFullYear( ) +10); // setting cookie for 10 years console.log(CookieDate.toGMTString( )); document.cookie = 'visited=true; expires=' + CookieDate.toGMTString( ) + ';'; }); FB.Event.subscribe('edge.remove', function(response) { console.log('unlike'); document.cookie = "visited=true; max-age=" + 60 * 60 * 24 * 1; //set cookie for 1 day(s) unlike the page }); }; } function is_mobile() { var agents = ['android', 'webos', 'iphone', 'ipad', 'blackberry']; for(i in agents) { if(navigator.userAgent.match('/'+agents[i]+'/i')) { return true; } } return false; } -->

LIKE GIGWISE ON FACEBOOK TO GET THE HOTTEST NEWS FIRST!


Enjoy bonus videos, photos and posts and have your say on the the latest music!

Not convinced? Check it out.

Comments
comments powered by Disqus
Most Popular on Gigwise
Latest news on Gigwise
Latest Competition

Artist A-Z #  A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z