Загрузить файлы в «/»
This commit is contained in:
parent
e4a875c644
commit
6e60ebe83b
26
exit.js
26
exit.js
@ -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 {
|
||||
|
||||
15
reload.js
15
reload.js
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user