From 8eb2fdd26e9ef18398f83d58458c25ec5ed71b60 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 6 Jun 2019 15:59:49 +0800 Subject: [PATCH] fix: broken links --- demo/demo.js | 44 ++++++++++++++++++++++---------------------- docs/config.js | 18 +++++++++--------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/demo/demo.js b/demo/demo.js index 0dee52c..c5cee34 100644 --- a/demo/demo.js +++ b/demo/demo.js @@ -19,10 +19,10 @@ function handleEvent () { const $clickDom = e.currentTarget; const isShowStatus = $clickDom.getAttribute('data-show'); - if (!!isShowStatus) { + if (isShowStatus) { document.getElementById('float-dplayer').style.display = 'none'; } else { - $clickDom.setAttribute('data-show', 1); + $clickDom.setAttribute('data-show', 1); document.getElementById('float-dplayer').style.display = 'block'; } }); @@ -42,16 +42,16 @@ function initPlayers () { preload: 'none', screenshot: true, video: { - url: 'http://static.smartisanos.cn/common/video/t1-ui.mp4', - pic: 'http://static.smartisanos.cn/pr/img/video/video_03_cc87ce5bdb.jpg', - thumbnails: 'http://static.smartisanos.cn/pr/img/video/video_03_cc87ce5bdb.jpg' + url: 'http://static.smartisanos.cn/common/video/t1-ui.mp4', + pic: 'http://static.smartisanos.cn/pr/img/video/video_03_cc87ce5bdb.jpg', + thumbnails: 'http://static.smartisanos.cn/pr/img/video/video_03_cc87ce5bdb.jpg' }, subtitle: { - url: 'subtitle test' + url: 'subtitle test' }, danmaku: { - id: '9E2E3368B56CDBB4', - api: 'https://api.prprpr.me/dplayer/' + id: '9E2E3368B56CDBB4', + api: 'https://api.prprpr.me/dplayer/' } }); // dp1 @@ -60,9 +60,9 @@ function initPlayers () { preload: 'none', screenshot: true, video: { - url: 'https://moeplayer.b0.upaiyun.com/dplayer/hikarunara.mp4', - pic: 'https://moeplayer.b0.upaiyun.com/dplayer/hikarunara.png', - thumbnails: 'https://moeplayer.b0.upaiyun.com/dplayer/hikarunara_thumbnails.jpg' + url: 'https://api.dogecloud.com/player/get.mp4?vcode=5ac682e6f8231991&userId=17&ext=.mp4', + pic: 'https://i.loli.net/2019/06/06/5cf8c5d9c57b510947.png', + thumbnails: 'https://i.loli.net/2019/06/06/5cf8c5d9cec8510758.jpg' }, subtitle: { url: 'https://moeplayer.b0.upaiyun.com/dplayer/hikarunara.vtt' @@ -82,13 +82,13 @@ function initPlayers () { loop: true, screenshot: true, hotkey: true, - logo: 'https://moeplayer.b0.upaiyun.com/dplayer/DPlayer.png', + logo: 'https://i.loli.net/2019/06/06/5cf8c5d94521136430.png', volume: 0.2, mutex: true, video: { - url: 'https://moeplayer.b0.upaiyun.com/dplayer/hikarunara.mp4', - pic: 'https://moeplayer.b0.upaiyun.com/dplayer/hikarunara.png', - thumbnails: 'https://moeplayer.b0.upaiyun.com/dplayer/hikarunara_thumbnails.jpg', + url: 'https://api.dogecloud.com/player/get.mp4?vcode=5ac682e6f8231991&userId=17&ext=.mp4', + pic: 'https://i.loli.net/2019/06/06/5cf8c5d9c57b510947.png', + thumbnails: 'https://i.loli.net/2019/06/06/5cf8c5d9cec8510758.jpg', type: 'auto' }, subtitle: { @@ -151,11 +151,11 @@ function initPlayers () { // type: 'hls' // }, { // name: 'SD', - // url: 'https://moeplayer.b0.upaiyun.com/dplayer/hikarunara.mp4', + // url: 'https://api.dogecloud.com/player/get.mp4?vcode=5ac682e6f8231991&userId=17&ext=.mp4', // type: 'normal' // }], // defaultQuality: 0, - // pic: 'https://moeplayer.b0.upaiyun.com/dplayer/hikarunara.png' + // pic: 'https://i.loli.net/2019/06/06/5cf8c5d9c57b510947.png' // } // }); @@ -244,8 +244,8 @@ function clearPlayers () { function switchDPlayer () { if (dp2.option.danmaku.id !== '5rGf5Y2X55qu6Z2p') { dp2.switchVideo({ - url: 'https://moeplayer.b0.upaiyun.com/dplayer/flowerdance.mp4', - pic: 'https://moeplayer.b0.upaiyun.com/dplayer/flowerdance.jpg', + url: 'http://static.smartisanos.cn/common/video/t1-ui.mp4', + pic: 'http://static.smartisanos.cn/pr/img/video/video_03_cc87ce5bdb.jpg', type: 'auto', }, { id: '5rGf5Y2X55qu6Z2p', @@ -255,9 +255,9 @@ function switchDPlayer () { }); } else { dp2.switchVideo({ - url: 'https://moeplayer.b0.upaiyun.com/dplayer/hikarunara.mp4', - pic: 'https://moeplayer.b0.upaiyun.com/dplayer/hikarunara.png', - thumbnails: 'https://moeplayer.b0.upaiyun.com/dplayer/hikarunara_thumbnails.jpg', + url: 'https://api.dogecloud.com/player/get.mp4?vcode=5ac682e6f8231991&userId=17&ext=.mp4', + pic: 'https://i.loli.net/2019/06/06/5cf8c5d9c57b510947.png', + thumbnails: 'https://i.loli.net/2019/06/06/5cf8c5d9cec8510758.jpg', type: 'auto' }, { id: '9E2E3368B56CDBB42', diff --git a/docs/config.js b/docs/config.js index 39806b2..32d238d 100644 --- a/docs/config.js +++ b/docs/config.js @@ -83,8 +83,8 @@ function dplayer1 () { container: document.getElementById('dplayer1'), video: { url: 'https://api.dogecloud.com/player/get.mp4?vcode=5ac682e6f8231991&userId=17&ext=.mp4', - pic: 'https://cn-east-17-dplayer-86110920.oss.dogecdn.com/hikarunara.png', - thumbnails: 'https://cn-east-17-dplayer-86110920.oss.dogecdn.com/hikarunara_thumbnails.jpg' + pic: 'https://cn-east-17-dplayer-86110920.oss.dogecdn.com/https://i.loli.net/2019/06/06/5cf8c5d9c57b510947.png', + thumbnails: 'https://i.loli.net/2019/06/06/5cf8c5d9cec8510758.jpg' }, danmaku: { id: '9E2E3368B56CDBB4', @@ -98,8 +98,8 @@ function dplayer2 () { container: document.getElementById('dplayer2'), video: { url: 'https://api.dogecloud.com/player/get.mp4?vcode=5ac682e6f8231991&userId=17&ext=.mp4', - pic: 'https://cn-east-17-dplayer-86110920.oss.dogecdn.com/hikarunara.png', - thumbnails: 'https://cn-east-17-dplayer-86110920.oss.dogecdn.com/hikarunara_thumbnails.jpg' + pic: 'https://cn-east-17-dplayer-86110920.oss.dogecdn.com/https://i.loli.net/2019/06/06/5cf8c5d9c57b510947.png', + thumbnails: 'https://i.loli.net/2019/06/06/5cf8c5d9cec8510758.jpg' }, danmaku: { id: '9E2E3368B56CDBB4', @@ -117,13 +117,13 @@ function dplayer3 () { lang: 'zh-cn', hotkey: true, preload: 'auto', - logo: 'https://cn-east-17-dplayer-86110920.oss.dogecdn.com/DPlayer.png', + logo: 'https://i.loli.net/2019/06/06/5cf8c5d94521136430.png', volume: 0.7, mutex: true, video: { url: 'https://api.dogecloud.com/player/get.mp4?vcode=5ac682e6f8231991&userId=17&ext=.mp4', - pic: 'https://cn-east-17-dplayer-86110920.oss.dogecdn.com/hikarunara.png', - thumbnails: 'https://cn-east-17-dplayer-86110920.oss.dogecdn.com/hikarunara_thumbnails.jpg', + pic: 'https://cn-east-17-dplayer-86110920.oss.dogecdn.com/https://i.loli.net/2019/06/06/5cf8c5d9c57b510947.png', + thumbnails: 'https://i.loli.net/2019/06/06/5cf8c5d9cec8510758.jpg', type: 'auto' }, danmaku: { @@ -175,8 +175,8 @@ function dplayer4 () { type: 'normal' }], defaultQuality: 0, - pic: 'https://cn-east-17-dplayer-86110920.oss.dogecdn.com/hikarunara.png', - thumbnails: 'https://cn-east-17-dplayer-86110920.oss.dogecdn.com/hikarunara_thumbnails.jpg' + pic: 'https://cn-east-17-dplayer-86110920.oss.dogecdn.com/https://i.loli.net/2019/06/06/5cf8c5d9c57b510947.png', + thumbnails: 'https://i.loli.net/2019/06/06/5cf8c5d9cec8510758.jpg' } }); }