Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

get gravatar javascript

//--------------------------------------------------------
// Get Gravatar Image from Email
// npm install crypto-js
//--------------------------------------------------------
import md5 from 'crypto-js/md5';

const email  = "youremail@gmail.com";
const URL    = 'http://www.gravatar.com/avatar/';
const imgSrc = URL + md5(email).toString() + '.jpg?s=256';
//--------------------------------------------------------
Comment

PREVIOUS NEXT
Code Example
Javascript :: Replacing Specific word from url, replacing url 
Javascript :: nodejs express use streams 
Javascript :: how to show conditional show on select field 
Javascript :: runecape 
Javascript :: Day of The Year 
Javascript :: how to set the id attr to a var in reactjs 
Javascript :: toast width match parent 
Javascript :: Access the list of valid values for an Enum field in a MongoDb Mongoose Schema 
Javascript :: screeps clear memory of dead screeps 
Javascript :: angular pass template value from component 
Javascript :: how we can use pagination in angular material and spring boot 
Javascript :: "create a chatbot using javascript only" 
Javascript :: If Presence Shorthand javascript 
Javascript :: reduce tally 
Javascript :: how to get random value from array in javascript 
Javascript :: clone copy a table in servicenow 
Javascript :: javascript variable without value 
Javascript :: Sending e-mail using Mandrill API 
Javascript :: loop featured image react wordpress api 
Javascript :: append to a div and save the previous data after refresh page in javascript 
Javascript :: convert text file to string javascript 
Javascript :: 5.1.3. Boolean Expressions¶ 
Javascript :: see wss request on network tab 
Javascript :: joi for validation 
Javascript :: dynamic data fetching in datatable.net 
Javascript :: Get characters between two characters 
Javascript :: javascript array table append loop 
Javascript :: how to change sender name in nodemailer 
Javascript :: Log Time from Date 
Javascript :: loader on map function in react js 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =