1    //jQuery(window).load(function() { // deprecated since jquery 1.8
2                                         // .load event handling suite removed in jquery 3
3    jQuery(window).on('load', function() { // web page has finished loading
4
5    function isMobile() {
6    var index = navigator.appVersion.indexOf("Mobile"); // detect chrome for android and ios safari
7    var index2 = navigator.appVersion.indexOf("Android"); // detect firefox for android
8    if (index2) { return (index2 > -1); }
9    return (index > -1);
10    }
11
12    usingmobile = isMobile();
13    if (usingmobile){
14        jQuery('input').filter(function(){
15        return !jQuery(this).attr('size');
16        }).attr('size',''); // change to a number if desired
17        jQuery('textarea').filter(function(){
18        return !jQuery(this).attr('size');
19        }).attr('cols',''); // change to a number if desired
20
21        jQuery("#edit__summary").attr('size', '');
22    }
23
24});