mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-25 14:21:07 -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 |
13
index.shtml
13
index.shtml
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user