mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-08-14 11:49:41 +00:00
.github
.themes
_deploy
credits_generator
plugins
sass
source
_addons
_components
_cookbook
_data
_docs
_faq
_includes
_layouts
_posts
addons
assets
blog
code_of_conduct
components
cookbook
demo
developers
docs
faq
font
getting-started
hassio
help
images
javascripts
libs
github.js
modernizr-2.0.js
octopress.js
pinboard.js
twitter.js
privacy
static
tos
CNAME
atom.xml
favicon.png
googlef4f3693c209fe788.html
index.html
robots.txt
service_worker.js
version.json
.editorconfig
.gitattributes
.gitignore
.gitmodules
.powrc
.project
.ruby-version
.slugignore
.travis.yml
CLA.md
CODE_OF_CONDUCT.md
Gemfile
Gemfile.lock
LICENSE.md
README.markdown
Rakefile
_config.yml
config.rb
config.ru
16 lines
614 B
JavaScript
16 lines
614 B
JavaScript
function renderDeliciousLinks(items) {
|
|
var output = '<ul class="divided">';
|
|
for (var i=0,l=items.length; i<l; i++) {
|
|
output += '<li><a href="' + items[i].u + '" title="Tags: ' + (items[i].t == "" ? "" : items[i].t.join(', ')) + '">' + items[i].d + '</a></li>';
|
|
}
|
|
output += '</ul>';
|
|
$('#delicious').html(output);
|
|
}
|
|
|
|
jQuery(function(){
|
|
var gravatarImage = jQuery('img.gravatar'),
|
|
email = jQuery(gravatarImage).data('gravatar');
|
|
if (email) {
|
|
jQuery(gravatarImage).attr({src: "http://www.gravatar.com/avatar/" + CryptoJS.MD5(email) + "?s=250"}).removeAttr('data-gravatar');
|
|
};
|
|
}); |