-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathrs-substitutes.xml
67 lines (53 loc) · 2.66 KB
/
rs-substitutes.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<substitutes><substitute xml:id='pollid1'>
<div class="runestone ">
<ul data-component="poll" id=pollid1 data-comment class='' data-results='instructor' data-question_label="11.1.1" >
On a scale from 1 to 10, how important do you think it is to have a polling directive in the Runestone Tools?
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
<li>7</li>
<li>8</li>
<li>9</li>
<li>10</li>
</ul></div></substitute><substitute xml:id='qstudent'>
<div class="runestone ">
<ul data-component="poll" id=qstudent class='' data-results='instructor' data-question_label="11.1.2" >
I am a :
<li>1. student</li>
<li>2. teacher</li>
<li>3. other</li>
<li>4. prefer not to answer</li>
</ul></div></substitute><substitute xml:id='showEval_2'>
<div data-component="showeval" data-question_label="8.3.1" class="runestone explainer" id="showEval_2" data-tracemode="true" >
<button class="btn btn-success" id="showEval_2_nextStep">Next Step</button>
<button class="btn btn-default" id ="showEval_2_reset">Reset</button>
<div class="evalCont" style="background-color: #FDFDFD;">eggs = ['dogs', 'cats', 'moose']<br />
ham = ['elk', 'salmon']<br />
eggs = eggs + ham<br />
</div>
<div class="evalCont"></div>
<script>
if (typeof window.raw_steps === "undefined") {
window.raw_steps = {};
}
raw_steps["showEval_2"] = ["eggs = \\{\\{eggs}}\\{\\{['dogs', 'cats', 'moose']}} + ham", "eggs = ['dogs', 'cats', 'moose'] + \\{\\{ham}}\\{\\{['elk', 'salmon']}}", "eggs = \\{\\{['dogs', 'cats', 'moose'] + ['elk', 'salmon']}}\\{\\{['dogs', 'cats', 'moose', 'elk', 'salmon']}}"];
</script>
</div>
</substitute><substitute xml:id='showEval_1'>
<div data-component="showeval" data-question_label="8.4.1" class="runestone explainer" id="showEval_1" data-tracemode="false" >
<button class="btn btn-success" id="showEval_1_nextStep">Next Step</button>
<button class="btn btn-default" id ="showEval_1_reset">Reset</button>
<div class="evalCont" style="background-color: #FDFDFD;">eggs = ['dogs', 'cats', 'moose']<br />
</div>
<div class="evalCont"></div>
<script>
if (typeof window.raw_steps === "undefined") {
window.raw_steps = {};
}
raw_steps["showEval_1"] = ["''.join(\\{\\{eggs}}\\{\\{['dogs', 'cats', 'moose']}}).upper().join(eggs)", "\\{\\{''.join(['dogs', 'cats', 'moose'])}}\\{\\{'dogscatsmoose'}}.upper().join(eggs)", "\\{\\{'dogscatsmoose'.upper()}}\\{\u200b\\{'DOGSCATSMOOSE'}}.join(eggs)", "'DOGSCATSMOOSE'.join(\\{\u200b\\{eggs}}\\{\u200b\\{['dogs', 'cats', 'moose']}})", "\\{\u200b\\{'DOGSCATSMOOSE'.join(['dogs', 'cats', 'moose'])}}\\{\u200b\\{'dogsDOGSCATSMOOSEcatsDOGSCATSMOOSEmoose'}}"];
</script>
</div>
</substitute></substitutes>