mirror of
https://github.com/kevinnlsamuel/rainbowcroissant.git
synced 2025-12-06 10:06:01 +05:30
* move the table out and iframe it in so it's actually plain * make it a single table with no theads * make copy button work with iframed table * taller frame
1.0 KiB
1.0 KiB
layout, title, desc
| layout | title | desc |
|---|---|---|
| base | Fee Mail Format | copiable format for mail to COE Office confirming fee payment details at the EFL University |
Fee Payment Email Format
COPYthat email thing format in a neat table that you can copy to gmail
psst. might not work everywhere. but LONG PRESS and paste. do not pick from keyboard
<script type="module">
const btn = document.getElementById('copybtn');
const frame = document.querySelector('iframe').contentWindow;
btn.addEventListener("click", ()=> {
frame.getSelection().selectAllChildren(frame.document.querySelector('table'));
frame.document.execCommand('copy');
btn.innerText = 'COPIED!';
btn.disabled = true;
setTimeout(()=>{btn.disabled = false; btn.innerText = 'COPY'},3000)
});
btn.disabled = false;
</script>