修改单词

This commit is contained in:
huangjinming 2022-11-08 21:44:17 +08:00
parent 0a2fb39840
commit c30d9213ea
2 changed files with 92 additions and 82 deletions

View File

@ -2,23 +2,34 @@
<html> <html>
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit"> <meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
/>
<title>CEBG: CRYPTO ELITES BATTLEGROUNDS</title> <title>CEBG: CRYPTO ELITES BATTLEGROUNDS</title>
</head> </head>
<body> <body>
<section class="main"> <section class="main">
<section class="header"> <section class="header">
<img src="img/applyother/amt.jpg" width="100%" /> <img src="img/applyother/amt.jpg" width="100%" />
<script>cur = 'activity'; sub='act1'</script> <script>
cur = "activity";
sub = "act1";
</script>
<%- include('../comp/desktopNav.html') %> <%- include('../comp/desktopNav.html') %>
</section> </section>
<section class="main-con amb-con"> <section class="main-con amb-con">
<div class="amb-scroll" id="ambScroll"> <div class="amb-scroll" id="ambScroll">
<div class="amb-item hide" id="sample"> <div class="amb-item hide" id="sample">
<a href="ambassadorinfo.html" class="info_href"> <a href="ambassadorinfo.html" class="info_href">
<img class="portrait" src="img/applyother/am2.jpg" width="251" height="246"/> <img
class="portrait"
src="img/applyother/am2.jpg"
width="251"
height="246"
/>
</a> </a>
<p> <p>
<span class="name">Kawabonga</span> <span class="name">Kawabonga</span>
@ -26,9 +37,7 @@
<span class="commander">1023</span> <span class="commander">1023</span>
</p> </p>
</div> </div>
<div class="amb-inner" id="amb_container"> <div class="amb-inner" id="amb_container"></div>
</div>
</div> </div>
</section> </section>
<%- include('../comp/footer.html') %> <%- include('../comp/footer.html') %>
@ -36,52 +45,53 @@
<%- include('../comp/walletModal.html') %> <%- include('../comp/jslib.html') <%- include('../comp/walletModal.html') %> <%- include('../comp/jslib.html')
%> %>
<script> <script>
const LIST_URL = 'https://invitation.cebggame.com/invitation/list_amb' const LIST_URL = "https://invitation.cebggame.com/invitation/list_amb";
$(function () { $(function () {
var showOne = (data) => { var showOne = (data) => {
let dom = $('#sample').clone(); let dom = $("#sample").clone();
if (data.headpic) { if (data.headpic) {
$('.portrait', dom).attr('src', data.headpic); $(".portrait", dom).attr("src", data.headpic);
}
$('.info_href', dom).attr('href', `ambassadorinfo.html?amb=${data.account}`)
$('.name', dom).replaceWith(`<span>${data.name || '-'}</span>`)
$('.loc', dom).replaceWith(`<span>${data.comefrom || '-'}</span>`)
$('.commander', dom).replaceWith(`<span>${data.cache_a_num || '-'}</span>`)
dom.show().appendTo('#amb_container')
} }
$(".info_href", dom).attr(
"href",
`ambassadorinfo.html?amb=${data.account}`
);
$(".name", dom).replaceWith(`<span>${data.name || "-"}</span>`);
$(".loc", dom).replaceWith(`<span>${data.comefrom || "-"}</span>`);
$(".commander", dom).replaceWith(
`<span>${data.cache_a_num || "-"}</span>`
);
dom.show().appendTo("#amb_container");
};
var retry = 0; var retry = 0;
var headers = new Headers(); var headers = new Headers();
headers.append("Content-Type", "application/json"); headers.append("Content-Type", "application/json");
let formData = {} let formData = {};
if (window.chain.logined) { if (window.chain.logined) {
formData.token = window.chain.token; formData.token = window.chain.token;
} }
var fetchDatas = async () => { var fetchDatas = async () => {
try { try {
let data = await fetch( let data = await fetch(LIST_URL, {
LIST_URL, method: "POST",
{
method: 'POST',
headers, headers,
mode: 'cors', mode: "cors",
cache: 'no-cache', cache: "no-cache",
body: JSON.stringify(formData) body: JSON.stringify(formData),
} }).then((res) => {
) return res.json();
.then(res => { });
return res.json()
})
if (!data.errcode) { if (!data.errcode) {
for (let d of data.list) { for (let d of data.list) {
showOne(d); showOne(d);
} }
} }
} catch (err) { } catch (err) {
console.log('error get data'); console.log("error get data");
}
} }
};
fetchDatas(); fetchDatas();
}) });
</script> </script>
</body> </body>
</html> </html>

View File

@ -74,7 +74,7 @@
</p> </p>
<p class="checkbox-wrap"> <p class="checkbox-wrap">
<input type="checkbox" class="checkbox" id="dis" name="dis" /> <input type="checkbox" class="checkbox" id="dis" name="dis" />
<label for="dis">Joined CEBG Discrod?</label> <label for="dis">Joined CEBG Discord?</label>
</p> </p>
<p class="tac submit-btn"> <p class="tac submit-btn">