/js/lib/Socket.IO-node/support/expresso/deps/jscoverage/doc/example-inverted/script.js
JavaScript | 20 lines | 20 code | 0 blank | 0 comment | 7 complexity | e6dc378a03e76f7571c04e2a3570c62a MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
- function go(element) {
- var message;
- if (element.id === 'radio1') {
- message = 'You selected the number 1.';
- }
- else if (element.id === 'radio2') {
- message = 'You selected the number 2.';
- }
- else if (element.id === 'radio3') {
- message = 'You selected the number 3.';
- }
- else if (element.id === 'radio4') {
- message = 'You selected the number 4.';
- }
- var div = document.getElementById('request');
- div.className = 'black';
- div = document.getElementById('result');
- div.innerHTML = '<p>' + message + '</p>';
- div.innerHTML += '<p>If you are running the instrumented version of this program, you can click the "Coverage report" button to view a coverage report.</p>';
- }