testappproj/templates/run.html~
author amit@thunder
Mon, 14 Jun 2010 01:00:59 +0530
changeset 3 34d0c21e3352
parent 0 0b061d58aea3
permissions -rw-r--r--
Checking if exam has been previously done by the user or not

{%extends "base.html"%}
{%block body%}
  {{ result }}
  
{%endblock%}

{% block scripts %}
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3.1");
google.setOnLoadCallback(function() {
  $('table.run_result tbody tr td:last-child').each( function(){
      if  ($(this).text() == 'fail'){
          $(this).parent().addClass('failure')
      }
      else if  ($(this).text() == 'pass'){
          $(this).parent().addClass('success')
      }
  });
});
</script>
{% endblock %}