1
+ <!DOCTYPE html>
2
+ <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
3
+ <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
4
+ <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
5
+ <!--[if gt IE 8]> <html class="no-js"> <!--<![endif]-->
6
+ < html >
7
+ < head >
8
+ < meta charset ="utf-8 ">
9
+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
10
+ < title > </ title >
11
+ < meta name ="description " content ="">
12
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
13
+ < link rel ="stylesheet " href ="./styles.css ">
14
+ </ head >
15
+ < body >
16
+ <!--[if lt IE 7]>
17
+ <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="#">upgrade your browser</a> to improve your experience.</p>
18
+ <![endif]-->
19
+ < h1 > Embedded Analytics</ h1 >
20
+ < h2 > This is a Js module hosted in a Framework app</ h2 >
21
+ < p > It inherits the page styling - fonts and background colors, etc.</ p >
22
+
23
+ <!--
24
+ <div id="chart-wrapper1"></div>
25
+ <script type="module">
26
+ import {WalmartDensity} from "https://observablehq.observablehq.cloud/ea-example-walmart-density/walmart-density.js";
27
+ const t = document.querySelector("#chart-wrapper1");
28
+ t.appendChild(WalmartDensity());
29
+ </script>
30
+
31
+ -->
32
+
33
+
34
+
35
+
36
+ < div id ="chart-wrapper "> </ div >
37
+ < script type ="module ">
38
+ import { launchTimeline } from "https://observablehq.observablehq.cloud/framework-experiments/rocket-chart.js" ;
39
+ const target = document . querySelector ( "#chart-wrapper" ) ;
40
+ target . appendChild ( await launchTimeline ( ) ) ;
41
+ </ script >
42
+
43
+ < h2 > This is the iframe version for comparison</ h2 >
44
+ < p > It has a different font and background color from the original page.</ p >
45
+
46
+ < iframe height ="600 " width ="100% " scrolling ="no " src ="https://observablehq.observablehq.cloud/framework-experiments/rocket-embed "> </ iframe >
47
+
48
+
49
+
50
+ < script src ="" async defer > </ script >
51
+ </ body >
52
+ </ html >
0 commit comments