Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
28c6305a
Commit
28c6305a
authored
Apr 27, 2010
by
Andrew Gerrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
homepage: removed animation, use custom js instead of gdynamicfeeds
R=rsc CC=golang-dev
https://golang.org/cl/949043
parent
6c124cb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
13 deletions
+24
-13
root.html
doc/root.html
+21
-8
style.css
doc/style.css
+3
-5
No files found.
doc/root.html
View file @
28c6305a
...
@@ -9,17 +9,30 @@
...
@@ -9,17 +9,30 @@
<!-- begin blog post widget JS/styles -->
<!-- begin blog post widget JS/styles -->
<script
src=
"http://www.google.com/jsapi"
type=
"text/javascript"
></script>
<script
src=
"http://www.google.com/jsapi"
type=
"text/javascript"
></script>
<script
src=
"http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
function
loadFeedControl
()
{
function
loadFeed
()
{
var
feed
=
"http://blog.golang.org/feeds/posts/default"
var
url
=
"http://blog.golang.org/feeds/posts/default"
;
var
fg
=
new
GFdynamicFeedControl
(
feed
,
"feedControl"
,
{
var
divId
=
"blogFeed"
;
numResults
:
5
,
var
feed
=
new
google
.
feeds
.
Feed
(
url
);
displayTime
:
5000
feed
.
setNumEntries
(
8
)
feed
.
load
(
function
(
result
)
{
var
container
=
document
.
getElementById
(
divId
)
if
(
result
.
error
)
{
container
.
innerHTML
=
"Error loading feed."
;
return
;
}
container
.
innerHTML
=
""
;
var
entries
=
result
.
feed
.
entries
;
for
(
var
i
=
0
;
i
<
entries
.
length
;
i
++
)
{
var
a
=
document
.
createElement
(
"a"
);
a
.
setAttribute
(
"href"
,
entries
[
i
].
link
);
a
.
appendChild
(
document
.
createTextNode
(
entries
[
i
].
title
));
container
.
appendChild
(
a
);
}
});
});
}
}
google
.
load
(
"feeds"
,
"1"
);
google
.
load
(
"feeds"
,
"1"
);
google
.
setOnLoadCallback
(
loadFeed
Control
);
google
.
setOnLoadCallback
(
loadFeed
);
</script>
</script>
<!-- end blog post widget JS/styles -->
<!-- end blog post widget JS/styles -->
...
@@ -52,7 +65,7 @@ google.setOnLoadCallback(loadFeedControl);
...
@@ -52,7 +65,7 @@ google.setOnLoadCallback(loadFeedControl);
<div
id=
"blog"
>
<div
id=
"blog"
>
<h1>
From the
<a
href=
"http://blog.golang.org"
>
Go Blog
</a>
:
</h1>
<h1>
From the
<a
href=
"http://blog.golang.org"
>
Go Blog
</a>
:
</h1>
<div
id=
"
feedControl
"
>
Loading...
</div>
<div
id=
"
blogFeed
"
>
Loading...
</div>
</div>
</div>
...
...
doc/style.css
View file @
28c6305a
...
@@ -250,15 +250,12 @@ span.subtitle {
...
@@ -250,15 +250,12 @@ span.subtitle {
padding-right
:
1em
;
padding-right
:
1em
;
padding-bottom
:
0.75em
;
padding-bottom
:
0.75em
;
border
:
2px
solid
#ba9836
;
border
:
2px
solid
#ba9836
;
width
:
1
8
0px
;
width
:
1
6
0px
;
}
}
#blog
{
margin-bottom
:
1.5em
;
}
#blog
{
margin-bottom
:
1.5em
;
}
#blog
h1
{
font-size
:
1.2em
;
}
#blog
h1
{
font-size
:
1.2em
;
}
#blog
.gfg-title
,
#blog
.gf-author
,
#blog
.gf-spacer
{
display
:
none
;
}
#blog
#blogFeed
a
{
font-size
:
1.1em
;
display
:
block
;
margin-top
:
1em
;
}
#blog
.gfg-list
{
margin-top
:
1em
;
}
#blog
.gf-title
{
font-size
:
1.1em
;
}
#blog
.gfg-listentry-highlight
{
font-weight
:
bold
;
}
#gettingStarted
h1
{
#gettingStarted
h1
{
padding-top
:
0.3em
;
padding-top
:
0.3em
;
...
@@ -267,6 +264,7 @@ span.subtitle {
...
@@ -267,6 +264,7 @@ span.subtitle {
}
}
#gettingStarted
ol
{
#gettingStarted
ol
{
padding-left
:
2em
;
}
}
#gettingStarted
a
img
{
#gettingStarted
a
img
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment