function downloadJSAtOnload(){var t=document.createElement("script");t.src="./js/music.min.js",document.body.appendChild(t)}function time(){clearTimeout(t),dt=new Date;var e=dt.getYear()+1900,n=dt.getMonth()+1,o=dt.getDate(),s=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],i=dt.getDay(),a=dt.getHours(),c=dt.getMinutes(),l=dt.getSeconds();a<10&&(a="0"+a),c<10&&(c="0"+c),l<10&&(l="0"+l),$("#time").html(e+" 年 "+n+" 月 "+o+" 日 "+s[i]+"
"+a+":"+c+":"+l+""),t=setTimeout(time,1e3)}if(iziToast.settings({timeout:1e4,progressBar:!1,close:!1,closeOnEscape:!0,position:"topCenter",transitionIn:"bounceInDown",transitionOut:"flipOutX",displayMode:"replace",layout:"1",backgroundColor:"#00000040",titleColor:"#efefef",messageColor:"#efefef",iconColor:"#efefef"}),window.addEventListener("load",function(){$("#loading-box").attr("class","loaded"),$("#bg").css("cssText","transform: scale(1);filter: blur(0px);transition: ease 1.5s;"),$(".cover").css("cssText","opacity: 1;transition: ease 1.5s;"),$("#section").css("cssText","transform: scale(1) !important;opacity: 1 !important;filter: blur(0px) !important"),setTimeout(function(){iziToast.show({timeout:2500,title:hello,message:"欢迎来到我的主页"})},800)},!1),setTimeout(function(){$("#loading-text").html("字体及文件加载可能需要一定时间")},3e3),window.addEventListener?window.addEventListener("load",downloadJSAtOnload,!1):window.attachEvent?window.attachEvent("onload",downloadJSAtOnload):window.onload=downloadJSAtOnload,isFirefox=navigator.userAgent.indexOf("Firefox")>0){var head=document.getElementsByTagName("head")[0],link=document.createElement("link");link.href="./css/firefox.css",link.rel="stylesheet",link.type="text/css",head.appendChild(link),window.addEventListener("load",function(){iziToast.show({timeout:8e3,iconUrl:"./img/icon/warn.png",message:"您正在使用火狐浏览器,部分功能可能不支持"})},!1)}fetch("https://v1.hitokoto.cn?max_length=24").then(t=>t.json()).then(t=>{$("#hitokoto_text").html(t.hitokoto),$("#from_text").html(t.from)}).catch(console.error),fetch("https://www.yiketianqi.com/free/day?appid=43986679&appsecret=TksqGZT7&unescape=1").then(t=>t.json()).then(t=>{$("#wea_text").html(t.wea),$("#city_text").html(t.city),$("#tem_night").html(t.tem_night),$("#tem_day").html(t.tem_day)}).catch(console.error);var t=null;t=setTimeout(time,1e3),$("#social").mouseover(function(){$("#social").css({background:"rgb(0 0 0 / 25%)","border-radius":"6px","backdrop-filter":"blur(5px)"}),$("#link-text").css({display:"block"})}).mouseout(function(){$("#social").css({background:"none","border-radius":"6px","backdrop-filter":"none"}),$("#link-text").css({display:"none"})}),$("#github").mouseover(function(){$("#link-text").html("去 Github 看看")}).mouseout(function(){$("#link-text").html("通过这里联系我")}),$("#qq").mouseover(function(){$("#link-text").html("有什么事吗")}).mouseout(function(){$("#link-text").html("通过这里联系我")}),$("#email").mouseover(function(){$("#link-text").html("来封 Email")}).mouseout(function(){$("#link-text").html("通过这里联系我")}),$("#telegram").mouseover(function(){$("#link-text").html("你懂的 ~")}).mouseout(function(){$("#link-text").html("通过这里联系我")}),$("#twitter").mouseover(function(){$("#link-text").html("你懂的 ~")}).mouseout(function(){$("#link-text").html("通过这里联系我")});var shoemore=!1;$("#switchmore").on("click",function(){shoemore=!shoemore,shoemore&&$(document).width()>=990?($("#container").attr("class","container mores"),$("#change").html("Oops !"),$("#change1").html("哎呀,这都被你发现了( 再点击一次可关闭 )")):($("#container").attr("class","container"),$("#change").html("Hello World !"),$("#change1").html("一个建立于 21 世纪的小站,存活于互联网的边缘"))}),$("#close").on("click",function(){$("#switchmore").click()});var switchmenu=!1;$("#switchmenu").on("click",function(){switchmenu=!switchmenu,switchmenu?($("#row").attr("class","row menus"),$("#menu").html("")):($("#row").attr("class","row"),$("#menu").html(""))}),$("#openmore").on("click",function(){$("#box").css("display","block"),$("#row").css("display","none"),$("#more").css("cssText","display:none !important")}),$("#closemore").on("click",function(){$("#box").css("display","none"),$("#row").css("display","flex"),$("#more").css("display","flex")}),window.addEventListener("load",function(){window.addEventListener("resize",function(){window.innerWidth>=600&&($("#row").attr("class","row"),$("#menu").html(""),$("#rightone").attr("class","row rightone")),window.innerWidth<=990&&($("#container").attr("class","container"),$("#change").html("Hello World !"),$("#change1").html("一个建立于 21 世纪的小站,存活于互联网的边缘"),$("#box").css("display","none"),$("#row").css("display","flex"),$("#more").css("display","flex"))})});var changemore=!1;$("#changemore").on("click",function(){changemore=!changemore,changemore?$("#rightone").attr("class","row menus mobile"):$("#rightone").attr("class","row menus")}),$("#more").hover(function(){$("#close").css("display","block")},function(){$("#close").css("display","none")}),document.oncontextmenu=function(){return iziToast.show({timeout:2e3,iconUrl:"./img/icon/warn.png",message:"为了浏览体验,本站禁用右键"}),!1};var myDate=new Date,mon=myDate.getMonth()+1,date=myDate.getDate(),days=["4.4","5.12","7.7","9.9","9.18","12.13"];for(var day of days){var d=day.split(".");mon==d[0]&&date==d[1]&&(document.write(""),$("#change").html("Silence in silence"),$("#change1").html("今天是中国国家纪念日,全站已切换为黑白模式"),window.addEventListener("load",function(){iziToast.show({timeout:14e3,iconUrl:"./img/icon/candle.png",message:"今天是中国国家纪念日"})},!1))}var styleTitle1="\nfont-size: 20px;\nfont-weight: 600;\ncolor: rgb(244,167,89);\n",styleTitle2="\nfont-size:12px;\ncolor: rgb(244,167,89);\n",styleContent="\ncolor: rgb(30,152,255);\n",title1="無名の主页",title2="\n _____ __ __ _______ ____ __\n|_ _| \\/ |/ ____\\ \\ / /\\ \\ / /\n | | | \\ / | (___ \\ \\_/ / \\ \\_/ / \n | | | |\\/| |\\___ \\ \\ / \\ / \n _| |_| | | |____) | | | | | \n|_____|_| |_|_____/ |_| |_| \n",content="\n版 本 号:2.2\n更新日期:2022-04-12\n\n更新说明:\n1. 新增 壁纸个性化设置\n2. 新增 音乐播放器支持音量控制\n3. 优化 部分动画及细节\n4. 优化 页面加载缓慢\n5. 优化 音乐延迟加载\n\n主页: https://www.imsyy.top\nGithub: https://github.com/imsyy/home\n";console.log(`%c${title1} %c${title2}\n%c${content}`,styleTitle1,styleTitle2,styleContent);