ios7 form input patch
ios7 appears to have broken input fields for a number of web applications. Input fields now take two taps to allow the user to input data even though the keyboard is brought up after only one click. Here’s a hack to fix the input fields for any of your webapps ios7 broke.
if(window.navigator.standalone) {
var arr = document.all.tags("input");
var len = arr.length;
for(;len--;) {
arr[len].addEventListener('touchstart',function(ev){
var tel = ev.target;
setTimeout(function() {
tel.focus();
}, 150);
});
}
}