MediaWiki: Common.js:修订间差异
来自帮助文档
无编辑摘要 |
无编辑摘要 |
||
第2行: | 第2行: | ||
// 添加事件监听器 | // 添加事件监听器 | ||
$('#video').prepend('<video style="width:100%;height:100%"controls src="/768DM.mp4">') | $('#video').prepend('<video style="width:100%;height:100%"controls src="/768DM.mp4">') | ||
$('#ca-edit').html("<span class='fa fa-pen'></span> 编辑本页") | |||
$('#MSG600').click(function(){ | $('#MSG600').click(function(){ | ||
第27行: | 第28行: | ||
}); | }); | ||
2025年4月21日 (一) 06:49的版本
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ // 添加事件监听器 $('#video').prepend('<video style="width:100%;height:100%"controls src="/768DM.mp4">') $('#ca-edit').html("<span class='fa fa-pen'></span> 编辑本页") $('#MSG600').click(function(){ localStorage.clear(); window.location.href = 'http://192.168.10.58:8080/index.php?title=%E5%B8%AE%E5%8A%A9'; }); $('#MSG500').click(function(){ localStorage.clear(); window.location.href = 'http://192.168.10.58:8080/index.php?title=%E5%BC%80%E5%B1%80%E6%8C%87%E5%AF%BC'; }); $('#FAQ').click(function(){ localStorage.clear(); window.location.href = 'http://192.168.10.58:8080/index.php?title=FAQ'; }); $('#Qlinkbailn').click(function(){ localStorage.clear(); window.location.href = 'http://192.168.10.58:8080/index.php?title=Qlinkbailn'; }); $('#SMARTCT-E600').click(function(){ localStorage.clear(); window.location.href = 'http://192.168.10.58:8080/index.php?title=SMARTCT-E600'; });