~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/apps/tutorial/__init__.py

  • Committer: mattgiuca
  • Date: 2008-01-25 05:38:02 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:312
Full client-side testing - functional.

tutorial.js: Added all the code necessary to send the request, parse the
response, and generate the DOM nodes to display the result to the user.

tutorial.css: Added list styles.
Added media/images/tutorial with pass/fail/exception icons.

Show diffs side-by-side

added added

removed removed

Lines of Context:
279
279
        req.write("<p>%s</p>" % problemdesc)
280
280
    req.write('<textarea class="problembox" cols="80" rows="12">%s</textarea>'
281
281
            % problempartial)
282
 
    req.write("""<div class="problembuttons">
 
282
    req.write("""\n<div class="problembuttons">
283
283
  <input type="button" value="Submit"
284
284
    onclick="submitproblem(&quot;problem%d&quot;, %s)" />
285
285
</div>
 
286
<div class="testoutput">
 
287
</div>
286
288
""" % (problemid, cgi.escape(cjson.encode(problemsrc), quote=True)))
287
289
    req.write("</div>\n")