Update index.html
Browse files- index.html +9 -5
index.html
CHANGED
@@ -1,8 +1,12 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<div style="text-align: center;">
|
3 |
<iframe
|
4 |
-
|
5 |
frameborder="0"
|
6 |
-
|
|
|
7 |
></iframe>
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<iframe
|
2 |
+
id="my-iframe"
|
3 |
frameborder="0"
|
4 |
+
width="850"
|
5 |
+
height="450"
|
6 |
></iframe>
|
7 |
+
|
8 |
+
<script>
|
9 |
+
var envVar = process.env.ENV_VAR; // get the value of the environment variable
|
10 |
+
var iframe = document.getElementById("my-iframe");
|
11 |
+
iframe.src = envVar; // set the src attribute of the iframe tag
|
12 |
+
</script>
|