go.tools/godoc: remove Google+ buttons

LGTM=bradfitz
R=golang-codereviews, bradfitz, dsymonds
CC=golang-codereviews
https://golang.org/cl/138180043
This commit is contained in:
Andrew Gerrand 2014-09-08 10:05:20 +10:00
parent d03e8a67df
commit 96adaa5618
3 changed files with 57 additions and 80 deletions

View File

@ -61,7 +61,6 @@ func main() {
<div class="container"> <div class="container">
{{with .Title}} {{with .Title}}
<div id="plusone"><g:plusone size="small" annotation="none"></g:plusone></div>
<h1>{{html .}}</h1> <h1>{{html .}}</h1>
{{end}} {{end}}
{{with .Subtitle}} {{with .Subtitle}}

View File

@ -232,15 +232,6 @@ function toggleHash() {
} }
} }
function addPlusButtons() {
var po = document.createElement('script');
po.type = 'text/javascript';
po.async = true;
po.src = 'https://apis.google.com/js/platform.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(po, s);
}
$(document).ready(function() { $(document).ready(function() {
bindSearchEvents(); bindSearchEvents();
generateTOC(); generateTOC();
@ -256,7 +247,6 @@ $(document).ready(function() {
setupTypeInfo(); setupTypeInfo();
setupCallgraphs(); setupCallgraphs();
toggleHash(); toggleHash();
addPlusButtons();
// godoc.html defines window.initFuncs in the <head> tag, and root.html and // godoc.html defines window.initFuncs in the <head> tag, and root.html and
// codewalk.js push their on-page-ready functions to the list. // codewalk.js push their on-page-ready functions to the list.

View File

@ -530,7 +530,6 @@ func main() {
<div class="container"> <div class="container">
{{with .Title}} {{with .Title}}
<div id="plusone"><g:plusone size="small" annotation="none"></g:plusone></div>
<h1>{{html .}}</h1> <h1>{{html .}}</h1>
{{end}} {{end}}
{{with .Subtitle}} {{with .Subtitle}}
@ -806,15 +805,6 @@ function toggleHash() {
} }
} }
function addPlusButtons() {
var po = document.createElement('script');
po.type = 'text/javascript';
po.async = true;
po.src = 'https://apis.google.com/js/platform.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(po, s);
}
$(document).ready(function() { $(document).ready(function() {
bindSearchEvents(); bindSearchEvents();
generateTOC(); generateTOC();
@ -830,7 +820,6 @@ $(document).ready(function() {
setupTypeInfo(); setupTypeInfo();
setupCallgraphs(); setupCallgraphs();
toggleHash(); toggleHash();
addPlusButtons();
// godoc.html defines window.initFuncs in the <head> tag, and root.html and // godoc.html defines window.initFuncs in the <head> tag, and root.html and
// codewalk.js push their on-page-ready functions to the list. // codewalk.js push their on-page-ready functions to the list.
@ -1667,7 +1656,6 @@ function cgAddChild(tree, ul, cgn) {
</p> </p>
<!-- Zero means show all package entry points. --> <!-- Zero means show all package entry points. -->
<ul style="margin-left: 0.5in" id="callgraph-0" class="treeview"></ul> <ul style="margin-left: 0.5in" id="callgraph-0" class="treeview"></ul>
</script>
</div> </div>
</div> <!-- #pkg-callgraph --> </div> <!-- #pkg-callgraph -->