1
0

index.html 2.2 KB

1
  1. <!doctype html><html lang="zh"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>欢迎访问</title><link rel="stylesheet" href="./b88d04fba731603756b1.css"><link href="./style/common.918724b868136703e7ad.bundle.css" rel="stylesheet"><link href="./style/index.918724b868136703e7ad.bundle.css" rel="stylesheet"></head><body><h1>欢迎光临!</h1><p>我是宋子桓(Song Zihuan),非常欢迎你访问这个站点。</p><p>非常荣幸您能访问我的博客:<a href="https://song-zh.com" target="_blank">Song's Blog</a></p><p>同时,也欢迎您浏览我的GitHub仓库:<a href="https://github.com/SongZihuan" target="_blank">Song Zihuan on GitHub</a></p><p>希望您在这里能找到有趣的内容和灵感!祝您访问愉快!</p><p>此作品遵循 <a href="./LICENSE_US.html" target="_blank">MIT 协议</a> 发布。</p><p>Copyright (c) 宋子桓(Song Zihuan)。</p><script>function extractNumbersFromString(e){const t=/[^0-9]+(\d+)[^0-9]+/g;let n="",r=null;for(;null!==(r=t.exec(e));)n+=r[1].toString();return n}fetch("/SH_CONFIG.json").then((e=>{if(!e.ok)throw new Error("Network response was not ok");return e.text().then((e=>{const t=JSON.parse(e);if("object"!=typeof t||null===t)throw new Error("Config data error");return t}))})).then((e=>{if(e&&e.ICP){const t=document.createElement("p"),n=document.createElement("a");n.href="https://beian.miit.gov.cn/",n.target="_blank",n.textContent=e.ICP,t.appendChild(n),document.body.appendChild(t)}if(window.WangAn&&e&&e.WANGAN){const t=document.createElement("p"),n=document.createElement("img"),r=document.createElement("a");n.alt="网络安全图标",n.src=window.WangAn,n.style="vertical-align: middle",e.WANGAN_NUM=extractNumbersFromString(e.WANGAN),r.href=`https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=${e.WANGAN_NUM}`,r.target="_blank",r.textContent=e.WANGAN,t.appendChild(n),t.appendChild(r),document.body.appendChild(t)}})).catch((e=>{console.error("There has been a problem with your fetch operation:",e)}))</script><script defer="defer" src="./js/common.918724b868136703e7ad.bundle.js"></script><script defer="defer" src="./js/index.918724b868136703e7ad.bundle.js"></script></body></html>