Ansi/Ascii toggle button, form display cleanup
This commit is contained in:
parent
de82467f77
commit
139764f4f8
3 changed files with 25 additions and 14 deletions
|
|
@ -15,3 +15,12 @@ textarea {
|
|||
padding: 0;
|
||||
height: 2em;
|
||||
}
|
||||
|
||||
pre {
|
||||
font-family: 'TopazPlus a500a1000a2000','mOsOul',Monaco,monospace;
|
||||
font-size: 16;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: 10;
|
||||
}
|
||||
|
|
@ -54,10 +54,18 @@ Also hide the hidden things.
|
|||
)
|
||||
$(->
|
||||
$(".hidden").hide()
|
||||
$("#amiga").button {icons: {primary:"ui-icon-gear"}}
|
||||
.click ->
|
||||
stuff = $(@).children()
|
||||
if @.value == "1"
|
||||
stuff[1].textContent = 'Ansi'
|
||||
@.value = "0"
|
||||
else
|
||||
stuff[1].textContent = 'Ascii'
|
||||
@.value = "1"
|
||||
$(".45box").css {width:'45%',float:'left'}
|
||||
)
|
||||
|
||||
|
||||
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),
|
||||
|
|
@ -98,13 +106,7 @@ a html template, and a css file.
|
|||
alert "loader"
|
||||
|
||||
editor: (data) ->
|
||||
|
||||
alert dumpjson data
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
q = data
|
||||
|
||||
A Helper function to dump json out of an object as text:
|
||||
|
||||
|
|
|
|||
|
|
@ -17,11 +17,11 @@
|
|||
</div>
|
||||
|
||||
<div class='hidden' id='formica'>
|
||||
<form action="sahlieditor_submit" method="get" accept-charset="utf-8">
|
||||
<form accept-charset="utf-8">
|
||||
<ol>
|
||||
<div class='groupbox' id='basics'>
|
||||
<p>Basics:</p>
|
||||
<div>
|
||||
<div class='drop'>
|
||||
<ul>
|
||||
<label for="file">File name:</label>
|
||||
<input type="file" name="file" value="" placeholder="">
|
||||
|
|
@ -38,10 +38,10 @@
|
|||
</div>
|
||||
<div class='groupbox' id='displaydata'>
|
||||
<p>Display:</p>
|
||||
<div>
|
||||
<div class='drop' id='fl'>
|
||||
<ul>
|
||||
<label for="file">Ascii or Ansi?</label>
|
||||
<button name="amiga" id='amiga'>Ascii?</button>
|
||||
<button name="amiga" id='amiga' type='button' value='1'>Ascii</button>
|
||||
</ul>
|
||||
<ul>
|
||||
<label for="width">With of file:</label>
|
||||
|
|
@ -80,7 +80,7 @@
|
|||
</div>
|
||||
<div class='groupbox' id='optionals'>
|
||||
<p>Optional text:</p>
|
||||
<div>
|
||||
<div class='drop'>
|
||||
<ul>
|
||||
<label for="line1">Optional Info line 1:</label>
|
||||
<input type="text" name="line1" value="" placeholder="">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue