[TW5] Random Quote of the Day in TW5?

106 views
Skip to first unread message

Zaphod Beeblebrox

unread,
Aug 19, 2016, 3:30:18 PM8/19/16
to TiddlyWiki
I stare in awe at Eric Shulman's http://www.TiddlyTools and drool over some of the amazing things he's created there, wishing there were counterparts in TW5.

One of those wishes is for something similar to the Quote of the Day Plugin he has, where a random quote, link, etc. is pulled from a list within a tiddler, and shown onscreen, run by a timer.  I would love to incorporate such a thing, either in a div within the SideBar or maybe the subtitle of the TW (or both! :-P ).

I've copy/pasted several javascript random quote generators I've found on the 'Net, but couldn't get them to work.  Just wondering if Eric or anyone else knows how we might implement such a beast?

--Zaphod

Jed Carty

unread,
Aug 19, 2016, 4:12:05 PM8/19/16
to TiddlyWiki
I made something to set a random background a while ago, you could probably use that as a base. http://inmysocks.tiddlyspot.com/#Randomly%20Change%20the%20Background%20Image

Zaphod Beeblebrox

unread,
Aug 19, 2016, 6:08:29 PM8/19/16
to TiddlyWiki
Thank You, Jed - I will indeed take another look at your creation :)

I looked at it when I was trying to figure out my background-changing thingy-of-doom, but I didn't really need the randomization.  I still don't have a need for a random change on page load, but I just might <del>steal</del> gently borrow the code for your randomizing button, to go alongside my "Blank Background" button ;-)

But what Eric's javascript did was set a timer that fired every so often and changed the quote(s) - That's what I'm really looking to do.

--Zaphod

PMario

unread,
Aug 19, 2016, 6:26:29 PM8/19/16
to TiddlyWiki
On Saturday, August 20, 2016 at 12:08:29 AM UTC+2, Zaphod Beeblebrox wrote:
But what Eric's javascript did was set a timer that fired every so often and changed the quote(s) - That's what I'm really looking to do.

hmmm, "Quote of the day" - For me this indicates, that it doesn't change that often ;)
-m

Zaphod Beeblebrox

unread,
Aug 19, 2016, 9:54:19 PM8/19/16
to TiddlyWiki
Heh heh - I'd agree with you, Mario, but that's what Eric called it :-P

--Zaphod
Reply all
Reply to author
Forward
0 new messages