diff --git a/editor/sahliedit.css b/editor/sahliedit.css index 0789e87..3821a74 100644 --- a/editor/sahliedit.css +++ b/editor/sahliedit.css @@ -66,3 +66,33 @@ div ul li{ div.groupbox p { margin: .25 ex; } + +#dumparea { + position: absolute; + top: 1em; + padding: 1em; + margin: 1em; + width: 90%; + height: 90%; + background: floralwhite; + border: inset 2px royalblue; +} + +#sahlioutput { + font-family: 'TopazPlus a500a1000a2000','mOsOul',Monaco,monospace; + font-size: 16; + background: aliceblue; + overflow-wrap: break-word; + word-wrap: break-word; + width: 100%; + height: 95%; + padding: 1ex; + border: inset 2px royalblue; +} + +#closespan { + float: right; + margin: 0px 0px 1ex; + padding: 0px; + +} \ No newline at end of file diff --git a/editor/sahliedit.js b/editor/sahliedit.js index f637ecd..39c1f9c 100644 --- a/editor/sahliedit.js +++ b/editor/sahliedit.js @@ -110,9 +110,15 @@ } }).click((function(_this) { return function() { + $('#sahlioutput').text(dumpjson(_this.data)); + $('#dumparea').show(100); return console.log(dumpjson(_this.data)); }; })(this)); + $('#closespan').click(function() { + $(this.parentElement.parentElement).hide(); + return $('#sahlioutput').text(''); + }); return this.buildlist(this.data); }; diff --git a/editor/sahliedit.litcoffee b/editor/sahliedit.litcoffee index 85e0707..9bddcab 100644 --- a/editor/sahliedit.litcoffee +++ b/editor/sahliedit.litcoffee @@ -128,7 +128,12 @@ edit button. @.data.location = event.target.value $('#listsave').button {icons: {primary:"ui-icon-disk"}} .click => + $('#sahlioutput').text dumpjson @.data + $('#dumparea').show 100 console.log dumpjson @.data + $('#closespan').click -> + $(@parentElement.parentElement).hide() + $('#sahlioutput').text '' You need to save the order, and extract these in that order; moving around diff --git a/editor/sahlieditor.html b/editor/sahlieditor.html index 3f62c02..d4992b5 100644 --- a/editor/sahlieditor.html +++ b/editor/sahlieditor.html @@ -159,5 +159,10 @@ + +
Copy and save all this textual data as list.sahli in your Sahli directory [X]
+ +