Skip to content

Commit

Permalink
Merge pull request #5 from Yggdrasilqh/feat-onekey-footer
Browse files Browse the repository at this point in the history
fix: use internal footer resources
  • Loading branch information
originalix authored Nov 1, 2024
2 parents 4535d69 + 7d3ecbb commit 1412be9
Show file tree
Hide file tree
Showing 4 changed files with 2,574 additions and 16 deletions.
9 changes: 1 addition & 8 deletions src/index-zh.html
Original file line number Diff line number Diff line change
Expand Up @@ -1426,14 +1426,7 @@ <h3>库</h3>
<div id="onekey-portal-footer">
</div>

<script>
fetch('https://onekey.so/zh_CN/internal/footer/')
.then(response => response.text())
.then(data => {
document.getElementById('onekey-portal-footer').attachShadow({ mode: 'open' }).innerHTML = data;
})
.catch(console.error);
</script>
<script src="js/footer-zh.js"></script>

<script type="text/template" id="address-row-template">
<tr>
Expand Down
9 changes: 1 addition & 8 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1476,14 +1476,7 @@ <h3>Libraries</h3>
<div id="onekey-portal-footer">
</div>

<script>
fetch('https://onekey.so/internal/footer/')
.then(response => response.text())
.then(data => {
document.getElementById('onekey-portal-footer').attachShadow({ mode: 'open' }).innerHTML = data;
})
.catch(console.error);
</script>
<script src="js/footer.js"></script>

<script type="text/template" id="address-row-template">
<tr>
Expand Down
Loading

0 comments on commit 1412be9

Please sign in to comment.