HTML Iframe Generator

Generate `; if (c.aspectRatio) { return `
\n ${iframeTag.replace(/\n/g, '\n ')}\n
`; } return iframeTag; }, get previewHtml() { const c = this.cfg; const style = c.aspectRatio ? `style="position:relative;width:100%;aspect-ratio:${c.aspectRatio};overflow:hidden;"` : ''; const iframeStyle = c.aspectRatio ? `style="width:100%;height:100%;border:0;"` : `width="${c.width}" height="${c.height}" style="border:0;"`; const inner = ``; return c.aspectRatio ? `
${inner}
` : inner; }, async copyCode() { try { await navigator.clipboard.writeText(this.generatedCode); this.copyStatus = true; setTimeout(() => { this.copyStatus = false; }, 2000); } catch (e) {} } })); });