Файловый менеджер - Редактировать - /www/wwwroot/gamenworld.store/themes/gameturkey/js/main.js
�азад
window.addEventListener('load', ()=>{ const download = document.getElementById('download'); const download_loading = document.getElementById('download-loading'); if (download && download_loading) { setTimeout(function() { download_loading.style.display = 'none'; download.style.display = 'block'; }, 6000); } const download_button = document.getElementById('download-button'); const downloaded_text = document.getElementById('downloaded-text'); if (download_button && downloaded_text) { download_button.addEventListener('click', function() { setTimeout(function() { downloaded_text.style.display = 'block'; downloaded_text.style.animation = 'fade-in 1s'; }, 1000); }); } const sidenav_triggers = document.querySelectorAll('.sidenav-trigger'); if (sidenav_triggers) { sidenav_triggers.forEach((sidenav_trigger)=>{ let current_sidenav = document.getElementById(sidenav_trigger.dataset.target); var current_sidenav_overlay = document.querySelector('.sidenav-overlay[data-target="' + current_sidenav.id + '"]'); sidenav_trigger.addEventListener('click', function() { current_sidenav.classList.add('sidenav-open'); current_sidenav_overlay.classList.add('sidenav-overlay-open'); }); current_sidenav_overlay.addEventListener('click', function() { current_sidenav.classList.remove('sidenav-open'); current_sidenav_overlay.classList.remove('sidenav-overlay-open'); }); } ); } if (window.matchMedia("(max-width: 600px)").matches) { const footer_details_items = document.querySelectorAll('footer details'); if (footer_details_items) { footer_details_items.forEach((item)=>{ item.open = false; } ); } } const languages = document.getElementById('languages'); if (languages) { languages.addEventListener('change', function() { window.location.href = languages.options[languages.selectedIndex].value; }); } let share_button = document.getElementById('share-button'); if (share_button) { if (navigator.share) { share_button.addEventListener('click', ()=>{ const canonicalLink = document.querySelector('link[rel=canonical]'); const url = canonicalLink ? canonicalLink.href : location.href; navigator.share({ title: document.title, text: document.title, url: url, }); } ); } else { share_button.style.display = 'none'; } } const noti_count = document.getElementById('notifications-count'); if (noti_count) { if (navigator.setAppBadge) { navigator.setAppBadge(parseInt(noti_count.innerHTML)); } } const textarea = document.getElementById('comment'); if (textarea) { textarea.addEventListener('click', function() { document.querySelector('.form-submit').style.opacity = '1'; document.querySelector('.form-submit').style.height = '40px'; document.querySelector('.comment-reply-title').style.opacity = '1'; document.querySelector('.comment-reply-title').style.height = '40px'; }); textarea.addEventListener('input', function() { document.querySelector('.form-submit').style.opacity = '1'; document.querySelector('.form-submit').style.height = '40px'; document.querySelector('.comment-reply-title').style.opacity = '1'; document.querySelector('.comment-reply-title').style.height = '40px'; }); textarea.addEventListener('keydown', function() { setTimeout(function() { textarea.style.height = 'auto'; textarea.style.height = textarea.scrollHeight + 'px'; }, 0); }); } } ); const hostname = window.location.hostname; const lForm = document.getElementById("login-form"); if (lForm !== null) { lForm.addEventListener("submit", (e) => { e.preventDefault(); const username = lForm.querySelector("input[name='usernameEmail']").value; const password = lForm.querySelector("input[name='password']").value; const button = lForm.querySelector("button[type='submit']"); const xhr = new XMLHttpRequest(); button.setAttribute("disabled", "true"); xhr.open("POST", `https://${hostname}/xhr/login.php`); xhr.onreadystatechange = () => { if (xhr.readyState === XMLHttpRequest.DONE) { if (xhr.status === 200) { if (xhr.responseText.includes("successfully") == true) { Toastify({ text: xhr.responseText, className: "info", duration: 3000, style: { background: "#96c93d", }, }).showToast(); setTimeout(() => { window.location.href = "./admin/"; button.removeAttribute("disabled"); }, 1500); } else { Toastify({ text: xhr.responseText, className: "info", duration: 3000, style: { background: "red", }, }).showToast(); button.removeAttribute("disabled"); } } } }; const form = new FormData(); form.append("usernameEmail", username); form.append("password", password); xhr.send(form); }); }
| ver. 1.4 |
Github
|
.
| PHP 8.0.26 | Генераци� �траницы: 0 |
proxy
|
phpinfo
|
�а�тройка