| 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 |
|
|