|
@@ -1,10 +1,12 @@
|
|
-var baseUrl = "gj.100t.com/";
|
|
|
|
|
|
+var baseUrl = "gj.100t.com";
|
|
var registUrl = "http://" + baseUrl + "/api/quepass/regist";
|
|
var registUrl = "http://" + baseUrl + "/api/quepass/regist";
|
|
var ansPostUrl = "http://" + baseUrl + "/api/quepass/anspost";
|
|
var ansPostUrl = "http://" + baseUrl + "/api/quepass/anspost";
|
|
var wsCountUrl = "ws://" + baseUrl + "/ws/quepass/onlinecounter";
|
|
var wsCountUrl = "ws://" + baseUrl + "/ws/quepass/onlinecounter";
|
|
var wsWaitUrl = "ws://" + baseUrl + "/ws/quepass/onlinewaiting";
|
|
var wsWaitUrl = "ws://" + baseUrl + "/ws/quepass/onlinewaiting";
|
|
var $box = $("#figureBox"),
|
|
var $box = $("#figureBox"),
|
|
|
|
+
|
|
people = 0;
|
|
people = 0;
|
|
|
|
+
|
|
var me = {
|
|
var me = {
|
|
row: 1,
|
|
row: 1,
|
|
col: 1
|
|
col: 1
|
|
@@ -60,14 +62,13 @@ var uid = getQueryString('uid');
|
|
var uname = getQueryString('uname');
|
|
var uname = getQueryString('uname');
|
|
var round_id = getQueryString('round_id');
|
|
var round_id = getQueryString('round_id');
|
|
if (!uid || !uname) {
|
|
if (!uid || !uname) {
|
|
- // window.location.href = "https://www.100t.com/gjnh/2022.php";
|
|
|
|
|
|
+ window.location.href = "https://www.100t.com/gjnh/2022.php";
|
|
} else {
|
|
} else {
|
|
$.post(registUrl, JSON.stringify({
|
|
$.post(registUrl, JSON.stringify({
|
|
uid,
|
|
uid,
|
|
uname
|
|
uname
|
|
}), function(res) {
|
|
}), function(res) {
|
|
if (res.status == 0 && res.game_status == 0) {
|
|
if (res.status == 0 && res.game_status == 0) {
|
|
-
|
|
|
|
$load.fadeOut(function() {
|
|
$load.fadeOut(function() {
|
|
$(this).remove();
|
|
$(this).remove();
|
|
init();
|
|
init();
|
|
@@ -331,7 +332,8 @@ function reconnect(service) {
|
|
}
|
|
}
|
|
var isWait = true;
|
|
var isWait = true;
|
|
|
|
|
|
- var timer = null;
|
|
|
|
|
|
+var timer = null;
|
|
|
|
+
|
|
function waiting(callback) {
|
|
function waiting(callback) {
|
|
var ws = new WebSocket(wsWaitUrl);
|
|
var ws = new WebSocket(wsWaitUrl);
|
|
ws.onopen = function() {
|
|
ws.onopen = function() {
|