Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
masonstrap
Commits
930114be
Commit
930114be
authored
Feb 09, 2013
by
Thomas Park
Browse files
moved parseRSS function to index
parent
6c2dcef0
Changes
2
Hide whitespace changes
Inline
Side-by-side
index.html
View file @
930114be
...
...
@@ -565,6 +565,7 @@
!
function
(
d
,
s
,
id
){
var
js
,
fjs
=
d
.
getElementsByTagName
(
s
)[
0
];
if
(
!
d
.
getElementById
(
id
)){
js
=
d
.
createElement
(
s
);
js
.
id
=
id
;
js
.
src
=
"
//platform.twitter.com/widgets.js
"
;
fjs
.
parentNode
.
insertBefore
(
js
,
fjs
);}}(
document
,
"
script
"
,
"
twitter-wjs
"
);
</script>
<script
type=
"text/javascript"
>
var
taglines
=
[
'
Free themes for <a target="_blank" href="http://twitter.github.com/bootstrap/">Twitter Bootstrap</a>
'
,
'
Add color to your <a target="_blank" href="http://twitter.github.com/bootstrap/">Bootstrap</a> site without touching a color picker
'
,
...
...
@@ -581,6 +582,17 @@
}
document
.
getElementById
(
'
ticker
'
).
innerHTML
=
h
;
})
function
parseRSS
(
url
,
callback
)
{
$
.
ajax
({
url
:
'
http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=
'
+
encodeURIComponent
(
url
),
dataType
:
'
json
'
,
success
:
function
(
data
)
{
callback
(
data
.
responseData
.
feed
);
}
});
}
</script>
</body>
...
...
js/bootswatch.js
View file @
930114be
...
...
@@ -4,18 +4,6 @@ $('a[rel=tooltip]').tooltip({
'
placement
'
:
'
bottom
'
});
// recent news
function
parseRSS
(
url
,
callback
)
{
$
.
ajax
({
url
:
'
http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=
'
+
encodeURIComponent
(
url
),
dataType
:
'
json
'
,
success
:
function
(
data
)
{
callback
(
data
.
responseData
.
feed
);
}
});
}
// smooth scroll
$
(
document
).
ready
(
function
()
{
...
...
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