examples/twitter.html in maccman-bowline-0.1.4 vs examples/twitter.html in maccman-bowline-0.1.6
- old
+ new
@@ -2,42 +2,38 @@
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>twitter</title>
- <meta name="generator" content="TextMate http://macromates.com/">
- <meta name="author" content="Alex MacCaw">
- <!-- Date: 2009-01-10 -->
- <script src="jquery.js" type="text/javascript" charset="utf-8"></script>
- <script src="chain.js" type="text/javascript" charset="utf-8"></script>
- <script src="bowline.js" type="text/javascript" charset="utf-8"></script>
- <script type="text/javascript" charset="utf-8">
- jQuery(function($){
- var tweets = $('#tweets').bowline.init('twitter_binder');
-
- // Update status
- var update = function(){
- tweets.invoke('update', $('#update').val());
- }
-
- // Add event handlers
- $('#updateForm').submit(update);
-
- tweets.invoke('index');
- });
- </script>
+ <title>Twitter</title>
+ <!--
+ <script src="http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js" type="text/javascript"></script>
+ -->
+ <script src="javascripts/jquery.js" type="text/javascript" charset="utf-8"></script>
+ <script src="javascripts/jquery.chain.js" type="text/javascript" charset="utf-8"></script>
+ <script src="javascripts/jquery.bowline.js" type="text/javascript" charset="utf-8"></script>
+ <script src="../script/init" type="text/ruby" charset="utf-8"></script>
+ <script src="javascripts/application.js" type="text/javascript" charset="utf-8"></script>
+ <link rel="stylesheet" href="stylesheets/application.css" type="text/css" charset="utf-8">
+ <script type="text/javascript" charset="utf-8">
+ jQuery(function($){
+ var tweets = $('#tweets').bowline('tweets');
+ tweets.invoke('index');
+
+ $('#updateSubmit').click(function(){
+ tweets.invoke('update', $('#updateText').val());
+ return false;
+ })
+ });
+ </script>
</head>
-<body>
- <div id="tweets">
- <div class="item">
- <img class="profile_image_url" />
- <span class="text">Loading...</span>
+ <body>
+ <div id="tweets">
+ <div class="item">
+ <span class="text"></span>
+ </div>
</div>
- </div>
-
- <form action="updateForm" method="get" accept-charset="utf-8">
- <input type="text" name="update" id="update">
- <input type="submit" value="Update →">
- </form>
+
+ <input type="text" id="updateText">
+ <input type="submit" value="Update →" id="updateSubmit">
</body>
</html>