cloud-manage-new/src/main/resources/templates/minimanage/Scripts/index_files/generateDocumentForIM.js
(开头部分) 17KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
;(function($) {
/**
* 设置数组下标,方便递归加载
*/
var imScriptUrlIndex = 0,
webImUIPath = "http://static.99114.com/static/webImUI", //静态工程路径
menuPath = "http://static.99114.com/static/menu", //公用图标路径
// webImUIPath = "http://wk-static.99114.net/static/webImUI", //静态工程路径
// menuPath = "http://wk-static.99114.net/static/menu", //公用图标路径
/**
* css数组
*/
imCssUrlArrays = [
'<link type="text/css" rel="stylesheet" href="'+webImUIPath+'/ui/im.css"/>',
'<link type="text/css" rel="stylesheet" href="'+webImUIPath+'/ui/jquery.mCustomScrollbar.css"/>',
'<link type="text/css" rel="stylesheet" href="'+webImUIPath+'/ui/face.css"/>'
],
/**
* 要加载的js数组
*/
imScriptUrlArrays = [
webImUIPath+'/cometd/json2.js',
webImUIPath+'/cometd/cometd.js',
webImUIPath+'/cometd/jquery.cookie.js',
webImUIPath+'/cometd/ReloadExtension.js',
webImUIPath+'/cometd/jquery.cometd.js',
webImUIPath+'/js/jquery.qqFace.js',
webImUIPath+'/js/My97DatePicker/WdatePicker.js',
webImUIPath+'/js/dateUtil.js',
webImUIPath+'/js/jquery-ui-1.10.4.min.js',
webImUIPath+'/js/jquery.mousewheel.js',
webImUIPath+'/js/jquery.mCustomScrollbar.min.js',
webImUIPath+'/cometd/jquery.cometd-reload.js',
webImUIPath+'/js/jsCalMethod.js',
webImUIPath+'/js/iNotify.js',
webImUIPath+'/webIm.js'
];
/**
* 增加css
*/
function getCssForIM() {
var $head = $('head');
for (var i=0,len=imCssUrlArrays.length; i<len; i++) {
$head.append(imCssUrlArrays[i]);
}
}
/**
* 判断嵌入页面是否有对应的div容器没有则创建
*/
function getHtmlForIM() {
if ($('#WK_IM_DIV').length == 0) {
$('body').append('<div id="WK_IM_DIV"/>');
}
后面还有 359 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
