load location into location input field

This commit is contained in:
Iam Naughton Phier 2014-08-06 15:38:53 +03:00
parent 61686c559c
commit dcadf74d55
3 changed files with 323 additions and 308 deletions

View file

@ -120,6 +120,7 @@
var item, x, _i, _len, _ref; var item, x, _i, _len, _ref;
$('#list').show(100); $('#list').show(100);
x = 0; x = 0;
$('#dirlocation').val(this.data.location);
_ref = this.data.filedata; _ref = this.data.filedata;
for (_i = 0, _len = _ref.length; _i < _len; _i++) { for (_i = 0, _len = _ref.length; _i < _len; _i++) {
item = _ref[_i]; item = _ref[_i];

View file

@ -139,6 +139,7 @@ does not alter the array. Alternately, _have_ it alter the array.
buildlist: (data) -> buildlist: (data) ->
$('#list').show 100 $('#list').show 100
x = 0 x = 0
$('#dirlocation').val @data.location
$('#sortlist').append @.additem item,x++ for item in @data.filedata $('#sortlist').append @.additem item,x++ for item in @data.filedata
$('#sortlist').sortable $('#sortlist').sortable
start: (event,ui) -> start: (event,ui) ->

View file

@ -1,309 +1,322 @@
{ {
"location": "testshow", "location": "testshow",
"slides": { "slides": {
"background": "screen.png", "background": "screen.png",
"template": "template.html", "template": "template.html",
"css": "template.css" "css": "template.css"
}, },
"filedata": [{ "filedata": [
"file": "spaceflight.asc", {
"name": "Spaceflight", "file": "spaceflight.asc",
"filetype":"plain", "name": "Spaceflight",
"amiga": true, "filetype": "plain",
"width": "80", "amiga": true,
"author": "Urs", "width": "80",
"font": "Propaz", "author": "Urs",
"color": [ "font": "Propaz",
200, "color": [
200, 255,
200, 255,
255 0,
], 0
"bg": [ ],
0, "bg": [
0, 11,
0, 11,
0 59,
], 0
"line1": "Revision 2013", ],
"line2": "Mercury", "line1": "Revision 2013",
"text": "No tools, just a text editor" "line2": "Mercury",
}, { "text": "No tools, just a text editor"
"file": "az0!-revi510n.txt", },
"name": "Revi510n", {
"filetype":"plain", "file": "az0!-revi510n.txt",
"amiga": true, "name": "Revi510n",
"width": "80", "filetype": "plain",
"color": [ "amiga": true,
200, "width": "80",
200, "color": [
200, 200,
255 200,
], 200,
"bg": [ 255
0, ],
0, "bg": [
0, 0,
0 0,
], 0,
"author": "Azzaro", 0
"font": "Propaz", ],
"line1": "Revision 2013", "author": "Azzaro",
"line2": "Madwizards+Floppy", "font": "Propaz",
"text": "Wow I'm back to ascii scene after 12 years break. Have fun people! Amiiiiiiga :)" "line1": "Revision 2013",
}, { "line2": "Madwizards+Floppy",
"file": "ted_-_spaceship_enterprise.ans", "text": "Wow I'm back to ascii scene after 12 years break. Have fun people! Amiiiiiiga :)"
"name": "SPACEshiP ENterprISe", },
"filetype":"ansi", {
"amiga": false, "file": "ted_-_spaceship_enterprise.ans",
"width": "80", "name": "SPACEshiP ENterprISe",
"color": [ "filetype": "ansi",
0, "amiga": false,
30, "width": "80",
30, "color": [
255 0,
], 30,
"bg": [ 30,
240, 255
240, ],
250, "bg": [
255 240,
], 240,
"author": "Ted", 250,
"font": "ansifont", 255
"line1": "Revision 2013", ],
"line2": "Pöo-crüe^3ln", "author": "Ted",
"text": "Special greets to m0d - you're AWESOME! -\nThis displays more nicely in 80x50 mode\nTruck said it was OK to do that mode outside the rules\nProper resolution in Partymeister" "font": "ansifont",
}, { "line1": "Revision 2013",
"file": "h7-supergroupies.ans", "line2": "Pöo-crüe^3ln",
"name": "Super Groupies", "text": "Special greets to m0d - you're AWESOME! -\nThis displays more nicely in 80x50 mode\nTruck said it was OK to do that mode outside the rules\nProper resolution in Partymeister"
"filetype":"ansi", },
"amiga": false, {
"width": "80", "file": "h7-supergroupies.ans",
"color": [ "name": "Super Groupies",
0, "filetype": "ansi",
30, "amiga": false,
30, "width": "80",
255 "color": [
], 0,
"bg": [ 30,
240, 30,
240, 255
250, ],
255 "bg": [
], 240,
"author": "H7", 240,
"font": "ansifont", 250,
"line1": "Revision 2013", 255
"line2": "Blocktronics & Accession", ],
"text": "Pablodraw osX" "author": "H7",
}, { "font": "ansifont",
"file": "51_DRGN.XB", "line1": "Revision 2013",
"name": "51 Dragon", "line2": "Blocktronics & Accession",
"filetype":"xbin", "text": "Pablodraw osX"
"amiga": false, },
"width": "80", {
"color": [ "file": "51_DRGN.XB",
0, "name": "51 Dragon",
30, "filetype": "xbin",
30, "amiga": false,
255 "width": "80",
], "color": [
"bg": [ 0,
240, 30,
240, 30,
250, 255
255 ],
], "bg": [
"author": "CIA", 240,
"font": "ansifont", 240,
"line1": "CIA Pack 62", 250,
"line2": "", 255
"text": "16colors archive" ],
}, { "author": "CIA",
"file": "ARTX-LGO.ADF", "font": "ansifont",
"name": "example ADF", "line1": "CIA Pack 62",
"filetype":"adf", "line2": "",
"amiga": false, "text": "16colors archive"
"width": "120", },
"color": [ {
0, "file": "ARTX-LGO.ADF",
30, "name": "example ADF",
30, "filetype": "adf",
255 "amiga": false,
], "width": "120",
"bg": [ "color": [
240, 0,
240, 30,
250, 30,
255 255
], ],
"author": "Apathy", "bg": [
"font": "ansifont", 240,
"line1": "ADF example", 240,
"line2": "...", 250,
"text": "not Amiga disk file" 255
}, { ],
"file": "US-SADIS.BIN", "author": "Apathy",
"name": "bin example", "font": "ansifont",
"filetype":"bin", "line1": "ADF example",
"amiga": false, "line2": "...",
"width": "120", "text": "not Amiga disk file"
"color": [ },
0, {
30, "file": "US-SADIS.BIN",
30, "name": "bin example",
255 "filetype": "bin",
], "amiga": false,
"bg": [ "width": "120",
240, "color": [
240, 0,
250, 30,
255 30,
], 255
"author": "CIA", ],
"font": "ansifont", "bg": [
"line1": "BIN example", 240,
"line2": "...", 240,
"text": "whee" 250,
}, { 255
"file": "zv_iniq.tnd", ],
"name": "tundra example", "author": "CIA",
"filetype":"tundra`", "font": "ansifont",
"amiga": false, "line1": "BIN example",
"width": "120", "line2": "...",
"color": [ "text": "whee"
0, },
30, {
30, "file": "zv_iniq.tnd",
255 "name": "tundra example",
], "filetype": "tundra",
"bg": [ "amiga": false,
240, "width": "120",
240, "color": [
250, 0,
255 30,
], 30,
"author": "Sense", 255
"font": "ansifont", ],
"line1": "Tundra example", "bg": [
"line2": "...", 240,
"text": "more examples" 240,
}, { 250,
"file": "MD-XMAS.IDF", 255
"name": "IDF example", ],
"filetype":"idf", "author": "Sense",
"amiga": false, "font": "ansifont",
"width": "120", "line1": "Tundra example",
"color": [ "line2": "...",
0, "text": "more examples"
30, },
30, {
255 "file": "MD-XMAS.IDF",
], "name": "IDF example",
"bg": [ "filetype": "idf",
240, "amiga": false,
240, "width": "120",
250, "color": [
255 0,
], 30,
"author": "MD", 30,
"font": "ansifont", 255
"line1": "Xmas (ivf example)", ],
"line2": "...", "bg": [
"text": "more examples" 240,
}, { 240,
"file": "example.avatar", 250,
"name": "AVATAR example", 255
"filetype":"avatar", ],
"amiga": false, "author": "MD",
"width": "80", "font": "ansifont",
"color": [ "line1": "Xmas (ivf example)",
0, "line2": "...",
30, "text": "more examples"
30, },
255 {
], "file": "example.avatar",
"bg": [ "name": "AVATAR example",
240, "filetype": "avatar",
240, "amiga": false,
250, "width": "80",
255 "color": [
], 0,
"author": "avatarperson", 30,
"font": "ansifont", 30,
"line1": "an avatar file", 255
"line2": "...", ],
"text": "more examples" "bg": [
}, { 240,
"file": "pcboard.pcboard", 240,
"name": "PCBoard example", 250,
"filetype":"pcboard", 255
"amiga": false, ],
"width": "120", "author": "avatarperson",
"color": [ "font": "ansifont",
0, "line1": "an avatar file",
30, "line2": "...",
30, "text": "more examples"
255 },
], {
"bg": [ "file": "pcboard.pcboard",
240, "name": "PCBoard example",
240, "filetype": "pcboard",
250, "amiga": false,
255 "width": "120",
], "color": [
"author": "pcboard person", 0,
"font": "ansifont", 30,
"line1": "PCBOARD example", 30,
"line2": "...", 255
"text": "more examples" ],
}, { "bg": [
"file": "example.ICE", 240,
"name": "ICE example", 240,
"filetype":"ice", 250,
"amiga": false, 255
"width": "120", ],
"color": [ "author": "pcboard person",
0, "font": "ansifont",
30, "line1": "PCBOARD example",
30, "line2": "...",
255 "text": "more examples"
], },
"bg": [ {
240, "file": "example.ICE",
240, "name": "ICE example",
250, "filetype": "ice",
255 "amiga": false,
], "width": "120",
"author": "ice", "color": [
"font": "ansifont", 0,
"line1": "ICE example", 30,
"line2": "...", 30,
"text": "more examples" 255
],
}, { "bg": [
"file": "51_EMP.XB", 240,
"name": "WIDE xbin", 240,
"filetype":"xbin", 250,
"amiga": false, 255
"width": "120", ],
"color": [ "author": "ice",
0, "font": "ansifont",
30, "line1": "ICE example",
30, "line2": "...",
255 "text": "more examples"
], },
"bg": [ {
240, "file": "51_EMP.XB",
240, "name": "WIDE xbin",
250, "filetype": "xbin",
255 "amiga": false,
], "width": "120",
"author": "Apathy", "color": [
"font": "ansifont", 0,
"line1": "wide XBIN", 30,
"line2": "...", 30,
"text": "wide XBIN example" 255
}] ],
} "bg": [
240,
240,
250,
255
],
"author": "Apathy",
"font": "ansifont",
"line1": "wide XBIN",
"line2": "...",
"text": "wide XBIN example"
}
]
}