feat: append OneKey footer as shadow dom

This commit is contained in:
yggdrasil
2024-10-23 10:45:09 +08:00
parent 8fe114b2ee
commit e7cfbf10c7

View File

@@ -1470,6 +1470,20 @@
<div class="feedback-container">
<div class="fixed max-w-full px-4 py-2 text-white -translate-x-1/2 bg-gray-800 rounded-md shadow-lg feedback left-1/2 bottom-4">Loading...</div>
</div>
</div>
<div id="onekey-portal-footer">
</div>
<script>
fetch('https://portal-git-feat-page-footer-for-ex-a3e45d-yggdrasilqhs-projects.vercel.app/internal/footer/')
.then(response => response.text())
.then(data => {
document.getElementById('onekey-portal-footer').attachShadow({ mode: 'open' }).innerHTML = data;
})
.catch(console.error);
</script>
<script type="text/template" id="address-row-template">
<tr>