Style tweaks
[dygraphs.git] / gallery / gallery.js
index bdf2386..0c0034c 100644 (file)
@@ -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;