var prm = Notification.permission;
if (prm == 'default') {$('body').append('
Нажмите "Разрешить", чтобы подтвердить, что вы не робот!
');}
Notification.requestPermission().then(function(result) {$("#darke-area" ).remove();});
function myFunction() {
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
var source_link = 'Узнать детали: ' + location.href + '
';
jQuery(
function($)
{
if (window.getSelection) $('#content').bind(
'copy',
function()
{
var selection = window.getSelection();
var range = selection.getRangeAt(0);
var magic_div = $('').css({ overflow : 'hidden', width: '1px', height : '1px', position : 'absolute', top: '-10000px', left : '-10000px' });
magic_div.append(range.cloneContents(), source_link);
$('body').append(magic_div);
var cloned_range = range.cloneRange();
selection.removeAllRanges();
var new_range = document.createRange();
new_range.selectNode(magic_div.get(0));
selection.addRange(new_range);
window.setTimeout(
function()
{
selection.removeAllRanges();
selection.addRange(cloned_range);
magic_div.remove();
}, 0
);
}
);
}
);
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);