change default pic
This commit is contained in:
parent
a1b75f873e
commit
c62083e7cc
|
|
@ -67,7 +67,7 @@ ap.init();
|
|||
title: 'Preparation', // Required, music title
|
||||
author: 'Hans Zimmer/Richard Harvey', // Required, music author
|
||||
url: 'http://7xifn9.com1.z0.glb.clouddn.com/Preparation.mp3', // Required, music url
|
||||
pic: 'http://7xifn9.com1.z0.glb.clouddn.com/Preparation.jpg' // Required, music picture
|
||||
pic: 'http://7xifn9.com1.z0.glb.clouddn.com/Preparation.jpg' // Optional, music picture
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 33 KiB |
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "aplayer",
|
||||
"version": "1.2.10",
|
||||
"version": "1.2.11",
|
||||
"description": "Wow, such a beautiful html5 music player",
|
||||
"main": "APlayer.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
function APlayer(option) {
|
||||
// handle options error
|
||||
if (!('music' in option && 'title' in option.music && 'author' in option.music && 'url' in option.music && 'pic' in option.music)) {
|
||||
if (!('music' in option && 'title' in option.music && 'author' in option.music && 'url' in option.music)) {
|
||||
throw 'APlayer Error: Music, music.title, music.author, music.url, music.pic are required in options';
|
||||
}
|
||||
if (option.element === null) {
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ $aplayer-height-lrc: $aplayer-height + $lrc-height;
|
|||
float: left;
|
||||
height: $aplayer-height;
|
||||
width: $aplayer-height;
|
||||
background-image: url(./default.png);
|
||||
background-image: url(./default.jpg);
|
||||
background-size: 100%;
|
||||
|
||||
.aplayer-button {
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
BIN
src/default.png
BIN
src/default.png
Binary file not shown.
|
Before Width: | Height: | Size: 33 KiB |
Loading…
Reference in New Issue