cmd/godoc: add toys, tour button to playground
Fixes #3241.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5835043
diff --git a/doc/root.html b/doc/root.html
index b2d0b60..3b92229 100644
--- a/doc/root.html
+++ b/doc/root.html
@@ -24,8 +24,20 @@
</pre>
</div>
<div class="buttons">
-<a class="run" href="#">Run</a>
-<a class="share" href="#">Share</a>
+<a class="run" href="#" title="Run this code [shift-enter]">Run</a>
+<a class="share" href="#" title="Share this code">Share</a>
+<a class="tour" href="http://tour.golang.org/" title="Learn Go from your browser">Tour</a>
+</div>
+<div class="toys">
+<select>
+ <option value="hello.go">Hello, World!</option>
+ <option value="fib.go">Fibonacci Closure</option>
+ <option value="peano.go">Peano Integers</option>
+ <option value="pi.go">Concurrent pi</option>
+ <option value="sieve.go">Concurrent Prime Sieve</option>
+ <option value="solitaire.go">Peg Solitaire Solver</option>
+ <option value="tree.go">Tree Comparison</option>
+</select>
</div>
</div>
@@ -117,7 +129,8 @@
"outputEl": "#learn .output",
"runEl": "#learn .run",
"shareEl": "#learn .share",
- "shareRedirect": "http://play.golang.org/p/"
+ "shareRedirect": "http://play.golang.org/p/",
+ "toysEl": "#learn .toys select"
});
}