diff --git a/cmd/dispatch/static/geetest/static/appweb/app3-index.html b/cmd/dispatch/static/geetest/static/appweb/app3-index.html
index 2ec7ac89..ce65b33f 100644
--- a/cmd/dispatch/static/geetest/static/appweb/app3-index.html
+++ b/cmd/dispatch/static/geetest/static/appweb/app3-index.html
@@ -10,12 +10,14 @@
body {
margin: 0;
}
+
.title {
margin: 15px;
font-size: 18px;
line-height: 18px;
height: 18px;
}
+
#log {
margin: 10px;
display: none;
@@ -28,6 +30,7 @@
#log p {
}
+
#loading {
position: fixed;
top: 50%;
@@ -41,9 +44,14 @@
@@ -135,12 +143,12 @@
log('Error Ocurred.');
try {
if (typeof JSInterface !== 'undefined') {
- if (typeof JSInterface.gtError === 'function') {
- JSInterface.gtError();
- }
- if (typeof JSInterface.gt3Error === 'function') {
- JSInterface.gt3Error(JSON.stringify(err))
- }
+ if (typeof JSInterface.gtError === 'function') {
+ JSInterface.gtError();
+ }
+ if (typeof JSInterface.gt3Error === 'function') {
+ JSInterface.gt3Error(JSON.stringify(err))
+ }
}
loadingEle.style.display = 'none'
} catch (e) {
@@ -149,14 +157,14 @@
try {
if (window.webkit
&& window.webkit.messageHandlers) {
- err = err || {};
- err.error = '1';
- var message = JSON.stringify(err);
- if (window.webkit.messageHandlers.gtError) {
- window.webkit.messageHandlers.gtError.postMessage(message);
- }
+ err = err || {};
+ err.error = '1';
+ var message = JSON.stringify(err);
+ if (window.webkit.messageHandlers.gtError) {
+ window.webkit.messageHandlers.gtError.postMessage(message);
+ }
if (window.webkit.messageHandlers.gt3Error) {
- window.webkit.messageHandlers.gt3Error.postMessage(message);
+ window.webkit.messageHandlers.gt3Error.postMessage(message);
}
}
} catch (e) {
@@ -261,9 +269,9 @@
}
});
captchaObj.onError(errorHandler);
- if(typeof captchaObj.onChangeCaptcha === 'function'){
+ if (typeof captchaObj.onChangeCaptcha === 'function') {
captchaObj.onChangeCaptcha(function (type) {
- var notification = { aspect_radio: args[('aspect_radio_'+type)] }
+ var notification = {aspect_radio: args[('aspect_radio_' + type)]}
try {
if (typeof JSInterface !== 'undefined') {
JSInterface.gtNotify(JSON.stringify(notification));
@@ -309,8 +317,8 @@
s.onload = s.onreadystatechange = function () {
if (!loaded &&
(!s.readyState
- || s.readyState === "loaded"
- || s.readyState === 'complete')) {
+ || s.readyState === "loaded"
+ || s.readyState === 'complete')) {
if (test()) {
loaded = true;
callback(null);
@@ -328,7 +336,7 @@
head.appendChild(s);
};
- function init(js){
+ function init(js) {
loadJS(static_servers, js, function () {
return window.Geetest;
}, function (err) {
@@ -340,6 +348,7 @@
handler(config);
});
}
+
init(js);