Загрузить файлы в «/»

This commit is contained in:
Fovway 2025-03-09 12:44:41 +00:00
parent e4a875c644
commit 6e60ebe83b
2 changed files with 6 additions and 37 deletions

28
exit.js
View File

@ -6,8 +6,9 @@ function sourceChange() {
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path fill-rule="evenodd" clip-rule="evenodd" d="M5.29289 5.29289C5.68342 4.90237 6.31658 4.90237 6.70711 5.29289L12 10.5858L17.2929 5.29289C17.6834 4.90237 18.3166 4.90237 18.7071 5.29289C19.0976 5.68342 19.0976 6.31658 18.7071 6.70711L13.4142 12L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071L12 13.4142L6.70711 18.7071C6.31658 19.0976 5.68342 19.0976 5.29289 18.7071C4.90237 18.3166 4.90237 17.6834 5.29289 17.2929L10.5858 12L5.29289 6.70711C4.90237 6.31658 4.90237 5.68342 5.29289 5.29289Z" fill="currentColor"></path> </g></svg>
</div>`
);
document.querySelector('.source-btn').addEventListener('click', function() {
$('.source-btn').on('hover:enter hover:click hover:touch', function() {
if (Lampa.Platform.is('apple_tv'))
window.location.assign('exit://exit');
if (Lampa.Platform.is("tizen"))
@ -17,29 +18,6 @@ function sourceChange() {
if (Lampa.Platform.is("orsay")) Lampa.Orsay.exit();
if (Lampa.Platform.is("nw")) nw.Window.get().close();
});
document.querySelector('.source-btn').addEventListener('touchend', function() {
if (Lampa.Platform.is('apple_tv'))
window.location.assign('exit://exit');
if (Lampa.Platform.is("tizen"))
tizen.application.getCurrentApplication().exit();
if (Lampa.Platform.is("webos")) window.close();
if (Lampa.Platform.is("android")) Lampa.Android.exit();
if (Lampa.Platform.is("orsay")) Lampa.Orsay.exit();
if (Lampa.Platform.is("nw")) nw.Window.get().close();
});
document.querySelector('.source-btn').addEventListener('keydown',
function(event) {
if (event.key === 'Enter') {
if (Lampa.Platform.is('apple_tv'))
window.location.assign('exit://exit');
if (Lampa.Platform.is("tizen"))
tizen.application.getCurrentApplication().exit();
if (Lampa.Platform.is("webos")) window.close();
if (Lampa.Platform.is("android")) Lampa.Android.exit();
if (Lampa.Platform.is("orsay")) Lampa.Orsay.exit();
if (Lampa.Platform.is("nw")) nw.Window.get().close();
}
});
}
if (window.appready) start();
else {

View File

@ -9,18 +9,9 @@ function reloadApp() {
);
document.querySelector('.reload--btn').addEventListener('click', function() {
location.reload();
});
document.querySelector('.reload--btn').addEventListener('touchend', function() {
location.reload();
});
document.querySelector('.reload--btn').addEventListener('keydown',
function(event) {
if(event.key === 'Enter') {
location.reload();
}
});
$('.reload--btn').on('hover:enter hover:click hover:touch', function() {
location.reload();
});
}
if (window.appready) start();
else {