Of course, that could also go in static.template.css, which is the css
template in my server mod. Also, about the JQuery, most dropdowns, tabs,
etc. which would need JQuery to be used right are in wrappers with CSS
classes. These could be used to identify them and then guess what's what.
Just a thought.
-Arlen

On Sat, Dec 13, 2014 at 9:20 AM, Arlen Beiler <[email protected]> wrote:
>
> The server.js file uses static.tiddler.html for the template. The
> following code would be at the end of the head element in that template.
> JQuery could be used to link buttons to the associated reveal, but I don't
> know how that would work for everything.
>
> <style>
> .tc-reveal { display:none; }
> </style>
>
> On Thu, Dec 11, 2014 at 12:33 PM, Jeremy Ruston <[email protected]>
> wrote:
>>
>> Hi Arlen
>>
>> On Wed, Dec 10, 2014 at 11:16 PM, Arlen Beiler <[email protected]>
>> wrote:
>>>
>>> Here is a modification to the RevealWidget that allows for other methods
>>> of hiding the reveal section, including Javascript in static HTML. It
>>> should be noted that EVERY reveal on the page will reveal. A little CSS
>>> will fix that. This is a first step toward allowing tabs to work. If the
>>> core devs think this would be a good addition, or something like it, I'd be
>>> delighted.
>>>
>>
>> Great, this is definitely an issue that needs sorting out.
>>
>> The other configuration variables that widgets support have the prefix
>> "tv-" eg "tv-wikilink-template".
>>
>> To get this into the core I think we'd ideally want to have some CSS to
>> make things work too. As per my reply to Jim above, I'm keen to create an
>> official "blogging" edition, and perhaps it can demonstrate how to make
>> things work.
>>
>> Best wishes
>>
>> Jeremy.
>>
>>
>>
>>
>>>
>>> This code is in RevealWidget.prototype.execute
>>>
>>>     // Compute the title of the state tiddler and read it
>>>     this.stateTitle = this.state;
>>>     if(this.hasVariable("forceRevealWidget", true)) {
>>>         this.alwaysOpen = true;
>>>     } else {
>>>         this.alwaysOpen = false;
>>>     }
>>>     this.readState();
>>>
>>> Add this as the first line of RevealWidget.prototype.readState
>>>
>>>     if(this.alwaysOpen) { this.isOpen = true; return; }
>>>
>>> And I added the forceRevealWidget variable to the code I posted in the
>>> other thread modifying server.js
>>>
>>>     var text =
>>> state.wiki.renderTiddler("text/plain","$:/core/templates/static.tiddler.html",{
>>> variables: { currentTiddler: title , forceRevealWidget: true } });
>>>
>>> If you want to use this code, feel free. The code in this email is
>>> public domain.
>>>
>>> Best wishes,
>>> -Arlen
>>>
>>> On Wed, Dec 10, 2014 at 4:55 AM, Tobias Beer <[email protected]>
>>> wrote:
>>>
>>>> What I would also find interesting is to load some tiddlers.json into
>>>> each static file (the same for all) ...with tiddler meta-data, or even the
>>>> body if anyone thinks it worthy, even the required helper functions to
>>>> access the beast, and then use some jquery magick to do stuff with it,
>>>> e.g... do TiddlyWiki stuff in the context of the statics site, however (!)
>>>> optionally, so that google & co don't get hickups.
>>>>
>>>> The easiest functions being...
>>>>
>>>> $tids.getTiddler(title){}
>>>> $tids.getTags(title){}
>>>> $tids.getLink(title){}
>>>>
>>>> Best wishes, Tobias.
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "TiddlyWiki" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>> Visit this group at http://groups.google.com/group/tiddlywiki.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "TiddlyWiki" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/tiddlywiki.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> Jeremy Ruston
>> mailto:[email protected]
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/tiddlywiki.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to