• 正在查找将来过去时的官方设定集?不如看看万界大百科吧!
  • 《将来过去时》第一部分 现在 魔科纪元的少年少女 即将正式发布!
  • 让我偷偷看一眼小鱼君的博客……
  • 服务器已成功迁移到 阿里云(杭州)

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

来自小鱼君和他的朋友们
(//InPageEdit)
(未显示同一用户的28个中间版本)
第1行: 第1行:
/** jQuery cookie **/
 
mw.loader.using(['jquery.cookie'], function () {
 
  if ($.cookie('use-cookie-notify') !== 'showed') {
 
   $.toast({
 
    heading:'我们使用cookie',
 
    text:'是的,我们的网站使用cookie技术来满足某些功能的使用需求,更多信息请阅读我们的<a href="/wiki/Project:关于/Cookie" style="text-decoration:underline">Cookie使用声明</a>。',
 
    icon:'info',
 
    hideAfter:false,
 
    afterHidden: function(){$.cookie('use-cookie-notify','showed',{expires:60});},
 
    position:'top-left'
 
   });
 
  }
 
});
 
 
 
/** 分享按钮 **/
 
/** 分享按钮 **/
 
mw.loader.load('/index.php?title=MediaWiki:Share-btn.js&action=raw&ctype=text/javascript');
 
mw.loader.load('/index.php?title=MediaWiki:Share-btn.js&action=raw&ctype=text/javascript');
  
/** ToastNotify **/
+
/** ssi-modal **/
mw.loader.load('https://common.wjghj.cn/js/toast');
+
mw.loader.load('https://cdn.bootcss.com/ssi-modal/1.0.27/js/ssi-modal.min.js');
 
+
mw.loader.load('https://cdn.bootcss.com/ssi-modal/1.0.27/styles/ssi-modal.min.css', 'text/css');
/** ToastrNotify **/
 
// mw.loader.load('https://common.wjghj.cn/js/toastr');
 
  
 
/** 版权提示 **/
 
/** 版权提示 **/
第27行: 第11行:
 
/** 外部链接 **/
 
/** 外部链接 **/
 
mw.loader.using(['oojs-ui-windows', 'oojs-ui-core'],
 
mw.loader.using(['oojs-ui-windows', 'oojs-ui-core'],
function() {
+
  function () {
  $('a.external').each(function() {
+
   $('a.external').each(function () {
   var href = $(this).attr('href');
+
    var href = $(this).attr('href'),
   $(this).click(function(e) {
+
     href1 = href.split('/')[2];
    e.preventDefault();
+
    if (href1.substring(href1.length - 8) === 'wjghj.cn') return;
    OO.ui.confirm('你确定要访问这个外部链接吗: ' + href).done(function(confirmed) {
+
    $(this).click(function (e) {
     if (confirmed) {
+
     e.preventDefault();
      location.href = href;
+
     OO.ui.confirm('你确定要访问这个外部链接吗: ' + href).done(function (confirmed) {
      }
+
      if (confirmed) {
 +
       location.href = href;
 +
      }
 +
      });
 
     });
 
     });
 
    });
 
    });
 
   });
 
   });
 +
 +
/** Code Prettyprint **/
 +
$(function () {
 +
  var pagename = mw.config.get('wgPageName');
 +
  if (pagename.substr(pagename.length - 3, 3) === '.js') {
 +
   $('#mw-content-text pre').addClass('prettyprint lang-js linenums');
 +
  } else if (pagename.substr(pagename.length - 4, 4) === '.css') {
 +
   $('#mw-content-text pre').addClass('prettyprint lang-css linenums');
 +
  }
 +
  mw.loader.load('https://common.wjghj.cn/js/prettify');
 +
  mw.loader.load('https://common.wjghj.cn/css/prettify', 'text/css');
 +
});
 +
 +
/**
 +
* ECharts
 +
* Put ECharts on wiki pages
 +
* Apache licenses https://www.echartsjs.com
 +
**/
 +
 +
$(function () {
 +
  if ($('.echarts, .ECharts, .Echarts').length > 0) {
 +
   $('body').apend(
 +
    $('<script>', { src: 'https://cdn.bootcss.com/echarts/4.4.0-rc.1/echarts.min.js' })
 +
     .load(function () {
 +
      $('.echarts, .ECharts, .Echarts').each(function () {
 +
       var $this = $(this),
 +
        option = eval("(" + $this.text() + ")"),
 +
        echartsElement = 'echartsElement-' + $this.index();
 +
       $this.attr({ 'id': echartsElement });
 +
       echarts.init(document.getElementById(echartsElement)).setOption(option);
 +
      });
 +
     })
 +
   );
 +
  }
 
});
 
});
  
 
/** Global script (gtag.js) - Google Analytics **/
 
/** Global script (gtag.js) - Google Analytics **/
 
mw.loader.load('https://www.googletagmanager.com/gtag/js?id=UA-148909815-1');
 
mw.loader.load('https://www.googletagmanager.com/gtag/js?id=UA-148909815-1');
$(window).load(function(){
+
$(window).load(function () {
 
   window.dataLayer = window.dataLayer || [];
 
   window.dataLayer = window.dataLayer || [];
   function gtag(){dataLayer.push(arguments);}
+
   function gtag() { dataLayer.push(arguments); }
 
   gtag('js', new Date());
 
   gtag('js', new Date());
  
第57行: 第78行:
 
    return;
 
    return;
 
   } else {
 
   } else {
    $(this).html('<a href="https://wjghj.cn/index.php?title=Special:Upload&wpDestFile='+galleryfile+'" class="new" target="_blank">点击上传<br/>' + galleryfile + '</a>')
+
    $(this).html('<a href="https://wjghj.cn/index.php?title=Special:Upload&wpDestFile=' + galleryfile + '" class="new" target="_blank">点击上传<br/>' + galleryfile + '</a>')
 
   }
 
   }
 
});
 
});
第64行: 第85行:
 
$(function () {
 
$(function () {
 
   var DialogId,
 
   var DialogId,
  BtnId,
+
   BtnId,
  NextId,
+
   NextId,
  LastId;
+
   LastId;
 
   $('.ipd').html(function () {
 
   $('.ipd').html(function () {
 
    DialogId = this.dataset.dialogid;
 
    DialogId = this.dataset.dialogid;
第89行: 第110行:
  
 
/** Game saver **/
 
/** Game saver **/
$('.GameSaver').html(function(){
+
$('.GameSaver').html(function () {
   var game,time,user,title,page;
+
   var game, time, user, title, page;
   if ( wgUserName =='' || wgUserName == null ) {
+
   if (wgUserName == '' || wgUserName == null) {
    unlogin = true ;
+
    unlogin = true;
 
   } else {
 
   } else {
    user = 'User:'+wgUserName ;
+
    user = 'User:' + wgUserName;
}
+
  }
 
   game = this.dataset.game;
 
   game = this.dataset.game;
 
   time = this.dataset.time;
 
   time = this.dataset.time;
第101行: 第122行:
 
   page = this.dataset.page;
 
   page = this.dataset.page;
 
   $(this).html('<input type=button class="save" value="保存游戏"/>&nbsp;&nbsp;<input type=button class="load" value="读取存档"/>');
 
   $(this).html('<input type=button class="save" value="保存游戏"/>&nbsp;&nbsp;<input type=button class="load" value="读取存档"/>');
   if ( unlogin ) {
+
   if (unlogin) {
    $('.GameSaver .load').click(function(){alert('无法读取存档,请登录后再试');});
+
    $('.GameSaver .load').click(function () { alert('无法读取存档,请登录后再试'); });
 
   } else {
 
   } else {
    $('.GameSaver .load').click(function(){location.href='/wiki/'+user+'/gamesave/'+game});
+
    $('.GameSaver .load').click(function () { location.href = '/wiki/' + user + '/gamesave/' + game });
 
   }
 
   }
   $('.GameSaver .save').click(function() {
+
   $('.GameSaver .save').click(function () {
    if ( unlogin ) {
+
    if (unlogin) {
     $('.GameSaver .save').unbind().attr({'value':'存档失败,请登录后再试','disabled':''});
+
     $('.GameSaver .save').unbind().attr({ 'value': '存档失败,请登录后再试', 'disabled': '' });
 
     return;
 
     return;
 
    }
 
    }
    var note = prompt('有什么要备注的吗?','无');
+
    var note = prompt('有什么要备注的吗?', '无');
    if (note === null||note === 'null') {
+
    if (note === null || note === 'null') {
 
     return;
 
     return;
 
    }
 
    }
    $('.GameSaver .save').attr('value','SILI努力帮你存档中…');
+
    $('.GameSaver .save').attr('value', 'SILI努力帮你存档中…');
 
    new mw.Api().post({
 
    new mw.Api().post({
 
     action: 'edit',
 
     action: 'edit',
     title: user+'/gamesave/'+game,
+
     title: user + '/gamesave/' + game,
     summary: '\/*' + title+' | '+ time +'*\/新增游戏'+ game +'存档',
+
     summary: '\/*' + title + ' | ' + time + '*\/新增游戏' + game + '存档',
     appendtext: '\n== '+ title +' | '+ time +' ==\n*游戏:[[Game:'+ game +']]\n*时间:'+ time +'\n*[['+ page +'|继续游戏]]\n*备注:'+ note +'\n\n',
+
     appendtext: '\n== ' + title + ' | ' + time + ' ==\n*游戏:[[Game:' + game + ']]\n*时间:' + time + '\n*[[' + page + '|继续游戏]]\n*备注:' + note + '\n\n',
 
     token: mw.user.tokens.get('editToken')
 
     token: mw.user.tokens.get('editToken')
 
    })
 
    })
   .done(function(){
+
    .done(function () {
    $('.GameSaver .save').unbind().attr({'value':'存档完毕!','disabled':''});
+
     $('.GameSaver .save').unbind().attr({ 'value': '存档完毕!', 'disabled': '' });
   })
+
    })
   .fail(function(){
+
    .fail(function () {
    alert('啊哦,存档失败了!\n1)请检查您的网络连接?\n2)您是否没有登录?\n3)刷新页面再试?');
+
     alert('啊哦,存档失败了!\n1)请检查您的网络连接?\n2)您是否没有登录?\n3)刷新页面再试?');
    $('.GameSaver .save').attr('value','重试');
+
     $('.GameSaver .save').attr('value', '重试');
   });
+
    });
 
   });
 
   });
 
});
 
});
  
 
/** 顶部公告 **/
 
/** 顶部公告 **/
function siteNoticeScroll(obj,interval) {
+
function siteNoticeScroll(obj, interval) {
 
   $(obj).animate({
 
   $(obj).animate({
 
    height: 'show',
 
    height: 'show',
第142行: 第163行:
 
    marginBottom: 'show',
 
    marginBottom: 'show',
 
   });
 
   });
   setInterval(function() {
+
   setInterval(function () {
 
    $(obj).find('ul:first').animate({
 
    $(obj).find('ul:first').animate({
 
     marginTop: '-25px'
 
     marginTop: '-25px'
 
    },
 
    },
   300,
+
    300,
   function() {
+
    function () {
    $(this).css({
+
     $(this).css({
     marginTop: '0px',
+
      marginTop: '0px',
    }).find('li:first').appendTo(this);
+
     }).find('li:first').appendTo(this);
   });
+
    });
 
   },
 
   },
  interval);
+
   interval);
 
}
 
}
siteNoticeScroll('.siteNoticeScroll',5000);
+
siteNoticeScroll('.siteNoticeScroll', 5000);
 
 
/** [[T:Notify]] **/
 
$(function(){
 
  $('.notify').html(function(){
 
   var type = $(this).attr('data-type'),
 
     content = $(this).html();
 
   $.toast({
 
    text: content,
 
    icon: type
 
   });
 
  }).remove();
 
});
 
  
 
/** 头像系统 **/
 
/** 头像系统 **/
$(function() {
+
$(function () {
   $('#personal').prepend($('<a>', {
+
   $('#personal h2').prepend($('<a>', {
 
    href: '/wiki/Special:Uploadavatar',
 
    href: '/wiki/Special:Uploadavatar',
 
    class: 'user-avatar-link',
 
    class: 'user-avatar-link',
 +
  }).click(function (e) {
 +
   href = $(this).attr('href');
 +
   e.preventDefault();
 +
   if ($(window).width() > 1100) {
 +
    location.href = href;
 +
   }
 
   }).append($('<img>', {
 
   }).append($('<img>', {
    src: '/extensions/Avatar/avatar.php?user=' + mw.config.get('wgUserName'),
+
    src: '/avatar/' + mw.config.get('wgUserName'),
 
    class: 'user-avatar'
 
    class: 'user-avatar'
 
   })));
 
   })));
   $('.mw-userlink').before(function() {
+
   $('.mw-userlink').before(function () {
 
    var user = $(this).attr('title'),
 
    var user = $(this).attr('title'),
   avatar = $('<img>', {
+
    avatar = $('<img>', {
    src: '/extensions/Avatar/avatar.php?user=' + user,
+
     src: '/avatar/' + user,
    class: 'user-avatar'
+
     class: 'user-avatar'
   });
+
    });
 
    return avatar;
 
    return avatar;
 
   });
 
   });
 
});
 
});
  
/** Custom Modal**/
+
/**
function PopupWindow(content,title,settings) {
+
* Matomo track
  PopupWindow(content,title,settings);
+
*/
}
+
!(function () {
function closeModal(id){
+
   var _paq = window._paq || [];
   var target;
+
   /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  if (id === undefined) {
+
   _paq.push(['trackPageView']);
   target = $('.customModal, .customModal-bg');
+
   _paq.push(['enableLinkTracking']);
   } else {
+
   var u = "//common.wjghj.cn/piwik/";
   target = $('.customModal[data-modalid="'+id+'"], .customModal-bg[data-modalid="'+id+'"]');
+
   _paq.push(['setTrackerUrl', u + 'matomo.php']);
  }
+
   _paq.push(['setSiteId', '1']);
   target.fadeOut(400);
+
   var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
   setTimeout(function(){target.remove()},400);
+
   g.type = 'text/javascript'; g.async = true; g.defer = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s);
}
+
})();
function Modal(content,title,settings) {
 
   var closeBtn = '<div class="customModal-close"><img class="close-modal" data-action="closeModal" src="https://wjghj.cn/images/d/d0/Close-btn.png"/></div>',
 
    addClass = '',
 
    modalId = new Date().getTime();
 
 
 
   if (settings !== undefined) {
 
   if (settings.closeBtn == false) {
 
    closeBtn = '';
 
   }
 
   if (settings.addClass !== undefined) {
 
    addClass = settings.addClass;
 
   }
 
  }
 
 
 
  if (title != '' && title != undefined) {
 
   title = '<h2 class="customModal-title">' + title + '</h2>';
 
  } else {
 
   title = '';
 
  }
 
  if (content == undefined || content == '') {
 
   title = '<h2 class="customModal-title" class="error"> Error in Popup Window </h2>';
 
   content = 'No content!';
 
  }
 
 
 
   $('body').append(
 
  '<div class="customModal-bg '+addClass+'" data-modalid="'+ modalId + '" style="z-index:'+ modalId + '"></div>' +
 
  '<div class="customModal '+addClass+'" data-modalid="'+ modalId + '" style="z-index:'+ Number(modalId+1) + '">' +
 
  '<div class="dragArea" style="width: 100%; text-align: center; color:white; background: gray; height:18px; user-select: none;"><span class="m-icons">drag_handle</span></div>'+
 
  closeBtn+
 
  title +
 
  '<div class="customModal-content">' +
 
  content +
 
  '</div>'+
 
  '</div>'
 
);
 
 
 
  // 初始化
 
  $('.customModal[data-modalid="'+modalId+'"], .customModal-bg[data-modalid="'+modalId+'"]').fadeIn(300);
 
   $('.customModal[data-modalid="'+modalId+'"]').css({
 
   'position': 'absolute',
 
   'top': $(window).scrollTop()+120
 
  });
 
  $('.customModal').each(function(){
 
   $this = $(this);
 
   $this.find('[data-action="closeModal"]').attr('data-modalid',$this.attr('data-modalid'));
 
  });
 
 
 
  // Close Modal
 
  $('.customModal-bg, .customModal [data-action="closeModal"]').click(function(){closeModal($(this).attr('data-modalid'))});
 
 
 
  // Dragable
 
   function bindDragging(e) {
 
   var element = $(this);
 
   var baseX = e.clientX;
 
   var baseY = e.clientY;
 
   var baseOffsetX = element.parent().offset().left;
 
   var baseOffsetY = element.parent().offset().top;
 
   $(document).mousemove(function(e) {
 
    element.parent().css({
 
     'left': baseOffsetX + e.clientX - baseX,
 
     'top': baseOffsetY + e.clientY - baseY
 
    });
 
   });
 
   $(document).mouseup(function() {
 
    $(document).unbind('mousemove');
 
    $(document).unbind('mouseup');
 
    bindDragging(element);
 
   });
 
  };
 
  if (settings !== undefined) {
 
 
 
   if (settings.disableDrag === true) {
 
    $('.customModal .dragArea').remove();
 
   } else {
 
    $('.customModal .dragArea').mousedown(bindDragging);
 
   }
 
   if (settings.disableBg !== undefined && settings.disableBg === true) {
 
    $('.customModal-bg[data-modalid="'+modalId+'"]').unbind();
 
   }
 
   if (settings.removeBg !== undefined && settings.removeBg === true) {
 
    $('.customModal-bg[data-modalid="'+modalId+'"]').remove();
 
   }
 
 
 
  } else {
 
   $('.customModal .dragArea').mousedown(bindDragging);
 
  }
 
 
 
}
 
  
 
//ALL CLEAR
 
//ALL CLEAR

2020年7月6日 (一) 05:08的版本

/** 分享按钮 **/
mw.loader.load('/index.php?title=MediaWiki:Share-btn.js&action=raw&ctype=text/javascript');

/** ssi-modal **/
mw.loader.load('https://cdn.bootcss.com/ssi-modal/1.0.27/js/ssi-modal.min.js');
mw.loader.load('https://cdn.bootcss.com/ssi-modal/1.0.27/styles/ssi-modal.min.css', 'text/css');

/** 版权提示 **/
mw.loader.load('/index.php?title=MediaWiki:NotifyWhenCopy.js&action=raw&ctype=text/javascript');

/** 外部链接 **/
mw.loader.using(['oojs-ui-windows', 'oojs-ui-core'],
  function () {
    $('a.external').each(function () {
      var href = $(this).attr('href'),
        href1 = href.split('/')[2];
      if (href1.substring(href1.length - 8) === 'wjghj.cn') return;
      $(this).click(function (e) {
        e.preventDefault();
        OO.ui.confirm('你确定要访问这个外部链接吗: ' + href).done(function (confirmed) {
          if (confirmed) {
            location.href = href;
          }
        });
      });
    });
  });

/** Code Prettyprint **/
$(function () {
  var pagename = mw.config.get('wgPageName');
  if (pagename.substr(pagename.length - 3, 3) === '.js') {
    $('#mw-content-text pre').addClass('prettyprint lang-js linenums');
  } else if (pagename.substr(pagename.length - 4, 4) === '.css') {
    $('#mw-content-text pre').addClass('prettyprint lang-css linenums');
  }
  mw.loader.load('https://common.wjghj.cn/js/prettify');
  mw.loader.load('https://common.wjghj.cn/css/prettify', 'text/css');
});

/**
 * ECharts
 * Put ECharts on wiki pages
 * Apache licenses https://www.echartsjs.com
 **/

$(function () {
  if ($('.echarts, .ECharts, .Echarts').length > 0) {
    $('body').apend(
      $('<script>', { src: 'https://cdn.bootcss.com/echarts/4.4.0-rc.1/echarts.min.js' })
        .load(function () {
          $('.echarts, .ECharts, .Echarts').each(function () {
            var $this = $(this),
              option = eval("(" + $this.text() + ")"),
              echartsElement = 'echartsElement-' + $this.index();
            $this.attr({ 'id': echartsElement });
            echarts.init(document.getElementById(echartsElement)).setOption(option);
          });
        })
    );
  }
});

/** Global script (gtag.js) - Google Analytics **/
mw.loader.load('https://www.googletagmanager.com/gtag/js?id=UA-148909815-1');
$(window).load(function () {
  window.dataLayer = window.dataLayer || [];
  function gtag() { dataLayer.push(arguments); }
  gtag('js', new Date());

  gtag('config', 'UA-148909815-1');
});

/** 方便上传相册缺少的图片 **/
$('.gallery .thumb').prepend(function () {
  var galleryfile = $(this).text();
  if (galleryfile == '') {
    return;
  } else {
    $(this).html('<a href="https://wjghj.cn/index.php?title=Special:Upload&wpDestFile=' + galleryfile + '" class="new" target="_blank">点击上传<br/>' + galleryfile + '</a>')
  }
});

/** In page dialog **/
$(function () {
  var DialogId,
    BtnId,
    NextId,
    LastId;
  $('.ipd').html(function () {
    DialogId = this.dataset.dialogid;
    if (DialogId != '1') {
      $(this).hide();
    }
  });
  $('.ipd-next-btn').click(function () {
    BtnId = this.dataset.btnid;
    LastId = this.dataset.lastid;
    if (LastId === 'last') {
      $('#game-selector').show(300);
      $(this).css('color', 'green');
    } else {
      BtnId = parseInt(BtnId);
      NextId = ++BtnId;
      $(this).css('color', 'green');
      $('.ipd[data-dialogid=' + NextId + ']').show(300);
    }
  });
});

/** Game saver **/
$('.GameSaver').html(function () {
  var game, time, user, title, page;
  if (wgUserName == '' || wgUserName == null) {
    unlogin = true;
  } else {
    user = 'User:' + wgUserName;
  }
  game = this.dataset.game;
  time = this.dataset.time;
  title = this.dataset.title;
  page = this.dataset.page;
  $(this).html('<input type=button class="save" value="保存游戏"/>&nbsp;&nbsp;<input type=button class="load" value="读取存档"/>');
  if (unlogin) {
    $('.GameSaver .load').click(function () { alert('无法读取存档,请登录后再试'); });
  } else {
    $('.GameSaver .load').click(function () { location.href = '/wiki/' + user + '/gamesave/' + game });
  }
  $('.GameSaver .save').click(function () {
    if (unlogin) {
      $('.GameSaver .save').unbind().attr({ 'value': '存档失败,请登录后再试', 'disabled': '' });
      return;
    }
    var note = prompt('有什么要备注的吗?', '无');
    if (note === null || note === 'null') {
      return;
    }
    $('.GameSaver .save').attr('value', 'SILI努力帮你存档中…');
    new mw.Api().post({
      action: 'edit',
      title: user + '/gamesave/' + game,
      summary: '\/*' + title + ' | ' + time + '*\/新增游戏' + game + '存档',
      appendtext: '\n== ' + title + ' | ' + time + ' ==\n*游戏:[[Game:' + game + ']]\n*时间:' + time + '\n*[[' + page + '|继续游戏]]\n*备注:' + note + '\n\n',
      token: mw.user.tokens.get('editToken')
    })
      .done(function () {
        $('.GameSaver .save').unbind().attr({ 'value': '存档完毕!', 'disabled': '' });
      })
      .fail(function () {
        alert('啊哦,存档失败了!\n1)请检查您的网络连接?\n2)您是否没有登录?\n3)刷新页面再试?');
        $('.GameSaver .save').attr('value', '重试');
      });
  });
});

/** 顶部公告 **/
function siteNoticeScroll(obj, interval) {
  $(obj).animate({
    height: 'show',
    paddingTop: 'show',
    marginTop: 'show',
    paddingBottom: 'show',
    marginBottom: 'show',
  });
  setInterval(function () {
    $(obj).find('ul:first').animate({
      marginTop: '-25px'
    },
      300,
      function () {
        $(this).css({
          marginTop: '0px',
        }).find('li:first').appendTo(this);
      });
  },
    interval);
}
siteNoticeScroll('.siteNoticeScroll', 5000);

/** 头像系统 **/
$(function () {
  $('#personal h2').prepend($('<a>', {
    href: '/wiki/Special:Uploadavatar',
    class: 'user-avatar-link',
  }).click(function (e) {
    href = $(this).attr('href');
    e.preventDefault();
    if ($(window).width() > 1100) {
      location.href = href;
    }
  }).append($('<img>', {
    src: '/avatar/' + mw.config.get('wgUserName'),
    class: 'user-avatar'
  })));
  $('.mw-userlink').before(function () {
    var user = $(this).attr('title'),
      avatar = $('<img>', {
        src: '/avatar/' + user,
        class: 'user-avatar'
      });
    return avatar;
  });
});

/**
 * Matomo track
 */
!(function () {
  var _paq = window._paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  var u = "//common.wjghj.cn/piwik/";
  _paq.push(['setTrackerUrl', u + 'matomo.php']);
  _paq.push(['setSiteId', '1']);
  var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
  g.type = 'text/javascript'; g.async = true; g.defer = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s);
})();

//ALL CLEAR