PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / trunk
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF vtrunk
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
imagify / assets / js / helpers.min.js

helpers.min.js in Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF trunk, at assets/js/helpers.min.js

1 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 !function(t){function o(t){return Math.round(t/12*100)/100}var n={getProgress:function(t,n){return t=Math.max(parseInt(t,10)||0,0),n=Math.max(parseInt(n,10)||0,0),{processed:n=(t=Math.max(t,n))-n,total:t,percent:0<t?Math.floor(n/t*100):0}},getPromoAppliesTo:function(t){var n=[];return t.applies_to instanceof Array?(t.applies_to.forEach(function(t){n.includes(t.plan_name)||n.push(t.plan_name)}),n):[t.applies_to]},sanitizeId:function(t){return parseInt(t,10)},splitPrice:function(t){var n=1<(t=(""+t).split(".")).length?""+t[1]:"";return""===n?n="00":1===n.length?n+="0":n=n.substring(0,2),[t[0],n]},humanSize:function(t){var n;return 0===t?"0 kB":(n=parseInt(Math.floor(Math.log(t)/Math.log(1024)),10),(t/Math.pow(1024,n)).toFixed(2)+" "+["B","kB","MB"][n])},formatQuota:function(t){return-1===t?"Unlimited":1e3<=t?t/1e3+" GB":t+" MB"},monthlyFromAnnual:o,applyDiscount:function(t,n,e){return{monthly:t*(e=(100-e)/100),yearly:o(n*e)}}};if(void 0!==t&&t)for(var e in t.imagify=t.imagify||{},n)Object.prototype.hasOwnProperty.call(n,e)&&(t.imagify[e]=n[e]);"undefined"!=typeof module&&module.exports&&(module.exports=n)}("undefined"!=typeof window?window:void 0);