-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiframe.html
29 lines (27 loc) · 934 Bytes
/
iframe.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!--
This snippet can be be used to embed the app into a foreign page.
Make sure to set an appropriate title (this is important for accessibility).
By default, a resizer script is included that makes sure the iframe is
sized properly. If you don't want this, simply remove the script tags.
-->
<style>
/* explained here: https://github.com/davidjbradshaw/iframe-resizer#typical-setup */
#rbb-data--{project-name} {
width: 1px;
min-width: 100%;
border: 0;
}
</style>
<iframe
id="rbb-data--{project-name}"
src="https://storage.googleapis.com/rbb-data-static/{project-creation-date}-{project-name}/index.html"
title="IMPORTANT: ADD TITLE"
loading="lazy"
width="100%"
scrolling="no"
frameborder="0"
></iframe>
<script src="https://storage.googleapis.com/rbb-data-static/lib/iframe-resizer/iframe-resizer.min.js"></script>
<script>
rbbData.resizeIframe('rbb-data--{project-name}');
</script>