X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Fgallery.js;h=0c0034caf60eabf0b4380d8181fccae62fd444da;hb=866ceb258a016484e30d2c7f96cb6cbb9ff05c8c;hp=bdf238650c3dfeb20fc3c1e983f05eee0ed979ce;hpb=56f64289bdbd75dea1ee58faf529d39465d11008;p=dygraphs.git diff --git a/gallery/gallery.js b/gallery/gallery.js index bdf2386..0c0034c 100644 --- a/gallery/gallery.js +++ b/gallery/gallery.js @@ -20,9 +20,12 @@ Gallery.start = function() { Gallery.toc = document.getElementById("toc"); Gallery.workarea = document.getElementById("workarea"); 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; for (var idx in Gallery.entryOrder) { var id = Gallery.entryOrder[idx]; @@ -48,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;