Skip to content

Commit

Permalink
simplify new test
Browse files Browse the repository at this point in the history
  • Loading branch information
bmatthieu3 committed Sep 12, 2024
1 parent cbfe278 commit 1cf827c
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions examples/al-in-shadow-dom.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@

<script type="text/javascript" src="./../dist/aladin.umd.cjs" charset="utf-8"></script>
<script type="text/javascript">
const shadowEl = document.querySelector(".shadow-host");
const shadow = shadowEl.attachShadow({mode: 'open'});
const shadowEl = document.querySelector(".shadow-host");
const shadow = shadowEl.attachShadow({mode: 'open'});

let aladinLiteEl = document.createElement('div');
aladinLiteEl.id = "aladin-lite-div"
aladinLiteEl.style = "width: 768px; height: 512px";
shadow.appendChild(aladinLiteEl)

let aladinLiteEl = document.createElement('div');
aladinLiteEl.id = "aladin-lite-div"
aladinLiteEl.style = "width: 768px; height: 512px";
shadow.appendChild(aladinLiteEl)
console.log(aladinLiteEl.getRootNode() instanceof ShadowRoot)
A.init.then(() => {
let aladin = A.aladin(
aladinLiteEl,
Expand All @@ -26,14 +26,7 @@
target: 'orion', // initial target
}
);

//aladin.removeHiPSFromFavorites('CDS/P/allWISE/color')
});
</script>
<style>
.aladin-cat-browser-box {
width: 600px;
}
</style>
</body>
</html>

0 comments on commit 1cf827c

Please sign in to comment.