mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 09:48:18 -05:00
* feat: add basic sheet rendering support * chore: add missing file * fix: correct bg colors for none support * chore: fix test that relied on dark bg * chore: fix ref * chore: api spec update * chore: add todo comments * chore: use memo * chore: a bit less verbose * chore: list * chore: cleaning * chore: add rendering test * chore: enable rendering test * chore: settings * chore: settings * chore: disable rendering tests * chore: revert test tests
50 lines
1.1 KiB
HTML
50 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<script src="/apis/stardust/dist/stardust.js"></script>
|
|
<script src="/apis/snapshooter/client.js"></script>
|
|
<script src="configured.js"></script>
|
|
|
|
<style>
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#object {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgb(50, 50, 50);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="object"></div>
|
|
<script>
|
|
const params = (() => {
|
|
const opts = {};
|
|
window.location.search
|
|
.substring(1)
|
|
.split('&')
|
|
.forEach((pair) => {
|
|
const idx = pair.indexOf('=');
|
|
const name = pair.substr(0, idx);
|
|
const value = decodeURIComponent(pair.substring(idx + 1));
|
|
opts[name] = value;
|
|
});
|
|
|
|
return opts;
|
|
})();
|
|
snapshooter({
|
|
embed: configured,
|
|
element: document.querySelector('#object'),
|
|
snapshot: params.snapshot,
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|