<li>You will see that the prototype function body is
<code>function(e, x, points){ }</code>. Paste in this
replacement function:<p/>
- <code>function(e, x){ var elem =
- document.getElementById("messages"); elem.innerHTML =
- elem.innerHTML + x + "<br>"; }</code></li>
+ <code>function(e, x){<br/> var elem =
+ document.getElementById("messages");<br/> elem.innerHTML =
+ elem.innerHTML + x + "<br>";<br/>}</code></li>
<li>Click the <em>OK</em> button. The <em>clickCallback</em>
button now says <code>defined</code> instead of <code>not defined</code>.</li>
<li>Click anywhere on the graph. The x-value will appear on the
palette.onchange();
};
+ // CURRENTLY HIDDEN.
var tmp = Palette.createChild("button", Palette.createChild("span", row));
tmp.innerText = "Copy"
tmp.onclick = function() {
var textarea = new TextArea();
- textarea.show("Now is the time for all good men\nto come to the aid of their country");
+ textarea.show("header", "Now is the time for all good men\nto come to the aid of their country");
};
+ tmp.style.display = "none";
for (var opt in opts) {
try {