Added welcome/goodbye frames and terminate pages

This commit is contained in:
Deon George
2019-10-16 16:32:43 +11:00
parent 7b13525108
commit c0b6af5363
12 changed files with 73 additions and 62 deletions

View File

@@ -19,6 +19,9 @@ var FRAME_PAGENUM =12; /* Size of page number (length with a-z)
var FRAME_COST =9; /* Size of cost (length without unit)*/
var FRAME_COSTUNIT ='c'; /* Unit of cost */
var FRAME_TYPE_INFO ='i';
var FRAME_TYPE_TERMINATE ='t';
var ERR_NOT_IMPLEMENTED = '\1RNOT IMPLEMENTED YET?';
var ERR_ROUTE = '\1n\1h\1WMISTAKE? \1GTRY AGAIN OR TELL US ON *08';
@@ -37,6 +40,7 @@ function Frame(frame,index) {
this.content='';
this.isPublic=false; // @todo
this.isAccessible=false; // @todo
this.type = FRAME_TYPE_INFO;
this.key=[ null,null,null,null,null,null,null,null,null,null ];
this.render=function() {
owner = base64_decode(this.owner);

View File

@@ -107,6 +107,7 @@ function getFrame(page) {
Object.defineProperty(frame,'page', {
get: function() {return this.frame+this.index}
});
} catch (error) {
log(LOG_ERROR,error);
return null;