“MediaWiki:Common.js”的版本间的差异

来自帮助文档
跳转至: 导航搜索
第1行: 第1行:
 
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
 
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
 
   // 添加事件监听器
 
   // 添加事件监听器
 
$(document).ready(function() {
 
            $("#Qlilnk").attr("href", "http://help.qlinkcloud.club/index.php?title=Qlink");
 
        });
 
  
 
$('#MSG600').click(function(){
 
$('#MSG600').click(function(){
第18行: 第14行:
 
         localStorage.clear();
 
         localStorage.clear();
 
         window.location.href = 'http://help.qlinkcloud.club/index.php?title=FAQ';
 
         window.location.href = 'http://help.qlinkcloud.club/index.php?title=FAQ';
 +
       
 +
    });
 +
$('#Qlink').click(function(){
 +
        localStorage.clear();
 +
        location.assign = 'http://help.qlinkcloud.club/index.php?title=Qlink';
 
          
 
          
 
     });
 
     });

2024年12月2日 (一) 13:28的版本

/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
  // 添加事件监听器

$('#MSG600').click(function(){
        localStorage.clear();
        window.location.href = 'http://help.qlinkcloud.club/index.php?title=%E5%B8%AE%E5%8A%A9'; 
    });
$('#MSG500').click(function(){
        localStorage.clear();
        window.location.href = 'http://help.qlinkcloud.club/index.php?title=%E5%BC%80%E5%B1%80%E6%8C%87%E5%AF%BC';
        
    });
$('#FAQ').click(function(){
        localStorage.clear();
        window.location.href = 'http://help.qlinkcloud.club/index.php?title=FAQ';
        
    });
$('#Qlink').click(function(){
        localStorage.clear();
        location.assign = 'http://help.qlinkcloud.club/index.php?title=Qlink';
        
    });