{"":{"CODE_PL":"\u003c!-- Place this div wherever you want the background image to be displayed --\u003e\n\u003cdiv id=\"container\" style=\"width: 300px; height: 250px; position:relative;\"\u003e\n \u003cdiv id=\"gpt-backFill\" style=\"width: 300px; height: 250px; position: absolute; top: 0;left: 0;z-index: 100;\"\u003e\u003c/div\u003e\n \u003cdiv id=\"gpt-passback\" style=\"width: 300px; height: 250px; position: absolute; top: 0;left: 0;z-index: 1000;\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n\u003cscript\u003e\n function loadBackgroundImage(url, clickthroughUrl) {\n var div = document.getElementById('gpt-passback');\n div.style.backgroundImage = 'url(' + url + ')';\n div.style.cursor = 'pointer';\n div.addEventListener('click', function () {\n window.open(clickthroughUrl, '_blank');\n });\n }\n loadBackgroundImage('https://sm1.selectmedia.asia/cdn/files/3e2e3e08-00c6-4c88-b97c-dcd2b8831f5f', 'https://www.solitaireace.com');\n // Load \"HB\" script\n var HBScript = document.createElement('script');\n HBScript.textContent = `!(function () { window.googletag = window.googletag || {}; window.vmpbjs = window.vmpbjs || {}; window.vpb = window.vpb || {}; vpb.cmd = vpb.cmd || []; vpb.st=Date.now(); vpb.fastLoad = true; googletag.cmd = googletag.cmd || []; vmpbjs.cmd = vmpbjs.cmd || []; var cmds = []; try{ cmds = googletag.cmd.slice(0); googletag.cmd.length = 0; }catch(e){} var ready = false; function exec(cb) { return cb.call(googletag); } var overriden = false; googletag.cmd.push(function () { overriden = true; googletag.cmd.unshift = function (cb) { if (ready) { return exec(cb); } cmds.unshift(cb); if (cb._startgpt) { ready = true; for (var k = 0; k \u003c cmds.length; k++) { exec(cmds[k]); } } }; googletag.cmd.push = function (cb) { if (ready) { return exec(cb); } cmds.push(cb); }; }); if(!overriden){ googletag.cmd.push = function (cb) { cmds.push(cb); }; googletag.cmd.unshift = function (cb) { cmds.unshift(cb); if (cb._startgpt) { ready = true; if (googletag.apiReady) { cmds.forEach(function (cb) { googletag.cmd.push(cb); }); } else { googletag.cmd = cmds; } } }; } var dayMs = 36e5, cb = parseInt(Date.now() / dayMs), vpbSrc = '//player.hb.selectmedia.asia/prebidlink/' + cb + '/wrapper_hb_310028_13810.js', pbSrc = vpbSrc.replace('wrapper_hb', 'hb'), gptSrc = '//securepubads.g.doubleclick.net/tag/js/gpt.js', c = document.head || document.body || document.documentElement; function loadScript(src, cb) { var s = document.createElement('script'); s.src = src; s.defer=false; c.appendChild(s); s.onload = cb; s.onerror = function(){ var fn = function(){}; fn._startgpt = true; googletag.cmd.unshift(fn); }; return s; } loadScript(pbSrc); loadScript(gptSrc); loadScript(gptSrc); loadScript(vpbSrc); })()`;\n document.head.appendChild(HBScript);\n \n\nvar scScript = document.createElement('script');\n scScript.textContent = `vpb.cmd.push(()=\u003e{\nvpb.setClientSchain({ asi: \"selectmedia.asia\", sid: \"5fc8e4cae36ceb07dd5f26a9\" });\n})`;\n document.head.appendChild(scScript);\n// Load \"tag\" script\r\n const gptPassback = \"gpt-passback\"\r\n const gptPassbackSlotName = '/21939239661,278429819/tsm/hb_display/vidsplay_gen'\r\n const gptBackFill = \"gpt-backFill\"\r\n const gptBackFillSlotName = '/7047,/tsm7047/vidsplay_7047/tsmbanner'\r\n var tagScript = document.createElement('script');\r\n tagScript.src = '//securepubads.g.doubleclick.net/tag/js/gpt.js';\r\n tagScript.async = true;\r\n const ids = [gptBackFill, gptPassback]\r\n const maxZIndex = (id, ids) =\u003e {\r\n for (let i = 0; i \u003c ids.length; i++) {\r\n document.getElementById(ids[i]).style.zIndex = '1'\r\n }\r\n document.getElementById(id).style.zIndex = '999'\r\n }\r\n const gptPassBack = (slot) =\u003e {\r\n setTimeout(() =\u003e {\r\n if (slot) {\r\n //googletag.destroySlots([slot])\r\n }\r\n maxZIndex(gptPassback, ids)\r\n }, 1000 * 30);\r\n }\r\n const showHouseAs = () =\u003e {\r\n maxZIndex(gptPassback, ids)\r\n }\r\n let maxRetry=0\r\n tagScript.onload = function () {\r\n googletag = window.googletag || {cmd: []};\r\n googletag.cmd.push(function () {\r\n const gptPassBackSlot=googletag.defineSlot(gptPassbackSlotName, [300, 250], gptPassback).addService(window.googletag.pubads());\r\n const backFill = false//macro\r\n googletag.pubads().addEventListener('slotRenderEnded', (event) =\u003e {\r\n switch (event.slot.getAdUnitPath()) {\r\n case gptPassbackSlotName:\r\n if (!event.isEmpty) {\r\n\t\t\t\t\t\t\t document.getElementById('gpt-passback').style.backgroundImage = 'none';\r\n maxZIndex(gptPassback, ids)\r\n return\r\n }\r\n if(maxRetry\u003e0){\r\n maxRetry--\r\n googletag.pubads().refresh([gptPassBackSlot]);\r\n googletag.display(gptPassback);\r\n return\r\n }\r\n if (!backFill) {\r\n showHouseAs()\r\n return\r\n }\r\n googletag.defineSlot(gptBackFillSlotName, [300, 250], gptBackFill).addService(window.googletag.pubads());\r\n googletag.display(gptBackFill);\r\n maxZIndex(gptBackFill, ids)\r\n break\r\n case gptBackFillSlotName:\r\n if (!event.isEmpty) {\r\n gptPassBack(event.slot)\r\n return\r\n }\r\n showHouseAs()\r\n break\r\n }\r\n });\r\n googletag.enableServices();\r\n googletag.display(gptPassback);\r\n });\r\n };\r\n document.head.appendChild(tagScript);\r\n\u003c/script\u003e\r\n","CODE_PS":"\u003c!-- Place this div wherever you want the background image to be displayed --\u003e\n\u003cdiv id=\"container\" style=\"width: 300px; height: 250px; position:relative;\"\u003e\n \u003cdiv id=\"gpt-backFill\" style=\"width: 300px; height: 250px; position: absolute; top: 0;left: 0;z-index: 100;\"\u003e\u003c/div\u003e\n \u003cdiv id=\"gpt-passback\" style=\"width: 300px; height: 250px; position: absolute; top: 0;left: 0;z-index: 1000;\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n\u003cscript\u003e\n function loadBackgroundImage(url, clickthroughUrl) {\n var div = document.getElementById('gpt-passback');\n div.style.backgroundImage = 'url(' + url + ')';\n div.style.cursor = 'pointer';\n div.addEventListener('click', function () {\n window.open(clickthroughUrl, '_blank');\n });\n }\n loadBackgroundImage('https://sm1.selectmedia.asia/cdn/files/3e2e3e08-00c6-4c88-b97c-dcd2b8831f5f', 'https://www.solitaireace.com');\n // Load \"HB\" script\n var HBScript = document.createElement('script');\n HBScript.textContent = `!(function () { window.googletag = window.googletag || {}; window.vmpbjs = window.vmpbjs || {}; window.vpb = window.vpb || {}; vpb.cmd = vpb.cmd || []; vpb.st=Date.now(); vpb.fastLoad = true; googletag.cmd = googletag.cmd || []; vmpbjs.cmd = vmpbjs.cmd || []; var cmds = []; try{ cmds = googletag.cmd.slice(0); googletag.cmd.length = 0; }catch(e){} var ready = false; function exec(cb) { return cb.call(googletag); } var overriden = false; googletag.cmd.push(function () { overriden = true; googletag.cmd.unshift = function (cb) { if (ready) { return exec(cb); } cmds.unshift(cb); if (cb._startgpt) { ready = true; for (var k = 0; k \u003c cmds.length; k++) { exec(cmds[k]); } } }; googletag.cmd.push = function (cb) { if (ready) { return exec(cb); } cmds.push(cb); }; }); if(!overriden){ googletag.cmd.push = function (cb) { cmds.push(cb); }; googletag.cmd.unshift = function (cb) { cmds.unshift(cb); if (cb._startgpt) { ready = true; if (googletag.apiReady) { cmds.forEach(function (cb) { googletag.cmd.push(cb); }); } else { googletag.cmd = cmds; } } }; } var dayMs = 36e5, cb = parseInt(Date.now() / dayMs), vpbSrc = '//player.hb.selectmedia.asia/prebidlink/' + cb + '/wrapper_hb_310028_13810.js', pbSrc = vpbSrc.replace('wrapper_hb', 'hb'), gptSrc = '//securepubads.g.doubleclick.net/tag/js/gpt.js', c = document.head || document.body || document.documentElement; function loadScript(src, cb) { var s = document.createElement('script'); s.src = src; s.defer=false; c.appendChild(s); s.onload = cb; s.onerror = function(){ var fn = function(){}; fn._startgpt = true; googletag.cmd.unshift(fn); }; return s; } loadScript(pbSrc); loadScript(gptSrc); loadScript(gptSrc); loadScript(vpbSrc); })()`;\n document.head.appendChild(HBScript);\n \n\nvar scScript = document.createElement('script');\n scScript.textContent = `vpb.cmd.push(()=\u003e{\nvpb.setClientSchain({ asi: \"selectmedia.asia\", sid: \"5fc8e4cae36ceb07dd5f26a9\" });\n})`;\n document.head.appendChild(scScript);\n// Load \"tag\" script\r\n const gptPassback = \"gpt-passback\"\r\n const gptPassbackSlotName = '/21939239661,278429819/tsm/hb_display/passback_gen'\r\n const gptBackFill = \"gpt-backFill\"\r\n const gptBackFillSlotName = '/7047,/tsm7047/vidsplay_7047/tsmbanner'\r\n var tagScript = document.createElement('script');\r\n tagScript.src = '//securepubads.g.doubleclick.net/tag/js/gpt.js';\r\n tagScript.async = true;\r\n const ids = [gptBackFill, gptPassback]\r\n const maxZIndex = (id, ids) =\u003e {\r\n for (let i = 0; i \u003c ids.length; i++) {\r\n document.getElementById(ids[i]).style.zIndex = '1'\r\n }\r\n document.getElementById(id).style.zIndex = '999'\r\n }\r\n const gptPassBack = (slot) =\u003e {\r\n setTimeout(() =\u003e {\r\n if (slot) {\r\n //googletag.destroySlots([slot])\r\n }\r\n maxZIndex(gptPassback, ids)\r\n }, 1000 * 30);\r\n }\r\n const showHouseAs = () =\u003e {\r\n maxZIndex(gptPassback, ids)\r\n }\r\n let maxRetry=0\r\n tagScript.onload = function () {\r\n googletag = window.googletag || {cmd: []};\r\n googletag.cmd.push(function () {\r\n const gptPassBackSlot=googletag.defineSlot(gptPassbackSlotName, [300, 250], gptPassback).addService(window.googletag.pubads());\r\n const backFill = false//macro\r\n googletag.pubads().addEventListener('slotRenderEnded', (event) =\u003e {\r\n switch (event.slot.getAdUnitPath()) {\r\n case gptPassbackSlotName:\r\n if (!event.isEmpty) {\r\n\t\t\t\t\t\t\t document.getElementById('gpt-passback').style.backgroundImage = 'none';\r\n maxZIndex(gptPassback, ids)\r\n return\r\n }\r\n if(maxRetry\u003e0){\r\n maxRetry--\r\n googletag.pubads().refresh([gptPassBackSlot]);\r\n googletag.display(gptPassback);\r\n return\r\n }\r\n if (!backFill) {\r\n showHouseAs()\r\n return\r\n }\r\n googletag.defineSlot(gptBackFillSlotName, [300, 250], gptBackFill).addService(window.googletag.pubads());\r\n googletag.display(gptBackFill);\r\n maxZIndex(gptBackFill, ids)\r\n break\r\n case gptBackFillSlotName:\r\n if (!event.isEmpty) {\r\n gptPassBack(event.slot)\r\n return\r\n }\r\n showHouseAs()\r\n break\r\n }\r\n });\r\n googletag.enableServices();\r\n googletag.display(gptPassback);\r\n });\r\n };\r\n document.head.appendChild(tagScript);\r\n\u003c/script\u003e\r\n"}}