; function if !isdev $#frm_maincssdisplay block; $#frm_deptcssdisplay none; $#frm_tipscssdisplay none; documentoncontextmenu = function eventreturnValue = false; ; documentonclick = function
// This code represents a web page that allows users to query their registration information and check in for appointments.
(function () { // If not in development mode, hide certain elements. if (!isdev) { $("#frm_main").css("display", "block"); $("#frm_dept").css("display", "none"); $("#frm_tips").css("display", "none"); }
// Disable right-click context menu.
document.oncontextmenu = function () {
event.returnValue = false;
};
// Reset current_counter when the page is clicked.
document.onclick = function () {
current_counter = global_counter;
// Create a WebSocket connection to the server.
var wsenetity = new WebSocket("ws://127.0.0.1:10011/Browser");
// Handle WebSocket events.
wsenetity.onopen = function () {
//alert("websocket已经连接");
};
wsenetity.onerror = function () {
//alert("onerror");
setTimeout(function () { wsenetity = new WebSocket("ws://127.0.0.1:10
原文地址: https://www.cveoy.top/t/topic/fgR9 著作权归作者所有。请勿转载和采集!