clickio

No click zone Desktop

Apr 8th, 2020
653
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 8.19 KB | None | 0 0
  1. <a id="lx_home_button" href="https://clickio.com/?utm_source=%site_url%&utm_medium=adunit_label&utm_campaign=hor_sticky_desktop" target="_blank" title="">
  2.     Ads by
  3.     <svg width="42" height="14" viewBox="0 0 42 14" fill="none" xmlns="http://www.w3.org/2000/svg">
  4.         <path d="M12.4002 0.0638104C13.1396 0.0638104 13.7622 0.638104 13.7622 1.3783C13.7622 2.14403 13.1396 2.71832 12.4002 2.71832C11.6609 2.71832 11.0383 2.13127 11.0383 1.3783C11.0513 0.650866 11.6739 0.0638104 12.4002 0.0638104Z" fill="#48647F"/>
  5.         <path d="M0 7.03191C0 4.95169 1.53057 3.48405 3.64484 3.48405C4.53984 3.48405 5.29216 3.79034 5.91476 4.33911C5.68128 4.90064 5.43484 5.43665 5.20136 5.99818C4.8252 5.58979 4.37122 5.34731 3.83941 5.34731C2.87956 5.34731 2.29586 6.01094 2.29586 7.03191C2.29586 8.02735 2.87956 8.7165 3.87832 8.7165C4.47498 8.7165 4.86411 8.46126 5.21433 8.10392C5.43484 8.67822 5.68128 9.22699 5.90179 9.80128C5.29216 10.299 4.60469 10.6053 3.63187 10.6053C1.54355 10.6053 0 9.20146 0 7.03191Z" fill="#48647F"/>
  6.         <path d="M11.2588 3.66272H13.5547V10.4011H11.2588V3.66272Z" fill="#48647F"/>
  7.         <path d="M14.7869 7.03191C14.7869 4.95169 16.3175 3.48405 18.4317 3.48405C19.3267 3.48405 20.092 3.79034 20.7017 4.33911C20.4682 4.90064 20.2217 5.43665 19.9883 5.99818C19.6121 5.58979 19.1581 5.34731 18.6263 5.34731C17.6665 5.34731 17.0698 6.01094 17.0698 7.03191C17.0698 8.02735 17.6535 8.7165 18.6523 8.7165C19.2489 8.7165 19.638 8.46126 19.9883 8.10392C20.2088 8.67822 20.4552 9.22699 20.6757 9.80128C20.0661 10.299 19.3786 10.6053 18.4058 10.6053C16.3305 10.6053 14.7869 9.20146 14.7869 7.03191Z" fill="#48647F"/>
  8.         <path d="M32.0124 0.0638104C32.7517 0.0638104 33.3743 0.638104 33.3743 1.3783C33.3743 2.14403 32.7517 2.71832 32.0124 2.71832C31.273 2.71832 30.6504 2.13127 30.6504 1.3783C30.6504 0.650866 31.286 0.0638104 32.0124 0.0638104ZM30.8579 3.66272H33.1538V10.4011H30.8579V3.66272Z" fill="#48647F"/>
  9.         <path d="M38.1995 10.6053C36.0593 10.6053 34.399 9.04832 34.399 7.04467C34.399 5.0155 36.0593 3.48405 38.1995 3.48405C40.3397 3.48405 42 5.02826 42 7.04467C42 9.07384 40.3527 10.6053 38.1995 10.6053ZM38.1995 5.3856C37.2786 5.3856 36.7078 6.04923 36.7078 7.04467C36.7078 8.04011 37.2786 8.70374 38.1995 8.70374C39.1204 8.70374 39.6912 8.04011 39.6912 7.04467C39.6912 6.04923 39.1204 5.3856 38.1995 5.3856Z" fill="#48647F"/>
  10.         <path d="M38.1995 11.3455C38.9389 11.3455 39.5615 11.9198 39.5615 12.66C39.5615 13.4257 38.9389 14 38.1995 14C37.4602 14 36.8376 13.4129 36.8376 12.66C36.8505 11.9198 37.4731 11.3455 38.1995 11.3455Z" fill="#48647F"/>
  11.         <path d="M7.04324 0H9.3391V10.4011H7.04324V0Z" fill="#48647F"/>
  12.         <path d="M29.1587 9.30356C28.8993 8.89517 28.6269 8.49955 28.3156 8.09116C28.0043 7.68277 27.693 7.29991 27.3687 6.91705C27.1872 6.71285 27.0185 6.52142 26.8499 6.35552C27.0185 6.17685 27.2001 5.99818 27.3687 5.79398C27.693 5.41112 28.0173 5.02826 28.3156 4.61987C28.6269 4.21149 28.8993 3.81586 29.1587 3.40748C29.1977 3.35643 29.2236 3.30538 29.2495 3.25433C28.6918 3.02461 27.8098 2.65451 27.1223 2.37375C26.9666 2.61623 26.798 2.87147 26.6164 3.165C26.4089 3.48405 26.1884 3.8031 25.9549 4.12215C25.7214 4.4412 25.475 4.74749 25.2156 5.04102C24.9561 5.33455 24.6967 5.57703 24.4373 5.78122V0H22.1414V10.4011H24.4373V6.91705C24.6967 7.12124 24.9561 7.36372 25.2156 7.65725C25.475 7.95078 25.7214 8.25706 25.9549 8.57612C26.1884 8.89517 26.4089 9.21422 26.6164 9.53327C26.824 9.85232 27.0185 10.1459 27.1742 10.4011H29.8073C29.6387 10.0693 29.4182 9.69918 29.1587 9.30356Z" fill="#48647F"/>
  13.         <path d="M32.0253 0.0638104C32.7647 0.0638104 33.3873 0.638104 33.3873 1.3783C33.3873 2.14403 32.7647 2.71832 32.0253 2.71832C31.286 2.71832 30.6634 2.13127 30.6634 1.3783C30.6763 0.650866 31.299 0.0638104 32.0253 0.0638104Z" fill="#48647F"/>
  14.     </svg>
  15. </a>
  16. <style>
  17.     :root {
  18.         --lx-bg-color: #F0F4F8;
  19.         --lx-cross-color: #48647F;
  20.     }
  21.  
  22.     #lx_650580 {
  23.         left: 50%;
  24.         transform: translate(-50%, 0);
  25.         z-index: 9999998;
  26.         position: fixed;
  27.         bottom: 0px;
  28.         background: transparent;
  29.         text-align: center;
  30.         transition: 300ms ease-in;
  31.         line-height: 0px;
  32.     }
  33.  
  34.     #lx_650580 #lx_close_button {
  35.         position: absolute;
  36.         height: 100%;
  37.         width: 33px;
  38.         top: 0px;
  39.         left: 0px;
  40.         background-size: 13px 13px;
  41.         background-position: 9px;
  42.         background-color: var(--lx-bg-color);
  43.         background-repeat: no-repeat;
  44.         border: 0px none;
  45.         text-transform: none;
  46.     }
  47.  
  48.     #lx_650580 #lx_close_button span {
  49.         position: absolute;
  50.         height: 33px;
  51.         top: 50%;
  52.         margin-top: -17px;
  53.         width: 90px;
  54.         text-align: center;
  55.         transform: rotate(-90deg);
  56.         left: 50%;
  57.         margin-left: -45px;
  58.         display: block;
  59.         line-height: 31px;
  60.         color: var(--lx-cross-color);
  61.     }
  62.  
  63.     #lx_650580 .lx_close_button:before {
  64.         position: absolute;
  65.         content: "";
  66.         top: -40px;
  67.         right: -40px;
  68.         left: -40px;
  69.         bottom: 0px;
  70.         cursor: default;
  71.     }
  72.  
  73.     #lx_650580 div[id^="div-gpt-ad-"] {
  74.         display: inline-block;
  75.         position:relative;
  76.       box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2) !important;
  77.       padding-left: 33px;
  78.     }
  79.  
  80.     #lx_650580 #lx_home_button {
  81.         display:none;
  82.     }
  83.  
  84.     #lx_650580 .lx_home_button {
  85.         background-color: var(--lx-bg-color);
  86.         border-radius: 7px 7px 0px 0px;
  87.         height: 24px;
  88.         line-height: 24px;
  89.         padding: 0px 9px;
  90.         text-align: center;
  91.         position: absolute;
  92.         right: 0px;
  93.         top: -24px;
  94.         border: none;
  95.         outline: none;
  96.         font-family: verdana;
  97.         font-size: 12px;
  98.         color: var(--lx-cross-color);
  99.         cursor: pointer;
  100.         font-weight: normal;
  101.         text-decoration: none;
  102.     }
  103.  
  104.     #lx_650580 .lx_home_button svg {
  105.         fill: var(--lx-cross-color)!important;
  106.         vertical-align: middle;
  107.     }
  108.     #lx_650580 .lx_home_button svg path {
  109.         fill: var(--lx-cross-color)!important;
  110.     }
  111.    
  112.     #lx_650580 .lx_home_button:hover {
  113.         text-decoration: none
  114.     }
  115.  
  116.     #lx_650580 .lx_no_click {
  117.         position: absolute;
  118.         width: 113px;
  119.         left: -43px;
  120.         bottom: 0px;
  121.         height: 140%;
  122.     }
  123.  
  124. </style>
  125. <script>
  126.     (function(){
  127.         var id      = "650580";
  128.         var exText  = "Close";
  129.        
  130.         var adUnit  = document.querySelector("#lx_" + id);
  131.         var adName = ["clickio_area_"+ id +"_"];
  132.         var h       = document.querySelector("#lx_" + id + " #lx_home_button");
  133.  
  134.         function lxCloseUnit() {
  135.             while (adUnit.hasChildNodes()) {
  136.                 adUnit.removeChild(adUnit.lastChild);
  137.             }
  138.         }
  139.  
  140.         function addButtons() {
  141.             var newHomeBtn = h.cloneNode(true);
  142.             newHomeBtn.removeAttribute("id");
  143.             newHomeBtn.classList.add("lx_home_button");
  144.             var lxCloseButton = document.createElement("button")
  145.             lxCloseButton.id = "lx_close_button";
  146.             lxCloseButton.innerHTML = "<span>" + exText + "</span>";
  147.             var lxNoClick = document.createElement("div");
  148.             lxNoClick.classList.add("lx_no_click");
  149.             var unit = adUnit.querySelector("div[id^=\"div-gpt-ad-\"]");
  150.             unit.appendChild(lxNoClick);
  151.             unit.appendChild(lxCloseButton);
  152.             unit.appendChild(newHomeBtn);
  153.             lxCloseButton.onclick = lxCloseUnit;
  154.         }
  155.  
  156.         var __lx_checkSlot = function(slotId) {
  157.             return adName.some(function(adName) {
  158.                 return slotId.indexOf(adName) !== -1;
  159.             });
  160.         }
  161.  
  162.         window.googletag = window.googletag || {};
  163.         window.googletag.cmd = window.googletag.cmd || [];
  164.        
  165.         googletag.cmd.push(function(){
  166.             googletag.pubads().addEventListener("slotRenderEnded", function(event){
  167.                 var slotId = event.slot.getSlotId().getId();
  168.                 if(__lx_checkSlot(slotId) && event.slot.getResponseInformation())
  169.                {
  170.                    addButtons();
  171.                 }
  172.             });
  173.         });
  174.  
  175.         var observer = new MutationObserver(function(mutationsList, observer) {
  176.             for (let mutation of mutationsList) {
  177.                 if (mutation.type === "childList" &&
  178.                    /^div-gpt-ad-.*/.test(mutation.target.id) &&
  179.                    mutation.addedNodes.length &&
  180.                    mutation.addedNodes[0].tagName === "IFRAME" )
  181.                {
  182.                    addButtons();
  183.                     observer.disconnect();
  184.                 }
  185.             }
  186.         });
  187.        
  188.         observer.observe(adUnit, {
  189.             childList: true,
  190.             subtree : true
  191.         });
  192.     })();
  193. </script>
Add Comment
Please, Sign In to add comment