simplify new test

This commit is contained in:
Matthieu Baumann
2024-09-12 16:54:48 +02:00
committed by Matthieu Baumann
parent 1271e5f0ac
commit aa8c31d246

View File

@@ -8,14 +8,14 @@
<script type="text/javascript" src="./../dist/aladin.umd.cjs" charset="utf-8"></script> <script type="text/javascript" src="./../dist/aladin.umd.cjs" charset="utf-8"></script>
<script type="text/javascript"> <script type="text/javascript">
const shadowEl = document.querySelector(".shadow-host"); const shadowEl = document.querySelector(".shadow-host");
const shadow = shadowEl.attachShadow({mode: 'open'}); 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(() => { A.init.then(() => {
let aladin = A.aladin( let aladin = A.aladin(
aladinLiteEl, aladinLiteEl,
@@ -26,14 +26,7 @@ console.log(aladinLiteEl.getRootNode() instanceof ShadowRoot)
target: 'orion', // initial target target: 'orion', // initial target
} }
); );
//aladin.removeHiPSFromFavorites('CDS/P/allWISE/color')
}); });
</script> </script>
<style>
.aladin-cat-browser-box {
width: 600px;
}
</style>
</body> </body>
</html> </html>