From: Robert Konigsberg Date: Tue, 17 Jan 2012 00:51:22 +0000 (-0500) Subject: Show introductory text. X-Git-Tag: v1.0.0~320^2~7 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=6ced60865e23c1fd1c87f176b9b9ad3c6bf3b92a;p=dygraphs.git Show introductory text. --- diff --git a/gallery/gallery.js b/gallery/gallery.js index 14cd341..bdf2386 100644 --- 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.style.visibility = "hidden"; 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 = "#"; - Gallery.workarea.style.visibility = "visible"; 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(); + return; } } + Gallery.workareaChild.innerHTML = "

Select a demo from the gallery on the left

" };