change default pic

This commit is contained in:
DIYgod 2016-01-03 01:30:23 +08:00
parent a1b75f873e
commit c62083e7cc
10 changed files with 6 additions and 6 deletions

View File

@ -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

2
dist/APlayer.min.js vendored

File diff suppressed because one or more lines are too long

BIN
dist/default.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
dist/default.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

View File

@ -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": {

View File

@ -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) {

View File

@ -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 {

BIN
src/default.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB