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

Add button to focus for console commands

parent df3210fd
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@ 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\"></div>",
html: "<div id=\"events\"><p>First, <button>click here to focus</button> on suitable JavaScript context. Then use the browser console.</p></div>",
script: function giveMePoints() {
window.postMessage('grade');
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment