Skip to content
Snippets Groups Projects
Commit f93bbb5c authored by Jarko Papalitsas's avatar Jarko Papalitsas
Browse files

Modify command exercise

parent 3606e03b
No related branches found
No related tags found
No related merge requests found
...@@ -113,10 +113,10 @@ let Content = { ...@@ -113,10 +113,10 @@ let Content = {
console_command: { console_command: {
instructions: 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>", "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, 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>', html: '<div id="events"><p>First, make sure that your browser <em>console</em> is open and it has the <em>console_command</em> JavaScript context selected. Then, type in the command given in instruction.</p></div>',
script: function giveMePoints() { script: function giveMePoints() {
window.postMessage("grade"); window.postMessage("grade");
return "Granting points my lord!"; return "There you go!";
}, },
selector: "$window", selector: "$window",
events: "message", events: "message",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment