Perhaps, I would have to find the code where a page is rendered and run a script there to put this element before the h3. Any idea what renders the tiddler?
On Wednesday, October 4, 2017 at 5:46:57 PM UTC-7, RichardWilliamSmith wrote: > > You'd probably need to include jQuery, but I'm not sure it's a great idea. > You have no guarantees about when any individual piece of the UI will be > updated and re-drawn because of the way Tiddlywiki uses the DOM. > > Instead of adding code that way, it's might be better to learn a bit more > about how Tiddlywiki actually works. Have you seen the dev docs? > http://tiddlywiki.com/dev/ > > If you want to add an H3, followed by a block of code, it might be better > to do that in a macro and invoke it where you need it. > > Regards, > Richard > > On Thursday, October 5, 2017 at 9:14:29 AM UTC+11, K wrote: >> >> Ok thanks, I've managed to get something working, but how do I get this >> jquery line to run on every page? >> >> > $( $( "h3" ) ).append( "<a href="#tw-href000" style="float: >> right;">[Top]</a>" ); >> >> On Wednesday, October 4, 2017 at 9:33:34 AM UTC-7, Jed Carty wrote: >>> >>> If you want to add javascript globally than you can write the javascript >>> inside a tiddler and put it inside script tags and tag the tiddler with >>> $:/tags/RawMarkup >>> >>> Then you save and reload your wiki and the javascript should be loaded. >>> >> -- 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 https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/8d27bf5c-43ad-415a-9c0f-a9d3151052e1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

