修改单词
This commit is contained in:
parent
0a2fb39840
commit
c30d9213ea
@ -1,87 +1,97 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<title>CEBG: CRYPTO ELITE‘S BATTLEGROUNDS</title>
|
||||
</head>
|
||||
<body>
|
||||
<section class="main">
|
||||
<section class="header">
|
||||
<img src="img/applyother/amt.jpg" width="100%" />
|
||||
<script>cur = 'activity'; sub='act1'</script>
|
||||
<%- include('../comp/desktopNav.html') %>
|
||||
</section>
|
||||
<section class="main-con amb-con">
|
||||
<div class="amb-scroll" id="ambScroll">
|
||||
<div class="amb-item hide" id="sample">
|
||||
<a href="ambassadorinfo.html" class="info_href">
|
||||
<img class="portrait" src="img/applyother/am2.jpg" width="251" height="246"/>
|
||||
</a>
|
||||
<p>
|
||||
<span class="name">Kawabonga</span>
|
||||
<span class="loc">Japan</span>
|
||||
<span class="commander">1023</span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="amb-inner" id="amb_container">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<%- include('../comp/footer.html') %>
|
||||
</section>
|
||||
<%- include('../comp/walletModal.html') %> <%- include('../comp/jslib.html')
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="renderer" content="webkit" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
|
||||
/>
|
||||
<title>CEBG: CRYPTO ELITE‘S BATTLEGROUNDS</title>
|
||||
</head>
|
||||
<body>
|
||||
<section class="main">
|
||||
<section class="header">
|
||||
<img src="img/applyother/amt.jpg" width="100%" />
|
||||
<script>
|
||||
cur = "activity";
|
||||
sub = "act1";
|
||||
</script>
|
||||
<%- include('../comp/desktopNav.html') %>
|
||||
</section>
|
||||
<section class="main-con amb-con">
|
||||
<div class="amb-scroll" id="ambScroll">
|
||||
<div class="amb-item hide" id="sample">
|
||||
<a href="ambassadorinfo.html" class="info_href">
|
||||
<img
|
||||
class="portrait"
|
||||
src="img/applyother/am2.jpg"
|
||||
width="251"
|
||||
height="246"
|
||||
/>
|
||||
</a>
|
||||
<p>
|
||||
<span class="name">Kawabonga</span>
|
||||
<span class="loc">Japan</span>
|
||||
<span class="commander">1023</span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="amb-inner" id="amb_container"></div>
|
||||
</div>
|
||||
</section>
|
||||
<%- include('../comp/footer.html') %>
|
||||
</section>
|
||||
<%- include('../comp/walletModal.html') %> <%- include('../comp/jslib.html')
|
||||
%>
|
||||
<script>
|
||||
const LIST_URL = 'https://invitation.cebggame.com/invitation/list_amb'
|
||||
$(function () {
|
||||
var showOne = (data) => {
|
||||
let dom = $('#sample').clone();
|
||||
if (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')
|
||||
}
|
||||
var retry = 0;
|
||||
var headers = new Headers();
|
||||
headers.append("Content-Type", "application/json");
|
||||
let formData = {}
|
||||
if (window.chain.logined) {
|
||||
formData.token = window.chain.token;
|
||||
<script>
|
||||
const LIST_URL = "https://invitation.cebggame.com/invitation/list_amb";
|
||||
$(function () {
|
||||
var showOne = (data) => {
|
||||
let dom = $("#sample").clone();
|
||||
if (data.headpic) {
|
||||
$(".portrait", dom).attr("src", data.headpic);
|
||||
}
|
||||
var fetchDatas = async () => {
|
||||
try {
|
||||
let data = await fetch(
|
||||
LIST_URL,
|
||||
{
|
||||
method: 'POST',
|
||||
headers,
|
||||
mode: 'cors',
|
||||
cache: 'no-cache',
|
||||
body: JSON.stringify(formData)
|
||||
$(".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 headers = new Headers();
|
||||
headers.append("Content-Type", "application/json");
|
||||
let formData = {};
|
||||
if (window.chain.logined) {
|
||||
formData.token = window.chain.token;
|
||||
}
|
||||
var fetchDatas = async () => {
|
||||
try {
|
||||
let data = await fetch(LIST_URL, {
|
||||
method: "POST",
|
||||
headers,
|
||||
mode: "cors",
|
||||
cache: "no-cache",
|
||||
body: JSON.stringify(formData),
|
||||
}).then((res) => {
|
||||
return res.json();
|
||||
});
|
||||
if (!data.errcode) {
|
||||
for (let d of data.list) {
|
||||
showOne(d);
|
||||
}
|
||||
)
|
||||
.then(res => {
|
||||
return res.json()
|
||||
})
|
||||
if (!data.errcode) {
|
||||
for (let d of data.list) {
|
||||
showOne(d);
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.log('error get data');
|
||||
}
|
||||
}
|
||||
fetchDatas();
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
}
|
||||
} catch (err) {
|
||||
console.log("error get data");
|
||||
}
|
||||
};
|
||||
fetchDatas();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -74,7 +74,7 @@
|
||||
</p>
|
||||
<p class="checkbox-wrap">
|
||||
<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 class="tac submit-btn">
|
||||
|
Loading…
x
Reference in New Issue
Block a user