mirror of
https://github.com/lan-tianxiang/JS_TOOL.git
synced 2025-07-19 15:03:46 +08:00
更新于 07-07 03:31
This commit is contained in:
@@ -72,6 +72,18 @@
|
|||||||
<script>
|
<script>
|
||||||
var qrcode, userCookie, timeId, UserNum;
|
var qrcode, userCookie, timeId, UserNum;
|
||||||
|
|
||||||
|
function GetUserCount() {
|
||||||
|
let timeStamp = new Date().getTime();
|
||||||
|
$.get('./GetUserCount?t=' + timeStamp, function (data) {
|
||||||
|
if (data.err == 0) {
|
||||||
|
UserNum = data.msg - 1;
|
||||||
|
document.getElementById("UserNum").innerHTML=data.msg;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
GetUserCount();
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
qrcode = new QRCode(document.getElementById('qrcode'), {
|
qrcode = new QRCode(document.getElementById('qrcode'), {
|
||||||
text: 'sample',
|
text: 'sample',
|
||||||
@@ -82,7 +94,6 @@ $(document).ready(function () {
|
|||||||
var timeId = setInterval(() => {
|
var timeId = setInterval(() => {
|
||||||
let timeStamp = new Date().getTime();
|
let timeStamp = new Date().getTime();
|
||||||
var msg = $('#ps').val();
|
var msg = $('#ps').val();
|
||||||
console.log(user);
|
|
||||||
$.post(`./cookie?t=${timeStamp}`, { user, msg }, function (data) {
|
$.post(`./cookie?t=${timeStamp}`, { user, msg }, function (data) {
|
||||||
if (data.err == 0) {
|
if (data.err == 0) {
|
||||||
clearInterval(timeId);
|
clearInterval(timeId);
|
||||||
@@ -129,16 +140,6 @@ $(document).ready(function () {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function GetUserCount() {
|
|
||||||
let timeStamp = new Date().getTime();
|
|
||||||
$.get('./GetUserCount?t=' + timeStamp, function (data) {
|
|
||||||
if (data.err == 0) {
|
|
||||||
UserNum = data.msg - 1;
|
|
||||||
document.getElementById("UserNum").innerHTML=data.msg;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function JumpToApp() {
|
function JumpToApp() {
|
||||||
let timeStamp = new Date().getTime();
|
let timeStamp = new Date().getTime();
|
||||||
$.get('./qrcode?t=' + timeStamp, function (data) {
|
$.get('./qrcode?t=' + timeStamp, function (data) {
|
||||||
@@ -186,8 +187,6 @@ $(document).ready(function () {
|
|||||||
clearInterval(timeId);
|
clearInterval(timeId);
|
||||||
do_landing();
|
do_landing();
|
||||||
}
|
}
|
||||||
|
|
||||||
GetUserCount();
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
Reference in New Issue
Block a user