Summary: Make some changes to the different graphing inequalities exercises so that they're more mobile friendly. The main change is making the checkboxes and radio buttons play nicely with the funky styling we put on them in mobile land, while still looking good in non-mobile (done through some `body:not(.mobile)` trickery). Also, add some padding to graphs to reduce text collisions, and remove/move around some input elements to make more sense. Test Plan: - Visit all 4 exercises locally (not on mobile) - See that all of the radio buttons/checkboxes look about the same as before - Take hints, see no text overlaps - See that all of the exercises are still answerable. - Visit all 4 exercises on mobile ("Graphing and solving linear inequalities", "Graphing linear inequalities in two variables", "Graphing systems of inequalities", and "Graphing and solving systems of inequalities") - See that all of the radio buttons/checkboxes look good and are not squished together. - Take hints, see that no text overlaps. Reviewers: eater Reviewed By: eater Subscribers: marcos Differential Revision: https://phabricator.khanacademy.org/D15747
See https://docs.google.com/a/khanacademy.org/spreadsheets/d/1wCONrsK1ujRCLal7bcxS0cVkfpfKiPzapt3SsMJ_zqI/edit#gid=0 Color: Blue Test Plan: Take all hints and succesfully answer a question within each problem type for all modified exercises. Auditors: alex
Summary: This commit moves the entire #solutionarea div to the bottom of the question area, unless the question contains an element with the class name "render-answer-area-here" (in which case the div is placed immediately after this element). In addition, this commit removes entirely the old "acceptable formats" section at the top of the answer area in favor of tooltips attached directly to individual input elements. This is basically backporting the approach we've taken in Perseus to khan-exercises. Speaking of which, this commit also brings the expression editor in khan-exercises more in line with the Perseus version (rendered output above input) which is a necessary change because otherwise the tooltip obscures the output. Test Plan: Most of these changes were in place during the answer area moving party, and so in general all exercises should be confirmed to work. Tooltips were only finished afterwards though, so I've spot-checked the various answer types myself. Reviewers: aria Reviewed By: aria Subscribers: emily Differential Revision: http://phabricator.khanacademy.org/D14745
Summary: Add 'Show me the correct graphs' button Add 'Show me the correct graph' button to graphing inequalities 1 Add 'Show me the correct graph' button to graphing inequalities 2 Adapt hints to work with points on the line whitespace Reviewers: eater Reviewed By: eater Differential Revision: http://phabricator.khanacademy.org/D10301
I find it hard to believe I didn't catch this earlier... Test Plan: 1. Load graphing_inequalities.html and graphing_inequalities_2.html in local mode. 2. Drag a point. 3. See https://s3.amazonaws.com/uploads.hipchat.com/6574/49847/XZzptRZSBkqtTAz/upload.png instead of https://s3.amazonaws.com/uploads.hipchat.com/6574/49847/jsNjObFKhW6nAHd/upload.png Auditors: jack
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
Summary: There are a couple cases that had to be fixed up manually, and a lot of instances that incorrectly tried to wrap $._ around things that shouldn't be translated (mostly the chemistry exercises). There are a couple instances that I wasn't sure about (like the "R" in remainder) that I didn't include. Test Plan: Visit the changed exercises, make sure that the exercise renders and there were no errors. Take all the hints, and make sure that instances of text in mathjax render correctly. Reviewers: john Reviewed By: john CC: alpert, eater Differential Revision: http://phabricator.khanacademy.org/D2445
…g entities with characters in data-if attributes.
… the data-if attributes.
…tly-expanding whitespace problem in the cleaner.