Sha256: 5ced38d4f86e1e4086e890803c59f0744e319db2a25a2c1f4f1a21165b07d0dc
Contents?: true
Size: 506 Bytes
Versions: 44
Compression:
Stored size: 506 Bytes
Contents
mumuki.load(() => { scaleCertificate(); mumuki.resize(scaleCertificate); function scaleCertificate() { const $certPreview = $('.certificate-preview'); const $muCertificate = $('.mu-certificate-box'); $muCertificate.css('transform', 'scale(1)'); const scaleWidth = $muCertificate.width() / $certPreview.width(); $muCertificate.css({ 'transform': `scale(${1 / scaleWidth})`, 'transform-origin': `0 0`, }); $certPreview.height($muCertificate.height()); } });
Version data entries
44 entries across 44 versions & 1 rubygems