mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-21 20:41:06 -05:00
split out JS to make it easier to lint
This commit is contained in:
15
index.js
Normal file
15
index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
function massage() {
|
||||
humane.timeout = 5000;
|
||||
humane("Please wait...");
|
||||
humane("Still loading...");
|
||||
}
|
||||
|
||||
function submitPressed() {
|
||||
if (document.forms.f.checkValidity()) {
|
||||
b = document.getElementById("b");
|
||||
b.disabled = true;
|
||||
massage();
|
||||
document.forms.f.submit();
|
||||
}
|
||||
}
|
||||
|
||||
11
index.shtml
11
index.shtml
@@ -6,16 +6,7 @@
|
||||
<link id='theme' rel='stylesheet' href='themes/bigbox.css'/>
|
||||
<link rel="stylesheet" type="text/css" href="style.css">
|
||||
<script src="humane.min.js" async></script>
|
||||
<script>
|
||||
function submitPressed() {
|
||||
if (document.forms.f.checkValidity()) {
|
||||
b = document.getElementById("b");
|
||||
b.disabled = true;
|
||||
function() { humane.timeout= 5000; humane("Please wait..."); humane("Still loading..."); humane("Ah crap, sorry about this..."], ["I wish transfer chunked worked..."]); }
|
||||
document.forms.f.submit();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script src="index.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user