приближаться "+n+" секунд!
");document.getElementById("waiting").innerHTML = "";document.getElementById("waiting").append(scrEl);}function loadGame() {loadTheGame("load-game",true,true,true);document.querySelectorAll(".vote-btn").forEach(elf => {elf.classList.toggle("hide");});}}});function iI() {setTimeout(() => {var data6 = new FormData();data6.append('f', '2226');fetch("/x_load_game_visited.php", {method:"POST",body: data6}).then((res)=>{return res.text()})}, 90000);loadSimilarGames();var data4 = new FormData();data4.append('f', 'freestyle snowboard');fetch("/x_load_game_similar.php", {method:"POST",body: data4}).then((res)=>{return res.text()}).then((html)=>{const scriptEl = document.createRange().createContextualFragment(html);document.querySelector("#game-similar").innerHTML = "";document.querySelector("#game-similar").append(scriptEl);});document.querySelectorAll(".vote-btn").forEach(elf => {elf.addEventListener("click",(ev) => {fetch("/x_load_game_rate.php", {method:"POST",headers: {"Content-Type": "application/json"},body: JSON.stringify({"action":""+elf.getAttribute("clksen")+"","gameId":""+elf.getAttribute("gameid")+""})}).then((res)=>{if(res.status == 200) {document.querySelectorAll(".vote-btn").forEach(elf => {elf.classList.add("hide");});return res.text()}}).then((html)=>{document.querySelector(".vote-answer").classList.remove("hide");document.querySelector(".vote-answer").classList.add("btn-success");document.querySelector(".vote-answer").innerHTML = html;});});});toggleFull=function(){window.dispatchEvent(new Event("fullscreen"));var e=document.getElementById("html5-player");e&&(e.fullScreenElement&&null!==e.fullScreenElement||e.mozFullScreen||e.webkitIsFullScreen?cancelFullScreen(document):requestFullScreen(e));return false};cancelFullScreen=function(e){window.dispatchEvent(new Event("fullscreen"));var l=e.cancelFullScreen||e.webkitCancelFullScreen||e.mozCancelFullScreen||e.exitFullscreen;if(l)l.call(e);else if(void 0!==window.ActiveXObject){var n=new ActiveXObject("WScript.Shell");null!==n&&n.SendKeys("{F11}")}};requestFullScreen=function(e){var l=e.requestFullScreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;if(l)l.call(e);else if(void 0!==window.ActiveXObject){var n=new ActiveXObject("WScript.Shell");null!==n&&n.SendKeys("{F11}")}return false};};window.addEventListener ? window.addEventListener("load", iI, !1) : window.attachEvent ? window.attachEvent("onload", iI) : window.onload = iI;function reportGame(e) {var datafec = new FormData();datafec.append('f', '2226');datafec.append('t', 'freestyle snowboard');fetch("/x_load_game_report.php", {method:"POST",body: datafec});if("Сообщить о нарушении игры"==document.getElementById("report-game").textContent){document.getElementById("report-game").classList.toggle("text-orange");document.getElementById("report-game").innerHTML="Отменить сообщение о сломанной игре";}else{document.getElementById("report-game").classList.toggle("text-orange");document.getElementById("report-game").innerHTML="Сообщить о нарушении игры";}document.getElementById("reportGame").style.display="none"}