Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 38a41eb

Browse files
committed
Merge pull request #21 from RunestoneInteractive/master
Bringing master branch up to date with the main runestone components repo
2 parents 2345e3a + ecc8500 commit 38a41eb

File tree

18 files changed

+1874
-1255
lines changed

18 files changed

+1874
-1255
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
function RunestoneBase () { // Basic parent stuff
2+
3+
}
4+
5+
RunestoneBase.prototype.logBookEvent = function (info) {
6+
console.log("logging event " + this.divid);
7+
};
8+
9+
RunestoneBase.prototype.logRunEvent = function (info) {
10+
console.log("running " + this.divid);
11+
};

runestone/parsons/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#Parsons problem
2+
3+
The parsons problem allows for giving students simple programming problems where the code is already there but not indented or in the correct order. They drag-and-drop lines of code into the proper order.
4+
5+
Each line of code is delimited by `---` and the indentation of the line is the same as the indentation of that line in the markup.
6+
7+
```html
8+
<pre data-component="parsons" id="example1">
9+
<span data-question>This is the question</span>
10+
x = 0
11+
---
12+
for i in range(10)
13+
---
14+
x = x + 1
15+
---
16+
print(x)
17+
</pre>
18+
```
19+
20+
21+
22+
The master repository for the parsons problems code is https://github.com/vkaravir/js-parsons.git
23+
24+
If you want to make customizations ONLY for runestone you should use the RunestoneComponents repository https://github.com/RunestoneInteractive/RunestoneComponents

runestone/parsons/README.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

runestone/parsons/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
21
from .parsons import *
3-

runestone/parsons/css/parsons.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ li.correctPosition, .testcase.pass {
7272
.testcase .msg { font-weight: bold; }
7373
.testcase .error { color: red;}
7474
.testcase .feedback { font-weight: bolder;}
75-
.testcase.fail .expected, .testcase.fail .actual {
76-
color: red;
75+
.testcase.fail .expected, .testcase.fail .actual {
76+
color: red;
7777
font-weight: bolder;
7878
}
79-
.testcase .output {
80-
display: block;
81-
white-space: pre;
79+
.testcase .output {
80+
display: block;
81+
white-space: pre;
8282
background-color: #555555;
8383
color: white;
8484
font-size: 12px;

runestone/parsons/js/lib/jquery-ui.min.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

runestone/parsons/js/lib/jquery.min.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)