Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Nov 20, 2014
  1. @alopatin

    Rearrange answer area content within some exercises

    alopatin authored
    See https://docs.google.com/a/khanacademy.org/spreadsheets/d/1wCONrsK1ujRCLal7bcxS0cVkfpfKiPzapt3SsMJ_zqI/edit#gid=0
    
    Color: Cyan
    
    Test Plan:
    Take all hints and succesfully answer a question within each problem
    type for all modified exercises.
    
    Auditors: eater
Commits on May 16, 2014
  1. @petercollingridge

    Use sortNumbers function where needed

    petercollingridge authored
    Reviewers: eater
    
    Reviewed By: eater
    
    Differential Revision: http://phabricator.khanacademy.org/D8977
Commits on Mar 5, 2014
  1. @spicyj

    Use requirejs for module loading

    spicyj authored
    Summary: Also did some misc cleanup in khan-exercise.js, mostly related to module-y things ("151 ++----"). I combined local jquery-ui into one file to make it easier to load.
    
    Test Plan:
    Opened addition_1, deriviative_intuition, graphing_points_2 locally, and all looked fine.
    
    In webapp/khan-exercises/, ran:
    
    ```
    npm install -g requirejs
    r.js -o requirejs.config.js
    ```
    
    then saw that /exercises/addition_1 looked right.
    
    Reviewers: eater, jack
    
    Reviewed By: jack
    
    CC: alex
    
    Differential Revision: http://phabricator.khanacademy.org/D7095
Commits on Jul 24, 2013
  1. @spicyj

    Move question above the fold in reading bar charts

    spicyj authored
    Auditors: emily
    
    CC: ben
Commits on Jun 4, 2013
  1. @xymostech

    Manually i18nize all of the minor exercises

    xymostech authored
    Summary:
    Manually make modifications to all the exercises for i18n. Most of the problems revolved around:
    
    - Wrapping Strings in variables or graphies with `$._`
    - `data-if`s in the middle of sentences, that needed to be pulled out around the entire sentence
    - Strings that needed to be put into Plural objects for pluralization
    - Decoupling strings from logic
    
    Test Plan:
    Visit the changed exercises. Make sure the question renders
    correctly and there are no javascript errors. Take all the hints and make sure
    nothing is rendered incorrectly. Do the translations into box language, and
    make sure that everything from the languages is boxy.
    
    Reviewers: csilvers, john
    
    Reviewed By: csilvers
    
    CC: alpert, eater
    
    Differential Revision: http://phabricator.khanacademy.org/D2504
Commits on May 7, 2013
  1. @jeresig
  2. @jeresig

    Revert linting changes.

    jeresig authored
Commits on Apr 25, 2013
  1. @jeresig
  2. @jeresig

    Re-run the linter on the exercises, fixing data-if usage and replacin…

    jeresig authored
    …g entities with characters in data-if attributes.
  3. @jeresig

    Merging in with master.

    jeresig authored
  4. @jeresig
Commits on Apr 24, 2013
  1. @jeresig
  2. @jeresig
Commits on Apr 23, 2013
  1. @jeresig

    Run the exercise cleaner.

    jeresig authored
  2. @jeresig
  3. @jeresig

    Merging in from stable.

    jeresig authored
Commits on Apr 22, 2013
  1. @jeresig

    Clean up the newly-changed HTML exercises and also fix up the constan…

    jeresig authored
    …tly-expanding whitespace problem in the cleaner.
Commits on Apr 17, 2013
  1. @jeresig
  2. @cbhl
Commits on Apr 16, 2013
  1. @cbhl
  2. @jeresig
  3. @jeresig
  4. @jeresig
Commits on Apr 6, 2013
  1. @jeresig

    Add in a tool for automatically fixing some i18n issues in exercises.…

    jeresig authored
    … Right now it just fixes pronoun usage.
    
    Summary:
    There are some methods that are used in exercises that need to be banned in order to make our translation efforts sane. Some of these methods can be fixed programmatically - which is what I'm attempting to do here.
    
    To start I'm targeting these four methods: `he(NUM)/He(NUM)/his(NUM)/His(NUM)`
    
    I go through all the extracted strings in an exercise and look for `var` elements that contain one of those four methods. If it exists then I make sure that every usage of one of those methods has the same `NUM` specified. If different `NUM`s are used then the file will have to be fixed manually (at the moment only 3 strings in 3 files suffer from this problem).
    
    Assuming the `NUM`s are all the same we then then convert the existing string like so:
    
        <p><var>He(1)</var> threw a ball!</p>
    
    Becomes:
    
        <p data-if="isMale(1)">He threw a ball!</p><p data-else>She threw a ball!</p>
    
    (This is using the built-in data-if/data-else scheme used in exercises and makes use of a new method I've introduced: `isMale`.)
    
    This makes it so that each sentence only has a single gender being used and it's being displayed inline (making translation super-simple).
    
    Test Plan: Run `python build/extract_strings.py --fix exercises/*.html`. At the moment it should say that there are four errors (this is correct). If you were to reset all of the exercises back to their original state you woulud see that the script also modifies the files.
    
    Reviewers: csilvers, eater
    
    CC: alpert
    
    Differential Revision: http://phabricator.khanacademy.org/D2124
Commits on Sep 19, 2012
  1. @beneater

    Fix up exercises that are too wide for tutorials

    beneater authored
    Reviewers: marcos, tom, desmond
    
    Differential Revision: http://phabricator.khanacademy.org/D737
Commits on Apr 10, 2012
  1. @beneater
Commits on Jan 29, 2012
  1. @Christi

    units, units, uuunits. units!

    Christi authored
Commits on Jan 15, 2012
  1. @spicyj

    Run JSHint

    spicyj authored
    ... for questionable benefit.
Commits on Jan 4, 2012
  1. @spicyj
Commits on Dec 21, 2011
  1. @beneater

    Replace some indexOf()s

    beneater authored
Commits on Dec 19, 2011
  1. @beneater
Commits on Dec 13, 2011
  1. @beneater
Something went wrong with that request. Please try again.