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.
67 linhas
2.1 KiB
HTML
67 linhas
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>CTATTextArea 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>
|
|
<!-- 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":'CTATTextArea.brd'});
|
|
};
|
|
</script>
|
|
<style type="text/css">
|
|
</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>CTATTextArea Example</h1>
|
|
<p>A simple text entry example.</p>
|
|
<div>
|
|
<div class="ctat_example">
|
|
Enter 1:
|
|
<div id="textarea" class="CTATTextArea"></div>
|
|
</div>
|
|
<div class="ctat_code">
|
|
<pre><div id="textarea" class="CTATTextArea"></div></pre>
|
|
</div>
|
|
</div>
|
|
<p>A simple multi-line text entry example.</p>
|
|
<div>
|
|
<div class="ctat_example">
|
|
Enter anything:<br>
|
|
<div id="mltext" class="CTATTextArea" data-ctat-tab-on-enter="false" data-ctat-tutor="false" style="height:4em;"></div><br>
|
|
<div id="submit" class="CTATSubmitButton" data-ctat-target="mltext">Submit</div>
|
|
</div>
|
|
<div class="ctat_code">
|
|
<pre>
|
|
<div id="mltext" class="CTATTextArea"
|
|
data-ctat-tab-on-enter="false"
|
|
data-ctat-tutor="false"></div>
|
|
<div id="submit" class="CTATSubmitButton"
|
|
data-ctat-target="mltext"></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>
|