move to event source for showing feedback may be

This commit is contained in:
Kai Hendry
2011-11-21 07:59:39 +01:00
parent 56f60d44b7
commit 64c5b9c836
2 changed files with 27 additions and 67 deletions

View File

@@ -4,9 +4,6 @@
<meta charset="utf-8" />
<title>Grepping twitter backup</title>
<link rel="stylesheet" type="text/css" href="/style.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="/main.js"></script>
</head>
<body>
@@ -17,7 +14,10 @@
<p id="source"></p>
<p>It's upto to YOU to save your text file. User archives maybe deleted at any time.</p>
<p>Type a search query like <a href="?foo">foo</a></p>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script async src="/main.js"></script>
</body>
</html>

View File

@@ -4,64 +4,24 @@
<meta charset="utf-8" />
<title>GrepTweet</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="http://platform.twitter.com/anywhere.js?id=nblhjVeENlDT7WP83VQEA&v=1"></script>
</head>
<body>
<a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-via="greptweet" data-related="kaihendry:Author">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 4,
interval: 30000,
width: 250,
height: 300,
theme: {
shell: {
background: '#333333',
color: '#ffffff'
},
tweets: {
background: '#000000',
color: '#ffffff',
links: '#4aed05'
}
},
features: {
scrollbar: false,
loop: false,
live: false,
behavior: 'all'
}
}).render().setUser('greptweet').start();
</script>
<form action="create.cgi" method="get">
<fieldset>
<legend>Create or update a backup of your tweets, so you can grep them</legend>
<p><label>Twitter username: <input type="text" name="id" required placeholder="kaihendry"></label></p>
<p><input type="checkbox" name="o" />Try get older tweets, instead of newer tweets when updating</p>
<input type="submit" value="Create backup"/>
<input type="submit" value="Fetch tweets"/>
</fieldset>
</form>
<!--#include virtual="users.shtml" -->
<script>
twttr.anywhere(function (T) {
T("#users").hovercards({ linkify: false });
});
</script>
<p><a href="https://github.com/kaihendry/Greptweet">Please contribute to the source on Github!</a></p>
<p>Please follow <a href="https://twitter.com/greptweet">@greptweet</a> for
updates and <a href="https://github.com/kaihendry/Greptweet">contribute to the
source on Github!</a></p>
</body>
</html>