Update index-open.html

This commit is contained in:
Innovation Inc 2019-12-13 17:21:07 -06:00 committed by GitHub
parent 67069f4905
commit 7af64bfd46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,6 +115,7 @@
var newElement="<div onclick=\"moveToFront(" + app + ")\" id=\"" + app + "\" class=\"framewrap\"><input type=\"button\" onclick=\"closeApplication(" + app + ")\" value=\"X\" /><iframe class=\"appFrame\" src=\"apps/" + app + "/\"></iframe></div>"; var newElement="<div onclick=\"moveToFront(" + app + ")\" id=\"" + app + "\" class=\"framewrap\"><input type=\"button\" onclick=\"closeApplication(" + app + ")\" value=\"X\" /><iframe class=\"appFrame\" src=\"apps/" + app + "/\"></iframe></div>";
var parent=document.getElementById('appContainer'); var parent=document.getElementById('appContainer');
parent.innerHTML+=newElement; parent.innerHTML+=newElement;
moveToFront(app);
makeDraggable(); makeDraggable();
} }
function closeApplication(app) { function closeApplication(app) {