News for hackers. Stuff that matters.
Re:Project Valerie – The world's first triple display laptop by guessmyname on Thursday January 05, 2017 @11:36AM (#13328524)
Good old times when the "window.unload" and "mouseout" events were used to annoy people.

At least it only does it once, unless you clear the browser cache.

    // view-source:http://www.razerzone.com/project-valerie:1667
    setTimeout(exit_signup, $('#signup_new_exit').data('popout-exit-time') || 15000);
    function exit_signup(){
      if (typeof(Storage) !== "undefined") {
        if(!localStorage.getItem("exitintent_signup")){
          addEvent(document, "mouseout", function(e) {
              e = e ? e : window.event;
              var from = e.relatedTarget || e.toElement;
              if (!from || from.nodeName == "HTML") {
                if( e.clientY < 0 && !localStorage.getItem("exitintent_signup")){
                  signup_new_exit_popout();
                  localStorage.setItem("exitintent_signup", "true");
                }
              }
          });
        }
      }
    }

There are no comments on this comment yet.