/** gears check **/ function checkGears(){ if (window.google && google.gears) { return true; } return false; } /** leading next list **/ _list = function(){}; (function(){ _list.get = function(){ $.ajax({ dataType: arguments[0].dataType|"html", data: arguments[0].params, cache: false, url: arguments[0].url, success: _list.createSetFunc(arguments[0]) }); } _list.createSetFunc = function(){ var func = function(){}; func = (function(self,p){ return function(data){ p.target.parent().append(data); p.target.remove(); } })(this,arguments[0]) return func; } })(); /** change list color **/ $(function(){ $("a").parents("li").each(function(index,elem){ $(this).css("-webkit-tap-highlight-color","#8B8989"); }); }) /** clear textbox **/ function focusText(txt){ if(navigator.userAgent.match("Android")){ if (txt.value == ""){ txt.value = ""; } } }