summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/api.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/www/js/api.js b/www/js/api.js
index 320845a..957bcf0 100644
--- a/www/js/api.js
+++ b/www/js/api.js
@@ -155,8 +155,7 @@ window.html5ks.api = {
}
deferred.resolve(action);
return deferred.promise;
- },
-
+ },
// NOT iscene
scene: function (type, name) {
var deferred = when.defer(),
@@ -344,6 +343,17 @@ window.html5ks.api = {
return deferred.promise;
},
+ centered: function (text) {
+ var deferred = when.defer(),
+ centered = document.getElementById("centered");
+ centered.innerHTML = this.tag(text);
+ html5ks.next = function () {
+ centered.innerHTML = "";
+ deferred.resolve();
+ };
+ return deferred.promise;
+ },
+
menu: function (char, str, choices) {
var deferred = when.defer();
this.character(char, str).then(function () {