Glider.js and Tiddlywiki

159 views
Skip to first unread message

Mohammad

unread,
Nov 12, 2018, 3:27:18 PM11/12/18
to TiddlyWiki
How we can have this in tiddlywiki:



Cheers
Mohammad

@TiddlyTweeter

unread,
Nov 12, 2018, 3:59:25 PM11/12/18
to tiddl...@googlegroups.com
I can't get anything but the first demo to work on that ...

David Gifford

unread,
Nov 12, 2018, 6:12:25 PM11/12/18
to TiddlyWiki
oooh this would be nice for tutorials!

Mark S.

unread,
Nov 12, 2018, 7:15:02 PM11/12/18
to TiddlyWiki
That's odd. All the demos worked for me ... assuming I was just supposed to see a bunch of big numbers scrolling back and forth in various ways.

-- Mark

Mohammad

unread,
Nov 12, 2018, 10:55:36 PM11/12/18
to tiddl...@googlegroups.com
It is interesting to know that, glider.js is only 2kB in gzip format and has no dependency!
Hope someone makes a plugin of it!

-Mohammad

Mark S.

unread,
Nov 13, 2018, 5:16:58 PM11/13/18
to TiddlyWiki

scroll-in-action.png

 Sort of possible. My approach was klugey.  Trying things.

Mohammad

unread,
Nov 13, 2018, 10:42:43 PM11/13/18
to TiddlyWiki
Hello Mark,
 That looks great! 
Hope you can share!

-Mohammad

Mark S.

unread,
Nov 14, 2018, 11:39:55 PM11/14/18
to TiddlyWiki
Ok. Here's a plugin. This isn't great, but it might give someone an idea for making something better.

I think that the underlying code at the main Glider.js site depends on tricking the browser into invoking the same code multiple times. This may or may not work, depending on the browser and platform. So, the same limitations will almost certainly show up in TW.

I strongly recommend testing this only in an empty or otherwise unimportant TW. I put in error catching code, which I think reduces problems, but .... who knows whether it covers all the bases. Absolutely be sure to have backups before using this anywhere important!!

There are 3 components in making Glider(s) work:

1. HTML code with parts identified by ID or Class
2. A Query selector to find those parts
3. A JSON string to provide options for how the parts are to work together.

There is a usage tiddler ... but I feel that my powers of prose may not have been at their best.

All of the examples at the original site, and one of my included one's need FontAwesome to look right. I did not include that technology, but you can obtain it from the usual suspects.

Good luck!

-- Mark
MAS_Glider-0-0-6.json

Mohammad

unread,
Nov 15, 2018, 12:08:50 AM11/15/18
to TiddlyWiki
Hello Mark,
 Many thanks! Why don't  you put it on tiddlyspot.com?

It seems the Glider double does not work!

Mohammad

Mark S.

unread,
Nov 15, 2018, 12:22:56 AM11/15/18
to TiddlyWiki
I'm not sure that it warrants a permanent home yet ;-)

What do you mean by "doesn't work" ? What do you see? What browser and platform are you using?

It definitely works on my system (or I would not have posted it), but I suspect this might be context-sensitive.


-- Mark

Mohammad

unread,
Nov 15, 2018, 4:12:02 AM11/15/18
to TiddlyWiki
Mark,
 it works now! I had to reopen the wiki!

Thanks
Reply all
Reply to author
Forward
0 new messages