MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / showSolution

Function showSolution

static/js/learnpython.js:291–300  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

289}
290
291function showSolution() {
292 maximizeDock();
293 var solutionText = tutorialData.solution;
294 if (solutionText) {
295 editor.setValue(solutionText);
296 } else {
297 editor.setValue("There is currently no solution to this exercise.\nPlease contribute your solution on GitHub.\n\nhttp://github.com/ronreiter/interactive-tutorials");
298 $("#run-button").prop("disabled", true);
299 }
300}
301
302function reset() {
303 maximizeDock();

Callers

nothing calls this directly

Calls 2

maximizeDockFunction · 0.85
setValueMethod · 0.80

Tested by

no test coverage detected