Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
  <head>
    <script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.3.4/platform.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.3.4/polymer.js"></script>
    
  </head>
  <body>
    
    <my-avatar service="twitter" username="leggetter" /> 
    
    <polymer-element name="my-avatar" attributes="service username">
      <template>
        <img id="avatar_image" />
      </template>
      <script>
        Polymer('my-avatar', {
          ready: function() {
            this.$.avatar_image.src = 'http://avatars.io/' + this.service + '/' + this.username;
          }
        });
      </script>
    </polymer-element>
    
  </body>
</html>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
leggetterpro
0viewers