[tw] Re: Best way to switch a small swatch of CSS in TW

2013-12-20 Thread sklpns
Thank you very much Eric a follow up question, If I may I'm using the TiddlyLightBoxPlugin modified a bit in the following line div id=lightBoxClosea href:# onclick=cancelFullscreen();TiddlyLightBox.hideBox();return false;Exit/a/div/div', cancelFullscreen(); is added so when an element

[tw] Re: Best way to switch a small swatch of CSS in TW

2013-12-19 Thread sklpns
Hey guys I'm using this variation htmla href=javascript:; onclick= da=document.getElementById('displayArea');da.style.width='20em';change display/html which successfully changes the width of the display area by clicking on the change display link. But what do we need to write in order to

[tw] Re: Best way to switch a small swatch of CSS in TW

2013-12-19 Thread Eric Shulman
On Thursday, December 19, 2013 1:52:45 AM UTC-8, sklpns wrote: Hey guys I'm using this variation htmla href=javascript:; onclick= da=document.getElementById('displayArea');da.style.width='20em';change display/html which successfully changes the width of the display area by clicking on

[tw] Re: Best way to switch a small swatch of CSS in TW

2009-10-15 Thread FND
I would like to have something similar to selectPalette, but that changes the size of the mainmenu between two widths. We're talking a mere two lines of the Stylesheet. You might create a simple theme for the alternative case, transcluding the original StyleSheet. There are various ways to

[tw] Re: Best way to switch a small swatch of CSS in TW

2009-10-15 Thread Eric Shulman
I would like to have something similar to selectPalette, but that changes the size of the mainmenu between two widths. We're talking a mere two lines of the Stylesheet. What would be the best way to do this - both as in how to do it, and as in the way that adds the least to the filesize?

[tw] Re: Best way to switch a small swatch of CSS in TW

2009-10-15 Thread Dave Gifford - http://www.giffmex.org/
Hi Eric, Using pure HTML (no plugins needed) htmlnowikia href=javascript:; onclick= a. I put it in my topmenu table, clicked it, and nothing happened b. I'm guessing this will shrink the MainMenu but will not expand the tiddler area if the tiddler area has a stylesheet width property? Dave

[tw] Re: Best way to switch a small swatch of CSS in TW

2009-10-15 Thread Eric Shulman
htmlnowikia href=javascript:; onclick= a. I put it in my topmenu table, clicked it, and nothing happened hmm... it should have worked... b. I'm guessing this will shrink the MainMenu but will not expand the tiddler area if the tiddler area has a stylesheet width property? You didn't say

[tw] Re: Best way to switch a small swatch of CSS in TW

2009-10-15 Thread Måns
Hi Eric and Dave I tried to use the script in my version of NoteStorm = Nota⊕Bene http://notabene.tiddlyspot.com/#ToggleMenu But as you can see when clicking the script - it drops the tiddler far down the page ... How do I prevent this behaviour? YS Måns Mårtensson On 15 Okt., 19:12, Eric

[tw] Re: Best way to switch a small swatch of CSS in TW

2009-10-15 Thread Eric Shulman
But as you can see when clicking the script - it drops the tiddler far down the page ... How do I prevent this behaviour? oops... my error change this line:    da.style.margin=mm.style.width==w?w:''; to da.style.marginLeft=mm.style.width==w?w:''; -e

[tw] Re: Best way to switch a small swatch of CSS in TW

2009-10-15 Thread Måns
Thanks a lot Eric Now it works as intended! Another (but) basic question. When I toggle the allow editing online-script (click Bene in the header http://notabene.tiddlyspot.com) it opens the backstage. I wan't to allow editing - but not to open the backstage - how do I prevent this? I have this

[tw] Re: Best way to switch a small swatch of CSS in TW

2009-10-15 Thread Dave Gifford - http://www.giffmex.org/
The mainmenu collapsed and the tiddler display expanded, yay! However, the three tabs I have in the mainmenu remained wide, and the left part of the tiddler display is hidden behind them. Boo! Dave --~--~-~--~~~---~--~~ You received this message because you are

[tw] Re: Best way to switch a small swatch of CSS in TW

2009-10-15 Thread Dave Gifford - http://www.giffmex.org/
Went with toggleleftsidebar instead. Works great! Thanks guys Dave On Oct 15, 1:46 pm, Måns humam...@gmail.com wrote: Thanks a lot Eric Now it works as intended! Another (but) basic question. When I toggle the allow editing online-script (click Bene in the