Created
January 19, 2010 13:12
-
-
Save mpj/280920 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<div id="LDAContainer" style="width: 100%; position: absolute; top: 0px; left: 0px; z-index: 10000;"> | |
<div class="fillScreenNoJavaScript" style="width:100%;height:5000px;position:fixed;top:0px;left:0px;background-color:#ffffff;z-index:10005;text-align:center;color:gray;"><span style="width:400px;margin:100px auto 0px auto;font-size:20px;">You need Javascript enabled in your web browser to view this site.</span></div> | |
<div class="fillScreen"></div> | |
<div id="LDAPlaceHolder"></div> | |
<script type="text/javascript"> | |
jQuery(".fillScreenNoJavaScript").hide(); | |
var ldaServerPath = "http://test.absolut.com/"; | |
var ldaBaseUrl = "lda/imheremovie/en"; | |
function readCookie(b) { b = b + "="; for (var d = document.cookie.split(";"), c = 0; c < d.length; c++) { for (var a = d[c]; a.charAt(0) == " "; ) a = a.substring(1, a.length); if (a.indexOf(b) == 0) return a.substring(b.length, a.length) } return null }; | |
function loadScript(b) { var c = document.getElementsByTagName("head")[0], a = document.createElement("script"); a.type = "text/javascript"; a.src = b; c.appendChild(a) }; | |
if (readCookie("LDAAccepted") == null) { jQuery(".fillScreenNoJavaScript").hide(); loadScript(ldaServerPath + ldaBaseUrl + "?format=js&forceage=99") } else try { LDA_onValidated() } catch (err) { }; | |
function LDA_onDisplay() { | |
try { trackVirtualPage(ldaBaseUrl); } catch (err) { } | |
} | |
function LDA_onValidated() { | |
jQuery("#LDAContainer").hide(); | |
try { trackPage(); } catch (err) { } | |
} | |
</script> | |
</div> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment