mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-18 16:32:18 +00:00
fix: load footer by inline js on deployment
This commit is contained in:
@@ -1426,14 +1426,7 @@
|
|||||||
<div id="onekey-portal-footer">
|
<div id="onekey-portal-footer">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script src="js/footer-zh.js"></script>
|
||||||
fetch('/footer/zh.html')
|
|
||||||
.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">
|
<script type="text/template" id="address-row-template">
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -1476,14 +1476,7 @@
|
|||||||
<div id="onekey-portal-footer">
|
<div id="onekey-portal-footer">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script src="js/footer.js"></script>
|
||||||
fetch('/footer/en.html')
|
|
||||||
.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">
|
<script type="text/template" id="address-row-template">
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
document
|
||||||
|
.getElementById("onekey-portal-footer")
|
||||||
|
.attachShadow({ mode: "open" }).innerHTML = `<!DOCTYPE html>
|
||||||
<html lang="zh_CN">
|
<html lang="zh_CN">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
@@ -1447,3 +1449,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
`;
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
document
|
||||||
|
.getElementById("onekey-portal-footer")
|
||||||
|
.attachShadow({ mode: "open" }).innerHTML = `<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
@@ -1447,3 +1449,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
`;
|
||||||
Reference in New Issue
Block a user