move pics to first column, then restore
This commit is contained in:
parent
350ea79f74
commit
41681d651d
2 changed files with 25 additions and 61 deletions
27
sahli.coffee
27
sahli.coffee
|
|
@ -238,32 +238,39 @@ class @Sahli
|
||||||
|
|
||||||
# fix this up so it sets the appropriate width for the columns.
|
# fix this up so it sets the appropriate width for the columns.
|
||||||
# and then move the canvases into it.
|
# and then move the canvases into it.
|
||||||
|
# outbox toggled last to avoid losing width. (prolly need to fix.)
|
||||||
@panelmode = ->
|
@panelmode = ->
|
||||||
$('#panel').empty()
|
|
||||||
$('#panel').toggle()
|
$('#panel').toggle()
|
||||||
|
canvs = $('canvas')
|
||||||
if $('.scrolly').width() == @origwidth
|
if $('.scrolly').width() == @origwidth
|
||||||
$('.scrolly').width '100%'
|
$('.scrolly').width '100%'
|
||||||
else
|
$('#panel').empty()
|
||||||
$('.scrolly').width @origwidth
|
|
||||||
fw = $('body').width()
|
fw = $('body').width()
|
||||||
fh = window.innerHeight
|
fh = window.innerHeight
|
||||||
canvs = $('canvas')
|
|
||||||
numpanels = canvs.length
|
numpanels = canvs.length
|
||||||
hgt = canvs.height() * numpanels
|
hgt = canvs.height() * numpanels
|
||||||
numcols = Math.ceil(hgt / fw)
|
numcols = Math.ceil(hgt / fw)
|
||||||
amt = fw/numcols - 6
|
amt = fw/numcols
|
||||||
outer = $('<div>')
|
outer = $('<div>')
|
||||||
for i in [1..numcols] by 1
|
outer.append @createpanel(i,amt - 6) for i in [1..numcols]
|
||||||
dcol = $("<div id='column#{i}'>#{i}</div>")
|
|
||||||
dcol.addClass 'panelcolumn'
|
|
||||||
dcol.width amt
|
|
||||||
outer.append dcol
|
|
||||||
outer.addClass 'nosb'
|
outer.addClass 'nosb'
|
||||||
$('#panel').append outer
|
$('#panel').append outer
|
||||||
$('#outbox').toggle()
|
$('#outbox').toggle()
|
||||||
|
for pic in canvs
|
||||||
|
$('#column1').append pic
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
else
|
||||||
|
$('.scrolly').width @origwidth
|
||||||
|
$('#outbox').show()
|
||||||
|
$('.scrolly').append pic for pic in canvs
|
||||||
|
|
||||||
|
@createpanel = (i,amt) ->
|
||||||
|
dcol = $("<div id='column#{i}'>#{i}</div>")
|
||||||
|
dcol.addClass 'panelcolumn'
|
||||||
|
dcol.width amt
|
||||||
|
|
||||||
@loadkeys = ->
|
@loadkeys = ->
|
||||||
$(document).on('keydown', (ev) =>
|
$(document).on('keydown', (ev) =>
|
||||||
switch ev.which
|
switch ev.which
|
||||||
|
|
|
||||||
43
todo.txt.bak
43
todo.txt.bak
|
|
@ -1,43 +0,0 @@
|
||||||
(A) fix scrolling!
|
|
||||||
x 2015-02-16 cleanup (remove 16colorslib)
|
|
||||||
(C) check below items for neccesity
|
|
||||||
x 2014-08-06 @EDITOR delete an entry CORRECTLY
|
|
||||||
@EDITOR redo filenames to load from list of files in directory (specfied in 'location')
|
|
||||||
x 2014-08-06 @EDITOR button to reload filename list from directory
|
|
||||||
x 2014-08-07 @EDITOR button to insert an entry - make it insert a blank
|
|
||||||
x 2014-08-06 @EDITOR dump to screen or file, not to console when saving
|
|
||||||
x 2014-08-06 @EDITOR save (print) routine
|
|
||||||
x 2014-08-07 @EDITOR text/bg colors change 'SAHLI' thing
|
|
||||||
x 2014-08-07 @EDITOR update the line item when saving - what the heck is 'line item?' (meant update the listing to show edits)
|
|
||||||
x 2014-08-07 (A) fix color functions to use alpha (so they show up!)
|
|
||||||
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) XBIN @OTHER
|
|
||||||
(A) load SAUCE into 'info' lines (should be done at prep) @SAUCE @EDITRO
|
|
||||||
(B) ADF @OTHER
|
|
||||||
(B) Amiga ANSI @OTHER
|
|
||||||
(B) Avatar @OTHER
|
|
||||||
(B) BIN @OTHER
|
|
||||||
(B) IDF @OTHER
|
|
||||||
(B) PCBOARD @OTHER
|
|
||||||
(B) THUMBNAILS - for returning to partymeister
|
|
||||||
(B) Tundra @OTHER
|
|
||||||
(C) Add fonts - Amiga 1200 (replace or compare w/16colors version) @16colors
|
|
||||||
(C) Add fonts - Amiga 500 @16colors
|
|
||||||
(C) Add fonts - microknight @16colors
|
|
||||||
(C) Add fonts - mOsOul @Fonts @16colors
|
|
||||||
(C) Add p0t - fonts-nOodle @16colors
|
|
||||||
(C) implement package import from partymeister @PARTYMEISTER
|
|
||||||
(C) Fix Amiga mode rendering via sixteencolors lib @16colors
|
|
||||||
(C) hook for progress @progress @PARTYMEISTER
|
|
||||||
(C) load to array/picture, render from picture @16colors
|
|
||||||
(C) speed up rendering more? @16colors
|
|
||||||
x (A) Error handler for file not found
|
|
||||||
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) Study 16colors site - how does IT remove sauce info? It DOESN'T. FUCK.
|
|
||||||
x 2014-04-16 (A) - create interface @EDITOR
|
|
||||||
x 2014-04-16 (C) separate to individual renderers @16colors
|
|
||||||
x 2014-04-16 @EDITOR edit item saves data routine
|
|
||||||
x 2014-04-17 @EDITOR BUGFIX - ansi/ascii toggle/saving
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue