Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Interactive time-telling #6362

Closed
wants to merge 1 commit into from
Closed

Interactive time-telling #6362

wants to merge 1 commit into from

Conversation

asuth
Copy link

@asuth asuth commented Nov 15, 2011

Hey --

I picked up interactive time telling from the Trello board and decided it would be fun. I refactored AnalogClock to add this capability.

This one is still in draft status. Todos:

  • Need to plug it into the Check Answer system. I have the values the user entered, now what? It sort of seems like you should be able to have a callback function for the solution. Pointers?
  • Add hints. Have some ideas for this but am open to suggestions.
  • I added an unstyled button to clear the clock -- is there a style I should be using?
  • Is JS in the <head> as I've done acceptable? I've tried to maintain a strict separation between what should be library code and what should be specific to this problem.
  • I improvised on a few things (like adding the .hidden-instruction class). Any conventions I missed on this?

Give it a whirl, I'm curious what you think!

(btw, this is in conjunction with the MIT founders journey class...)

// hand = "minute" or "hour"
// callback return the minute (N/60) the user clicked
this.watchForClick = function(hand, callback){
var coord = $("#pie").offset();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, shouldn't have #pie referenced in the library. I'm not sure how to get the parent element of this.graph ... KhanUtil provides currentGraph but not something along the lines of currentGraphWrapper

@beneater
Copy link
Contributor

beneater commented Jan 3, 2012

Closing this since I just merged the other pull request for this exercise (#8913).

@beneater beneater closed this Jan 3, 2012
@asuth
Copy link
Author

asuth commented Jan 3, 2012

I understand, that one eventually got farther. But it's kind of a bummer, because no one ever commented on it or provided the advice I requested.

@beneater
Copy link
Contributor

beneater commented Jan 3, 2012

I understand, and I'm really sorry about that. Everyone's been really busy and by the time we had a chance to look, the other one was further along.

I hope this doesn't discourage you from contributing in the future.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants