添加了全新的模式:fixedBar,并添加/优化了几个小功能 - Added a new mode: fixedBar & added some functions#696
Open
Eling486 wants to merge 7 commits intoDIYgod:masterfrom
Open
添加了全新的模式:fixedBar,并添加/优化了几个小功能 - Added a new mode: fixedBar & added some functions#696Eling486 wants to merge 7 commits intoDIYgod:masterfrom
Eling486 wants to merge 7 commits intoDIYgod:masterfrom
Conversation
|
我直接打包就到了接近100k😱 |
Author
这个确实……因为没有做太多优化,样式实现是直接新建了个模板,打包时基本不会压缩,就导致js整体大小会多很多。。所以最开始说如果有人愿意来优化就最好了哈哈哈 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
UPDATE: 现在下述功能已独立为APlayer-Ex, 可直接点击访问仓库地址:https://github.com/Eling486/APlayer-Ex/tree/main
因为更新内容较多,且部分优化不足(因为添加的功能主要是为了解决我的个人需求,所以代码没有进行过多优化),使打包后的js文件达到了108KB,所以我感觉这个PR不会被通过TAT,但是如果我的更新的内容包括你想要使用的功能,可以直接到我的分支里下载打包后的js文件:APlayer.min.js,如果你能帮助我进行优化,那么感激不尽!仓库地址:APlayer (https://github.com/Eling486/APlayer)
新模式:fixedBar - New mode: fixedBar
使用方法 - How to use it? :
效果 - What does it look like? :
以及播放列表样式 - & the style of its play list:
新功能 - New functions
默认封面&标题 - defaultTitle & defaultCover
You can set the default title & cover now.
你现在可以设置默认的封面及标题了!
such as:
保存播放列表到localStorage - store your play list to localStorage
设置
storeList参数为true来让播放器保存播放列表到localStorage只在fixedBar(吸底播放栏)模式下推荐使用(因为其他模式下没有清空播放列表按钮)
推荐同时设置
storageName来避免与其他播放器冲突Setting
storeListto save your play list to localStorage.ONLY recommended in the fixedBar mode! (Because there are NOT [Clear the playlist] button in other modes.)
It is recommended to set
storagenameat the same time to avoid conflicts with other APlayers.设置歌词字号 - Set the font size for your lrc
你现在可以通过
lrcFontSize自定义lrc歌词的字号了!You can set the font size of lrc by
lrcFontSizenow.注意:播放器的高度会随字号大小发生变化,请注意进行调试!
设置歌词出错时/加载时的提示消息文本 - Set the defaultLrcErrText & defaultLrcLoadingText
你可以自定义lrc歌词在出错、未找到歌词时,在歌词位置显示的默认文本了!
You can set defaultLrcErrText & defaultLrcLoadingText to what you want to show!
你也可以将
lrcErrNotice设置为false来禁用当歌词出错时的播放器消息提示。You can also set the
lrcErrNoticetofalseto disable error noticesuch as: