Sha256: 4eb860cd01f06e04c08422145903a396092750d62838d13e0255edcb5df3b990

Contents?: true

Size: 1.31 KB

Versions: 3

Compression:

Stored size: 1.31 KB

Contents

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <title>Faye demo: chat client</title>
  <link rel="stylesheet" href="/style.css" type="text/css" media="screen">
  <script src="/jquery.js" type="text/javascript"></script>
  <script src="/comet.js" type="text/javascript"></script>
  <script src="/soapbox.js" type="text/javascript"></script>
</head>
<body>
<div class="container">
  
  <h1><em>Soapbox</em> | a Twitter-style chat app</h1>
  
  <form id="enterUsername">
    <label for="username">Pick a username</label>
    <input type="text" name="username" id="username">
    <input type="submit" value="Go">
  </form>
  
  <div id="app">
    <form id="addFollowee">
      <label for="followee">Follow</label>
      <input type="text" name="followee" id="followee">
      <input type="submit" value="Go">
    </form>
    
    <form id="postMessage">
      <label for="message">Post a message</label><br>
      <textarea name="message" id="message" rows="3" cols="40"></textarea>
      <input type="submit" value="Go">
    </form>
    
    <ul id="stream">
    </ul>
  </div>
  
  <script type="text/javascript">
    Comet = new Faye.Client('/comet');
    Comet.connect();
    
    Soapbox.init(Comet);
  </script>

</div>  
</body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
faye-0.2.2 examples/shared/public/index.html
faye-0.1.0 examples/soapbox/views/index.erb
faye-0.1.1 examples/soapbox/views/index.erb