博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
DoubanFMPlayer, A mimic of Douban.fm player
阅读量:7259 次
发布时间:2019-06-29

本文共 1960 字,大约阅读时间需要 6 分钟。

Project Page:

DoubanFMPlayer

A mimic of Douban.fm player on . Also a Flex practice project.

You can use it on your website or embed it in your Hexo theme.

Showcase

Click to check live demo.

Dark Theme (the color of the player is dark, used in light color web page)

Light Theme (the color of the player is light, used in dark color web page)

Usage

Feel free to download source code from /src folder.

Alternatively, use the cdn I've set up:

dbfmplayer.js: http://7u2sl0.com1.z0.glb.clouddn.com/dbfmplayer.jsdbfmplayer.css: http://7u2sl0.com1.z0.glb.clouddn.com/dbfmplayer.css

1. Use it on your website

  1. Add any numbers of dbfmplayer tag to your HTML file.

    You must set title, singer, album and music attributes of your dbfmplayer tags.

    • title: name of the music

    • singer: name of the singer/musician

    • album: URL of a picture related to this music (both absolute URL or relative URL)

    • music: URL of the music (both absolute URL or relative URL)

    Optional attributes are theme and loop.

    • theme: "dark" or "light". Default theme is "dark", which is suitable for light color background web pages; theme "light" is suitable for dark color background web pages.

    • loop: "true" or "false". Default value is "false". If loop is set to "true", the music will loop after it ends.

    • autoplay: "true" or "false". Default value is "false". If autoplay is set to "true", the music will automatically start when it's loaded.

    You can set loop and autoplay to "true" in a convenient way:

  2. Add the following script to your HTML file.

2. Embed it in your Hexo theme

  1. Add the following script to your layout file for Post (or anywhere else you want):

  2. Now users can add music to their page by adding the dbfmplayer tag to their articles (markdown files) by following 1.1 Add any numbers of dbfmplayer tag to your HTML file..

Acknowledgements

Most SVG icons come from .

Designed by .

Copyright

All copyright of the design belongs to who creates it.

Any copyright issue, please contact .

转载地址:http://eokdm.baihongyu.com/

你可能感兴趣的文章
一秒去除Win7快捷方式箭头
查看>>
Linux上Simplescalar/ARM的安装和运行文档
查看>>
中断是CPU的机制
查看>>
DoD and DoR
查看>>
golang 资源
查看>>
关于FileFOutputStream应用中的FileNotFoundException问题
查看>>
[产品设计] - 设计理念
查看>>
关于gitblit成功启动,但在阿里云外网地址无法访问的问题
查看>>
C++访问MySql
查看>>
1056. 组合数的和(15)
查看>>
Git基础教程(一)
查看>>
css解决select下拉表单option高度的办法
查看>>
「洛谷P1198」 [JSOI2008]最大数 解题报告
查看>>
C# 里EF 对Mysql DB更新,乱码
查看>>
iOS - IM 即时通讯
查看>>
function的name属性
查看>>
【转载】Deep Belief Networks资料汇总
查看>>
三角螺旋阵 (代码)
查看>>
10.包和访问权限
查看>>
数字信号处理C语言(2) ------带高斯噪声的sin函数和组合sin函数
查看>>