common.js

来自「很好用的开源客服系统,下载解压后即可使用,绿色版的,不需要安装」· JavaScript 代码 · 共 1 行

JS
1
字号
function stopError(){return true}window.onerror=stopError;function setCookie(c,d){var b=new Date();var a=new Date();a.setTime(b.getTime()+1000*60*60*24*365);document.cookie=c+"="+escape(d)+"; expires="+a.toGMTString()}function getCookie(a){var b=a+"=";if(document.cookie.length>0){offset=document.cookie.indexOf(b);if(offset!=-1){offset+=b.length;end=document.cookie.indexOf(";",offset);if(end==-1){end=document.cookie.length}return unescape(document.cookie.substring(offset,end))}else{return("")}}else{return("")}}function copycode(b){var a=document.body.createTextRange();a.moveToElementText(b);a.scrollIntoView();a.select();a.execCommand("Copy");a.collapse(false)}function $(a){return document.getElementById(a)};

⌨️ 快捷键说明

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