f9b802879d
Fix hints in CTATGroupingComponent graph. Add a tutored step for CTATTable example. Update description for CTATTextField example. Point to jquery library on our CDN in tutorial example.
62 linhas
2.1 KiB
HTML
62 linhas
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>CTATTextField Example</title>
|
|
|
|
<link rel="stylesheet" href="https://cdn.ctat.cs.cmu.edu/releases/latest/CTAT.min.css"/>
|
|
<link rel="stylesheet" href="css/ctat_example.css"/>
|
|
<script src="https://cdn.ctat.cs.cmu.edu/releases/latest/jquery.min.js"></script>
|
|
<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' async></script>
|
|
<!-- cdn.rawgit.com/CMUCTAT/CTAT/<tag>/Examples/ctat.min.js -->
|
|
<script src="https://cdn.ctat.cs.cmu.edu/releases/latest/ctat.min.js"></script>
|
|
<script src="https://cdn.ctat.cs.cmu.edu/releases/latest/ctatloader.js"></script>
|
|
<script>
|
|
function ctatOnload() {
|
|
initTutor({"question_file":'CTATTextField.brd'});
|
|
$('#tutor_text').on('CTAT_EXECUTE_SAI', function(e) {
|
|
MathJax.Hub.Queue(['Typeset',MathJax.Hub,$('#tutor_text')[0]]);
|
|
});
|
|
};
|
|
</script>
|
|
<style type="text/css">
|
|
#tutor_text {
|
|
border: 1px solid black;
|
|
border-radius: 5px;
|
|
padding: 4px;
|
|
width: 200px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="tutor_window">
|
|
<a href="http://ctat.pact.cs.cmu.edu/">
|
|
<img id="CTATBanner"
|
|
alt="CTAT: Cognitive Tutor Authoring Tools"
|
|
src="skindata/CTAT_Banner.svg">
|
|
</a>
|
|
<h1>CTATTextField Example</h1>
|
|
<p>A simple text field example. Generally, CTATTextFields are designed to
|
|
display HTML and are not meant to be editable by the student. The text can be
|
|
set from the behavior graph as shown in this example.</p>
|
|
<div>
|
|
<div class="ctat_example">
|
|
<div id="tutor_text" class="CTATTextField"><em>Click the button</em> to have the tutor change this message.</div>
|
|
<div id="button" class="CTATButton" data-ctat-show-feedback="false">Tutor, are you there?</div>
|
|
</div>
|
|
<div class="ctat_code">
|
|
<pre><div id="tutor_text" class="CTATTextField"></div></pre>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="hint-box" style="margin:3px;text-align:right;">
|
|
<div id="HintWindow" class="CTATHintWindow"></div>
|
|
<div style="float: right;">
|
|
<div id="hint-button" class="CTATHintButton"></div>
|
|
<div id="done" class="CTATDoneButton"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|