Files
greptweet/index.shtml
Kai Hendry 2c201bd1ff favicon
2012-08-10 18:36:10 +02:00

96 lines
2.1 KiB
Plaintext

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>GrepTweet</title>
<meta content="width=device-width, initial-scale=1,maximum-scale=1.0;" name=viewport>
<link rel="icon" href="favicon.ico">
<link rel="stylesheet" href="/bootstrap/docs/assets/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="style.css">
<script>
function getCookie( oName ) {
var splitcookie = document.cookie.split( "; " ), x, cookiepair;
for( x = 0; x < splitcookie.length; x = x + 1 ) {
cookiepair = splitcookie[x].split( "=" );
if( cookiepair[0] === encodeURIComponent( oName ) ) {
if( cookiepair[1] ) {
return decodeURIComponent( cookiepair[1] );
} else {
return '';
}
}
}
return null;
}
user = getCookie("u");
if (user) { window.location.replace("/u/" + user); }
</script>
</head>
<body>
<div class="container">
<div class="content">
<div class="page-header">
<h1><a href="http://twitter.com/greptweet">@Greptweet</a> <small>you can search your tweets</small></h1>
</div>
<form name="f" action="create.cgi" method="get">
<div class="well">
<div class="clearfix">
<label for="username">Twitter username</label>
<div class="input">
<input class="xlarge" id="username" type="text" name="id" size="16" required placeholder="kaihendry">
</div>
</div>
<button class="btn btn-large btn-primary" id="b" onclick="submitPressed()">Fetch tweets</button>
</div>
</form>
<script charset="utf-8" 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>
<footer>
<p>Please <a href="https://github.com/kaihendry/Greptweet">report issues and contribute on Github</a> :)</p>
<p>Try <a href="http://grepbook.co.uk/">Grepbook</a> for grepping Facebook</p>
</footer>
</div>
</div>
</body>
</html>