Skip to content

Commit c86c799

Browse files
committed
3.1.0
1 parent 1995ba5 commit c86c799

File tree

16 files changed

+68
-31
lines changed

16 files changed

+68
-31
lines changed

dist/cplayer.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cplayer.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/appcache/manifest.appcache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
#ver:8/13/2017, 9:47:13 PM
2+
#ver:8/14/2017, 10:42:32 AM
33
#plugin:4.8.3
44

55
CACHE:

example/cplayerexample.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/cplayerexample.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html><html><head><meta charset="UTF-8"/><title>CPlayer</title><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#f8f8f8"/><script type="text/javascript" src="cplayerexample.js?7e9fb9a627ad13331502"></script></head><body><div class="neko-container neko-no-gutters"><div class="center"><h1 class="title">cPlayer</h1><div class="neko-m-v-2" id="app"></div></div><div class="neko-m-v-2 btn-line center"><button class="neko-btn outline neko-color-blue" id="add163">从网易云添加音乐</button> <button class="neko-btn outline neko-color-blue" id="openplaylist">打开播放列表</button> <button class="neko-btn outline neko-color-blue" id="closeplaylist">关闭播放列表</button> <button class="neko-btn outline neko-color-blue" id="remove">删除一首歌曲</button> <a href="https://github.com/MoePlayer/cPlayer/blob/next/src/example.ts" rel="noopener" target="_blank"><button class="neko-btn outline neko-color-blue">查看 demo 源代码</button></a></div><div class="neko-m-v-2 center"><h1>Get Start</h1><pre class="getstart neko-helper-center"><code class="html">&lt;div id="app"&gt;&lt;/div&gt;
1+
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="UTF-8"/><title>CPlayer</title><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#f8f8f8"/><script type="text/javascript" src="cplayerexample.js?422059613ebda9978976"></script></head><body><div class="neko-container neko-no-gutters"><div class="center"><h1 class="title">cPlayer</h1><div class="neko-m-v-2" id="app"></div></div><div class="neko-m-v-2 btn-line center"><button class="neko-btn outline neko-color-blue" id="add163">从网易云添加音乐</button> <button class="neko-btn outline neko-color-blue" id="openplaylist">打开播放列表</button> <button class="neko-btn outline neko-color-blue" id="closeplaylist">关闭播放列表</button> <button class="neko-btn outline neko-color-blue" id="remove">删除一首歌曲</button> <a href="https://github.com/MoePlayer/cPlayer/blob/next/src/example.ts" rel="noopener" target="_blank"><button class="neko-btn outline neko-color-blue">查看 demo 源代码</button></a></div><div class="neko-m-v-2 center"><h1>Get Start</h1><pre class="getstart neko-helper-center"><code class="html">&lt;div id="app"&gt;&lt;/div&gt;
22
&lt;!-- 加载 cplayer 脚本 --&gt;
33
&lt;script src="https://cdn.jsdelivr.net/gh/MoePlayer/cPlayer/dist/cplayer.js"&gt;&lt;/script&gt;
44
&lt;script&gt;

example/sw.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/helper/parseHTML.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default function parseHTML(elem: string): DocumentFragment;
1+
export default function parseHTML(elem: string): DocumentFragment;

lib/lib/helper/parseHTML.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/lib/view.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ export interface ICplayerViewOption {
77
deleteElementAfterGenerate?: boolean;
88
zoomOutKana?: boolean;
99
showPlaylist?: boolean;
10+
width?: string;
11+
size?: string;
12+
style?: string;
1013
}
1114
export default class cplayerView extends EventEmitter {
1215
private elementLinks;
@@ -15,7 +18,7 @@ export default class cplayerView extends EventEmitter {
1518
private dropDownMenuShowInfo;
1619
private options;
1720
constructor(player: cplayer, options: ICplayerViewOption);
18-
getRootElement(): Element;
21+
getRootElement(): HTMLElement;
1922
private getPlayListLinks(rootElement?);
2023
private getElementLinks(rootElement?);
2124
private setPlayIcon(paused);

0 commit comments

Comments
 (0)