output to screen, not console

This commit is contained in:
Iam Naughton Phier 2014-08-06 17:24:27 +03:00
parent dcadf74d55
commit b613205970
5 changed files with 59 additions and 9 deletions

View file

@ -66,3 +66,33 @@ div ul li{
div.groupbox p { div.groupbox p {
margin: .25 ex; 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;
}

View file

@ -110,9 +110,15 @@
} }
}).click((function(_this) { }).click((function(_this) {
return function() { return function() {
$('#sahlioutput').text(dumpjson(_this.data));
$('#dumparea').show(100);
return console.log(dumpjson(_this.data)); return console.log(dumpjson(_this.data));
}; };
})(this)); })(this));
$('#closespan').click(function() {
$(this.parentElement.parentElement).hide();
return $('#sahlioutput').text('');
});
return this.buildlist(this.data); return this.buildlist(this.data);
}; };

View file

@ -128,7 +128,12 @@ edit button.
@.data.location = event.target.value @.data.location = event.target.value
$('#listsave').button {icons: {primary:"ui-icon-disk"}} $('#listsave').button {icons: {primary:"ui-icon-disk"}}
.click => .click =>
$('#sahlioutput').text dumpjson @.data
$('#dumparea').show 100
console.log dumpjson @.data 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 You need to save the order, and extract these in that order; moving around

View file

@ -159,5 +159,10 @@
</ul> </ul>
</form> </form>
</div> </div>
<div class='hidden' id='dumparea' >
<p>Copy and save all this textual data as list.sahli in your Sahli directory <span id='closespan'>[X]</span></p>
<textarea name="sahlioutput" id='sahlioutput'></textarea>
</div>
</body> </body>
</html> </html>

View file

@ -1,5 +1,15 @@
(A) Add "type" of file(format) - plain, xbin, etc. @EDITOR delete an entry
(A) Create Editor - Standalone @EDITOR @EDITOR redo filenames to load from list of files in directory (specfied in 'location')
@EDITOR button to reload filename list from directory
@EDITOR button to insert an entry
x 2014-08-06 @EDITOR dump to screen or file, not to console when saving
x 2014-08-06 @EDITOR save (print) routine
@EDITOR text/bg colors change 'SAHLI' thing
@EDITOR update the line item when saving - what the heck is 'line item?'
x 2014-08-06 (A) Add "type" of file(format) - plain, xbin, etc.(
x 2014-08-06 (A) Create Editor - Standalone @EDITOR
(A) remove the SAUCE lines at bottom, return ANSI object for render @SAUCE (A) remove the SAUCE lines at bottom, return ANSI object for render @SAUCE
(A) XBIN @OTHER (A) XBIN @OTHER
(A) load SAUCE into 'info' lines (should be done at prep) @SAUCE @EDITRO (A) load SAUCE into 'info' lines (should be done at prep) @SAUCE @EDITRO
@ -25,13 +35,7 @@
(C) hook for progress @progress @PARTYMEISTER (C) hook for progress @progress @PARTYMEISTER
(C) load to array/picture, render from picture @16colors (C) load to array/picture, render from picture @16colors
(C) speed up rendering more? @16colors (C) speed up rendering more? @16colors
@EDITOR delete an entry
@EDITOR dump to screen or file, not to console when saving
@EDITOR fix filename 'holdover' from previous bit, 'escape/cancel' reset as well
@EDITOR fix filenames
@EDITOR save (print) routine
@EDITOR text/bg colors change 'SAHLI' thing
@EDITOR update the line item when saving
x (A) Error handler for file not found x (A) Error handler for file not found
x 2014-03-24 (B) Get with dfox on the partymeister package version x 2014-03-24 (B) Get with dfox on the partymeister package version
x 2014-04-05 (A) Split coffeescript into files, use cake. x 2014-04-05 (A) Split coffeescript into files, use cake.