Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- init()
- function init() {
- setTimeout(addMouseout, 5000);
- }
- function addMouseout() {
- document.addEventListener('mouseout', mouseout);
- }
- function mouseout(e) {
- if (Math.round(e.x) >= 0 && Math.round(e.y) <= 0) {
- carrotquest.track('Попытка ухода с сайта');
- deleteEvent();
- setTimeout(addMouseout, 10000);
- }
- }
- function deleteEvent() {
- document.removeEventListener('mouseout', mouseout);
- }
- }());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement