Giter VIP home page Giter VIP logo

lmusic's Introduction

Lmusic 一个音乐播放jquery插件

注意:本插件依赖font-awesome以及必须的Jquery,请务必进行引入 使用方法如下

1、引入js主体和css样式文件

<link rel="stylesheet" href="lmusic.css">
<script src="lmusic.js"></script>

2、初始化

<div class="container"></div> //外部容器 必须存在,class名可随意,与js代码对应即可
<script>
var source = [
		{
			url : 'red.mp3',
			cover : 'http://p4.music.126.net/Z7JNUkL5cjZETD232S510w==/2540971372183769.jpg',
			name : 'Red Lights (Radio Edit)',
		},
		{
			url : 'avicii.flac',
			cover : 'http://p3.music.126.net/YyPaRiqjA2UFz-T3IXuXbw==/1308418837090130.jpg',
			name : 'Avicii - I Could Be the One',
		}
];
var myMusic = $('.container').lmusic({
	source : source,
	height : 120, //可定义 若不存在则选用容器高度 若容器也没有固定高度,则默认为150px
});
myMusic.init();//初始化即完成
</script>

PS:由于版本简单,暂不提供更多API,简单使用

lmusic's People

Contributors

a846254399 avatar

Stargazers

 avatar

Forkers

tuannvbg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.