common.js

来自「网络电子白板」· JavaScript 代码 · 共 36 行

JS
36
字号

//Function to get the value in a control
function getValue(controlId) {

	return document.getElementById(controlId).value;
	
} //End of getValue

//Function to set the value in a control
function setValue(controlId, value) {

	document.getElementById(controlId).value = value;
	
} //End of setValue

//Function to hide or display the loading div
function toggleLoading(isVisible) {
	
	if (isVisible) {
	
		document.getElementById('divLoading').style.visibility = 'visible';
		
	} else {
	
		document.getElementById('divLoading').style.visibility = 'hidden';
		
	} //End of checking the input parameter
	
} //End of toggleLoading

//This is the error handler routine
function errHandler(strData) {

	window.status = strData;

} //End of errHandler

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?