Skip to content
Snippets Groups Projects
Commit 65887f08 authored by lehtint6's avatar lehtint6
Browse files

Improve console command instruction

parent 81d76952
No related branches found
No related tags found
No related merge requests found
......@@ -102,9 +102,10 @@ let Content = {
console_command: {
instructions: "This time the area on the left does not have any visible content. However, this exercise defines a JavaScript function that can grant you points. Your task is to use the browser console to call the function like this: <code>giveMePoints();</code>",
html: "<div id=\"events\"><p>First, <button>click here to focus</button> on suitable JavaScript context. Then use the browser console.</p></div>",
html: "<div id=\"events\"><p>First, make sure that your browser <em>console</em> is open and it has the <em>top</em> JavaScript context selected (dropdown selection in Chrome). Then, type in the command given in instruction.</p></div>",
script: function giveMePoints() {
window.postMessage('grade');
return 'Granting points my lord!';
},
selector: "$window",
events: "message",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment