1 |
- function istoken(d,a){var c=navigator.userAgent;var g=c.indexOf("Android")>-1;var h=!!c.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);if(h){function f(i){if(window.WebViewJavascriptBridge){i(WebViewJavascriptBridge)}else{document.addEventListener("WebViewJavascriptBridgeReady",function(){i(WebViewJavascriptBridge)},false)}}f(function(j){j.init(function(l,k){alert("Received message: "+l);if(k){k("Right back atcha")}});j.send({"url":d,"typeid":a});j.send("Please respond to this",function i(k){console.log("Javascript got its response",k)})});function e(){window.webkit.messageHandlers.JS_Call_OC_login.postMessage({"url":d,"typeid":a})}e()}if(g){function b(){if(d.search(/\?/)===-1){d+="?headCode=NOHEADJWD"}else{d+="&headCode=NOHEADJWD"}javascript:Android.login("3",d,a)}b()}};
|