Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // http://www.linkbucks.com/scripts/intermissionLink.v3.js
- (function () {
- if (!window.JSON) {
- window.JSON = {
- parse : function (sJson) {
- return eval("(" + sJson + ")");
- }
- };
- }
- var browser = function () {
- var n = navigator.userAgent.toLowerCase();
- var b = {
- webkit : /webkit/.test(n),
- mozilla : (/mozilla/.test(n)) && (!/(compatible|webkit|trident)/.test(n)),
- chrome : /chrome/.test(n) && !(/edge/.test(n)),
- msie : (/msie/.test(n) || /trident/.test(n)) && (!/opera/.test(n)) && !(/edge/.test(n)),
- edge : /edge/.test(n),
- firefox : /firefox/.test(n) && !(/edge/.test(n)),
- safari : (/safari/.test(n) && !(/chrome/.test(n)) && !(/edge/.test(n))),
- opera : /opera/.test(n)
- };
- b.version = (b.safari) ? (n.match(/.+(?:ri)[\/: ]([\d.]+)/) || [])[1] : (n.match(/.+(?:ox|me|ra|ie|rv)[\/: ]([\d.]+)/) || [])[1];
- try {
- b.majorVersion = b.version.split('.')[0];
- } catch (e) {
- b.majorVersion = null;
- }
- b.getXmlHttp = function () {
- var xmlhttp;
- try {
- xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
- } catch (e) {
- try {
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- } catch (e) {
- xmlhttp = false;
- }
- }
- if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
- xmlhttp = new XMLHttpRequest();
- }
- return xmlhttp;
- };
- return b;
- }
- ();
- // IE trim function fix
- if (typeof String.prototype.trim !== 'function') {
- String.prototype.trim = function () {
- return this.replace(/^\s+|\s+$/g, '');
- };
- }
- var cookies = new(function () {
- this.set = function (value) {
- document.cookie = value;
- };
- this.get = function (key) {
- var keyValuePairs = document.cookie.split(';');
- for (var i = 0; i < keyValuePairs.length; i++) {
- var keyValuePair = keyValuePairs[i].trim();
- if (keyValuePair.length == 0) {
- continue;
- }
- var keyValueArray = keyValuePair.split('=');
- if (keyValueArray.length != 2) {
- continue;
- }
- if (keyValueArray[0] == key) {
- return keyValueArray[1];
- }
- }
- return null;
- };
- })();
- var events = new(function () {
- this.attach = function (name, handler) {
- if (document.addEventListener) {
- document.addEventListener(name, handler, false);
- } else {
- document.attachEvent("on" + name, handler);
- }
- };
- this.detach = function (name, handler) {
- if (document.removeEventListener) {
- document.removeEventListener(name, handler, false);
- } else {
- document.detachEvent("on" + name, handler);
- }
- };
- })();
- // Important: keep in sync with full page script
- var popUnder = function (url, options) {
- var topWindow = (top != self && typeof(top.document.location.toString()) === 'string') ? top : self;
- var windowConfig = 'toolbar=no,scrollbars=yes,location=yes,statusbar=yes,menubar=no,resizable=1,width=' + options.width.toString() + ',height=' + options.height.toString() + ',screenX=' + options.left.toString() + ',screenY=' + options.top.toString();
- var flashObj = null;
- var useFlash = false;
- if (browser.chrome == true && browser.majorVersion >= 35 && navigator.userAgent.toLowerCase().indexOf('mac os') == -1) {
- var flashEnabled = typeof(navigator.mimeTypes["application/x-shockwave-flash"]) !== 'undefined';
- if (flashEnabled && options.swfUrl) {
- initFlashPop(options.swfUrl);
- useFlash = true;
- }
- }
- this.open = function () {
- if (options.callback) {
- options.callback();
- }
- if (useFlash) {
- popViaFlash();
- return;
- }
- // Chrome 30 and above use tabs
- if (browser.chrome == true && browser.majorVersion >= 30) {
- openInBackgroundTab();
- return;
- }
- var popunder = topWindow.window.open(url, options.name, windowConfig);
- if (popunder) {
- try {
- popunder.blur();
- popunder.opener.window.focus();
- window.self.window.focus();
- window.focus();
- if (browser.firefox)
- openCloseWindow();
- if (browser.webkit && !browser.edge)
- openCloseTab();
- if (browser.msie || browser.edge) {
- setTimeout(function () {
- popunder.blur();
- popunder.opener.window.focus();
- window.self.window.focus();
- window.focus();
- }, 1000);
- }
- } catch (e) {}
- }
- }
- function openInBackgroundTab() {
- var a = document.createElement("a");
- a.href = url;
- a.target = options.name;
- var evt = document.createEvent("MouseEvents");
- // The tenth parameter of initMouseEvent sets ctrl key
- evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, true, false, false, true, 0, null);
- a.dispatchEvent(evt);
- }
- function initFlashPop(swfUrl) {
- flashObj = document.createElement("object");
- flashObj.setAttribute("type", "application/x-shockwave-flash");
- flashObj.setAttribute("id", "flash_pop");
- flashObj.setAttribute("data", swfUrl);
- flashObj.setAttribute("style", "position:fixed;visibility:visible;left:0;top:0;width:1px;height:1px;z-index:99999");
- var winTransParam = document.createElement("param");
- winTransParam.setAttribute("name", "wmode");
- winTransParam.setAttribute("value", "transparent");
- flashObj.appendChild(winTransParam);
- var menuParam = document.createElement("param");
- menuParam.setAttribute("name", "menu");
- menuParam.setAttribute("value", "false");
- flashObj.appendChild(menuParam);
- var accessParam = document.createElement("param");
- accessParam.setAttribute("name", "allowscriptaccess");
- accessParam.setAttribute("value", "always");
- flashObj.appendChild(accessParam);
- var screenParam = document.createElement("param");
- screenParam.setAttribute("name", "allowfullscreen");
- screenParam.setAttribute("value", "true");
- flashObj.appendChild(screenParam);
- document.body.insertBefore(flashObj, document.body.firstChild);
- flashObj.focus();
- window['showPop'] = function () {
- flashObj.style.width = "0px";
- flashObj.style.height = "0px";
- flashObj.style.visibility = "hidden";
- topWindow.window.open(url, options.name, windowConfig);
- };
- }
- function popViaFlash() {
- flashObj.style.width = "100%";
- flashObj.style.height = "100%";
- }
- function openCloseWindow() {
- var ghost = window.open('about:blank');
- ghost.focus();
- ghost.close();
- }
- function openCloseTab() {
- var nothing = '';
- var ghost = document.createElement("a");
- ghost.href = "data:text/html,<scr" + nothing + "ipt>window.close();</scr" + nothing + "ipt>";
- document.getElementsByTagName("body")[0].appendChild(ghost);
- var clk = document.createEvent("MouseEvents");
- clk.initMouseEvent("click", false, true, window, 0, 0, 0, 0, 0, true, false, false, true, 0, null);
- ghost.dispatchEvent(clk);
- ghost.parentNode.removeChild(ghost);
- }
- };
- function bindPopUnder(url, options) {
- var pop = new popUnder(url, options);
- if (browser.chrome == true) {
- // mousedown is used instead of click because it is a pre condition for chrome pop via flash
- events.attach('mousedown', pop.open);
- } else {
- // click is needed for ie and firefox, otherwise pop up will be blocked
- events.attach('click', pop.open);
- }
- }
- var Lbjs = {
- IsMouse : false,
- Flipped : false,
- UrlEncoded : 0,
- AdType : 0,
- ContentType : 0,
- Token : "",
- Key : null,
- AdUrl : "",
- KeyUrl : "",
- AdPop : false,
- Preview : false,
- AdPopUrl : "",
- TargetUrl : "",
- Countdown : 0,
- Initialized : false,
- UnloadTracked : false,
- UserId : null,
- AdBlockSpotted : false,
- UnloadRequested : false,
- SwfUrl : null,
- Init : function (num, params) {
- this.Token = params.Token;
- this.AuthKey = params.AuthKey;
- this.UrlEncoded = params.UrlEncoded;
- this.AdType = params.AdType;
- this.ContentType = params.ContentType;
- this.AdUrl = params.AdUrl;
- this.Preview = params.Preview;
- this.AdPopUrl = params.AdPopUrl;
- this.KeyUrl = params.KeyUrl;
- this.AdPop = params.AdPop;
- this.TargetUrl = params.TargetUrl;
- this.Countdown = params.Countdown;
- this.UserId = params.UserId;
- this.SwfUrl = params.SwfUrl;
- this.InitJsKey(num, this.Token);
- this.Content();
- this.Resize();
- // Restore url to normal if encoded
- if (this.UrlEncoded == true) {
- this.TargetUrl = this.Encode(this.ConvertFromHex(this.TargetUrl));
- }
- if (this.Preview == false) {
- this.Pop();
- }
- if (this.Gate.Exists(this.TargetUrl)) {
- this.TargetUrl = this.Gate.InsertGateKey(this.TargetUrl);
- }
- document.onmouseover = Lbjs.MouseOverHandler;
- window.onbeforeunload = this.UnloadHandler;
- document.getElementById('refLink').onclick = this.UnblockNavigation;
- document.getElementById('advertise').onclick = this.UnblockNavigation;
- document.getElementById('advertise2').onclick = this.UnblockNavigation;
- },
- isOldFormatLinkRequest : function () {
- // Link can be in two formats linkcode.domain.com or domain.com/linkcode. Check if link is of format linkcode.domain.com
- var parts = window.location.hostname.split('.');
- return parts.length > 2 && /[a-zA-Z0-9]{8}/.test(parts[0]);
- },
- storePopOpened : function (cookieName) {
- var cookiePath;
- if (this.isOldFormatLinkRequest()) {
- cookiePath = '/';
- } else {
- var locationParts = window.location.toString().split('//')[1].split('/');
- var codeMatch = locationParts[1].match(/^([a-zA-Z0-9]{1,8})/g);
- if (codeMatch.length > 0) {
- cookiePath = '/' + codeMatch[0];
- } else {
- cookiePath = '/';
- }
- }
- var now = new Date();
- var expires = new Date(now.getTime() + 24 * 60 * 60 * 1000);
- cookies.set(cookieName + '=1;expires=' + expires.toGMTString() + ';path=' + cookiePath);
- },
- Pop : function () {
- if (this.AdPop == false) {
- return;
- }
- var thisRef = this;
- bindPopUnder(this.AdPopUrl, {
- name : 'ad_' + Math.floor(89999999 * Math.random() + 10000000),
- width : window.screen.availWidth,
- height : window.screen.availHeight,
- top : 0,
- left : 0,
- swfUrl : this.SwfUrl,
- callback : function () {
- var cookieName = "lb_popunder_" + thisRef.AdType + "_" + thisRef.ContentType;
- thisRef.storePopOpened(cookieName);
- }
- });
- },
- Util : {
- getQueryParam : function (targetStr, name) {
- var uriParts = targetStr.split('?');
- if (uriParts.length != 2) {
- return null;
- }
- var queryString = uriParts[1];
- var query = (function (keyValuePairs) {
- if (keyValuePairs == null || keyValuePairs.length == 0) {
- return {};
- }
- var result = {};
- for (var i = 0; i < keyValuePairs.length; ++i) {
- var keyValue = keyValuePairs[i].split('=');
- if (keyValue.length != 2)
- continue;
- result[keyValue[0]] = decodeURIComponent(keyValue[1].replace(/\+/g, " "));
- }
- return result;
- })(queryString.split('&'));
- return query[name] || null;
- },
- replaceQueryParam : function (targetStr, name, value) {
- var paramStart = targetStr.indexOf('&' + name + '=');
- if (paramStart == -1) {
- paramStart = targetStr.indexOf('?' + name + '=');
- }
- if (paramStart == -1) {
- throw 'Parameter not found';
- }
- var paramEnd = targetStr.indexOf('&', paramStart + 1);
- var paramValueStart = targetStr.indexOf('=', paramStart);
- var result = targetStr.substr(0, paramValueStart) + '=' + value;
- if (paramEnd != -1) {
- result += targetStr.substr(paramEnd, targetStr.length - paramEnd);
- }
- return result;
- },
- frameLoadedAndVisible : function (element, srcPattern) {
- if (element == null || element.tagName.toLowerCase() !== 'iframe') {
- return false;
- }
- var currentElement = element;
- while (currentElement != null && currentElement !== document.body) {
- if (currentElement.style.visibility === 'hidden' && currentElement.style.display === 'none') {
- return false;
- }
- currentElement = currentElement.parentNode;
- }
- if (element.clientHeight <= 0 || element.clientWidth <= 0) {
- return false;
- }
- if (element.src == null || element.src != srcPattern) {
- return false;
- }
- if (window.getComputedStyle) {
- var style = window.getComputedStyle(element, null);
- if (style && style.getPropertyValue && style.getPropertyValue('display') == 'none') {
- return false;
- }
- } else if (element.offsetWidth == 0) {
- return false;
- }
- return true;
- }
- },
- Gate : {
- Exists : function (url) {
- var gate = Lbjs.Util.getQueryParam(url, "_lbGate");
- return gate != null && /^[0-9]{6}$/.test(gate);
- },
- InsertGateKey : function (url) {
- if (!this.Exists(url)) {
- return url;
- }
- var gate = Lbjs.Util.getQueryParam(url, "_lbGate");
- return Lbjs.Util.replaceQueryParam(url, "_lbGate", this.CalculateGateCode(gate).toString());
- },
- CalculateGateCode : function (gateId) {
- var result = Lbjs.UserId;
- var gateIdStr = gateId.toString();
- for (var i = 0; i < gateIdStr.length; i++) {
- var num = parseInt(gateIdStr.charAt(i));
- var navigatorLen = window.navigator.userAgent.length;
- num = num % (navigatorLen - 1);
- result += num;
- result += window.navigator.userAgent.charCodeAt(num);
- }
- return result;
- }
- },
- SetKey : function (key) {
- this.Key = key;
- },
- Timer : function () {
- var timer = document.getElementById("timer");
- var skipDisabled = document.getElementById("skip_disabled");
- timer.innerHTML = this.Countdown;
- if (--this.Countdown >= 0) {
- setTimeout(function () {
- Lbjs.Timer();
- }, 1000);
- } else {
- if (this.TargetUrl == null || this.TargetUrl == '') {
- if (!this.Util.frameLoadedAndVisible(document.getElementById('content'), this.AdUrl)) {
- this.AdBlockSpotted = true;
- } else {
- this.LoadTargetUrl();
- }
- }
- this.Fader.FadeOut(timer, 500, null);
- this.Fader.FadeOut(skipDisabled, 750, function () {
- Lbjs.Skip();
- });
- this.OnTimerComplete();
- }
- },
- LoadTargetUrl : function () {
- var request = browser.getXmlHttp();
- var adBlock = typeof(window['__noAdBlock']) === "undefined" || window['__noAdBlock'] !== true;
- request.open('GET', '/intermission/loadTargetUrl?t=' + this.Token + '&aK=' + this.AuthKey + '&a_b=' + adBlock, false);
- request.send(null);
- if (request.status === 200) {
- var response = JSON.parse(request.responseText);
- if (response.Success == true) {
- if (response.AdBlockSpotted == true) {
- this.AdBlockSpotted = true;
- } else {
- this.TargetUrl = response.Url;
- }
- } else if (typeof(response.Errors) !== "undefined" && response.Errors.length > 0) {
- this.TargetUrl = '';
- }
- }
- },
- OnTimerComplete : function () {},
- MouseOverHandler : function () {
- Lbjs.IsMouse = true;
- },
- UnloadHandler : function () {
- Lbjs.UnloadRequested = true;
- if (Lbjs.Key != null && Lbjs.UnloadTracked == false) {
- Lbjs.Track(6);
- Lbjs.UnloadTracked = true;
- }
- return "You are going to be redirected away from the current page. Are you sure you want to continue?\n\nNote: To arrive at your intended destination, you must click to stay on the page and then click 'Skip Ad'";
- },
- Resize : function () {
- var resizeWindow = false;
- var minWindowWidth = 1024;
- var minWindowHeight = 768;
- var windowWidth = this.GetWindowWidth();
- var windowHeight = this.GetWindowHeight();
- if (windowWidth < minWindowWidth) {
- if (screen.width < minWindowWidth)
- windowWidth = screen.width;
- else
- windowWidth = minWindowWidth;
- resizeWindow = true;
- }
- if (windowHeight < minWindowHeight) {
- if (screen.height < minWindowHeight)
- windowHeight = screen.height;
- else
- windowHeight = minWindowHeight;
- resizeWindow = true;
- }
- if (resizeWindow) {
- window.resizeTo(windowWidth, windowHeight);
- window.focus();
- }
- },
- Content : function () {
- var content = document.getElementById("content");
- var parent = content.parentNode;
- parent.removeChild(content);
- parent.appendChild(content);
- content.style.display = "";
- content.src = this.AdUrl;
- },
- UnblockNavigation : function () {
- // In some browsers timer execution in iframe can overwrite window.top.location in the middle of redirect
- // Code below prevents this
- if (Lbjs.UnloadRequested == true) {
- var content = document.getElementById("content");
- var parent = content.parentNode;
- parent.removeChild(content);
- }
- window.onbeforeunload = null;
- },
- Skip : function () {
- var skip = document.getElementById("skiplink");
- skip.style.display = "";
- skip.href = '#';
- if (this.AdBlockSpotted) {
- skip.onclick = function () {
- alert('You are not allowed to access the destination web page until you view an advertisement. Please make sure that all Ad blocking software is turned off and refresh the page.');
- return false;
- };
- } else if (this.TargetUrl == null || this.TargetUrl == '') {
- skip.onclick = function () {
- alert('There was an error obtaining a link to the destination web page, please refresh the page.');
- return false;
- };
- } else {
- skip.onclick = function (e) {
- Lbjs.UnblockNavigation();
- // Sctrip script to avoid XSS
- var url = Lbjs.TargetUrl;
- while (url.indexOf('javascript:') != -1) {
- url = url.replace(/javascript:/g, '');
- }
- var evt = !e ? window.event : e;
- var which = evt.which || evt.keyCode;
- if (typeof which != 'undefined' && which != null) {
- window.location.href = url;
- // On safari mobile pop under prevents navigation if link is not set
- skip.href = url;
- }
- };
- }
- skip.onmousedown = function () {
- Lbjs.Track(4);
- };
- var height = screen.height;
- var width = screen.width;
- var browserHeight = document.documentElement.clientHeight || document.body.clientHeight;
- var browserWidth = document.documentElement.clientWidth || document.body.clientWidth;
- Lbjs.Track(1, "h=" + height + "&w=" + width + "&m=" + (Lbjs.IsMouse == true ? '1' : '0') + "&bh=" + browserHeight + "&bw=" + browserWidth);
- },
- Track : function (type, params) {
- var img = new Image();
- var rnd = Math.random();
- var url = "/track/" + type + "/?t=" + this.Token + "&rnd=" + rnd + "&k=" + this.Key + (params ? '&' + params : '');
- img.src = url;
- },
- TrackSync : function (type, params) {
- var rnd = Math.random();
- var url = "/track/" + type + "/?t=" + this.Token + "&rnd=" + rnd + "&k=" + this.Key + (params ? '&' + params : '');
- var xmlhttp = browser.getXmlHttp();
- xmlhttp.open('GET', url, false);
- xmlhttp.send(null);
- },
- AddScript : function (scriptUrl, scriptId) {
- var s1 = document.createElement("script");
- s1.type = "text/javascript";
- s1.id = scriptId;
- s1.async = true;
- s1.src = scriptUrl;
- var s2 = document.getElementsByTagName("script")[0];
- s2.parentNode.insertBefore(s1, s2);
- },
- CreateScriptElement : function (url) {
- var script = document.createElement("script");
- script.setAttribute("type", "text/javascript");
- var rand = Math.floor(89999999 * Math.random() + 10000000);
- script.src = (url.indexOf("?") > -1) ? url + "&" + rand : url + "?" + rand;
- return script;
- },
- AddScriptWithCallback : function (scriptUrl, callback) {
- var head = document.getElementsByTagName("head")[0];
- var script = this.CreateScriptElement(scriptUrl);
- var done = false;
- script.onload = script.onreadystatechange = function () {
- // Some browser has support of both ways and some might fire loaded event more than once (e.g. Opera)
- // So use done flag to prevent multiple callback calls
- if (done == false && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) {
- done = true;
- script.onload = script.onreadystatechange = null;
- if (typeof callback == "function") {
- callback();
- }
- }
- };
- // Use insertBefore to prevent an IE6 bug.
- head.insertBefore(script, head.firstChild);
- },
- AddEvent : function (target, eventName, handlerName) {
- if (target.addEventListener) {
- target.addEventListener(eventName, eval(handlerName), false);
- } else if (target.attachEvent) {
- target.attachEvent("on" + eventName, eval(handlerName));
- } else {
- var originalHandler = target["on" + eventName];
- if (originalHandler) {
- target["on" + eventName] = eval(handlerName);
- } else {
- target["on" + eventName] = eval(handlerName);
- }
- }
- },
- Encode : function (str) {
- var s = [],
- j = 0,
- x,
- res = '',
- k = arguments.callee.toString().replace(/\s+/g, "");
- for (var i = 0; i < 256; i++) {
- s[i] = i;
- }
- for (i = 0; i < 256; i++) {
- j = (j + s[i] + k.charCodeAt(i % k.length)) % 256;
- x = s[i];
- s[i] = s[j];
- s[j] = x;
- }
- i = 0;
- j = 0;
- for (var y = 0; y < str.length; y++) {
- i = (i + 1) % 256;
- j = (j + s[i]) % 256;
- x = s[i];
- s[i] = s[j];
- s[j] = x;
- res += String.fromCharCode(str.charCodeAt(y)^s[(s[i] + s[j]) % 256]);
- }
- return res;
- },
- ConvertFromHex : function (str) {
- var result = [];
- while (str.length >= 2) {
- result.push(String.fromCharCode(parseInt(str.substring(0, 2), 16)));
- str = str.substring(2, str.length);
- }
- return result.join("");
- },
- GetWindowHeight : function () {
- var myHeight = 0;
- if (typeof(window.innerHeight) == 'number') {
- myHeight = window.innerHeight;
- } else if (document.documentElement && document.documentElement.clientHeight) {
- myHeight = document.documentElement.clientHeight;
- } else if (document.body && document.body.clientHeight) {
- myHeight = document.body.clientHeight;
- }
- return myHeight;
- },
- GetWindowWidth : function () {
- var myWidth = 0;
- if (typeof(window.innerWidth) == 'number') {
- myWidth = window.innerWidth;
- } else if (document.documentElement && document.documentElement.clientWidth) {
- myWidth = document.documentElement.clientWidth;
- } else if (document.body && document.body.clientWidth) {
- myWidth = document.body.clientWidth;
- }
- return myWidth;
- },
- SetStyle : function (element, text) {
- element.setAttribute("style", text);
- element.style.cssText = text;
- },
- Fader : {
- FadeOut : function (element, duration, callback) {
- var params = {
- State : 0,
- Element : element,
- Duration : duration,
- Callback : callback,
- Remaining : 0,
- LastTick : 0
- };
- this.Init(params);
- this.Animate(params);
- },
- FadeIn : function (element, duration, callback) {
- var params = {
- State : 1,
- Element : element,
- Duration : duration,
- Callback : callback,
- Remaining : 0,
- LastTick : 0
- };
- this.Init(params);
- this.Animate(params);
- },
- Init : function (params) {
- var display = params.Element.style.display;
- if (display === "inline") {
- params.Element.style.display = "inline-block";
- } else {
- params.Element.style.display = "inline";
- params.Element.style.zoom = 1;
- }
- params.Remaining = params.Duration;
- params.LastTick = new Date().getTime();
- },
- Animate : function (params) {
- var newTick = new Date().getTime();
- var scope = this;
- var opacity;
- params.Remaining -= newTick - params.LastTick;
- opacity = params.Remaining / params.Duration;
- opacity = (params.State == 0) ? opacity : (1 - opacity);
- var setOpacity = function (opacity) {
- params.Element.style.opacity = opacity;
- params.Element.style.filter = 'alpha(opacity = ' + (opacity * 100) + ')';
- };
- if (params.Remaining <= 0) {
- if (params.State == 0) {
- opacity = 0;
- params.Element.style.display = "none";
- } else {
- opacity = 1;
- params.Element.style.display = "";
- }
- setOpacity(opacity);
- if (typeof params.Callback == "function")
- params.Callback();
- return;
- } else {
- setOpacity(opacity);
- }
- params.LastTick = new Date().getTime();
- setTimeout(function () {
- scope.Animate(params);
- }, 50);
- }
- },
- InitJsKey : function (num, token) {
- window['_sK' + num] = function (v) {
- Lbjs.SetKey(v);
- };
- var thisRef = this;
- var onLoad = this.AdType == 2 ? function () {
- thisRef.Timer();
- }
- : null;
- this.AddScriptWithCallback(this.KeyUrl, onLoad);
- }
- };
- window.initLbjs = function (authKey, params) {
- if (typeof(authKey) !== "string") {
- return;
- }
- Lbjs.Init(authKey, params);
- };
- })();
Add Comment
Please, Sign In to add comment