Connect with us

technologia

Co obserwujemy: Indie-Pakistan mówią o wodzie, Saudyjczycy zawieszają zawieszenie broni w Jemenie, polscy pisarze są w niebezpieczeństwie

Published

on

Jeszcze
Pokaż mniej

let socialLinks = document.querySelector('.social-wrapper').innerHTML; sectionList.insertAdjacentHTML("beforeend", newLinks); sectionList.insertAdjacentHTML("beforebegin", socialLinks);

});

window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){

!function(e,t,n,s,u,a){e.twq||(s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments);

},s.version='1.1',s.queue=[],u=t.createElement(n),u.async=!0,u.src="https://static.ads-twitter.com/uwt.js",

a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(u,a))}(window,document,'script'); twq('init','o42ad'); twq('track','PageView');

});

window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){

_linkedin_partner_id = "2276418";

window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];

window._linkedin_data_partner_ids.push(_linkedin_partner_id);

(function()

{var s = document.getElementsByTagName("script")[0]; var b = document.createElement("script"); b.type = "text/javascript";b.async = true; b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js"; s.parentNode.insertBefore(b, s);} )();

});

window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){

var newsletterLightBoxElement=document.querySelector('.lightbox-newsletter'), closeLightbox, available, half_screen, lightboxCloseBtn = '.js--close-lightbox', lightboxShownClass="lightbox-newsletter--shown", buttonPopup = document.getElementById("button_input_popup");

buttonPopup.addEventListener("click", function() { localStorage.setItem("email_param", document.getElementById("email_input_popup").value); localStorage.setItem("subscription_from","popup"); location.replace("https://www.gzeromedia.com/subscribe"); });

closeLightbox = function () { newsletterLightBoxElement.parentNode.removeChild(newsletterLightBoxElement); };

document.querySelector(lightboxCloseBtn).onclick= closeLightbox;

function setCookie() { var now = new Date(); now.setTime(now.getTime() + 72 * 3600 * 1000); var expires = "expires="+now; document.cookie = expires + ";path=/"; }

function checkCookie() { var today = new Date(); var cookieset = document.cookie.split(';'); var value_expires = ""; cookieset.forEach((e) => { if(e.includes("expires")) { value_expires = e; } })

var time_expire = new Date(value_expires.split("=")[1]); if(today <= time_expire){ return false; }else{ return true; } } function checkNewsletterPop(){ if(checkCookie()){ setTimeout(function(){ newsletterLightBoxElement.classList.add(lightboxShownClass); setCookie(); }, 30000); } } /* Handler for GDPR -------------------------------------------------*/ if(localStorage.getItem("gdpr-cookie") != "accepted" && !localStorage.getItem("gdpr")){ document.querySelector(".gdpr-cookie-accept").addEventListener("click", checkNewsletterPop); }else{ checkNewsletterPop(); } }); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ var last_mark = document.getElementsByClassName("sticky-mark")[0]; var last_mark_pos = last_mark.offsetTop - 200; var sticky_div = document.getElementsByClassName("sticky_area_container")[0]; window.onscroll = function(){ if(window.pageYOffset > last_mark_pos){ sticky_div.classList.add("active-stickyness"); }else{ sticky_div.classList.remove("active-stickyness"); } };

});

READ  Godło ognia: zmarł rzecznik Three Houses Brad Venable
Continue Reading
Click to comment

Leave a Reply

Twój adres email nie zostanie opublikowany. Pola, których wypełnienie jest wymagane, są oznaczone symbolem *