From ce50b6e8a941e62959a543fabb536d8c55f045fe Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Sun, 8 Jan 2012 02:16:18 -0500 Subject: [PATCH] Hiding "copy". --- experimental/palette/index.html | 6 +++--- experimental/palette/palette.js | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/experimental/palette/index.html b/experimental/palette/index.html index 1be363b..b3a3218 100644 --- a/experimental/palette/index.html +++ b/experimental/palette/index.html @@ -47,9 +47,9 @@
  • You will see that the prototype function body is function(e, x, points){ }. Paste in this replacement function:

    - function(e, x){ var elem = - document.getElementById("messages"); elem.innerHTML = - elem.innerHTML + x + "<br>"; }

  • + function(e, x){
      var elem = + document.getElementById("messages");
      elem.innerHTML = + elem.innerHTML + x + "<br>";
    }
  • Click the OK button. The clickCallback button now says defined instead of not defined.
  • Click anywhere on the graph. The x-value will appear on the diff --git a/experimental/palette/palette.js b/experimental/palette/palette.js index ba55bc9..1830315 100644 --- a/experimental/palette/palette.js +++ b/experimental/palette/palette.js @@ -63,12 +63,14 @@ Palette.prototype.create = function(document, parentElement) { 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 { -- 2.7.4