Hi kixam Thanks for answering. At first I did not notice the readme at https://github.com/kixam/tw5visjs was emkay's readme linking to emkay's demo wiki which of course did not work after upgrading.
Since I do not use the node.js version of TW I tried to make a plugin from the stuff given at https://github.com/kixam/tw5visjs/tree/master/plugins/visjs I performed the following steps: 1) Installed by drag/drop felixhayashi's $:/plugins/felixhayashi/tiddlymap from http://felixhayashi.github.io/TW5-TiddlyMap/ 2) Installed by drag/drop Andreas Hahn's $:/plugins/ahahn/tinka from http://twguides.org/wiki/tinka.html 3) Created (by copy/paste and adding type and module-type): - $:/plugins/emkay/visjs/help - $:/plugins/emkay/visjs/timelinehelp - $:/plugins/emkay/visjs/timelinewidget.js - $:/plugins/emkay/visjs/widgetutils.js - $:/plugins/emkay/visjs/moment.js (= moment-with-locales.min.js from https://github.com/moment/moment) 4) Created - successfully - a plugin from the 5 tiddlers above with help of the Tinka plugin 5) Added some demo timeline files 6) Saved and reloaded And got a red Javascript error: TypeError: moment is not a function. I noticed tiddlywiki.files in momentsjs contains: "prefix": "var moment;_save_module_exports = module.exports;module.exports=true;", "suffix": "moment = module.exports; module.exports = _save_module_exports; exports.moment = moment\n" but I don't know how to "translate" these prefix and suffix into the plugin (I am not a programmer). Any help much appreciated. Cheers, Ton P.S. May be you can make a demo site at TiddlySpot? Then installing the timeline plugin can be just a matter of drag and drop. On Sunday, May 10, 2015 at 11:30:58 AM UTC+2, kixam wrote: > > Hi Ton, > > On Saturday, May 9, 2015 at 9:15:51 PM UTC+2, Ton Gerner wrote: >> >> Hi kixam, >> >> Glad you took the time to fix the emkay plugin. >> I downloaded the demo wiki from http://emkayonline.github.io/tw5visjs/ >> and it worked as before (clicking demo of the timeline widget works). >> Then I saw the TW version was *5.0.9-prerelease*. >> After upgrading the demo wiki to 5.1.8 it did not work anymore (clicking >> demo of the timeline widget gives the well-known red Javascript error. >> >> Any idea what is going wrong? >> > > emkay did not merge my commits to his repository yet, so you have to clone > mine instead: https://github.com/kixam/tw5visjs > -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" 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/tiddlywikidev. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/866131ab-1de3-46a8-86ef-20525b348d0f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
