Sha256: 93b5014a719054536cc12661269796aa20a038254cc544794783788a9fb011b5
Contents?: true
Size: 708 Bytes
Versions: 2
Compression:
Stored size: 708 Bytes
Contents
javascript: function iFrameLoad(id){ var resize = function(id) { var el = document.getElementById(id), w = jQuery(el.parentNode).innerWidth(), h = el.contentWindow.document.body.scrollHeight; el.height = (h) + "px"; el.width = (w) + "px"; }; document.getElementById('loading-el').style.display = 'none'; setTimeout(function() { resize(id) }); } pre#loading-el.lead #{icon 'spinner', 'spin'} Loading... iframe#src-iframe[src=rails_email_preview.rep_raw_email_url(params.slice(:mail_class, :mail_action, :part_type).merge(email_locale: @email_locale)) width="100%" height=1 onLoad="iFrameLoad('src-iframe')" style="border:none;padding:0;margin:0"]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_email_preview-0.2.1 | app/views/rails_email_preview/emails/_email_iframe.html.slim |
rails_email_preview-0.2.0 | app/views/rails_email_preview/emails/_email_iframe.html.slim |