Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
  <head>
    <script src="http://x-tag.github.io/modal/demo/x-tag-components.js"></script>
    
  </head>
  <body>
    
    <img is="my-avatar" service="twitter" username="leggetter" />
    
    <script>
      xtag.register('my-avatar', {
        extends: 'img',
        lifecycle:{
          created: function(){
            this.src = 'http://avatars.io/' + 
                        this.getAttribute( 'service' ) + '/' + 
                        this.getAttribute( 'username' );
          }
        }
      });
    </script>
    
  </body>
</html>
Output

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

Dismiss x
public
Bin info
leggetterpro
0viewers