+
Try Go
-
-
@@ -112,10 +113,10 @@ function init() {
// Set up playground.
playground({
"simple": true,
- "codeEl": "#code",
- "outputEl": "#output",
- "runEl": "#run",
- "shareEl": "#share",
+ "codeEl": "#learn .code",
+ "outputEl": "#learn .output",
+ "runEl": "#learn .run",
+ "shareEl": "#learn .share",
"shareRedirect": "http://play.golang.org/p/"
});
}
diff --git a/doc/share.png b/doc/share.png
new file mode 100644
index 00000000000..c04f0c71aa3
Binary files /dev/null and b/doc/share.png differ
diff --git a/doc/style.css b/doc/style.css
index d5b305984a5..a46b8f8a99a 100644
--- a/doc/style.css
+++ b/doc/style.css
@@ -18,11 +18,11 @@ pre .highlight,
pre .highlight-comment,
pre .selection-highlight,
pre .selection-highlight-comment {
- background: #FFFF00;
+ background: #FFFF00;
}
pre .selection,
pre .selection-comment {
- background: #FF9632;
+ background: #FF9632;
}
pre .ln {
color: #999;
@@ -34,6 +34,9 @@ a {
color: #375EAB;
text-decoration: none;
}
+a:hover {
+ text-decoration: underline;
+}
p,
pre,
ul,
@@ -82,13 +85,6 @@ h4 {
margin: 0;
}
-h1 a,
-h2 a,
-h3 a,
-h4 a {
- text-decoration: underline;
-}
-
dl {
margin: 20px;
}
@@ -262,6 +258,10 @@ a#start .desc {
margin-top: 5px;
}
+div#learn .icon {
+ float: right;
+ cursor: pointer;
+}
div#learn pre,
div#learn textarea {
padding: 0;
@@ -351,8 +351,6 @@ div#video > h2 {
}
div#blog .title,
div#video .title {
- color: #222;
- text-decoration: none;
display: block;
font-size: 20px;
}