Skin:community-bubbles
This commit is contained in:
7
community-bubbles/js/gravatar.js
Normal file
7
community-bubbles/js/gravatar.js
Normal file
@@ -0,0 +1,7 @@
|
||||
function getIcon(email){
|
||||
return "http://secure.gravatar.com/avatar/" + hex_md5(trim(email.toLowerCase())) +"?s=160&r=G";
|
||||
}
|
||||
|
||||
function trim(str){
|
||||
return str.replace(/(^\s*)|(\s*$)/g, "");
|
||||
}
|
||||
Reference in New Issue
Block a user