/[drupal]/contributions/modules/jeopardy/jeopardy.js
ViewVC logotype

Diff of /contributions/modules/jeopardy/jeopardy.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Tue Jan 30 21:46:56 2007 UTC revision 1.2, Sun Aug 31 12:20:53 2008 UTC
# Line 1  Line 1 
1  // JavaScript Document  
2  function showquestion (id) {  // Global JS Kill Switch
3          el = document.getElementById(id);  if (Drupal.jsEnabled) {
4          display = document.getElementById("hidden-jeopardy");    $(document).ready(function() {
5          display.innerHTML = "";      $('td.jeopardy-table-question').click(function () {
6          display.innerHTML = el.innerHTML;        var td = this;
7          qu = id.replace('question','jeopardy');        var loc = this.id.replace('jeopardy-', '');
8          el = document.getElementById(qu);        $('#question-' + loc).each(function () {
9          el.style.backgroundColor = 'red';          var el = this;
10          return;          $('#hidden-jeopardy').each(function () {
11              this.innerHTML = el.innerHTML;
12            });
13            $(td).css("background-color", "red");
14          });
15        });
16      });
17  }  }
18    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2