projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3e81f5d
)
Show introductory text.
author
Robert Konigsberg
<konigsberg@google.com>
Tue, 17 Jan 2012 00:51:22 +0000
(19:51 -0500)
committer
Robert Konigsberg
<konigsberg@google.com>
Tue, 17 Jan 2012 00:51:22 +0000
(19:51 -0500)
gallery/gallery.js
patch
|
blob
|
blame
|
history
diff --git
a/gallery/gallery.js
b/gallery/gallery.js
index
14cd341
..
bdf2386
100644
(file)
--- a/
gallery/gallery.js
+++ b/
gallery/gallery.js
@@
-21,7
+21,6
@@
Gallery.start = function() {
Gallery.workarea = document.getElementById("workarea");
Gallery.subtitle = Gallery.create("div", Gallery.workarea);
Gallery.workareaChild = Gallery.create("div", Gallery.workarea);
Gallery.workarea = document.getElementById("workarea");
Gallery.subtitle = Gallery.create("div", Gallery.workarea);
Gallery.workareaChild = Gallery.create("div", Gallery.workarea);
- Gallery.workarea.style.visibility = "hidden";
Gallery.title = document.getElementById("title");
Gallery.textarea = new TextArea();
Gallery.title = document.getElementById("title");
Gallery.textarea = new TextArea();
@@
-49,7
+48,6
@@
Gallery.start = function() {
var codeLink = Gallery.create("a", Gallery.subtitle);
codeLink.textContent = "code";
codeLink.href = "#";
var codeLink = Gallery.create("a", Gallery.subtitle);
codeLink.textContent = "code";
codeLink.href = "#";
- Gallery.workarea.style.visibility = "visible";
Gallery.title.textContent = demo.title ? demo.title : "";
demo.innerDiv.className = "selected";
Gallery.workareaChild.id = id;
Gallery.title.textContent = demo.title ? demo.title : "";
demo.innerDiv.className = "selected";
Gallery.workareaChild.id = id;
@@
-87,6
+85,8
@@
Gallery.hashChange = function(event) {
var id = location.hash.substring(3) + "-toc";
var elem = document.getElementById(id);
elem.onclick();
var id = location.hash.substring(3) + "-toc";
var elem = document.getElementById(id);
elem.onclick();
+ return;
}
}
}
}
+ Gallery.workareaChild.innerHTML = "<h3>Select a demo from the gallery on the left</h3>"
};
};