|
|
@ -30,7 +30,7 @@ function setSotreList(data){
|
|
|
|
sotreList.unshift(data);
|
|
|
|
sotreList.unshift(data);
|
|
|
|
localStorage.setItem('list',JSON.stringify(sotreList));
|
|
|
|
localStorage.setItem('list',JSON.stringify(sotreList));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var _URL='https://Tools.PJ568.eu.org/';
|
|
|
|
var _URL='https://Tools.PJ568.sbs/';
|
|
|
|
function initData(){
|
|
|
|
function initData(){
|
|
|
|
var nav=getD('nav'),
|
|
|
|
var nav=getD('nav'),
|
|
|
|
list=getD('list'),
|
|
|
|
list=getD('list'),
|
|
|
@ -39,7 +39,7 @@ function initData(){
|
|
|
|
list_html='',
|
|
|
|
list_html='',
|
|
|
|
sotreList=localStorage.getItem('list');
|
|
|
|
sotreList=localStorage.getItem('list');
|
|
|
|
// 初始化
|
|
|
|
// 初始化
|
|
|
|
list_html+=`<div class="item info"><h2>欢迎使用<img alt="Main_icon" class="mainicon" src="./img/icon.svg"/> 568Tools 在线工具箱</h2><p>致力于创造并维护无需注册、下载和上传即可免费使用的静态在线工具环境。部分项目来源于开源项目,热门工具已被标记为浅蓝色。<a href="lib/data.json" target="_blank">点击查看</a> json 数据。</p><p><strong>如果您有问题或建议,请不要吝啬您的<a rel="nofollow" target="_blank" href="./comment">留言反馈</a>,感谢使用及分享!</strong>本站欢迎<a rel="nofollow" target="_blank" href="/application">提交您的页面</a>,本站将持续更新。如果喜欢网站可以去<a rel="nofollow" target="_blank" href="https://github.com/PJ-568/568tools">托管仓库</a>点一个⭐。</p><p>下载 <strong>[568Tools 工具箱]</strong> 浏览器扩展插件或应用程序以供离线使用:<a rel="nofollow" target="_blank" href="/lib/app/568Tools_在线工具箱_First_Release.apk">安卓应用</a>、<a rel="nofollow" target="_blank" href="https://Repo.PJ568.eu.org/568tools/Web-568Tools_x64.msi">Windows 应用</a>、<a rel="nofollow" target="_blank" href="https://Repo.PJ568.eu.org/568tools/Web-568Tools_x86_64.deb">Linux amd64 .deb</a>、<a rel="nofollow" target="_blank" href="https://repo.pj568.eu.org/568tools/">Linux AppImage</a>、<a rel="nofollow" target="_blank" href="https://Repo.PJ568.eu.org/568tools/Web-568Tools.dmg">macos 应用</a>。</p></div>`
|
|
|
|
list_html+=`<div class="item info"><h2>欢迎使用<img alt="Main_icon" class="mainicon" src="./img/icon.svg"/> 568Tools 在线工具箱</h2><p>致力于创造并维护无需注册、下载和上传即可免费使用的静态在线工具环境。部分项目来源于开源项目,热门工具已被标记为浅蓝色。<a href="lib/data.json" target="_blank">点击查看</a> json 数据。</p><p><strong>如果您有问题或建议,请不要吝啬您的<a rel="nofollow" target="_blank" href="./comment">留言反馈</a>,感谢使用及分享!</strong>本站欢迎<a rel="nofollow" target="_blank" href="/application">提交您的页面</a>,本站将持续更新。如果喜欢网站可以去<a rel="nofollow" target="_blank" href="https://github.com/PJ-568/568tools">托管仓库</a>点一个⭐。</p><p>下载 <strong>[568Tools 工具箱]</strong> 浏览器扩展插件或应用程序以供离线使用:<a rel="nofollow" target="_blank" href="/lib/app/568Tools_在线工具箱_First_Release.apk">安卓应用</a>、<a rel="nofollow" target="_blank" href="https://Repo.PJ568.sbs/568tools/Web-568Tools_x64.msi">Windows 应用</a>、<a rel="nofollow" target="_blank" href="https://Repo.PJ568.sbs/568tools/Web-568Tools_x86_64.deb">Linux amd64 .deb</a>、<a rel="nofollow" target="_blank" href="https://repo.pj568.sbs/568tools/">Linux AppImage</a>、<a rel="nofollow" target="_blank" href="https://Repo.PJ568.sbs/568tools/Web-568Tools.dmg">macos 应用</a>。</p></div>`
|
|
|
|
// 初始化结束
|
|
|
|
// 初始化结束
|
|
|
|
if(!!sotreList){
|
|
|
|
if(!!sotreList){
|
|
|
|
sotreList=JSON.parse(sotreList);
|
|
|
|
sotreList=JSON.parse(sotreList);
|
|
|
@ -65,7 +65,7 @@ function initData(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 后补
|
|
|
|
// 后补
|
|
|
|
nav_html+=`<a href="#0" target="_self">页内页</a><a href="#-1" target="_self">项目贡献者</a><a href="#-2" target="_self">项目活动</a><a href="#-3" target="_self">Star 历史</a>`
|
|
|
|
nav_html+=`<a href="#0" target="_self">页内页</a><a href="#-1" target="_self">项目贡献者</a><a href="#-2" target="_self">项目活动</a><a href="#-3" target="_self">Star 历史</a>`
|
|
|
|
list_html+=`<div id="0" class="item"><h2>页内页</h2><div class="child"><iframe title="incert" id="myIframe" src="/help.html" class="page"></iframe><a style="cursor:pointer" onclick="openLink()" target="_self">进入页面</a></div></div><div id="-1" class="item"><h2>项目贡献者</h2><div class="child"><a class="contri" href="https://github.com/PJ-568/568tools/graphs/contributors" target="_blank"><img alt="贡献者的头像图片" src="https://contrib.rocks/image?repo=PJ-568/568tools"/></a></div></div><div id="-2" class="item"><h2>项目活动</h2><div class="child"><img alt="项目活动" class="incert" src="https://repobeats.axiom.co/api/embed/0e0b27c01d4e9ff093fb3d03fedc74a300068f50.svg"/></div></div><div id="-3" class="item"><h2>Star 历史</h2><div class="child"><img alt="Star 历史" class="incert" src="https://api.star-history.com/svg?repos=PJ-568/568tools&type=Date&theme=dark"/></div></div><div class="item"><a class="ota" href="#">↑↑ 返回页顶 ↑↑</a></div><div class="item"><div class="child"><a href="https://icp.gov.moe/?keyword=20230955" target="_blank">萌 ICP 备 20230955 号</a><a href="https://status.pj568.eu.org/" target="_blank">网站状态</a></div></div>`
|
|
|
|
list_html+=`<div id="0" class="item"><h2>页内页</h2><div class="child"><iframe title="incert" id="myIframe" src="/help.html" class="page"></iframe><a style="cursor:pointer" onclick="openLink()" target="_self">进入页面</a></div></div><div id="-1" class="item"><h2>项目贡献者</h2><div class="child"><a class="contri" href="https://github.com/PJ-568/568tools/graphs/contributors" target="_blank"><img alt="贡献者的头像图片" src="https://contrib.rocks/image?repo=PJ-568/568tools"/></a></div></div><div id="-2" class="item"><h2>项目活动</h2><div class="child"><img alt="项目活动" class="incert" src="https://repobeats.axiom.co/api/embed/0e0b27c01d4e9ff093fb3d03fedc74a300068f50.svg"/></div></div><div id="-3" class="item"><h2>Star 历史</h2><div class="child"><img alt="Star 历史" class="incert" src="https://api.star-history.com/svg?repos=PJ-568/568tools&type=Date&theme=dark"/></div></div><div class="item"><a class="ota" href="#">↑↑ 返回页顶 ↑↑</a></div><div class="item"><div class="child"><a href="https://icp.gov.moe/?keyword=20230955" target="_blank">萌 ICP 备 20230955 号</a><a href="https://status.pj568.sbs/" target="_blank">网站状态</a></div></div>`
|
|
|
|
// 后补结束
|
|
|
|
// 后补结束
|
|
|
|
nav.innerHTML=nav_html;
|
|
|
|
nav.innerHTML=nav_html;
|
|
|
|
list.innerHTML=list_html;
|
|
|
|
list.innerHTML=list_html;
|
|
|
|