GASP. XXXII. Measuring the diffuse ionized gas fraction in ram-pressure-stripped galaxies