Video Disclaimer
From NCSC Wiki
(Difference between revisions)
Line 16: | Line 16: | ||
} | } | ||
− | function | + | function generate() |
{ | { | ||
//Set up addition line | //Set up addition line | ||
+ | x = Math.floor((Math.random() * 5) + 1); | ||
+ | y = Math.floor((Math.random() * 5) + 1); | ||
document.getElementById("z").innerHTML = "What is: " + String(x) + " + " + String(y) + " = "; | document.getElementById("z").innerHTML = "What is: " + String(x) + " + " + String(y) + " = "; | ||
} | } | ||
Line 75: | Line 77: | ||
else | else | ||
{ | { | ||
− | + | generate(); | |
document.getElementById("sumError").innerHTML = " Wrong! Try again."; | document.getElementById("sumError").innerHTML = " Wrong! Try again."; | ||
document.getElementById("sum").value = ""; | document.getElementById("sum").value = ""; | ||
Line 112: | Line 114: | ||
</script> | </script> | ||
</head> | </head> | ||
− | <body onload=" | + | <body onload="generate()"> |
<strong>To view the video library you must agree to the terms below.</strong> | <strong>To view the video library you must agree to the terms below.</strong> | ||
<br> | <br> |
Latest revision as of 14:45, 21 October 2014
To view the video library you must agree to the terms below.
Terms of Use
The professional development materials linked to the NCSC WIKI are available for online viewing and individual use only. Other uses are prohibited. I agree to the terms of use on the NCSC professional development website.
First Name:Last Name:
Email:
Information collected in the video disclaimer agreement will be used for security only. This information will not be shared or used for any other purpose.