박문호의 자연과학 세상 · 동영상 강의
KTV 인문학열전- 생각의 출현,뇌 동영상
작성자 신양수
작성일 2013.05.28
원문 · https://new.mhpark.or.kr/board/movies/2800
신양수
👤 프로필
📅 2013.05.28 21:57
👁️ 26,294
💬 2
안녕하세요
금일 KTV에서 방영된 인문학열전 '생각의 출현, 뇌' 박문호 박사편 동영상입니다.
아래의 링크로 다시 시청 가능하지만, 좀더 쉽게 보실수 있도록 화면을 직접 링크
하오니 즐겁게 감상하시기 바랍니다..^^
http://www.ktv.go.kr/common/popup/vodplayer.jsp?cid=464140
동영상 다운로드
',
'',
'
'
].join('');
}
);
const walker = document.createTreeWalker(
article,
NodeFilter.SHOW_TEXT,
{
acceptNode(node) {
const parent = node.parentElement;
if (
!parent ||
parent.closest(
'a, iframe, script, style, pre, code, textarea, ' +
'.youtube-player-wrap'
)
) {
return NodeFilter.FILTER_REJECT;
}
return /https?:\/\/[^\s<>"']+/i.test(node.nodeValue)
? NodeFilter.FILTER_ACCEPT
: NodeFilter.FILTER_REJECT;
}
}
);
const nodes = [];
while (walker.nextNode()) {
nodes.push(walker.currentNode);
}
nodes.forEach(function (node) {
const fragment = document.createDocumentFragment();
const parts = node.nodeValue.split(/(https?:\/\/[^\s<>"']+)/gi);
parts.forEach(function (part) {
if (!/^https?:\/\//i.test(part)) {
fragment.appendChild(document.createTextNode(part));
return;
}
const trailingMatch = part.match(/[.,!?;:)\]}]+$/);
const trailing = trailingMatch ? trailingMatch[0] : '';
const url = trailing ? part.slice(0, -trailing.length) : part;
const link = document.createElement('a');
link.href = url;
link.textContent = url;
link.target = '_blank';
link.rel = 'noopener noreferrer';
link.className = 'article-auto-link';
fragment.appendChild(link);
if (trailing) {
fragment.appendChild(document.createTextNode(trailing));
}
});
node.replaceWith(fragment);
});
});
💬 댓글 2개
잘 봤습니다. 감사합니다.^^