Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- (function(){
- function lx_isMatchingDeviceType(device) {
- if (typeof device === 'undefined') {return true;}
- if (['ALL', 'MOBILE', 'PHONE', 'DESKTOP', 'TABLET'].indexOf(device) == -1 || device === "ALL") {return true;}
- var md = new MobileDetect(window.navigator.userAgent);
- var isMobile = md.mobile() !== null, isPhone = md.phone() !== null, isTablet = md.tablet() !== null;
- if (device === "DESKTOP" && !isMobile) {return true;}
- if (device === "MOBILE" && isMobile) {return true;}
- if (device === "TABLET" && isTablet) {return true;}
- if (device === "PHONE" && isPhone) {return true;}
- return false;
- }
- var lx_md_script = document.createElement('script');
- var currentpage = window.location.href;
- lx_md_script.onload = function () {
- if (lx_isMatchingDeviceType('DESKTOP')&& currentpage !== "https://www.tasse-fisco.com") {
- if (!(lx_isMatchingDeviceType('DESKTOP') && window.screen.width < 1200)) {
- setTimeout(function(){
- var lx_body = document.getElementsByTagName('body').item(0);
- var lx_script = document.createElement('script');
- lx_script.setAttribute('type', 'text/javascript');
- lx_script.setAttribute('data-cfasync', 'false');
- lx_script.setAttribute('src', 'https://sac.ayads.co/sublime/33057');
- lx_body.insertBefore(lx_script, lx_body.firstChild);
- }, 100);
- }
- }
- };
- lx_md_script.setAttribute('type', 'text/javascript');
- lx_md_script.setAttribute('src', 'https://clickiocdn.com/t/fst/mobile-detect.min.js');
- lx_md_script.setAttribute('async', 'true');
- document.head.appendChild(lx_md_script);
- })();
- function receiveMessage(event)
- {
- if (event.data == "cl_mirror_enable")
- clAddMirrorSticky();
- }
- window.addEventListener("message", receiveMessage, false);
- function clAddMirrorSticky() {
- var s = document.currentScript;
- function showCode(parentSelector, parentWindow, code, divId) {
- var div = document.createElement('div');
- if (divId) div.id = divId;
- var divForScripts = document.createElement('div');
- divForScripts.innerHTML = code;
- div.appendChild(divForScripts);
- var p = parentWindow.document.querySelector(parentSelector);
- p.appendChild(div);
- var scripts = divForScripts.getElementsByTagName("script");
- Array.from(scripts).forEach(function(script, index, array) {
- var newScript = document.createElement('script');
- if(script !== s)
- {
- if(typeof script.src !== "undefined" && script.src && script.sr !== "")
- {
- newScript.src = script.src;
- newScript.className = script.className;
- div.appendChild(newScript);
- }
- else
- {
- var data = (script.text || script.textContent || script.innerHTML || "");
- newScript.className = script.className;
- newScript.type = script.type;
- newScript.appendChild(document.createTextNode(data));
- div.appendChild(newScript);
- }
- divForScripts.removeChild(script);
- }
- });
- div.removeChild(divForScripts);
- }
- var adUnitCode = "<scr" + "ipt async type='text/javascript' src='//s.clickiocdn.com/t/common_258.js'><\/scr" + "ipt>" +
- "<scr" + "ipt class='__lxGc__' type='text/javascript'>" +
- "((__lxGc__=window.__lxGc__||{'s':{},'b':0})['s']['_217337']=__lxGc__['s']['_217337']||{'b':{}})['b']['_666691']={'i':__lxGc__.b++};" +
- "<\/scr" + "ipt>"; // code to insert
- showCode('body', window, adUnitCode, 'clickio_sticky_wrapper');
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement