Permalink
Browse files

Improvements to exercise dev mode

- List all problem types
- Mod seed by 200 in dev mode, so random problems displayed in dev mode are
  actual problems users will see
- Include qtip for acceptable answer formats popover
- Update site CSS
- Include script for updating site CSS
  • Loading branch information...
1 parent 71a79f9 commit 05ab8f732339d8d3c03c09928135f814520b5b08 @beneater beneater committed Jun 25, 2012
Showing with 8,507 additions and 3,601 deletions.
  1. +27 −0 build/update-khan-site.sh
  2. +22 −0 css/khan-exercise-dev.css
  3. +5,092 −3,588 css/khan-site.css
  4. +1 −1 exercises/khan-exercise.html
  5. +5 −3 exercises/khan-site.html
  6. +3,337 −0 jquery.qtip.js
  7. +23 −9 khan-exercise.js
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+PACKAGES="shared exercises"
+
+BASE_DIR=".."
+DEV_CSS="${BASE_DIR}/khan-exercises/css/khan-exercise-dev.css"
+OUTPUT="${BASE_DIR}/khan-exercises/css/khan-site.css"
+
+for package in ${PACKAGES}; do
+ if [ ! -f ${BASE_DIR}/stylesheets/${package}-package/combined.css ]; then
+ echo "${BASE_DIR}/stylesheets/${package}-package/combined.css not found!"
+ echo "You should run the deploy script (with --dryrun)"
+ echo
+ exit 66
+ fi
+done
+
+echo > ${OUTPUT}
+
+for package in ${PACKAGES}; do
+ echo ${package}
+ sed 's|url(\(.*images.*\))|url(http://www.khanacademy.org/\1)|' ${BASE_DIR}/stylesheets/${package}-package/combined.css >> ${OUTPUT}
+done
+
+cat ${DEV_CSS} >> ${OUTPUT}
+
+echo
@@ -0,0 +1,22 @@
+#problem-and-answer {
+ margin-left: 80px;
+ padding: 20px;
+ width: 864px;
+ background-color: #f8f8f8;
+}
+
+#workarea {
+ width: 514px;
+}
+
+body.debug #workarea {
+ outline: 1px dashed #ddd;
+}
+
+#hintsarea {
+ width: 494px;
+}
+
+body.debug #hintsarea {
+ outline: 1px dashed #ddd;
+}
Oops, something went wrong. Retry.

0 comments on commit 05ab8f7

Please sign in to comment.