Returns URL or img DOM element for a given email,
uses options as query parameters with URL.
More about query parameters read at Gravatar
website.
Returns URL which points to Gravatar for a given email
and using options as query parameters with URL
url defaultOptions "[email protected]"
-- returns url to 200px x 200px image
-- for "[email protected]" email.
let
options =
defaultOptions
|> withDefault Retro
|> forceDefault
in
url options "[email protected]"
-- url to 200 x 200 image in the 'retro' formatAllows specifying all the options you could possibly need for gravatar urls.
Default options. Passing these results in passing no options in the final url at all.
By default, if there is no (allowed) image associated with an emailaddress, gravatar will display the gravatar logo. However, there are other fallback images, too. For more explanation about these, please see the gravatar docs.
Gravatar allows adding "rating" meta-data to its avatars. By default, you will only get G-rated images. For more information, please see the gravatar docs.
Sets the size to the passed in value.
defaultOptions |> withSize (Just 80)
--> { size = Just 80, ... }Sets the rating to the passed in value.
defaultOptions |> withRating RatedPG
--> { rating = RatedPG, ... }Sets the default to the passed in value.
defaultOptions |> withDefault Retro
--> { default = Retro, ... }Enables the forceDefault flag.
defaultOptions |> forceDefault
--> { forceDefault = True, ... }
Returns img DOM element which points to Gravatar for a given
emailand using options as query parameters with URL