Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta name="description" content="elastic.io integration widget demo" />
  <meta charset="utf-8">
  <title>JS Bin</title>
  <!-- JQuery for this sample only, elastic.io widget has no dependency on it -->
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
</head>
<body>
  <button type="button" onclick="elasticio.contacts()">Import contacts</button>
  <ul id="contacts">
  </ul>
  <p>Get your widget <a href="http://elastic.io">here</a></p>
  <!-- load elastic.io integration widget -->
  <script type="text/javascript" src="//d16edrsy9db7i.cloudfront.net/loader.min.js?apiKey=demo"></script>
  
  <script type="text/javascript">
    // Listen for 'contact' event
    elasticio.on('contact', function(contact) {
      // Display imported contact
      $('#contacts').append('<li>' + contact.givenName 
                            + ' ' + contact.familyName + '</li>');
    });
  </script>
  
</body>
</html>
Output

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

Dismiss x
public
Bin info
zubairovpro
0viewers