更新链接;更新 JavaScript
This commit is contained in:
@@ -125,13 +125,14 @@
|
|||||||
<li><a href="https://tieba.baidu.com/">百度贴吧</a></li>
|
<li><a href="https://tieba.baidu.com/">百度贴吧</a></li>
|
||||||
<li><a href="https://www.douban.com/">豆瓣</a></li>
|
<li><a href="https://www.douban.com/">豆瓣</a></li>
|
||||||
<li><a href="https://www.oschina.net/">开源中国</a></li>
|
<li><a href="https://www.oschina.net/">开源中国</a></li>
|
||||||
<li><a href="https://weibo.com/">新浪微博</a></li>
|
<li><a href="https://www.codeseeding.com/">码云社 - 用代码改变世界</a></li>
|
||||||
<li><a href="https://www.zhihu.com/">知乎</a></li>
|
<li><a href="https://www.zhihu.com/">知乎</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="#">社交</a>
|
<a href="#">社交</a>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li><a href="https://weibo.com/">新浪微博</a></li>
|
||||||
<li><a href="https://www.instagram.com/">Instagram</a></li>
|
<li><a href="https://www.instagram.com/">Instagram</a></li>
|
||||||
<li><a href="https://qzone.qq.com/">QQ空间</a></li>
|
<li><a href="https://qzone.qq.com/">QQ空间</a></li>
|
||||||
<li><a href="https://twitter.com/">Twitter</a></li>
|
<li><a href="https://twitter.com/">Twitter</a></li>
|
||||||
@@ -260,6 +261,7 @@
|
|||||||
<li><a href="https://www.bilibili.com/">bilibili(主站)</a></li>
|
<li><a href="https://www.bilibili.com/">bilibili(主站)</a></li>
|
||||||
<li><a href="https://live.bilibili.com/">bilibili(直播)</a></li>
|
<li><a href="https://live.bilibili.com/">bilibili(直播)</a></li>
|
||||||
<li><a href="https://search.bilibili.com/">bilibili(搜索)</a></li>
|
<li><a href="https://search.bilibili.com/">bilibili(搜索)</a></li>
|
||||||
|
<li><a href="https://message.bilibili.com/">bilibili(消息中心)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="http://www.iqiyi.com/">爱奇艺</a></li>
|
<li><a href="http://www.iqiyi.com/">爱奇艺</a></li>
|
||||||
@@ -489,8 +491,9 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="#">FTP</a>
|
<a href="#">其他</a>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li><a href="https://wj.qq.com/">腾讯问卷</a></li>
|
||||||
<li><a href="http://www.net2ftp.com/">net2ftp</a></li>
|
<li><a href="http://www.net2ftp.com/">net2ftp</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@@ -618,6 +621,7 @@
|
|||||||
<li><a href="chrome://translate-internals/">Translate Internals</a></li>
|
<li><a href="chrome://translate-internals/">Translate Internals</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li><a href="javascript:prompt('查看源代码','view-source:链接'); void(0);">查看源代码</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -643,6 +647,7 @@
|
|||||||
<li><a href="https://www.host199.com/">悍铭数据中心</a></li>
|
<li><a href="https://www.host199.com/">悍铭数据中心</a></li>
|
||||||
<li><a href="https://cloud.tencent.com/">腾讯云</a></li>
|
<li><a href="https://cloud.tencent.com/">腾讯云</a></li>
|
||||||
<li><a href="https://www.cloudflare.com/">Cloudflare</a></li>
|
<li><a href="https://www.cloudflare.com/">Cloudflare</a></li>
|
||||||
|
<li><a href="https://www.nodecache.com/">Nodecache</a></li>
|
||||||
<li><a href="https://vultr.com/">Vultr</a></li>
|
<li><a href="https://vultr.com/">Vultr</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@@ -790,6 +795,7 @@
|
|||||||
<li><a href="https://minecraft-zh.gamepedia.com/音乐">音乐</a></li>
|
<li><a href="https://minecraft-zh.gamepedia.com/音乐">音乐</a></li>
|
||||||
<li><a href="https://minecraft-zh.gamepedia.com/状态效果">状态效果</a></li>
|
<li><a href="https://minecraft-zh.gamepedia.com/状态效果">状态效果</a></li>
|
||||||
<li><a href="https://minecraft-zh.gamepedia.com/战利品表">战利品表</a></li>
|
<li><a href="https://minecraft-zh.gamepedia.com/战利品表">战利品表</a></li>
|
||||||
|
<li><a href="https://minecraft.gamepedia.com/Model">Model</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="https://www.mcmod.cn/">MC百科</a></li>
|
<li><a href="https://www.mcmod.cn/">MC百科</a></li>
|
||||||
@@ -1186,9 +1192,10 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="#">JAVA</a>
|
<a href="#">Java</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="http://java.52emu.cn/">52模拟器(JAVA游戏和模拟器交流网站)</a></li>
|
<li><a href="http://java.52emu.cn/">52模拟器(Java 游戏和模拟器交流网站)</a></li>
|
||||||
|
<li><a href="https://www.java.com/">Java (Oracle)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
// 查找字符 tChar 在 str 中第 num 次出现的位置
|
// 查找字符 tChar 在 str 中第 num 次出现的位置
|
||||||
/* 暂时用不到
|
|
||||||
|
/* 暂不使用
|
||||||
function findChar(str, tChar, num) {
|
function findChar(str, tChar, num) {
|
||||||
var charPos = str.indexOf(tChar);
|
var charPos = str.indexOf(tChar);
|
||||||
num = num - 1;
|
num = num - 1;
|
||||||
@@ -13,64 +14,79 @@ function findChar(str, tChar, num) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// 加载列表
|
// 加载列表
|
||||||
var SlinkyOption = {title: true, speed: 200}; // Slinky 插件的 Option
|
|
||||||
|
// Slinky 插件的 Option
|
||||||
|
var SlinkyOption = {
|
||||||
|
title: true,
|
||||||
|
speed: 200
|
||||||
|
};
|
||||||
var ListID = "#list_"
|
var ListID = "#list_"
|
||||||
var ListCount = 0;
|
var ListCount = 0;
|
||||||
var ListCountMax = 17; // 列表总数
|
// 列表总数
|
||||||
|
var ListCountMax = 17;
|
||||||
function loadList() {
|
function loadList() {
|
||||||
ListCount = ListCount + 1;
|
ListCount = ListCount + 1;
|
||||||
ListID = "#list_" + ListCount;
|
ListID = "#list_" + ListCount;
|
||||||
$(ListID).slinky(SlinkyOption);
|
$(ListID).slinky(SlinkyOption);
|
||||||
// document.title = "已加载 " + ListCount + " 个列表";
|
|
||||||
// 加载完毕
|
// 加载完毕
|
||||||
if (ListCount == ListCountMax) {
|
if (ListCount == ListCountMax) {
|
||||||
clearInterval(I_LoadList);
|
clearInterval(I_LoadList);
|
||||||
setTarget();
|
setTarget();
|
||||||
displayList();
|
displayList();
|
||||||
// document.title = 'Frost 网址导航';
|
// document.title = "Frost 网址导航";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 链接列表数组
|
// main 中的 A 标签的对象的集合(链接列表)
|
||||||
|
|
||||||
var LinkList = document.getElementsByTagName("main")[0].getElementsByTagName("a");
|
var LinkList = document.getElementsByTagName("main")[0].getElementsByTagName("a");
|
||||||
|
|
||||||
// 设置 target = "_blank"
|
// 设置 target = "_blank"
|
||||||
|
|
||||||
function setTarget() {
|
function setTarget() {
|
||||||
for (var i = 0; i < LinkList.length; i++) {
|
for (var i = 0; i < LinkList.length; i++) {
|
||||||
if (LinkList[i].href.endsWith("#") == false) {
|
if (LinkList[i].href.endsWith("#") == false) {
|
||||||
/* 自动加图标(失败)
|
LinkList[i].target = "_blank";
|
||||||
|
/* 自动加图标(暂不使用)
|
||||||
var slashPos = findChar(LinkList[i].href, '/', 3);
|
var slashPos = findChar(LinkList[i].href, '/', 3);
|
||||||
getFavicon = LinkList[i].href.substring(0, slashPos) + "/favicon.ico";
|
getFavicon = "https://www.google.cn/s2/favicons?domain=" + LinkList[i].href.substring(0, slashPos);
|
||||||
var imgTag = "<img src='" + getFavicon + "' />";
|
var imgTag = "<img src='" + getFavicon + "' />";
|
||||||
LinkList[i].insertAdjacentHTML("beforeBegin", imgTag);
|
LinkList[i].insertAdjacentHTML("beforeBegin", imgTag);
|
||||||
*/
|
*/
|
||||||
LinkList[i].target = "_blank";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 显示列表
|
// 显示列表
|
||||||
|
|
||||||
function displayList() {
|
function displayList() {
|
||||||
document.getElementsByTagName("main")[0].style.opacity = "1";
|
document.getElementsByTagName("main")[0].style.opacity = "1";
|
||||||
document.getElementsByClassName("fullscreen-text")[0].style.opacity = "0";
|
document.getElementsByClassName("fullscreen-text")[0].style.opacity = "0";
|
||||||
setTimeout("document.getElementsByClassName('fullscreen-text')[0].style.display = 'none';", 1000);
|
setTimeout("document.getElementsByClassName('fullscreen-text')[0].style.display = 'none';", 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 调用(加载列表,间隔 100 毫秒)
|
// 加载列表,间隔 100 毫秒
|
||||||
|
|
||||||
var I_LoadList = setInterval("loadList()", 100);
|
var I_LoadList = setInterval("loadList()", 100);
|
||||||
|
|
||||||
// 搜索框
|
// 搜索框
|
||||||
|
|
||||||
var SearchMode = 1;
|
var SearchMode = 1;
|
||||||
var SearchPanel = document.getElementsByClassName("search-panel")[0]; // 搜索面板
|
// 搜索面板
|
||||||
var SearchInput = document.getElementsByClassName("search-input")[0]; // 输入框
|
var SearchPanel = document.getElementsByClassName("search-panel")[0];
|
||||||
var SearchText = document.getElementsByClassName("search-input")[0]; // 关键词
|
// 搜索输入框
|
||||||
var SearchResult = document.getElementsByClassName("search-result")[0]; // 搜索结果
|
var SearchInput = document.getElementsByClassName("search-input")[0];
|
||||||
|
// 搜索结果
|
||||||
|
var SearchResult = document.getElementsByClassName("search-result")[0];
|
||||||
var SearchResultItem = "";
|
var SearchResultItem = "";
|
||||||
function search() {
|
function search() {
|
||||||
var LinkListCount = LinkList.length; // 循环次数
|
// 循环次数
|
||||||
var SearchWord = SearchText.value.toLowerCase();
|
var LinkListCount = LinkList.length;
|
||||||
|
// 搜索关键词
|
||||||
|
var SearchWord = SearchInput.value.toLowerCase();
|
||||||
if (SearchMode == 1 && SearchWord != "") {
|
if (SearchMode == 1 && SearchWord != "") {
|
||||||
SearchResult.innerHTML = ""; // 清空搜索结果
|
// 清空搜索结果
|
||||||
|
SearchResult.innerHTML = "";
|
||||||
for (var i = 0; i < LinkListCount; i++) {
|
for (var i = 0; i < LinkListCount; i++) {
|
||||||
if (LinkList[i].href.endsWith("#") == false) {
|
if (LinkList[i].href.endsWith("#") == false) {
|
||||||
if (LinkList[i].innerText.toLowerCase().indexOf(SearchWord) != -1 || LinkList[i].href.indexOf(SearchWord) != -1) {
|
if (LinkList[i].innerText.toLowerCase().indexOf(SearchWord) != -1 || LinkList[i].href.indexOf(SearchWord) != -1) {
|
||||||
@@ -82,8 +98,11 @@ function search() {
|
|||||||
} else if (SearchMode == 1 && SearchWord == "") {
|
} else if (SearchMode == 1 && SearchWord == "") {
|
||||||
SearchResult.innerHTML = "请输入关键词";
|
SearchResult.innerHTML = "请输入关键词";
|
||||||
} else if (SearchMode == 2) {
|
} else if (SearchMode == 2) {
|
||||||
SearchInput.value = ""; // 清空输入框
|
// 清空输入框
|
||||||
SearchResult.innerHTML = ""; // 清空搜索结果
|
SearchInput.value = "";
|
||||||
SearchPanel.style.visibility = "hidden"; // 隐藏搜索面板
|
// 清空搜索结果
|
||||||
|
SearchResult.innerHTML = "";
|
||||||
|
// 隐藏搜索面板
|
||||||
|
SearchPanel.style.visibility = "hidden";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
4
docs/js/script.min.js
vendored
4
docs/js/script.min.js
vendored
@@ -1,5 +1,5 @@
|
|||||||
var SlinkyOption={title:true,speed:200};var ListID="#list_"
|
var SlinkyOption={title:true,speed:200};var ListID="#list_";
|
||||||
var ListCount=0;var ListCountMax=17;function loadList(){ListCount=ListCount+1;ListID="#list_"+ListCount;$(ListID).slinky(SlinkyOption);if(ListCount==ListCountMax){clearInterval(I_LoadList);setTarget();displayList();}}
|
var ListCount=0;var ListCountMax=17;function loadList(){ListCount=ListCount+1;ListID="#list_"+ListCount;$(ListID).slinky(SlinkyOption);if(ListCount==ListCountMax){clearInterval(I_LoadList);setTarget();displayList();}}
|
||||||
var LinkList=document.getElementsByTagName("main")[0].getElementsByTagName("a");function setTarget(){for(var i=0;i<LinkList.length;i++){if(LinkList[i].href.endsWith("#")==false){LinkList[i].target="_blank";}}}
|
var LinkList=document.getElementsByTagName("main")[0].getElementsByTagName("a");function setTarget(){for(var i=0;i<LinkList.length;i++){if(LinkList[i].href.endsWith("#")==false){LinkList[i].target="_blank";}}}
|
||||||
function displayList(){document.getElementsByTagName("main")[0].style.opacity="1";document.getElementsByClassName("fullscreen-text")[0].style.opacity="0";setTimeout("document.getElementsByClassName('fullscreen-text')[0].style.display = 'none';",1000);}
|
function displayList(){document.getElementsByTagName("main")[0].style.opacity="1";document.getElementsByClassName("fullscreen-text")[0].style.opacity="0";setTimeout("document.getElementsByClassName('fullscreen-text')[0].style.display = 'none';",1000);}
|
||||||
var I_LoadList=setInterval("loadList()",100);var SearchMode=1;var SearchPanel=document.getElementsByClassName("search-panel")[0];var SearchInput=document.getElementsByClassName("search-input")[0];var SearchText=document.getElementsByClassName("search-input")[0];var SearchResult=document.getElementsByClassName("search-result")[0];var SearchResultItem="";function search(){var LinkListCount=LinkList.length;var SearchWord=SearchText.value.toLowerCase();if(SearchMode==1&&SearchWord!=""){SearchResult.innerHTML="";for(var i=0;i<LinkListCount;i++){if(LinkList[i].href.endsWith("#")==false){if(LinkList[i].innerText.toLowerCase().indexOf(SearchWord)!=-1||LinkList[i].href.indexOf(SearchWord)!=-1){SearchResultItem=LinkList[i].cloneNode(true);SearchResult.appendChild(SearchResultItem);}}}}else if(SearchMode==1&&SearchWord==""){SearchResult.innerHTML="请输入关键词";}else if(SearchMode==2){SearchInput.value="";SearchResult.innerHTML="";SearchPanel.style.visibility="hidden";}}
|
var I_LoadList=setInterval("loadList()",100);var SearchMode=1;var SearchPanel=document.getElementsByClassName("search-panel")[0];var SearchInput=document.getElementsByClassName("search-input")[0];var SearchResult=document.getElementsByClassName("search-result")[0];var SearchResultItem="";function search(){var LinkListCount=LinkList.length;var SearchWord=SearchInput.value.toLowerCase();if(SearchMode==1&&SearchWord!=""){SearchResult.innerHTML="";for(var i=0;i<LinkListCount;i++){if(LinkList[i].href.endsWith("#")==false){if(LinkList[i].innerText.toLowerCase().indexOf(SearchWord)!=-1||LinkList[i].href.indexOf(SearchWord)!=-1){SearchResultItem=LinkList[i].cloneNode(true);SearchResult.appendChild(SearchResultItem);}}}}else if(SearchMode==1&&SearchWord==""){SearchResult.innerHTML="请输入关键词";}else if(SearchMode==2){SearchInput.value="";SearchResult.innerHTML="";SearchPanel.style.visibility="hidden";}}
|
||||||
|
Reference in New Issue
Block a user