「Widget:BilibiliVideo」の版間の差分
(ページの作成:「<noinclude><poem> Name: Bilibili Video Plugin Author: 加大号的猫 Revised: Boxsnake Re-revised: AnnAngela Re-...」) |
|||
256行目: | 256行目: | ||
error: function(e) { | error: function(e) { | ||
title_text.text(title || 'av' + id + ([0, 1].indexOf(page) !== -1 ? '' : ' (' + page + ')')); | title_text.text(title || 'av' + id + ([0, 1].indexOf(page) !== -1 ? '' : ' (' + page + ')')); | ||
− | if (e && e.responseJSON && e.responseJSON.message && e.responseJSON.message === "Authentication is required for accessing this video.") title_text.parent().append('<span style="display: inline-block;" title=" | + | if (e && e.responseJSON && e.responseJSON.message && e.responseJSON.message === "Authentication is required for accessing this video.") title_text.parent().append('<span style="display: inline-block;" title="“申し訳ありませんが、ビデオ情報を取得できませんでした"><sup>(注)</sup></span>'); |
iframe.attr('src', 'https://www.bilibili.com/blackboard/player.html?aid=' + id + '&page=' + page + '&enable_ssl=1&as_wide=1' + (autoplay === 'true' ? '&autoplay=true' : '') + (isNaN(t) || t <= 0 ? '' : '&t=' + t)); | iframe.attr('src', 'https://www.bilibili.com/blackboard/player.html?aid=' + id + '&page=' + page + '&enable_ssl=1&as_wide=1' + (autoplay === 'true' ? '&autoplay=true' : '') + (isNaN(t) || t <= 0 ? '' : '&t=' + t)); | ||
if (iframeContainer.is(':visible')) iframe.execAppend(); | if (iframeContainer.is(':visible')) iframe.execAppend(); | ||
268行目: | 268行目: | ||
selfbox.toggleClass('onshow'); | selfbox.toggleClass('onshow'); | ||
selfbox.children('.bilibili-iframe-container').toggle(); | selfbox.children('.bilibili-iframe-container').toggle(); | ||
− | if ($(this).text() === ' | + | if ($(this).text() === '動画表示') { |
− | $(this).text(' | + | $(this).text('動画隠す'); |
if (iframe.data('ready') === true) iframe.execAppend(); | if (iframe.data('ready') === true) iframe.execAppend(); | ||
$(window).resize(); | $(window).resize(); | ||
} else { | } else { | ||
− | $(this).text(' | + | $(this).text('動画表示'); |
selfbox.removeAttr('style'); | selfbox.removeAttr('style'); | ||
} | } | ||
281行目: | 281行目: | ||
if (selfbox.is('.widescreen')) { | if (selfbox.is('.widescreen')) { | ||
selfbox.removeClass('widescreen'); | selfbox.removeClass('widescreen'); | ||
− | $(this).text(' | + | $(this).text('シアターモード'); |
recallWH(iframeContainer); | recallWH(iframeContainer); | ||
recallWH(iframe); | recallWH(iframe); | ||
287行目: | 287行目: | ||
} else { | } else { | ||
selfbox.addClass('widescreen'); | selfbox.addClass('widescreen'); | ||
− | $(this).text(' | + | $(this).text('デフォルト表示'); |
rememberWH(selfbox); | rememberWH(selfbox); | ||
selfbox.css('width', '73%'); | selfbox.css('width', '73%'); |
2017年12月28日 (木) 20:08時点における版
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}}!