Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow adding framework-specific styles

Auditors: eater, cbhl
  • Loading branch information...
commit 7695a403419148366b18787c3b359347022fccc8 1 parent 6008fdf
@spicyj spicyj authored
Showing with 7 additions and 1 deletion.
  1. +1 −1  css/khan-exercise.css
  2. +6 −0 interface.js
View
2  css/khan-exercise.css
@@ -74,7 +74,7 @@ code { font-family: Helvetica, Arial; }
table.limit { margin: 5px; }
table.limit th { font-weight: bold; text-align: center; }
table.limit td { border: 1px solid #AAA; }
-table.limit th, td { padding: 5px; }
+table.limit th, table.limit td { padding: 5px; }
table.limit th:first-child { text-align: right; }
#answer_area input[type=text],
View
6 interface.js
@@ -126,6 +126,12 @@ function newProblem(e, data) {
hintsUsed = 0;
lastAttemptOrHint = new Date().getTime();
+ var framework = Exercises.getCurrentFramework();
+ $("#problem-and-answer")
+ .removeClass("framework-khan-exercises")
+ .removeClass("framework-perseus")
+ .addClass("framework-" + framework);
+
// Enable/disable the get hint button
$("#hint").attr("disabled", numHints === 0);
}
Please sign in to comment.
Something went wrong with that request. Please try again.