feat: certificates, landing pages, ai tutor, website update, compliance
This commit is contained in:
@@ -23,16 +23,18 @@
|
||||
</style></head><body>${rawSvg}</body></html>`;
|
||||
}
|
||||
</script>
|
||||
|
||||
{#each segments as segment}
|
||||
{#if segment.type === 'html'}
|
||||
{@html segment.content}
|
||||
{:else}
|
||||
{@const dims = svgDimensions(segment.content)}
|
||||
<iframe
|
||||
sandbox=""
|
||||
srcdoc={svgSrcdoc(segment.content)}
|
||||
title="Embedded diagram"
|
||||
style="border:none;overflow:hidden;width:{dims.width};height:{dims.height}"
|
||||
></iframe>
|
||||
{/if}
|
||||
|
||||
{#key content}
|
||||
{#each segments as segment, i (i)}
|
||||
{#if segment.type === 'html'}
|
||||
{@html segment.content}
|
||||
{:else}
|
||||
{@const dims = svgDimensions(segment.content)}
|
||||
<iframe
|
||||
sandbox=""
|
||||
srcdoc={svgSrcdoc(segment.content)}
|
||||
title="Embedded diagram"
|
||||
style="border:none;overflow:hidden;width:{dims.width};height:{dims.height}"
|
||||
></iframe>
|
||||
{/if}
|
||||
{/each}
|
||||
|
||||
Reference in New Issue
Block a user