Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
东方怂天
cxmooc-tools
提交
bde2cd82
C
cxmooc-tools
项目概览
东方怂天
/
cxmooc-tools
通知
11
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
cxmooc-tools
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
bde2cd82
编写于
6月 02, 2018
作者:
C
CodFrm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
v1.40
上级
81561cc9
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
10 deletion
+11
-10
build/cxmooc-tools/manifest.json
build/cxmooc-tools/manifest.json
+1
-1
src/config.js
src/config.js
+1
-1
src/cxmooc-tools/action.js
src/cxmooc-tools/action.js
+2
-1
src/cxmooc-tools/video.js
src/cxmooc-tools/video.js
+7
-7
未找到文件。
build/cxmooc-tools/manifest.json
浏览文件 @
bde2cd82
{
"manifest_version"
:
2
,
"name"
:
"超星慕课小工具"
,
"version"
:
"1.
3.8
"
,
"version"
:
"1.
4.0
"
,
"description"
:
"用于超星慕课的小工具"
,
"icons"
:
{
"16"
:
"img/logo.png"
,
...
...
src/config.js
浏览文件 @
bde2cd82
module
.
exports
=
{
url
:
"
https://blog.icodef.com:8081/
"
,
version
:
1.
38
,
version
:
1.
40
,
update
:
'
https://github.com/CodFrm/cxmooc-tools/releases
'
,
enforce
:
false
}
\ No newline at end of file
src/cxmooc-tools/action.js
浏览文件 @
bde2cd82
...
...
@@ -24,6 +24,7 @@ window.monitorPlay = function () {
}
}
window
.
removeOldPlayer
=
function
(
obj
)
{
window
.
removeOldPlayer
=
function
(
obj
)
{
obj
.
setAttribute
(
'
data
'
,
document
.
head
.
getAttribute
(
'
url
'
)
+
'
player/cxmooc-tools.swf
'
);
}
src/cxmooc-tools/video.js
浏览文件 @
bde2cd82
...
...
@@ -21,21 +21,21 @@ module.exports = function (_this, elLogo, index) {
var
videoTopic
=
{};
var
videoInfo
=
{};
//在框架内注入js
doc
.
head
.
setAttribute
(
'
url
'
,
moocServer
.
url
)
doc
.
head
.
setAttribute
(
'
url
'
,
moocServer
.
url
)
common
.
injected
(
doc
,
'
action.js
'
);
//更换swf播放器
var
timer
=
setInterval
(
function
()
{
var
obj
=
doc
.
getElementsByTagName
(
'
object
'
);
if
(
obj
.
length
>
0
)
{
var
timer
=
setInterval
(
function
()
{
var
obj
=
doc
.
getElementsByTagName
(
'
object
'
);
if
(
obj
.
length
>
0
)
{
//开始重新加载
clearInterval
(
timer
);
wid
.
removeOldPlayer
(
obj
[
0
]);
}
},
1000
);
},
1000
);
//创建各个按钮
var
hang_btn
=
createBtn
(
'
开始挂机
'
);
hang_btn
.
value
=
index
;
hang_btn
.
title
=
"
先播放再点我
"
;
hang_btn
.
title
=
"
直接开始
"
;
elLogo
.
appendChild
(
hang_btn
);
hang_btn
.
onclick
=
function
()
{
wid
.
monitorPlay
();
...
...
@@ -116,7 +116,7 @@ module.exports = function (_this, elLogo, index) {
var
right
=
''
;
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
if
(
list
[
i
].
isRight
)
{
right
+=
'
<span style="margin-left:6px;">
'
+
list
[
i
].
name
+
"
:
"
+
list
[
i
].
description
+
'
</span>
'
;
right
+=
'
<span style="margin-left:6px;">
'
+
list
[
i
].
name
+
"
:
"
+
list
[
i
].
description
+
'
</span>
'
;
}
}
if
(
right
!=
''
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录