“MediaWiki:Common.js”的版本间的差异
来自Whiteverse Library
跳到导航跳到搜索| 第4行: | 第4行: | ||
(function() { | (function() { | ||
var hm = document.createElement("script"); | var hm = document.createElement("script"); | ||
hm.src = "https:// | hm.src = "https://unpkg.com/vis-timeline/standalone/umd/vis-timeline-graph2d.min.js"; | ||
var s = document.getElementsByTagName("script")[0]; | var s = document.getElementsByTagName("script")[0]; | ||
s.parentNode.insertBefore(hm, s); | s.parentNode.insertBefore(hm, s); | ||
| 第15行: | 第15行: | ||
appendCSS(); | appendCSS(); | ||
// 引入 Vis Timeline 库 | // 引入 Vis Timeline 库 | ||
2024年10月24日 (四) 10:09的版本
/* 这里的任何JavaScript将为所有档案员在每次页面载入时加载。 */
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://unpkg.com/vis-timeline/standalone/umd/vis-timeline-graph2d.min.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
function appendCSS(){
var head = document.head || document.getElementsByTagName('head')[0];
head += '<link rel="stylesheet" href="/extensions/Whiteverse/font/stylesheet.css" />';
document.getElementsByTagName('head')[0].innerHTML += head;
}
appendCSS();
// 引入 Vis Timeline 库