Skip to content
Permalink
Browse files

instructions for copy-restore

  • Loading branch information...
CorySanin committed Jan 6, 2019
1 parent ac26cf1 commit 25ca06d9dbb5995b6c0892b2ab7b390d82cb2e78
Showing with 9 additions and 1 deletion.
  1. +9 −1 AV/PL/paramPassingCopyRestorePRO.js
@@ -26,9 +26,13 @@ $(document).ready(function () {
var currentLineMain = 0;
var currentLineFoo = 0;
var highlightedLine;
var instructionLabel;
var output = '';
var jsavElements;

var instructionRegular = 'Evaluate the value of the right hand side of the hightlighted line and type that into the input above. Then click the location where that value belongs.';
var instructionRestore = 'Restore the two variables one at a time. Order does not matter.';

var currentStep = 0;
var mainSteps = 0;

@@ -68,6 +72,7 @@ $(document).ready(function () {
}
else{
pseudo.setCurrentLine(currentLineMain);
instructionLabel.text(instructionRestore);
}
valInput.focus();
}
@@ -86,7 +91,7 @@ $(document).ready(function () {
mainVarNum = 0;
mainIndex = null;

fooIndex = mainIndex = null;
fooIndex = mainIndex = instructionLabel = null;
classVars = {};
classLabels = {};
mainVars = {};
@@ -212,6 +217,9 @@ $(document).ready(function () {
clearAllJsavObj();
av.umsg("");

instructionLabel = av.label(instructionRegular);
jsavElements.push(instructionLabel);

codeLines = CallByAllFive.expression.split('<br />');
for(var i = 0; i < codeLines.length; i++){
if(mainIndex != null){

0 comments on commit 25ca06d

Please sign in to comment.
You can’t perform that action at this time.