mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-27 07:06:57 -05:00
disable button on submit
This commit is contained in:
@@ -4,6 +4,12 @@
|
||||
<meta charset="utf-8" />
|
||||
<title>GrepTweet</title>
|
||||
<link rel="stylesheet" type="text/css" href="style.css">
|
||||
<script>
|
||||
document.onunload = disableSubmit;
|
||||
function disableSubmit() {
|
||||
document.getElementById("button").disabled = true;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -13,7 +19,7 @@
|
||||
<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 type="submit" value="Fetch tweets"/>
|
||||
<input id="button" type="submit" value="Fetch tweets"/>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user