trying a trendy JS notification

This commit is contained in:
Kai Hendry
2011-11-30 16:53:00 +08:00
parent 34b693c5c5
commit af30034df4
4 changed files with 142 additions and 4 deletions

View File

@@ -3,13 +3,17 @@
<head>
<meta charset="utf-8" />
<title>GrepTweet</title>
<script src="humane.min.js" async></script>
<link id='theme' rel='stylesheet' href='themes/bigbox.css'/>
<link rel="stylesheet" type="text/css" href="style.css">
<script>
function submitPressed() {
b = document.getElementById("b");
b.disabled = true;
b.innerHTML = '<img src="ajax-loader.gif">';
document.forms.f.submit();
if (document.forms.f.checkValidity()) {
b = document.getElementById("b");
b.disabled = true;
humane.log("Please wait...");
document.forms.f.submit();
}
}
</script>
</head>