From eeec8e3cb67c0d4266ab2e9c4e238bc685781ebd Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Sat, 16 Dec 2017 11:43:19 +0800 Subject: [PATCH] Delete html.js --- src/html.js | 274 ---------------------------------------------------- 1 file changed, 274 deletions(-) delete mode 100644 src/html.js diff --git a/src/html.js b/src/html.js deleted file mode 100644 index e4f3677..0000000 --- a/src/html.js +++ /dev/null @@ -1,274 +0,0 @@ -const html = { - main: (options, index, tran, icons) => ` -
-
- ${html.video(true, options.video.pic, options.screenshot, options.preload, options.video.url, options.subtitle)} - ${options.logo ? ` - - ` : ``} -
-
-
-
-
- - ${options.danmaku ? `${tran('Danmaku is loading')}` : ``} - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- -
-
-
${tran('Set danmaku color')}
- - - - - - -
-
-
${tran('Set danmaku type')}
- - - -
-
- - -
-
- -
- -
-
-
- -
-
-
-
- 0:00 / 0:00 - ${options.live ? `${tran('Live')}` : ''} -
-
- ${options.video.quality ? ` -
- -
- ${html.qualityList(options.video.quality)} -
-
- ` : ``} - ${options.screenshot ? ` - - ${icons.get('camera')} - - ` : ``} -
- -
- ${options.subtitle ? ` -
- -
- ` : ``} -
- -
-
-
- - -
-
-
- -
-
-
-
- -
-
-
-
- ${html.contextmenuList(options.contextmenu, tran)} -
`, - - danmakumargin: (margin) => { - let result = ''; - if (margin) { - for (const key in margin) { - result += `${key}:${margin[key]};`; - } - } - return result; - }, - - contextmenuList: (contextmenu, tran) => { - let result = '
'; - for (let i = 0; i < contextmenu.length; i++) { - result += ``; - } - result += '
'; - - return result; - }, - - qualityList: (quality) => { - let result = '
'; - for (let i = 0; i < quality.length; i++) { - result += `
${quality[i].name}
`; - } - result += '
'; - - return result; - }, - - video: (current, pic, screenshot, preload, url, subtitle) => { - const enableSubtitle = subtitle && subtitle.type === 'webvtt'; - return ` - `; - }, - - setting: (tran, icons) => ({ - 'original': ` -
- ${tran('Speed')} -
- ${icons.get('right')} -
-
-
- ${tran('Loop')} -
- - -
-
-
- ${tran('Show danmaku')} -
- - -
-
-
- ${tran('Unlimited danmaku')} -
- - -
-
-
- ${tran('Opacity for danmaku')} -
-
-
- -
-
-
-
`, - 'speed': ` -
- 0.5 -
-
- 0.75 -
-
- ${tran('Normal')} -
-
- 1.25 -
-
- 1.5 -
-
- 2 -
` - }) -}; - -module.exports = html;