Technológie

Čo vidíme: Turecký (nedávny) kolaps meny, schválenie Číny Čínou medzi EÚ a EÚ, slovenská kríza Sputnik

Ďalej
Zobraziť menej

let scrollTop = document.scrollingElement.scrollTop; window.addEventListener('scroll', function(e) { let topbar = document.querySelector('.topbar_wrapper'); if(document.scrollingElement.scrollTop > 50) { topbar.classList.add("topbarScroll"); } else { topbar.classList.remove("topbarScroll"); } });

});

window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){

!function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window,document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '359223808087944'); fbq('track', 'PageView');

});

window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){

});

window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){

let sectionList = document.querySelector(".sections-list");

let newLinks="

";

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"); } };

});

Related Articles

Pridaj komentár

Vaša e-mailová adresa nebude zverejnená. Vyžadované polia sú označené *

Back to top button
Close
Close