mirror of
https://github.com/AleziaKurdis/Overte-community-apps.git
synced 2025-04-14 01:26:04 +02:00
Add files via upload
This commit is contained in:
parent
4f743b84b3
commit
2e564fbe80
2 changed files with 10 additions and 33 deletions
|
@ -29,26 +29,16 @@
|
|||
|
||||
function clicked(){
|
||||
if (Appstatus == true){
|
||||
//print("turn off");
|
||||
|
||||
tablet.webEventReceived.disconnect(onMoreAppWebEventReceived);
|
||||
tablet.gotoHomeScreen();
|
||||
//tablet.screenChanged.disconnect(onMoreAppScreenChanged);
|
||||
|
||||
}else{
|
||||
//print("turn on");
|
||||
|
||||
|
||||
tablet.gotoWebScreen(APP_URL); //+ "?version=" + Math.floor(Math.random()*50000));
|
||||
|
||||
tablet.webEventReceived.connect(onMoreAppWebEventReceived);
|
||||
//tablet.screenChanged.connect(onMoreAppScreenChanged);
|
||||
/*
|
||||
Script.setTimeout(function() {
|
||||
sendRunningScriptList();
|
||||
}, 2000);
|
||||
*/
|
||||
|
||||
|
||||
tablet.gotoWebScreen(APP_URL);
|
||||
|
||||
tablet.webEventReceived.connect(onMoreAppWebEventReceived);
|
||||
|
||||
}
|
||||
|
||||
|
@ -93,20 +83,7 @@
|
|||
|
||||
}
|
||||
|
||||
/*
|
||||
function onMoreAppScreenChanged(type, url) {
|
||||
if ((type === "Web")) {
|
||||
Appstatus = true;
|
||||
}else{
|
||||
Appstatus = false;
|
||||
button.editProperties({
|
||||
isActive: Appstatus
|
||||
});
|
||||
tablet.webEventReceived.disconnect(onMoreAppWebEventReceived);
|
||||
tablet.screenChanged.disconnect(onMoreAppScreenChanged);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
tablet.webEventReceived.connect(onMoreAppWebEventReceived);
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
|
||||
|
||||
//Paths
|
||||
var currentPath = window.location.protocol + "//" + window.location.host + "/" + window.location.pathname;
|
||||
var currentPath = window.location.protocol + "//" + window.location.host + window.location.pathname;
|
||||
var rootPath = currentPath.replace("more/more.html", "applications/");
|
||||
|
||||
//Running scripts
|
||||
|
@ -59,10 +59,10 @@
|
|||
|
||||
|
||||
EventBridge.scriptEventReceived.connect(function(message){
|
||||
alert(message);
|
||||
|
||||
//update the buttons
|
||||
buttonList.forEach(function(item){
|
||||
alert(item.url);
|
||||
|
||||
var btn = "";
|
||||
if(message.indexOf(item.url) != -1){
|
||||
//Means already running
|
||||
|
@ -290,8 +290,8 @@
|
|||
pageContent = pageContent + "<td><div class='iconContainer'><img src='" + rootPath + item.icon + "' style='width:50px;'><br><font class = 'caption'>" + item.caption + "</font></div></td>";
|
||||
var btn = "";
|
||||
var absoluteJsFile = rootPath + item.jsfile;
|
||||
|
||||
var btn = ""; //"<button class='install' onclick = 'uninstall(absoluteJsFile, window.btoa(item.name));'>Install</button>";
|
||||
|
||||
var btn = "<button class='install' onclick = 'uninstall(absoluteJsFile, window.btoa(item.name));'>Install</button>";
|
||||
var btndata = {
|
||||
"url": absoluteJsFile,
|
||||
"id": window.btoa(item.name)
|
||||
|
|
Loading…
Reference in a new issue