mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-22 13:01:06 -05:00
loader
This commit is contained in:
BIN
ajax-loader.gif
Normal file
BIN
ajax-loader.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
15
index.shtml
15
index.shtml
@@ -5,21 +5,23 @@
|
||||
<title>GrepTweet</title>
|
||||
<link rel="stylesheet" type="text/css" href="style.css">
|
||||
<script>
|
||||
document.onunload = disableSubmit;
|
||||
function disableSubmit() {
|
||||
document.getElementById("button").disabled = true;
|
||||
}
|
||||
function submitPressed() {
|
||||
b = document.getElementById("b");
|
||||
b.disabled = true;
|
||||
b.innerHTML = '<img src="ajax-loader.gif">';
|
||||
document.forms.f.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<form action="create.cgi" method="get">
|
||||
<form name="f" 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 id="button" type="submit" value="Fetch tweets"/>
|
||||
<button id="b" onclick="submitPressed()">Fetch tweets</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
@@ -29,5 +31,6 @@ function disableSubmit() {
|
||||
updates and <a href="https://github.com/kaihendry/Greptweet">contribute to the
|
||||
source on Github!</a></p>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user