Commit 85101828 by Chris Rodriguez

Updating Yaml

parent e6330716
......@@ -5,39 +5,15 @@ metadata:
showanswer: never
data: |
<problem>
<p>
In these problems (also called custom JavaScript problems or JS Input
problems), you add a problem or tool that uses JavaScript in Studio.
Studio embeds the problem in an IFrame so that your students can
interact with it in the LMS. You can grade your students' work using
JavaScript and some basic Python, and the grading is integrated into the
edX grading system.
</p>
<p>
The JS Input problem that you create must use HTML, JavaScript, and
cascading style sheets (CSS). You can use any application creation tool,
such as the Google Web Toolkit (GWT), to create your JS Input problem.
</p>
<p>
For more information, see
<a href="http://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/exercises_tools/custom_javascript.html" target="_blank">
Custom JavaScript Problem</a> in <i>Building and Running an edX Course</i>.
</p>
<p>
JavaScript developers can also see
<a href="http://edx.readthedocs.io/projects/edx-developer-guide/en/latest/extending_platform/javascript.html" target="_blank">
Custom JavaScript Applications</a> in the <i>EdX Developer's Guide</i>.
</p>
<p>
When you add the problem, be sure to select <strong>Settings</strong>
to specify a <strong>Display Name</strong> and other values that apply.
</p>
<p>You can use the following example problem as a model.</p>
<customresponse cfn="vglcfn">
<script type="loncapa/python">
<![CDATA[
import json
########## Course Author Section #########
## Change whatever you need to in here. ##
##########################################
# These are REQUIRED for all problems.
problem_type = 'interval' # Set to 'interval' or a 'number'
show_open_close = False # Do we ask for open/closed interval?
......@@ -59,6 +35,11 @@ data: |
# Only for estimation
max_time = 1000 # Large number of people beyond actual high
######## End Course Author Section #########
## Don't change anything below this line. ##
############################################
# Set the outer bounds for the slider
lowerlimit = 0
upperlimit = 1000
......@@ -159,7 +140,25 @@ data: |
{ 'ok': isOK, 'msg': message, 'grade_decimal': final_grade},
]
}
]]>
</script>
<script type="text/javascript">
$(document).ready(function(){
console.log('Let\'s go!');
});
// Logs a javascript object.
function logThatThing(ThatThing){
// Log it to the console just to verify it's working
console.log(JSON.stringify(ThatThing));
// Send it to the official edX logamajig!
// Logger.log("harvardx.public_demo.range_guesser", ThatThing);
}
</script>
<p>What is the range of passengers that can fit on a 747 aircraft? Set the low and high bounds. (416 and 660 persons)</p>
<p class="sr" aria-hidden="true">
......@@ -170,7 +169,7 @@ data: |
<span id="maxtime">$max_time</span>
</p>
<customresponse cfn="answercheck">
<jsinput gradefn="guesser.getGrade" get_statefn="guesser.getState" set_statefn="guesser.setState" width="800" height="120" html_file="https://files.edx.org/custom-js/guesser.html" sop="false"/>
<jsinput gradefn="guesser.getGrade" get_statefn="guesser.getState" set_statefn="guesser.setState" width="800" height="120" html_file="/static/guesser.html" sop="false"/>
</customresponse>
<solution>
<div class="detailed-solution">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment