Hotfix: jianshu video (#1277)

This commit is contained in:
凉凉
2018-12-13 11:24:27 +08:00
committed by DIYgod
parent ef1aeb99e3
commit f019f9477b
+11
View File
@@ -28,6 +28,17 @@ async function load(link) {
});
// 去除样式
$('.image-container, .image-container-fill').removeAttr('style');
// 处理视频
$('.video-package').each((index, elem) => {
const $item = $(elem);
const desc = $item.find('.video-description').html();
const url = $item.attr('data-video-url');
$item.html(`
<p>${desc}</p>
<iframe frameborder="0" src="${url}" allowFullScreen="true"></iframe>
`);
});
// 提取内容
const description = $('.show-content-free').html();