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

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

26
exit.js
View File

@ -7,7 +7,8 @@ function sourceChange() {
</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 {