Things I worked on before the openssl issue took me away

This commit is contained in:
Howland Owl 2014-04-14 13:47:01 +03:00
parent 085adf6f03
commit 4ae2a68fec

View file

@ -30,8 +30,58 @@ Create a split button to choose between the New and Load functionalities
(As we aren't going to ever load a file _and_ do a new file.) (As we aren't going to ever load a file _and_ do a new file.)
(If someone wants to do that, they can restart with F5 or something.) (If someone wants to do that, they can restart with F5 or something.)
$(-> $("#newsahli").button { disabled: false} ) $(->
$(-> $("#loadsahli").button { disabled: false} ) $("#newsahli")
.button { disabled: false}
.click -> newsahli 'new'
)
$(->
$("#loadsahli")
.button { disabled: false}
.click -> alert "heyoh!"
)
The sahli file definition format is as follows:
"file" - the actual filename on disk, "name" - the title of the piece,
the boolean 'amiga' indicates if it is ansi or ascii (True = ascii),
width is the width (widest point of the file), author the author of the piece,
the color and bg items define the color for amiga ascii, and the font
defines the font similarly. For PC ansi, this should be 'ansifont.'
The three remaining lines are informational and optional.
The slide format is currently unused, but consists of a background picture,
a html template, and a css file.
class Sahli
constructor: ->
filedef = {
"file": "",
"name": "",
"amiga": true,
"width": "",
"author": "",
"font": "Propaz",
"color": [ 0,0,0,0 ],
"bg": [ 0,0,0,0 ],
"line1": "",
"line2": "",
"text": ""
}
slidesdef = {
"background": "",
"template": "",
"css": ""
}
blank = {
"slides": slidesdef,
"filedef": [ filedef ]
}
dumpjson = (obj) ->
JSON.stringify(obj)
newsahli = ->
sahli = new Sahli
alert dumpjson this.sahli