ah .. so much to know :) .. thank you so much for your thoughts .. 

My quizzing platform is to be like this:

Landing page where you type in name and click "Start Test" 

When you click "Start Test" the following happens:
1. Countdown timer starts in right hand corner above sidebar (or somewhere 
else visible)
2. a timestamp (say ts1) is generated
3. You navigate to Question no.1

Answer the Question no.1 (this choice is recorded in a the field of a state 
tiddler) and click "Next Question"

When you click "Next Question" the following happens:
1. a timestamp (say ts2)is generated
2. You navigate to Question no.2

Now ts2 - ts1 will give the time taken to answer question 1

So on... 

All this while .. the countdown timer (above sidebar) continues and if it 
becomes 00:00 then irrespective of how many questions are left to be 
answered it takes you to the "Submit Answers" tiddler which once pressed 
will do the following:

1. check the answers submitted with an answer key and sort out neatly the 
answers answered correctly/wrongly/unanswered and you can check out the 
solutions for each
2. calculate the score
3. send the score and the submitted answers to a google spreadsheet by way 
of the submit form plugin (by Jed? i guess)

So once all have taken the test a ranking can be developed from the data 
collected in the google sheet and published ....

But a countdown plugin can have much more usecases .. for example in the 
ToDoNow itself we can start a task and the timer starts and once the task 
is complete the timer stops and is recorded

Or even in the Kanban plugin the time a task spent in any category can be 
noted down etc....

you are right ..  much thought must be spent on making a countdown plugin 
as universal as possible .. looking at all possible use cases  .. 


On Monday, December 11, 2017 at 3:05:45 PM UTC+5:30, PMario wrote:
>
> 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/43b97195-feb4-4c21-8ab0-af28aaebbdd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to