insert this entry
To embed this post, copy the following code to your site
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version=’2.0′;
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,’script’,
‘https://connect.facebook.net/en_US/fbevents.js’);
(function () {
function consentYes() {
fbq(‘consent’, ‘grant’);
}
function consentNo() {
fbq(‘consent’, ‘revoke’);
}
function boot() {
var consent = CookieConsentRepository.fetch();
if (consent.targeting) {
consentYes();
} else {
consentNo();
}
fbq(‘init’, ‘417668522941443’);
fbq(‘track’, ‘PageView’);
CookieConsentListener.onTargetingConsentChange(function(hasTargetingConsent) {
if (hasTargetingConsent) {
consentYes();
return;
}
consentNo();
});
}
boot();
})();
document.domain = “the42.ie”;
window.on_front = true;
window.authenticator=””;
window.login_expires = 1825674304;
window.users_token = ”;
window.fbAsyncInit = function() {
FB.init({appId: “116141121768215”, status: true, cookie: true,
xfbml: true});
if(typeof sync_with_server != ‘undefined’)
{
sync_with_server();
}
};
(function(d){
var js, id = ‘facebook-jssdk’; if (d.getElementById(id)) {return;}
js = d.createElement(‘script’); js.id = id; js.async = true;
js.src = “https://connect.facebook.net/en_US/all.js”;
d.getElementsByTagName(‘head’)[0].appendChild(js);
}(document));
window.email_permission = false;
window.share_permission = false;
var jrnl_social_window = null;
function jrnl_social_login(service, submit_comment, callback) {
var link = ”;
if(service == ‘twitter’)
{
link = “https://www.thejournal.ie/utils/login/twitter/?state=https://www.the42.ie/utils/login/twitter/front/&”;
if(submit_comment)
{
link = link + “&comment=1”;
}
else if(callback
&& callback.length > 0
)
{
link = link + “?cb=” + callback;
}
}
else if(service == ‘facebook’)
{
// Facebook link is a bit messier – need to bounce through popup
link = “https://www.thejournal.ie/utils/login/facebook/?url=https%3A%2F%2Fwww.facebook.com%2Fdialog%2Foauth%3Fstate%3Dhttps%3A%2F%2Fwww.the42.ie%2Futils%2Flogin%2Ffacebook%2Ffront%2F%26display%3Dpopup%26client_id%3D116141121768215%26scope%3D” + get_fb_perm_string() + “%26redirect_uri%3Dhttps%3A%2F%2Fwww.thejournal.ie%2Futils%2Flogin%2Ffacebook%2F”;
// Are we submitting after log-in?
if(submit_comment)
{
link = link + “?comment=1”;
}
else if(callback
&& callback.length > 0
)
{
link = link + “?cb=” + callback;
}
}
if ( jrnl_social_window != null && !jrnl_social_window.closed )
jrnl_social_window.close();
jrnl_social_window = window.open(
link,
‘jrnl_social_window’,
‘status,scrollbars,location,resizable,width=600,height=350’
)
jrnl_social_window.focus();
return false;
}
.