New Sahli object creation

This commit is contained in:
Howland Owl 2014-04-14 14:25:37 +03:00
parent 76157dfa59
commit ec7acc5c3b

View file

@ -55,33 +55,34 @@ The slide format is currently unused, but consists of a background picture,
a html template, and a css file. a html template, and a css file.
class Sahli class Sahli
constructor: -> constructor: ->
filedef = { @filedef = {
"file": "", "file": "",
"name": "", "name": "",
"amiga": true, "amiga": true,
"width": "", "width": "",
"author": "", "author": "",
"font": "Propaz", "font": "Propaz",
"color": [ 0,0,0,0 ], "color": [ 0,0,0,0 ],
"bg": [ 0,0,0,0 ], "bg": [ 0,0,0,0 ],
"line1": "", "line1": "",
"line2": "", "line2": "",
"text": "" "text": ""
} }
slidesdef = { @slidesdef = {
"background": "", "background": "",
"template": "", "template": "",
"css": "" "css": ""
} }
blank = { @blank = {
"slides": slidesdef, "slides": @slidesdef,
"filedef": [ filedef ] "filedef": [ @filedef ]
} }
dumpjson = (obj) -> dumpjson = (obj) ->
JSON.stringify(obj) JSON.stringify(obj)
newsahli = -> newsahli = ->
sahli = new Sahli sahli = new Sahli
alert dumpjson this.sahli alert dumpjson sahli