I teach electrical engineering, and I have a series of 20 or so html/javascript tutorials for my students. Each page of each tutorial asks a question, which the student must answer. The answers are in the javascript, like this:
Some of the students right click and select "view frame source" to extract the answers from my code.
Now, I realize that I can't totally protect my answers from being extracted, but I'm hoping to make it more difficult for them to cheat than to just honestly answer the questions.
So I'm asking for your suggestions as to how to throw up a few walls of protection. Please keep in mind that I've got about 300 HTML pages of tutorials, so I'd prefer some (perhaps search and replace) solution that doesn't involve my personally editing each individual page.
For those interested, you can see the tutorials at:
http://raise.spd.louis ville.edu/systom/ECE252/252home.htm
Thanks for your help.
Code:
//Define variables: //Correct answer (use quotes for alpha-numeric, no quotes for numeric): var corAns = 5;
Now, I realize that I can't totally protect my answers from being extracted, but I'm hoping to make it more difficult for them to cheat than to just honestly answer the questions.
So I'm asking for your suggestions as to how to throw up a few walls of protection. Please keep in mind that I've got about 300 HTML pages of tutorials, so I'd prefer some (perhaps search and replace) solution that doesn't involve my personally editing each individual page.
For those interested, you can see the tutorials at:
http://raise.spd.louis ville.edu/systom/ECE252/252home.htm
Thanks for your help.
Comment