clickio

mixnews.lv adfox sticky desktop

Jan 14th, 2022 (edited)
1,142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.42 KB | None | 0 0
  1. <div id="bigBanner" style="bottom: 0px; position: fixed; z-index: 99999998; width: 100%; max-height: 100px; left: 0px; background-color: #ffffff;">
  2. <div id="stickyClose" style="z-index: 99999999;width: 30px;height: 30px;position: absolute;top: -15px;right: 0px;border: 1px solid rgba(0,0,0,0.5);border-radius: 4px; display: none">
  3. <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><rect fill="#fff" x="0" y="0" rx="4" width="100%" height="100%"></rect><polygon points="27,13.7 26.3,13 20,19.3 13.7,13 13,13.7 19.3,20 13,26.3 13.7,27 20,20.7 26.3,27 27,26.3 20.7,20"></polygon></svg>
  4. </div>
  5.  
  6. <script type="text/javascript">
  7. var stickyClose = document.getElementById("stickyClose");
  8.  
  9. function render () {
  10.     stickyClose.style.display = 'unset';
  11.     stickyClose.addEventListener ('click', function () {
  12.         var bigBanner = document.getElementById('bigBanner');
  13.         bigBanner.parentNode.removeChild (bigBanner);});
  14. }
  15.  
  16. </script>
  17.  
  18. <!-- CLICKIO AdFox unit 686432 -->
  19. <div id='adfox_163966517069915399'></div>
  20. <script>
  21.       window.yaContextCb.push(()=>{
  22.     Ya.adfoxCode.createScroll({
  23.         ownerId: 257193,
  24.         containerId: 'adfox_163966517069915399',
  25.         params: {
  26.             pp: 'rwg',
  27.             ps: 'fjja',
  28.             p2: 'fpxb'
  29.         }
  30.     }, ['desktop','tablet'],{
  31.       tabletWidth: 1024,
  32.       phoneWidth: 767,
  33.       isAutoReloads: false
  34.     })
  35.   })
  36. </script>
  37. </div>
Add Comment
Please, Sign In to add comment