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