This commit is contained in:
Kai Hendry
2011-11-29 17:53:46 +08:00
parent 4de672fe68
commit 90187ae9de
2 changed files with 9 additions and 6 deletions

BIN
ajax-loader.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -5,21 +5,23 @@
<title>GrepTweet</title> <title>GrepTweet</title>
<link rel="stylesheet" type="text/css" href="style.css"> <link rel="stylesheet" type="text/css" href="style.css">
<script> <script>
document.onunload = disableSubmit; function submitPressed() {
function disableSubmit() { b = document.getElementById("b");
document.getElementById("button").disabled = true; b.disabled = true;
} b.innerHTML = '<img src="ajax-loader.gif">';
document.forms.f.submit();
}
</script> </script>
</head> </head>
<body> <body>
<form action="create.cgi" method="get"> <form name="f" action="create.cgi" method="get">
<fieldset> <fieldset>
<legend>Create or update a backup of your tweets, so you can grep them</legend> <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><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> <p><input type="checkbox" name="o" />Try get older tweets, instead of newer tweets when updating</p>
<input id="button" type="submit" value="Fetch tweets"/> <button id="b" onclick="submitPressed()">Fetch tweets</button>
</fieldset> </fieldset>
</form> </form>
@@ -29,5 +31,6 @@ function disableSubmit() {
updates and <a href="https://github.com/kaihendry/Greptweet">contribute to the updates and <a href="https://github.com/kaihendry/Greptweet">contribute to the
source on Github!</a></p> source on Github!</a></p>
</body> </body>
</html> </html>