Browse Source

Update 2 files

- /index.html
- /proxylist.md
mayx 4 months ago
parent
commit
f401d33c48
2 changed files with 4 additions and 4 deletions
  1. 1 1
      index.html
  2. 3 3
      proxylist.md

+ 1 - 1
index.html

@@ -5,7 +5,7 @@ image: https://screenshot.mayx.eu.org/
 ---
 
 {% if paginator.page == 1 %}<div class="hslice" id="LatestPost">{% endif %}
-<h1 class="entry-title" style="display:inline"> 首页 - 我的文章 </h1><small><a href="/archives.html">Archives</a> | <a href="javascript:getSearchJSON(function(data){window.location = data[Math.floor(Math.random()*data.length)].url})">Random</a></small><br /><br />
+<h1 class="entry-title" style="display:inline"> 首页 - 我的文章 </h1><small><a href="/archives.html">Archives</a> | <a href="javascript:getSearchJSON(function(data){location=data[Math.floor(Math.random()*data.length)].url})">Random</a></small><br /><br />
 
 <hr />
 

+ 3 - 3
proxylist.md

@@ -3,19 +3,19 @@ layout: default
 title: 代理列表
 ---
 
-  源站:<https://mabbs.github.io> <img src="https://mabbs.github.io/images/online.svg" style="width:22px;vertical-align: bottom" onerror="$(this).replaceWith('ⓧ')"/>   
+  源站:<https://mabbs.github.io> <img src="https://mabbs.github.io/images/online.svg" style="width:22px;vertical-align: bottom" onerror="this.outerHTML='ⓧ'"/>   
 
 
 
 # 代理列表
 考虑到中国对于Github Pages在很多地区都有一定程度的解析异常,所以我为我的博客做了很多反向代理。以下代理站均为官方授权:   
 (根据可能的可用性排序)   
-{% for item in site.data.proxylist.proxies %}- <{{ item }}> <img src="{{ item }}images/online.svg" style="width:22px;vertical-align: bottom" onerror="$(this).replaceWith('ⓧ')"/>   
+{% for item in site.data.proxylist.proxies %}- <{{ item }}> <img src="{{ item }}images/online.svg" style="width:22px;vertical-align: bottom" onerror="this.outerHTML='ⓧ'"/>   
 {% endfor %}
 
 # 镜像列表
 由于[Github已经不再可信](/2022/01/04/banned.html),所以现在提供以下镜像站:   
-{% for item in site.data.proxylist.mirrors %}- <{{ item }}> <img src="{{ item }}images/online.svg" style="width:22px;vertical-align: bottom" onerror="$(this).replaceWith('ⓧ')"/>   
+{% for item in site.data.proxylist.mirrors %}- <{{ item }}> <img src="{{ item }}images/online.svg" style="width:22px;vertical-align: bottom" onerror="this.outerHTML='ⓧ'"/>   
 {% endfor %}
 
 # Git列表