-
-
Save englehardt/4097d627e11b140892f6bde3f84f3e42 to your computer and use it in GitHub Desktop.
No boundaries. Code snippet injected by https://gist.github.com/englehardt/4a7d140eec7371385fa98ad7bd61fe77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
window.jstag=function(){var t={_q:[],_c:{},ts:(new Date).getTime()},l=false,w=window,d=document,src="/static/io",as=Array.prototype.slice,sp;t.init=function(c){sp=c.js?c.js:c.url||"";c.ext=c.ext||".min.js";t._c=c;return this};t.load=function(){var js,fjs=d.getElementsByTagName("script")[0];l=true;if(!("JSON"in w&&Array.prototype.forEach))src+="w";if(d.getElementById(src))return this;js=d.createElement("script");js.id=src;js.src=sp+src+t._c.ext;fjs.parentNode.insertBefore(js,fjs);return this};t.bind=function(e){this._q.push([e,as.call(arguments,1)])};t.ready=function(){this._q.push(["ready",as.call(arguments)])};t.send=function(){if(!l)this.load();this._q.push(["ready","send",as.call(arguments)]);return this};return t}(); | |
jstag.init({cid:"1299",url:"//c.lytics.io"}).send(); | |
(function(w){ | |
var lfbInt; | |
function waitForFB(){ | |
try { | |
if (w.FB && !w.FB.jstagRun) { | |
w.FB.jstagRun = true; | |
FB.getLoginStatus(function(response) { | |
if (response.status === 'connected') { | |
jstag.send({fbstatus:"c",fbuid:response.authResponse.userID}) | |
} | |
clearInterval(lfbInt); | |
}); | |
return | |
} | |
} catch (err) {} | |
} | |
lfbInt = setInterval(waitForFB,500); | |
}(window)); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment