Skip to content

Commit

Permalink
alternate api for avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
sin3point14 authored Jun 8, 2021
1 parent 7a9e7ee commit 3c5aea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/polymer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $('.getinput').keydown (event) ->
if name == '' or name == null
name = defaultNames[Math.floor(Math.random() * defaultNames.length)]
template.userName = name
template.avatar = "https://api.adorable.io/avatars/80/" + escape(template.userName) + ".png"
template.avatar = "https://raw.githubusercontent.com/Ashwinvalento/cartoon-avatar/master/lib/images/male/" + (name.charCodeAt(0) % 100 + 1) + ".png"
$('.loginscreen h1').append ' ' + name
$('.loginscreen').addClass('form-success').delay 1200
$('.loginscreen').fadeOut()
Expand Down

0 comments on commit 3c5aea3

Please sign in to comment.