From 6ced60865e23c1fd1c87f176b9b9ad3c6bf3b92a Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Mon, 16 Jan 2012 19:51:22 -0500 Subject: [PATCH] Show introductory text. --- gallery/gallery.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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

" }; -- 2.7.4