Files
greptweet/index.shtml
2012-07-14 18:21:59 +02:00

68 lines
1.5 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="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>
<p>Try <a href="http://grepbook.co.uk/">Grepbook</a> for grepping Facebook</p>
<footer>
<p>Please <a href="https://github.com/kaihendry/Greptweet">contribute on Github</a> :)</p>
</footer>
</div>
</div>
</body>
</html>