「Widget:BilibiliVideo」の版間の差分
290行目: | 290行目: | ||
$(this).text('デフォルト表示'); | $(this).text('デフォルト表示'); | ||
rememberWH(selfbox); | rememberWH(selfbox); | ||
− | selfbox.css('width', selfbox.parent().width > Math.min(911, global_element.width()) ? '73%' : '100%'); //可以看见按钮的最小宽度 665 的 1/0.73 倍 | + | selfbox.css('width', selfbox.parent().width() > Math.min(911, global_element.width()) ? '73%' : '100%'); //可以看见按钮的最小宽度 665 的 1/0.73 倍 |
setTureHeight(selfbox); | setTureHeight(selfbox); | ||
rememberWH(iframe); | rememberWH(iframe); | ||
312行目: | 312行目: | ||
$('.bilibili-video-container.onshow.widescreen').each(function() { | $('.bilibili-video-container.onshow.widescreen').each(function() { | ||
var selfbox = $(this); | var selfbox = $(this); | ||
− | selfbox.css('width', selfbox.parent().width > Math.min(911, global_element.width()) ? '73%' : '100%'); | + | selfbox.css('width', selfbox.parent().width() > Math.min(911, global_element.width()) ? '73%' : '100%'); |
setTureHeight(selfbox); | setTureHeight(selfbox); | ||
}); | }); |
2017年12月30日 (土) 20:21時点における版
Name: Bilibili Video Plugin
Author: 加大号的猫
Revised: Boxsnake
Re-revised: AnnAngela
Re-re-revised for HTML5: AnnAngela
Copyright agreement: MIT
Mobile support: XYZ指示物
Release date: 1st version on 2012/06/29, 2nd versionon on 2015/02/06, major update on 2016/11/29, HTML5 version on 2017/04/10
Release at: zh.moegirl.org/Widget:BilibiliVideo && zh.moegirl.org/Template:BilibiliVideo
Note: If there are any questions, please contact the author.
THIS WIDGET CAN NOT BE USED ALONE, PLEASE USE {{BilibiliVideo}}!