From 41681d651d7db004b763d82325984da3652644ed Mon Sep 17 00:00:00 2001 From: Iam Naughton Phier Date: Sun, 22 Feb 2015 16:26:01 +0200 Subject: [PATCH] move pics to first column, then restore --- sahli.coffee | 43 +++++++++++++++++++++++++------------------ todo.txt.bak | 43 ------------------------------------------- 2 files changed, 25 insertions(+), 61 deletions(-) delete mode 100644 todo.txt.bak diff --git a/sahli.coffee b/sahli.coffee index 569a723..e607ae4 100644 --- a/sahli.coffee +++ b/sahli.coffee @@ -238,31 +238,38 @@ class @Sahli # fix this up so it sets the appropriate width for the columns. # and then move the canvases into it. +# outbox toggled last to avoid losing width. (prolly need to fix.) @panelmode = -> - $('#panel').empty() $('#panel').toggle() + canvs = $('canvas') if $('.scrolly').width() == @origwidth $('.scrolly').width '100%' + $('#panel').empty() + fw = $('body').width() + fh = window.innerHeight + numpanels = canvs.length + hgt = canvs.height() * numpanels + numcols = Math.ceil(hgt / fw) + amt = fw/numcols + outer = $('
') + outer.append @createpanel(i,amt - 6) for i in [1..numcols] + outer.addClass 'nosb' + $('#panel').append outer + $('#outbox').toggle() + for pic in canvs + $('#column1').append pic + + + else $('.scrolly').width @origwidth - fw = $('body').width() - fh = window.innerHeight - canvs = $('canvas') - numpanels = canvs.length - hgt = canvs.height() * numpanels - numcols = Math.ceil(hgt / fw) - amt = fw/numcols - 6 - outer = $('
') - for i in [1..numcols] by 1 - dcol = $("
#{i}
") - dcol.addClass 'panelcolumn' - dcol.width amt - outer.append dcol - outer.addClass 'nosb' - $('#panel').append outer - $('#outbox').toggle() - + $('#outbox').show() + $('.scrolly').append pic for pic in canvs + @createpanel = (i,amt) -> + dcol = $("
#{i}
") + dcol.addClass 'panelcolumn' + dcol.width amt @loadkeys = -> $(document).on('keydown', (ev) => diff --git a/todo.txt.bak b/todo.txt.bak deleted file mode 100644 index fdbed0d..0000000 --- a/todo.txt.bak +++ /dev/null @@ -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 \ No newline at end of file