Display the line in the plotter:Example function f(x) { return x * 1.2 + 50; } Try it Yourself »Compute Correct AnswersCompute the correct answers based on the line function:y = x * 1.2 + 50.The desired answer is 1 if y is over the line and 0 if y is under the line....
The plan: sandbox with JavaScript and iframes The problem can be solved by placing the needed content for the iframe contents in a hidden div and then appending that content in (with JavaScript) to the waiting iframe. This solution has worked well for my needs. Here’s a the JavaScrip to...