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;
|
padding: 0;
|
||||||
height: 2em;
|
height: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
font-family: 'TopazPlus a500a1000a2000','mOsOul',Monaco,monospace;
|
||||||
|
font-size: 16;
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
font-size: 10;
|
||||||
|
}
|
||||||
|
|
@ -54,9 +54,17 @@ Also hide the hidden things.
|
||||||
)
|
)
|
||||||
$(->
|
$(->
|
||||||
$(".hidden").hide()
|
$(".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'}
|
$(".45box").css {width:'45%',float:'left'}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
The sahli file definition format is as follows:
|
The sahli file definition format is as follows:
|
||||||
"file" - the actual filename on disk, "name" - the title of the piece,
|
"file" - the actual filename on disk, "name" - the title of the piece,
|
||||||
|
|
@ -98,13 +106,7 @@ a html template, and a css file.
|
||||||
alert "loader"
|
alert "loader"
|
||||||
|
|
||||||
editor: (data) ->
|
editor: (data) ->
|
||||||
|
q = data
|
||||||
alert dumpjson data
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
A Helper function to dump json out of an object as text:
|
A Helper function to dump json out of an object as text:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,11 +17,11 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class='hidden' id='formica'>
|
<div class='hidden' id='formica'>
|
||||||
<form action="sahlieditor_submit" method="get" accept-charset="utf-8">
|
<form accept-charset="utf-8">
|
||||||
<ol>
|
<ol>
|
||||||
<div class='groupbox' id='basics'>
|
<div class='groupbox' id='basics'>
|
||||||
<p>Basics:</p>
|
<p>Basics:</p>
|
||||||
<div>
|
<div class='drop'>
|
||||||
<ul>
|
<ul>
|
||||||
<label for="file">File name:</label>
|
<label for="file">File name:</label>
|
||||||
<input type="file" name="file" value="" placeholder="">
|
<input type="file" name="file" value="" placeholder="">
|
||||||
|
|
@ -38,10 +38,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class='groupbox' id='displaydata'>
|
<div class='groupbox' id='displaydata'>
|
||||||
<p>Display:</p>
|
<p>Display:</p>
|
||||||
<div>
|
<div class='drop' id='fl'>
|
||||||
<ul>
|
<ul>
|
||||||
<label for="file">Ascii or Ansi?</label>
|
<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>
|
||||||
<ul>
|
<ul>
|
||||||
<label for="width">With of file:</label>
|
<label for="width">With of file:</label>
|
||||||
|
|
@ -80,7 +80,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class='groupbox' id='optionals'>
|
<div class='groupbox' id='optionals'>
|
||||||
<p>Optional text:</p>
|
<p>Optional text:</p>
|
||||||
<div>
|
<div class='drop'>
|
||||||
<ul>
|
<ul>
|
||||||
<label for="line1">Optional Info line 1:</label>
|
<label for="line1">Optional Info line 1:</label>
|
||||||
<input type="text" name="line1" value="" placeholder="">
|
<input type="text" name="line1" value="" placeholder="">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue