X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Fgallery.js;h=0c0034caf60eabf0b4380d8181fccae62fd444da;hb=866ceb258a016484e30d2c7f96cb6cbb9ff05c8c;hp=dec3cb37236cc96284665e35352c46261c04400d;hpb=2a3953eb837cf50230d40fb518d0fa9b93ed7c56;p=dygraphs.git diff --git a/gallery/gallery.js b/gallery/gallery.js index dec3cb3..0c0034c 100644 --- a/gallery/gallery.js +++ b/gallery/gallery.js @@ -22,7 +22,7 @@ Gallery.start = function() { Gallery.subtitle = Gallery.create("div", Gallery.workarea); Gallery.subtitle.id = "subtitle"; Gallery.workareaChild = Gallery.create("div", Gallery.workarea); - Gallery.title = document.getElementById("title"); + Gallery.demotitle = document.getElementById("demotitle"); Gallery.textarea = new TextArea(); Gallery.textarea.width = 600; Gallery.textarea.height = 400; @@ -51,7 +51,7 @@ Gallery.start = function() { var codeLink = Gallery.create("a", Gallery.subtitle); codeLink.textContent = "code"; codeLink.href = "#"; - Gallery.title.textContent = demo.title ? demo.title : ""; + Gallery.demotitle.textContent = demo.title ? demo.title : ""; demo.innerDiv.className = "selected"; Gallery.workareaChild.id = id; location.hash = "g/" + id;