On Monday, December 11, 2017 at 9:43:55 AM UTC+1, [email protected] wrote:
>
> Nope it doesnt .. lots of warnings come up :(
>

OK ... We are all very "implementation oriented" ... My problem now is, 
that you didn't answer any of my questions. 
Since the code doesn't do what you want, imo we need to go back to the 
whiteboard and define what's needed. 

I can only guess from what you wrote. 

some sort of quizzing platform where a countdown is initiated once the quiz 
> starts and once the time is up navigate to a tiddler where responses can be 
> submitted
>

 - Do you want 1 timer or several active at the same time?

Since you want to convert the function to macros ... probably several are 
active at the same time. 


 - Should they be pausable / deletable while active?

In a quiz situation I personally would want to have a possibility to stop a 
timer, if I know the answer. ... But that's just me ;)  Your usecase may be 
completely different, to my thoughts.


 - What "action" do you want, after the timer has stopped? 

It seems there should be just the text "Time is over" ... But if I can't 
stop it, every timer will run into this state. ... ??

 - What should happen, if the tab, that contains the timer is not visible?

Many browsers treat code in "inactive" tabs different to code in active 
tabs. ... So we may need to take care of this ... 

--------------

However i was able to manipulate the $:/plugins/ajh/tiddlytime/time.js in 
> http://tiddlytime.tiddlyspot.com/ and was able to get a 1 minute 
> countdown timer that displays into {{$:/temp/timer}} and shows"Time Up" at 
> the end of the countdown ..
>

That's great, for someone who is not familar with javascript :)
 

> problem is i dont know how to convert this to a javascript macro 
>

IMO widget. ... I think, we need interaction
 

> .. also the stop watch works from upon startup and i guess this must be 
> because of exports.startup .. but when i tried to make it exports.run it 
> didnt work as a macro ..
>

ok. ... That's not the way how it works. ... 
 

> I have attached the working sample check it out and let me know :)
>

I don't have the time to dig into it atm. ... 

But the usecase is definitely interesting. .. Quizzes are always 
interesting, and I think we don't have a countdown functionality / plugin 
atm. 

So someone else ???

have fun!
mario

-- 
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/32456ead-a900-4679-a49b-6123d961d79f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to