sinzmise-cetastories 2.0.0-1729391855695 → 2.0.0-1730024687183
Sign up to get free protection for your applications and to get access to all the features.
- package/404/index.html +1 -1
- package/about/index.html +1 -1
- package/album/index.html +1 -1
- package/archives/2021/12/index.html +1 -1
- package/archives/2021/index.html +1 -1
- package/archives/2022/12/index.html +1 -1
- package/archives/2022/index.html +1 -1
- package/archives/2023/01/index.html +1 -1
- package/archives/2023/02/index.html +1 -1
- package/archives/2023/03/index.html +1 -1
- package/archives/2023/04/index.html +1 -1
- package/archives/2023/07/index.html +1 -1
- package/archives/2023/08/index.html +1 -1
- package/archives/2023/09/index.html +1 -1
- package/archives/2023/10/index.html +1 -1
- package/archives/2023/11/index.html +1 -1
- package/archives/2023/12/index.html +1 -1
- package/archives/2023/index.html +1 -1
- package/archives/2023/page/2/index.html +1 -1
- package/archives/2023/page/3/index.html +1 -1
- package/archives/2024/01/index.html +1 -1
- package/archives/2024/02/index.html +1 -1
- package/archives/2024/03/index.html +1 -1
- package/archives/2024/04/index.html +1 -1
- package/archives/2024/05/index.html +1 -1
- package/archives/2024/06/index.html +1 -1
- package/archives/2024/07/index.html +1 -1
- package/archives/2024/08/index.html +1 -1
- package/archives/2024/09/index.html +1 -1
- package/archives/2024/10/index.html +1 -1
- package/archives/2024/index.html +1 -1
- package/archives/2024/page/2/index.html +1 -1
- package/archives/index.html +1 -1
- package/archives/page/2/index.html +1 -1
- package/archives/page/3/index.html +1 -1
- package/archives/page/4/index.html +1 -1
- package/archives/page/5/index.html +1 -0
- package/assets/algolia/algoliasearch.js +2 -1
- package/assets/algolia/algoliasearchLite.js +2 -1
- package/atom.xml +114 -204
- package/bbs/bbs.html +1 -1
- package/bbs/bbs.js +2 -1
- package/bbs/index.html +1 -1
- package/categories/index.html +1 -1
- package/categories//344/270/252/344/272/272/345/260/217/350/256/260/index.html +1 -1
- package/categories//344/270/252/344/272/272/345/260/217/350/256/260/page/2/index.html +1 -1
- package/categories//346/255/214/346/233/262/346/224/266/351/233/206/index.html +1 -1
- package/categories//346/270/270/346/210/217/347/233/270/345/205/263/index.html +1 -1
- package/categories//347/253/231/347/202/271/346/212/230/350/205/276/index.html +1 -1
- package/categories//347/253/231/347/202/271/346/212/230/350/205/276/page/2/index.html +1 -1
- package/categories//351/241/271/347/233/256/346/212/230/350/205/276/index.html +1 -1
- package/charts/index.html +1 -1
- package/comments/index.html +1 -1
- package/css/custom2.css +2 -1
- package/css/first.css +2 -0
- package/css/pace/big-counter.css +2 -1
- package/css/pace/corner-indicator.css +2 -1
- package/css/pace/flash.css +2 -1
- package/css/pace/mac-osx.css +2 -1
- package/css/pace/pace.css +2 -1
- package/css/plane.css +2 -1
- package/css/style.css +2 -0
- package/css/tags.css +2 -1
- package/essay/index.html +1 -1
- package/fcircle/index.html +1 -1
- package/games +3831 -509
- package/index.html +1 -1
- package/js/app.js +2 -0
- package/js/autoload.js +2 -1
- package/js/ceta/fancybox.css +2 -0
- package/js/ceta/fancybox.umd.js +2 -0
- package/js/ceta/iconfontInkss.js +2 -0
- package/js/ceta/lazyload.min.js +1 -0
- package/js/ceta/message.css +2 -0
- package/js/ceta/message.js +2 -0
- package/js/ceta/pjax.min.js +1 -0
- package/js/clock.js +2 -1
- package/js/kslink.js +2 -1
- package/js/newyear.js +2 -1
- package/js/plane.js +2 -1
- package/js/plugins/aplayer.js +2 -0
- package/js/plugins/parallax.js +2 -0
- package/js/plugins/rightMenus.js +2 -0
- package/js/plugins/tags/contributors.js +2 -0
- package/js/plugins/tags/friends.js +2 -0
- package/js/plugins/tags/sites.js +2 -0
- package/js/search/algolia.js +2 -0
- package/js/search/hexo.js +2 -0
- package/js/search/meilisearch.js +2 -0
- package/js/txmap.js +2 -1
- package/link/index.html +1 -1
- package/load.html +1 -1
- package/maps/assets/algolia/algoliasearch.js.map +1 -0
- package/maps/assets/algolia/algoliasearchLite.js.map +1 -0
- package/maps/bbs/bbs.js.map +1 -0
- package/maps/css/custom2.css.map +1 -0
- package/maps/css/first.css.map +1 -0
- package/maps/css/pace/big-counter.css.map +1 -0
- package/maps/css/pace/corner-indicator.css.map +1 -0
- package/maps/css/pace/flash.css.map +1 -0
- package/maps/css/pace/mac-osx.css.map +1 -0
- package/maps/css/pace/pace.css.map +1 -0
- package/maps/css/plane.css.map +1 -0
- package/maps/css/style.css.map +1 -0
- package/maps/css/tags.css.map +1 -0
- package/maps/js/app.js.map +1 -0
- package/maps/js/autoload.js.map +1 -0
- package/maps/js/ceta/fancybox.css.map +1 -0
- package/maps/js/ceta/fancybox.umd.js.map +1 -0
- package/maps/js/ceta/iconfontInkss.js.map +1 -0
- package/maps/js/ceta/message.css.map +1 -0
- package/maps/js/ceta/message.js.map +1 -0
- package/maps/js/clock.js.map +1 -0
- package/maps/js/kslink.js.map +1 -0
- package/maps/js/newyear.js.map +1 -0
- package/maps/js/plane.js.map +1 -0
- package/maps/js/plugins/aplayer.js.map +1 -0
- package/maps/js/plugins/parallax.js.map +1 -0
- package/maps/js/plugins/rightMenus.js.map +1 -0
- package/maps/js/plugins/tags/contributors.js.map +1 -0
- package/maps/js/plugins/tags/friends.js.map +1 -0
- package/maps/js/plugins/tags/sites.js.map +1 -0
- package/maps/js/search/algolia.js.map +1 -0
- package/maps/js/search/hexo.js.map +1 -0
- package/maps/js/search/meilisearch.js.map +1 -0
- package/maps/js/txmap.js.map +1 -0
- package/maps/sw.js.map +1 -0
- package/maps/weichuncai/css/style.css.map +1 -0
- package/maps/weichuncai/js/common.js.map +1 -0
- package/maps/weichuncai/js/jquery.js.map +1 -0
- package/maps/weichuncai/wcc-config.js.map +1 -0
- package/music/index.html +1 -1
- package/package.json +1 -1
- package/page/2/index.html +1 -1
- package/page/3/index.html +1 -1
- package/page/4/index.html +1 -1
- package/page/5/index.html +1 -0
- package/posts/10021/index.html +5 -1
- package/posts/10045/index.html +1 -1
- package/posts/10733/index.html +1 -1
- package/posts/10996/index.html +5 -1
- package/posts/12779/index.html +1 -1
- package/posts/13624/index.html +1 -1
- package/posts/15688/index.html +1 -1
- package/posts/15748/index.html +5 -1
- package/posts/15799/index.html +1 -1
- package/posts/15842/index.html +5 -1
- package/posts/16107/index.html +1 -1
- package/posts/18063/index.html +1 -1
- package/posts/20412/index.html +1 -1
- package/posts/21375/index.html +1 -1
- package/posts/22945/index.html +4 -1
- package/posts/23021/index.html +1 -1
- package/posts/27531/index.html +5 -1
- package/posts/28536/index.html +1 -1
- package/posts/28733/index.html +1 -1
- package/posts/29196/index.html +1 -1
- package/posts/38917/index.html +1 -1
- package/posts/38964/index.html +1 -1
- package/posts/42487/index.html +1 -1
- package/posts/42580/index.html +1 -1
- package/posts/45875/index.html +1 -1
- package/posts/46640/index.html +1 -1
- package/posts/48762/index.html +1 -1
- package/posts/50710/index.html +1 -1
- package/posts/52677/index.html +1 -1
- package/posts/53662/index.html +1 -1
- package/posts/54386/index.html +1 -1
- package/posts/54481/index.html +1 -1
- package/posts/54787/index.html +5 -1
- package/posts/56467/index.html +1 -1
- package/posts/57692/index.html +1 -1
- package/posts/58203/index.html +1 -1
- package/posts/61417/index.html +1 -1
- package/posts/61712/index.html +1 -0
- package/posts/646/index.html +1 -1
- package/posts/64856/index.html +1 -1
- package/posts/64935/index.html +1 -1
- package/search.xml +248 -335
- package/seas/index.html +1 -1
- package/sw.js +2 -1
- package/tags/Flash/347/233/270/345/205/263/index.html +1 -1
- package/tags/Steam/346/270/270/346/210/217/index.html +1 -1
- package/tags/Windows/350/275/257/344/273/266/index.html +1 -1
- package/tags/index.html +1 -1
- package/tags//344/270/252/344/272/272/345/260/217/350/256/260/index.html +1 -1
- package/tags//344/270/252/344/272/272/345/260/217/350/256/260/page/2/index.html +1 -1
- package/tags//345/205/266/345/256/203/346/270/270/346/210/217/index.html +1 -1
- package/tags//345/212/240/350/275/275/345/212/250/347/224/273/index.html +1 -1
- package/tags//346/202/254/346/265/256/345/256/240/347/211/251-/347/234/213/346/235/277/345/250/230/index.html +1 -1
- package/tags//346/255/214/346/233/262/346/224/266/351/233/206/index.html +1 -1
- package/tags//346/270/270/346/210/217/347/233/270/345/205/263/index.html +1 -1
- package/tags//347/253/231/347/202/271/345/272/225/351/203/250/351/255/224/346/224/271/index.html +1 -1
- package/tags//347/253/231/347/202/271/346/212/230/350/205/276/index.html +1 -1
- package/tags//347/253/231/347/202/271/346/212/230/350/205/276/page/2/index.html +1 -1
- package/tags//350/207/252/345/273/272/351/203/250/347/275/262/index.html +1 -1
- package/tags//351/241/265/351/235/242/351/255/224/346/224/271/index.html +1 -1
- package/tags//351/241/271/347/233/256/346/212/230/350/205/276/index.html +1 -1
- package/update/index.html +1 -1
- package/weichuncai/css/style.css +2 -1
- package/weichuncai/js/common.js +2 -1
- package/weichuncai/js/jquery.js +2 -1
- package/weichuncai/wcc-config.js +2 -1
- package/css/index.css +0 -1
- package/css/plugins/bootstrap.min.css +0 -6
- package/css/plugins/bootstrap.row.css +0 -1
- package/css/plugins/font-awesome.min.css +0 -1
- package/failure.ico +0 -0
- package/fonts/webfonts/fa-brands-400.woff2 +0 -0
- package/fonts/webfonts/fa-regular-400.woff2 +0 -0
- package/fonts/webfonts/fa-solid-900.woff2 +0 -0
- package/img/404.jpg +0 -0
- package/img/avatar.jpg +0 -0
- package/img/banner.png +0 -0
- package/img/block.jpg +0 -0
- package/img/favicon.svg +0 -39
- package/js/main.js +0 -1
- package/js/plugins/danmu.js +0 -1
- package/js/plugins/local_search.js +0 -1
- package/js/plugins/typing.js +0 -1
- package/serviceworker.js +0 -1
@@ -0,0 +1,2 @@
|
|
1
|
+
const RightMenus={defaultEvent:["copyText","copyLink","copyPaste","copyAll","copyCut","copyImg","printMode","readMode"],defaultGroup:["navigation","inputBox","seletctText","elementCheck","elementImage","articlePage"],messageRightMenu:volantis.GLOBAL_CONFIG.plugins.message.enable&&volantis.GLOBAL_CONFIG.plugins.message.rightmenu.enable,corsAnywhere:volantis.GLOBAL_CONFIG.plugins.rightmenus.options.corsAnywhere,urlRegx:/^((https|http)?:\/\/)+[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/,imgRegx:/\.(jpe?g|png|webp|svg|gif|jifi)(-|_|!|\?|\/)?.*$/,initialMenu:()=>{RightMenus.fun.init(),volantis.pjax.send((()=>{RightMenus.fun.hideMenu(),volantis.isReadModel&&RightMenus.fun.readMode()}))},readClipboard:async()=>{let e;switch((await navigator.permissions.query({name:"clipboard-read"})).state){case"granted":case"prompt":e=await navigator.clipboard.readText();break;default:window.clipboardRead=!1}return e},writeClipText:e=>navigator.clipboard.writeText(e).then((()=>Promise.resolve())).catch((e=>Promise.reject(e))),writeClipImg:async(e,t,n)=>{const i=new Image;i.crossOrigin="Anonymous",i.addEventListener("load",(()=>{let e=document.createElement("canvas"),o=e.getContext("2d");e.width=i.width,e.height=i.height,o.drawImage(i,0,0),e.toBlob((e=>{navigator.clipboard.write([new ClipboardItem({"image/png":e})]).then((e=>{t(e)})).catch((e=>{n(e)}))}),"image/png")}),!1),i.src=`${e}?(lll¬ω¬)~~`},insertAtCaret:(e,t)=>{const n=e.selectionStart,i=e.selectionEnd;if(document.selection)e.focus(),document.selection.createRange().text=t,e.focus();else if(n||"0"==n){var o=e.scrollTop;e.value=e.value.substring(0,n)+t+e.value.substring(i,e.value.length),e.focus(),e.selectionStart=n+t.length,e.selectionEnd=n+t.length,e.scrollTop=o}else e.value+=t,e.focus()}};RightMenus.fun=(()=>{const e=volantis.GLOBAL_CONFIG.plugins.rightmenus,t={},n=document.getElementById("rightmenu-wrapper"),i=document.getElementById("rightmenu-content"),o=document.querySelectorAll("#rightmenu-content li.menuLoad-Content"),a=document.querySelectorAll("#rightmenu-content li, #rightmenu-content hr, #menuMusic"),l=document.getElementById("read_bkg"),s=document.getElementById("menuMusic"),r=document.querySelector("#menuMusic .backward"),c=document.querySelector("#menuMusic .toggle"),d=document.querySelector("#menuMusic .forward");let u={mouseEvent:null,isInputBox:!1,selectText:"",inputValue:"",isLink:!1,linkUrl:"",isMediaLink:!1,mediaLinkUrl:"",isImage:!1,isArticle:!1,pathName:"",isReadClipboard:!0,isShowMusic:!1,statusCheck:!1};const m=Object.assign({},u);return t.initEvent=()=>{t.elementAppend(),t.contextmenu(),t.menuEvent()},t.elementAppend=()=>{l&&l.parentNode.removeChild(l);const e=document.createElement("div");e.className="common_read_bkg common_read_hide",e.id="read_bkg",window.document.body.appendChild(e)},t.menuPosition=e=>{try{let o=e.clientX,a=e.clientY,l=document.documentElement.clientWidth||document.body.clientWidth,s=document.documentElement.clientHeight||document.body.clientHeight;n.style.display="block",t.menuControl(e);let r=i.offsetWidth,c=i.offsetHeight,d=o+r>l?o-r+10:o,u=a+c>s?a-c+10:a;u=a+c>s&&u<c&&a<c?u+(s-c-u-10):u,n.style.left=`${d}px`,n.style.top=`${u}px`,volantis.GLOBAL_CONFIG.plugins.message.rightmenu.notice&&t.menuNotic()}catch(e){return console.error(e),t.hideMenu(),!0}return!1},t.menuControl=n=>{t.globalDataSet(n),s&&(s.style.display=u.isShowMusic?"block":"none"),o.forEach((t=>{t.style.display="none";const n=t.firstElementChild.nodeName,i=t.firstElementChild.getAttribute("data-group"),o=t.firstElementChild.getAttribute("data-event");if(u.statusCheck||u.isArticle)switch(i){case"inputBox":u.isInputBox&&(t.style.display="block","copyCut"!==o||u.selectText||(t.style.display="none"),"copyAll"!==o||u.inputValue||(t.style.display="none"),"copyPaste"!==o||u.isReadClipboard||(t.style.display="none"));break;case"seletctText":u.selectText&&(t.style.display="block");break;case"elementCheck":(u.isLink||u.isMediaLink)&&(t.style.display="block");break;case"elementImage":u.isImage&&(t.style.display="block");break;case"articlePage":u.isArticle&&(t.style.display="block");break;default:t.style.display="A"===n?u.isArticle&&!u.statusCheck&&e.options.articleShowLink?"block":"none":"block"}else("A"===n||RightMenus.defaultGroup.every((e=>i!==e)))&&(t.style.display="block")})),volantis.mouseEvent=n,volantis.rightmenu.method.handle.start();let i={item:null,hide:!0};a.forEach((e=>{if("HR"===e.nodeName){if(e.style.display="block",!i.item)return void(i.item=e);(i.hide||"hr"===i.item.nextElementSibling.nodeName)&&(i.item.style.display="none"),i.item=e,i.hide=!0}else"block"===e.style.display&&i.hide&&(i.hide=!1)})),i.item&&i.hide&&(i.item.style.display="none")},t.globalDataSet=t=>{u=Object.assign({},m),u.mouseEvent=t,u.selectText=window.getSelection().toString(),"input"!==t.target.tagName.toLowerCase()&&"textarea"!==t.target.tagName.toLowerCase()||(u.isInputBox=!0,u.inputValue=t.target.value),u.isInputBox&&!1===window.clipboardRead&&(u.isReadClipboard=!1),t.target.href&&RightMenus.urlRegx.test(t.target.href)&&(u.isLink=!0,u.linkUrl=t.target.href),t.target.currentSrc&&RightMenus.urlRegx.test(t.target.currentSrc)&&(u.isMediaLink=!0,u.mediaLinkUrl=t.target.currentSrc),u.isMediaLink&&RightMenus.imgRegx.test(u.mediaLinkUrl)&&(u.isImage=!0),document.querySelector("#post.article")&&(u.isArticle=!0,u.pathName=window.location.pathname),volantis.GLOBAL_CONFIG.plugins.aplayer?.enable&&"undefined"!=typeof RightMenuAplayer&&void 0!==RightMenuAplayer.APlayer.player&&(e.options.musicAlwaysShow||"play"===RightMenuAplayer.APlayer.status||"undefined"===RightMenuAplayer.APlayer.status)&&(u.isShowMusic=!0),(u.selectText||u.isInputBox||u.isLink||u.isMediaLink)&&(u.statusCheck=!0)},t.contextmenu=()=>{window.document.oncontextmenu=e=>e.ctrlKey||document.body.offsetWidth<=500?(t.hideMenu(),!0):t.menuPosition(e),n.oncontextmenu=e=>(e.stopPropagation(),e.preventDefault(),!1),window.removeEventListener("blur",t.hideMenu),window.addEventListener("blur",t.hideMenu),document.body.removeEventListener("click",t.hideMenu),document.body.addEventListener("click",t.hideMenu)},t.menuEvent=()=>{o.forEach((n=>{let i=n.firstElementChild.getAttribute("data-event");const o=n.firstElementChild.getAttribute("id"),a=n.firstElementChild.getAttribute("data-group");"A"!==n.firstElementChild.nodeName&&n.addEventListener("click",(()=>{try{RightMenus.defaultEvent.every((e=>i!==e))?"seletctText"===a?RightMenusFunction[o](u.selectText):"elementCheck"===a?RightMenusFunction[o](u.isLink?u.linkUrl:u.mediaLinkUrl):"elementImage"===a?RightMenusFunction[o](u.mediaLinkUrl):RightMenusFunction[o]():t[i]()}catch(t){"rightMenus"===volantis.GLOBAL_CONFIG.debug&&console.error({id:o,error:t,globalData:u,groupName:a,eventName:i}),RightMenus.messageRightMenu&&VolantisApp.message("错误提示",t,{icon:e.options.iconPrefix+" fa-exclamation-square red",time:"15000"})}}))})),d&&c&&d&&(r.onclick=e=>{e.preventDefault(),e.stopPropagation(),RightMenuAplayer.aplayerBackward()},c.onclick=e=>{e.preventDefault(),e.stopPropagation(),RightMenuAplayer.aplayerToggle()},d.onclick=e=>{e.preventDefault(),e.stopPropagation(),RightMenuAplayer.aplayerForward()})},t.hideMenu=()=>{n.style.display=null,n.style.left=null,n.style.top=null},t.menuNotic=()=>{const t="true"===localStorage.getItem("NoticeRightMenu");RightMenus.messageRightMenu&&!t&&VolantisApp.message("右键菜单","唤醒原系统菜单请使用:<kbd>Ctrl</kbd> + <kbd>右键</kbd>",{icon:e.options.iconPrefix+" fa-exclamation-square red",displayMode:1,time:9e3},(()=>{localStorage.setItem("NoticeRightMenu","true")}))},t.copyText=()=>{VolantisApp.utilWriteClipText(u.selectText).then((()=>{RightMenus.messageRightMenu&&VolantisApp.messageCopyright()})).catch((t=>{RightMenus.messageRightMenu&&VolantisApp.message("系统提示",t,{icon:e.options.iconPrefix+" fa-exclamation-square red",displayMode:1,time:9e3})}))},t.copyLink=()=>{VolantisApp.utilWriteClipText(u.linkUrl||u.mediaLinkUrl).then((()=>{RightMenus.messageRightMenu&&VolantisApp.messageCopyright()})).catch((t=>{RightMenus.messageRightMenu&&VolantisApp.message("系统提示",t,{icon:e.options.iconPrefix+" fa-exclamation-square red",displayMode:1,time:9e3})}))},t.copyAll=()=>{u.mouseEvent.target.select()},t.copyPaste=async()=>{const e=await RightMenus.readClipboard()||"";RightMenus.messageRightMenu&&!1===window.clipboardRead?VolantisApp.message("系统提示","未授予剪切板读取权限!"):RightMenus.messageRightMenu&&""===e?VolantisApp.message("系统提示","仅支持复制文本内容!"):RightMenus.insertAtCaret(u.mouseEvent.target,e)},t.copyCut=()=>{const e=u.mouseEvent.target.selectionStart,n=u.mouseEvent.target.selectionEnd,i=u.inputValue;t.copyText(u.selectText),u.mouseEvent.target.value=i.substring(0,e)+i.substring(n,i.length),u.mouseEvent.target.selectionStart=e,u.mouseEvent.target.selectionEnd=e,u.mouseEvent.target.focus()},t.copyImg=()=>{volantis.GLOBAL_CONFIG.plugins.message.rightmenu.notice&&VolantisApp.message("系统提示","复制中,请等待。",{icon:e.options.iconPrefix+" fa-images"}),RightMenus.writeClipImg(u.mediaLinkUrl,(t=>{RightMenus.messageRightMenu&&(VolantisApp.hideMessage(),VolantisApp.message("系统提示","图片复制成功!",{icon:e.options.iconPrefix+" fa-images"}))}),(t=>{console.error(t),RightMenus.messageRightMenu&&(VolantisApp.hideMessage(),VolantisApp.message("系统提示","复制失败:"+t,{icon:e.options.iconPrefix+" fa-exclamation-square red",time:9e3}))}))},t.printMode=()=>{if(window.location.pathname===u.pathName)if(RightMenus.messageRightMenu){const e='是否打印当前页面?<br><em style="font-size: 80%">建议打印时勾选背景图形</em><br>';VolantisApp.question("",e,{time:9e3},(()=>{t.printHtml()}))}else t.printHtml()},t.printHtml=()=>{volantis.isReadModel&&t.readMode(),DOMController.setAttribute("details","open","true"),DOMController.removeList([".cus-article-bkg",".iziToast-overlay",".iziToast-wrapper",".prev-next","footer","#l_header","#l_cover","#l_side","#comments","#s-top","#BKG","#rightmenu-wrapper",".nav-tabs",".parallax-mirror",".new-meta-item.share",".new-meta-box","button.btn-copy","iframe"]),DOMController.setStyleList([["body","backgroundColor","unset"],["#l_main, .copyright.license","width","100%"],["#post","boxShadow","none"],["#post","background","none"],["#post","padding","0"],["h1","textAlign","center"],["h1","fontWeight","600"],["h1","fontSize","2rem"],["h1","marginBottom","20px"],[".tab-pane","display","block"],[".tab-content","borderTop","none"],[".highlight>table pre","whiteSpace","pre-wrap"],[".highlight>table pre","wordBreak","break-all"],[".fancybox img","height","auto"],[".fancybox img","weight","auto"],[".copyright.license","margin","0"],[".copyright.license","padding","1.25em 20px"],["figure.highlight, .copyright.license","display","inline-block"]]),setTimeout((()=>{window.print(),document.body.innerHTML="",window.location.reload()}),50)},t.readMode=()=>{"function"==typeof ScrollReveal&&ScrollReveal().clean("#comments"),DOMController.setStyle("#l_header","opacity",0),DOMController.fadeToggleList([document.querySelector("#l_cover"),document.querySelector("footer"),document.querySelector("#s-top"),document.querySelector(".article-meta#bottom"),document.querySelector(".prev-next"),document.querySelector("#l_side"),document.querySelector("#comments")]),DOMController.toggleClassList([[document.querySelector("#l_main"),"common_read"],[document.querySelector("#l_main"),"common_read_main"],[document.querySelector("#l_body"),"common_read"],[document.querySelector("#safearea"),"common_read"],[document.querySelector("#pjax-container"),"common_read"],[document.querySelector("#read_bkg"),"common_read_hide"],[document.querySelector("h1"),"common_read_h1"],[document.querySelector("#post"),"post_read"],[document.querySelector("#l_cover"),"read_cover"],[document.querySelector(".widget.toc-wrapper"),"post_read"]]),DOMController.setStyle(".copyright.license","margin","15px 0"),volantis.isReadModel=void 0===volantis.isReadModel||!volantis.isReadModel,volantis.isReadModel?(RightMenus.messageRightMenu&&VolantisApp.message("系统提示","阅读模式已开启,您可以点击屏幕空白处退出。",{backgroundColor:"var(--color-read-post)",icon:e.options.iconPrefix+" fa-book-reader",displayMode:1,time:5e3}),document.querySelector("#l_body").removeEventListener("click",t.readMode),document.querySelector("#l_body").addEventListener("click",(e=>{DOMController.hasClass(e.target,"common_read")&&t.readMode()}))):(document.querySelector("#l_body").removeEventListener("click",t.readMode),document.querySelector("#post").removeEventListener("click",t.readMode),DOMController.setStyle(".prev-next","display","flex"),DOMController.setStyle(".copyright.license","margin","15px -40px"),DOMController.setStyle("#l_header","opacity","unset"))},{init:t.initEvent,hideMenu:t.hideMenu,readMode:t.readMode}})(),Object.freeze(RightMenus),volantis.requestAnimationFrame((()=>{"loading"!==document.readyState?RightMenus.initialMenu():document.addEventListener("DOMContentLoaded",(function(){RightMenus.initialMenu()}))}));
|
2
|
+
//# sourceMappingURL=../../maps/js/plugins/rightMenus.js.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
const ContributorsJS={requestAPI:(t,r,e)=>{let n=5;!function o(){return new Promise(((a,s)=>{let l=0,i=setTimeout((()=>{0===l&&(l=2,i=null,s("请求超时"),0==n&&e())}),5e3);fetch(t).then((function(t){if(2!==l&&(clearTimeout(i),a(t),i=null,l=1),t.ok)return t.json();throw new Error("Network response was not ok.")})).then((function(t){n=0,r(t)})).catch((function(t){n>0?(n-=1,setTimeout((()=>{o()}),5e3)):e()}))}))}()},layout:t=>{const r=t.el;ContributorsJS.requestAPI(t.api,(function(e){r.querySelector(".loading-wrap").remove();var n="";(e||[]).forEach(((r,e)=>{var o='<div class="user-card">';o+='<a class="card-link" target="_blank" rel="external noopener noreferrer"',o+=' href="'+r.html_url+'">',o+='<img alt="'+r.login+'" src="'+(r.avatar_url||t.avatar)+'" onerror="errorImgAvatar(this)">',o+='<div class="name"><span>'+r.login+"</span></div>",o+="</a>",n+=o+="</div>"})),r.querySelector(".group-body").innerHTML=n}),(function(){try{r.querySelector(".loading-wrap svg").remove(),r.querySelector(".loading-wrap p").innerText("加载失败,请稍后重试。")}catch(t){}}))},start:()=>{const t=document.getElementsByClassName("contributorsjs-wrap");for(var r=0;r<t.length;r++){const n=t[r],o=n.getAttribute("api");if(null!=o){var e=new Object;e.el=n,e.api=o,e.class=n.getAttribute("class"),e.avatar=volantis.GLOBAL_CONFIG.default.avatar,ContributorsJS.layout(e)}}}};ContributorsJS.start(),document.addEventListener("pjax:complete",(function(){ContributorsJS.start()}));
|
2
|
+
//# sourceMappingURL=../../../maps/js/plugins/tags/contributors.js.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
const FriendsJS={requestAPI:(e,t,r)=>{let n=5;!function a(){return new Promise(((o,s)=>{let i=0,l=setTimeout((()=>{0===i&&(i=2,l=null,s("请求超时"),0==n&&r())}),5e3);fetch(e).then((function(e){if(2!==i&&(clearTimeout(l),o(e),l=null,i=1),e.ok)return e.json();throw new Error("Network response was not ok.")})).then((function(e){n=0,t(e)})).catch((function(e){n>0?(n-=1,setTimeout((()=>{a()}),5e3)):r()}))}))}()},layout:e=>{const t=e.el;FriendsJS.requestAPI(e.api,(function(r){t.querySelector(".loading-wrap").remove();const n=r.content;var a="";n.forEach(((t,r)=>{var n='<div class="user-card">';n+='<a class="card-link" target="_blank" rel="external noopener noreferrer"',n+=' href="'+t.url+'">',n+='<img alt="'+t.title+'" src="'+(t.avatar||e.avatar)+'" onerror="errorImgAvatar(this)">',n+='<div class="name"><span>'+t.title+"</span></div>",n+="</a>",a+=n+="</div>"})),t.querySelector(".group-body").innerHTML=a}),(function(){try{t.querySelector(".loading-wrap svg").remove(),t.querySelector(".loading-wrap p").innerText("加载失败,请稍后重试。")}catch(e){}}))},start:()=>{const e=document.getElementsByClassName("friendsjs-wrap");for(var t=0;t<e.length;t++){const n=e[t],a=n.getAttribute("api");if(null!=a){var r=new Object;r.el=n,r.api=a,r.class=n.getAttribute("class"),r.avatar=volantis.GLOBAL_CONFIG.default.avatar,FriendsJS.layout(r)}}}};FriendsJS.start(),document.addEventListener("pjax:complete",(function(){FriendsJS.start()}));
|
2
|
+
//# sourceMappingURL=../../../maps/js/plugins/tags/friends.js.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
const SitesJS={requestAPI:(e,t,r)=>{let n=5;!function a(){return new Promise(((o,s)=>{let i=0,l=setTimeout((()=>{0===i&&(i=2,l=null,s("请求超时"),0==n&&r())}),5e3);fetch(e).then((function(e){if(2!==i&&(clearTimeout(l),o(e),l=null,i=1),e.ok)return e.json();throw new Error("Network response was not ok.")})).then((function(e){n=0,t(e)})).catch((function(e){n>0?(n-=1,setTimeout((()=>{a()}),5e3)):r()}))}))}()},layout:e=>{const t=e.el;SitesJS.requestAPI(e.api,(function(r){t.querySelector(".loading-wrap").remove();const n=r.content;var a="";n.forEach(((t,r)=>{var n='<div class="site-card">';n+='<a class="card-link" target="_blank" rel="external noopener noreferrer" href="'+t.url+'">',n+='<img alt="'+t.title+'" src="'+(t.screenshot||"https://image.thum.io/get/width/1024/crop/768/"+t.url)+'" onerror="errorImgCover(this)"/>',n+='<div class="info">',n+='<img alt="'+t.title+'" src="'+(t.avatar||e.avatar)+'" onerror="errorImgAvatar(this)"/>',n+='<span class="title">'+t.title+"</span>",n+='<span class="desc">'+(t.description||t.url)+"</span>",n+="</div>",n+="</a>",a+=n+="</div>"})),t.querySelector(".group-body").innerHTML=a}),(function(){try{t.querySelector(".loading-wrap svg").remove(),t.querySelector(".loading-wrap p").innerText("加载失败,请稍后重试。")}catch(e){}}))},start:e=>{const t=document.getElementsByClassName("sitesjs-wrap");for(var r=0;r<t.length;r++){const n=t[r],a=n.getAttribute("api");if(null!=a)(e=new Object).class=n.getAttribute("class"),e.el=n,e.api=a,e.avatar=volantis.GLOBAL_CONFIG.default.link,e.screenshot=volantis.GLOBAL_CONFIG.default.cover,SitesJS.layout(e)}}};SitesJS.start(),document.addEventListener("pjax:complete",(function(){SitesJS.start()}));
|
2
|
+
//# sourceMappingURL=../../../maps/js/plugins/tags/sites.js.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
let SearchService=(()=>{const e={};let t,a,n;return e.queryText=null,e.template='<div id="u-search">\n <div class="modal">\n <header class="modal-header" class="clearfix">\n <button type="submit" id="u-search-modal-btn-submit" class="u-search-btn-submit">\n <span class="fa-solid fa-search"></span>\n </button>\n <div id="algolia-search-input"></div>\n <a id="u-search-btn-close" class="btn-close"> <span class="fa-solid fa-times"></span> </a>\n </header>\n <main class="modal-body">\n <div id="algolia-search-results">\n <div id="algolia-hits">\n <div class="search-icon"><i class="fa-sharp fa-solid fa-telescope"></i></i></div>\n </div>\n </div>\n </main>\n <footer>\n <div id="algolia-pagination"></div>\n <hr>\n <div id="algolia-info">\n <div class="algolia-stats"></div>\n <div class="algolia-poweredBy"></div>\n </div>\n </footer>\n </div>\n <div id="modal-overlay" class="modal-overlay"></div>\n </div>\n ',e.init=()=>{let t=document.createElement("div");t.innerHTML+=e.template,document.body.append(t),a=volantis.GLOBAL_CONFIG.search,a.appId&&a.apiKey&&a.indexName?(e.event(),e.setAlgolia()):(document.querySelector("#u-search main.modal-body").innerHTML="Algolia setting is invalid!",document.querySelector("#u-search main.modal-body").style.textAlign="center",document.querySelector("#u-search .modal").style.maxHeight="128px")},e.event=()=>{document.querySelector("#u-search-btn-close").addEventListener("click",e.close,!1),document.querySelector("#modal-overlay").addEventListener("click",e.close,!1),document.querySelectorAll(".u-search-form").forEach((t=>{t.addEventListener("submit",e.onSubmit,!1)})),document.querySelector("#algolia-search-input").addEventListener("input",(t=>{let a=t.target.querySelector(".ais-SearchBox-input");e.queryText=a?a.value:t.target.value}))},e.setAlgolia=()=>{t=instantsearch({indexName:a.indexName,searchClient:algoliasearch(a.appId,a.apiKey),searchFunction(e){e.state.query&&e.search()}});const i=instantsearch.widgets.configure({hitsPerPage:a.hitsPerPage}),s=instantsearch.widgets.searchBox({container:"#algolia-search-input",autofocus:!0,showReset:!1,showSubmit:!1,showLoadingIndicator:!1,searchAsYouType:a.searchAsYouType,placeholder:a.placeholder,templates:{input:"algolia-input"},queryHook(e,t){clearTimeout(n),n=setTimeout((()=>t(e)),500)}}),l=instantsearch.widgets.hits({container:"#algolia-hits",templates:{item(t){const a=e.queryText?`?keyword=${e.queryText}`:"",n=t.permalink?t.permalink:`${volantis.GLOBAL_CONFIG.root}${t.path}`,i=t._highlightResult,s=i.contentStripTruncate?e.cutContent(i.contentStripTruncate.value):i.contentStrip?e.cutContent(i.contentStrip.value):i.content?e.cutContent(i.content.value):"";return`\n <a href="${n}${a}" class="result">\n <span class="title">${i.title.value||"no-title"}</span>\n <span class="digest">${s}</span>\n </a>`},empty:function(e){return`<div id="resule-hits-empty"><i class="fa-solid fa-box-open"></i><p>${volantis.GLOBAL_CONFIG.languages.search.hits_empty.replace(/\$\{query}/,e.query)}</p></div>`}}}),r=instantsearch.widgets.stats({container:"#algolia-info > .algolia-stats",templates:{text:function(e){return`${volantis.GLOBAL_CONFIG.languages.search.hits_stats.replace(/\$\{hits}/,e.nbHits).replace(/\$\{time}/,e.processingTimeMS)}`}}}),o=instantsearch.widgets.poweredBy({container:"#algolia-info > .algolia-poweredBy",theme:"dark"===volantis.dark?.mode?"dark":"light"}),c=instantsearch.widgets.pagination({container:"#algolia-pagination",totalPages:5,templates:{first:'<i class="fas fa-angle-double-left"></i>',last:'<i class="fas fa-angle-double-right"></i>',previous:'<i class="fas fa-angle-left"></i>',next:'<i class="fas fa-angle-right"></i>'}});t.addWidgets([i,s,l,r,o,c]),t.start(),window.pjax&&t.on("render",(()=>{window.pjax.refresh(document.getElementById("algolia-hits"))}))},e.setQueryText=n=>{e.queryText=n,t||e.init(),t?.setUiState({[a.indexName]:{query:n}})},e.search=()=>{document.querySelector("#u-search").style.display="block",document.addEventListener("keydown",(t=>{"Escape"===t.code&&e.close()}),{once:!0})},e.onSubmit=t=>{t.preventDefault();let a=t.target.querySelector(".u-search-input");e.setQueryText(a?.value?a.value:t.target.value),e.search()},e.cutContent=e=>{if(""===e)return"";const t=e.indexOf("<mark>");let a=t-30,n=t+120,i="",s="";return a<=0?(a=0,n=140):i="...",n>e.length?n=e.length:s="...",i+e.substring(a,n)+s},e.close=()=>{document.querySelector("#u-search").style.display="none"},{init:e.init,setQueryText:t=>{e.setQueryText(t)},search:e.search,close:e.close}})();Object.freeze(SearchService),SearchService.init(),document.addEventListener("pjax:send",SearchService.close);
|
2
|
+
//# sourceMappingURL=../../maps/js/search/algolia.js.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
let SearchService=(()=>{const e={queryText:null,data:null,template:'<div id="u-search">\n <div class="modal">\n <header class="modal-header" class="clearfix">\n <form id="u-search-modal-form" class="u-search-form" name="uSearchModalForm">\n <input type="text" id="u-search-modal-input" class="u-search-input" />\n <button type="submit" id="u-search-modal-btn-submit" class="u-search-btn-submit">\n <span class="fa-solid fa-search"></span>\n </button>\n </form>\n <a id="u-search-btn-close" class="btn-close"> <span class="fa-solid fa-times"></span> </a>\n </header>\n <main class="modal-body">\n <ul class="modal-results"></ul>\n </main>\n </div>\n <div id="modal-overlay" class="modal-overlay"></div>\n</div>\n',init:()=>{let t=document.createElement("div");t.innerHTML+=e.template,document.body.append(t),document.querySelectorAll(".u-search-form").forEach((t=>{t.addEventListener("submit",e.onSubmit,!1)})),document.querySelector("#u-search-modal-input").addEventListener("input",e.onSubmit),document.querySelector("#u-search-btn-close").addEventListener("click",e.close,!1),document.querySelector("#modal-overlay").addEventListener("click",e.close,!1)},onSubmit:t=>{t.preventDefault();let a=t.target.querySelector(".u-search-input");e.queryText=a?a.value:t.target.value,e.queryText&&e.search()},search:async()=>{document.querySelectorAll(".u-search-input").forEach((t=>{t.value=e.queryText})),document.querySelector("#u-search").style.display="block",e.data||(e.data=await e.fetchData());let t="";t+=e.buildResultList(e.data.pages),t+=e.buildResultList(e.data.posts),""===t&&(t=`<div id="resule-hits-empty"><i class="fa-solid fa-box-open"></i><p>${volantis.GLOBAL_CONFIG.languages.search.hits_empty.replace(/\$\{query}/,e.queryText)}</p></div>`),document.querySelector("#u-search .modal-results").innerHTML=t,window.pjax&&pjax.refresh(document.querySelector("#u-search")),document.addEventListener("keydown",(function t(a){"Escape"===a.code&&(e.close(),document.removeEventListener("keydown",t))}))},close:()=>{document.querySelector("#u-search").style.display="none"},fetchData:()=>fetch(volantis.GLOBAL_CONFIG.search.dataPath).then((e=>e.text())).then((e=>JSON.parse(e))),buildResultList:t=>{let a="";return t.forEach((t=>{t.text&&(t.text=t.text.replace(/12345\d*/g,"")),!t.title&&t.text&&(t.title=t.text.trim().slice(0,15)),e.contentSearch(t)&&(a+=e.buildResult(t.permalink,t.title,t.digest))})),a},contentSearch:t=>{let a=t.title.trim().toLowerCase(),s=t.text.trim().toLowerCase(),r=e.queryText.trim().toLowerCase().split(/[-\s]+/),n=!1,l=-1,i=-1,c=-1;return a&&s&&r.forEach(((e,u)=>{if(l=a.indexOf(e),i=s.indexOf(e),l<0&&i<0?n=!1:(n=!0,i<0&&(i=0),0===u&&(c=i)),n){s=t.text.trim();let e=0,a=0;if(c>=0){e=Math.max(c-40,0),a=0===e?Math.min(200,s.length):Math.min(c+120,s.length);let n=s.substring(e,a);r.forEach((function(e){let t=new RegExp(e,"gi");n=n.replace(t,"<b mark>"+e+"</b>")})),t.digest=n+"......"}else a=Math.min(200,s.length),t.digest=s.trim().substring(0,a)}})),n},buildResult:(t,a,s)=>{let r="";return r+="<li>",r+="<a class='result' href='"+e.getUrlRelativePath(t)+"?keyword="+e.queryText+"'>",r+="<span class='title'>"+a+"</span>",""!==s&&(r+="<span class='digest'>"+s+"</span>"),r+="</a>",r+="</li>",r},getUrlRelativePath:function(e){let t=e.split("//"),a=t[1].indexOf("/"),s=t[1].substring(a);return-1!=s.indexOf("?")&&(s=s.split("?")[0]),s}};return{init:()=>{e.init()},setQueryText:t=>{e.queryText=t},search:()=>{e.search()}}})();Object.freeze(SearchService),SearchService.init(),document.addEventListener("pjax:success",SearchService.init),document.addEventListener("pjax:send",(function(){document.querySelector("#u-search").style.display="none"}));
|
2
|
+
//# sourceMappingURL=../../maps/js/search/hexo.js.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
let SearchService=(()=>{const e={};let t,a,i;return e.queryText=null,e.template='<div id="u-search">\n <div class="modal">\n <header class="modal-header" class="clearfix">\n <button type="submit" id="u-search-modal-btn-submit" class="u-search-btn-submit">\n <span class="fa-solid fa-search"></span>\n </button>\n <div id="meilisearch-search-input"></div>\n <a id="u-search-btn-close" class="btn-close"> <span class="fa-solid fa-times"></span> </a>\n </header>\n <main class="modal-body">\n <div id="meilisearch-search-results">\n <div id="meilisearch-hits">\n <div class="search-icon"><i class="fa-sharp fa-solid fa-telescope"></i></i></div>\n </div>\n </div>\n </main>\n <footer>\n <hr>\n <div id="meilisearch-info">\n <div class="meilisearch-stats"></div>\n <div class="meilisearch-poweredBy">\n <a href="https://www.meilisearch.com" titile="meilisearch" target="_blank">\n <svg width="97" height="20" viewBox="0 0 537 83" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M49.8729 49.6398C49.8729 41.9727 53.5489 37.4565 60.5858 37.4565C67.2026 37.4565 69.4082 42.1827 69.4082 48.2744V80.9383H84.3222V46.5939C84.3222 33.7805 77.6004 24.643 64.3668 24.643C56.4897 24.643 50.9232 27.0586 46.0919 32.4151C42.941 27.5838 37.5846 24.643 30.1275 24.643C22.2504 24.643 16.7889 27.8989 14.2682 32.6251V25.9033H0.509521V80.9383H15.4236V49.3247C15.4236 41.9727 19.2046 37.4565 26.1365 37.4565C32.7532 37.4565 34.9588 42.1827 34.9588 48.2744V80.9383H49.8729V49.6398Z" fill="black"/><path d="M145.538 57.727C145.538 57.727 145.748 55.7314 145.748 53.3158C145.748 37.0363 134.72 24.643 118.441 24.643C102.161 24.643 90.8184 37.0363 90.8184 53.3158C90.8184 70.2253 102.266 82.1986 118.546 82.1986C131.254 82.1986 141.337 74.5315 144.593 63.3985H129.574C127.788 67.3896 123.482 69.3851 118.966 69.3851C111.509 69.3851 106.678 65.289 105.627 57.727H145.538ZM118.336 36.6162C125.268 36.6162 129.784 40.8174 130.834 47.014H105.837C107.098 40.7123 111.509 36.6162 118.336 36.6162Z" fill="black"/><path d="M147.947 38.7168H154.564V80.9383H169.478V25.9033H147.947V38.7168ZM162.021 18.7614C167.272 18.7614 171.054 15.0854 171.054 9.83396C171.054 4.58254 167.272 0.801514 162.021 0.801514C156.77 0.801514 152.989 4.58254 152.989 9.83396C152.989 15.0854 156.77 18.7614 162.021 18.7614Z" fill="black"/><path d="M200.361 68.1248C199.94 68.1248 199.31 68.2298 198.365 68.2298C195.004 68.2298 194.584 66.6544 194.584 64.3438V2.16688H179.67V65.394C179.67 76.317 183.871 81.1483 195.739 81.1483C197.735 81.1483 199.625 80.9382 200.361 80.8332V68.1248Z" fill="black"/><path d="M202.057 38.7168H208.674V80.9383H223.588V25.9033H202.057V38.7168ZM216.131 18.7614C221.383 18.7614 225.164 15.0854 225.164 9.83396C225.164 4.58254 221.383 0.801514 216.131 0.801514C210.88 0.801514 207.099 4.58254 207.099 9.83396C207.099 15.0854 210.88 18.7614 216.131 18.7614Z" fill="black"/><path d="M253.531 81.5175C268.025 81.5175 274.852 73.8504 274.852 65.7632C274.852 43.2871 241.768 55.7855 241.768 40.9765C241.768 36.1452 245.864 32.0491 254.161 32.0491C262.669 32.0491 266.66 36.6703 267.29 42.4469H274.747C274.117 35.1999 269.18 25.5373 254.371 25.5373C241.663 25.5373 234.521 33.0994 234.521 41.2916C234.521 63.2425 267.605 50.6391 267.605 65.9733C267.605 71.3297 262.564 75.0057 253.531 75.0057C244.289 75.0057 239.667 70.3845 239.142 63.5576H231.58C232.21 72.9051 238.092 81.5175 253.531 81.5175Z" fill="black"/><path d="M334.078 55.6805C334.078 55.6805 334.183 54 334.183 52.8447C334.183 37.7206 324.415 25.5373 308.451 25.5373C292.382 25.5373 282.194 38.6659 282.194 53.4749C282.194 68.4939 291.647 81.5175 308.556 81.5175C321.265 81.5175 330.087 73.7454 333.238 63.5576H325.466C323.155 70.0694 316.853 74.7956 308.661 74.7956C297.423 74.7956 290.386 66.4984 289.651 55.6805H334.078ZM308.451 32.2592C318.954 32.2592 325.781 39.2961 326.726 49.5888H289.861C291.121 39.7162 298.053 32.2592 308.451 32.2592Z" fill="black"/><path d="M380.477 54.8402V59.8816C380.477 69.0191 373.86 75.3208 361.152 75.3208C353.274 75.3208 348.968 72.0649 348.968 65.028C348.968 61.457 350.649 58.7263 353.274 57.2559C356.005 55.7855 359.681 54.8402 380.477 54.8402ZM360.311 81.5175C369.554 81.5175 377.011 78.5767 380.792 72.485V80.2571H387.934V45.2827C387.934 33.4145 381.107 25.5373 365.668 25.5373C350.859 25.5373 344.347 32.9944 342.982 42.5519H350.229C351.699 34.9899 357.476 31.9441 365.353 31.9441C375.435 31.9441 380.477 36.1452 380.477 45.1776V48.6436C363.567 48.6436 356.53 48.9587 351.279 51.0592C345.187 53.4749 341.616 58.8313 341.616 65.2381C341.616 74.5856 347.603 81.5175 360.311 81.5175Z" fill="black"/><path d="M428.703 26.3776C428.703 26.3776 427.443 26.2725 426.917 26.2725C417.045 26.2725 411.793 31.4189 409.798 35.0949V26.7977H402.656V80.2571H410.113V49.9039C410.113 38.7709 416.94 33.3094 426.077 33.3094C427.443 33.3094 428.703 33.4145 428.703 33.4145V26.3776Z" fill="black"/><path d="M429.976 53.5799C429.976 68.1789 440.059 81.5175 456.338 81.5175C470.832 81.5175 479.235 71.8548 481.335 61.247H473.773C471.568 69.5442 465.476 74.7956 456.338 74.7956C445.1 74.7956 437.538 65.8682 437.538 53.5799C437.538 41.1866 445.1 32.2592 456.338 32.2592C465.476 32.2592 471.568 37.5106 473.773 45.8078H481.335C479.235 35.1999 470.832 25.5373 456.338 25.5373C440.059 25.5373 429.976 38.8759 429.976 53.5799Z" fill="black"/><path d="M498.891 1.48584H491.434V80.2571H498.891V48.6436C498.891 37.7206 505.927 32.0491 514.96 32.0491C524.517 32.0491 529.034 37.9307 529.034 47.5933V80.2571H536.491V46.1229C536.491 34.2547 529.454 25.5373 516.22 25.5373C506.243 25.5373 500.781 30.9988 498.891 34.2547V1.48584Z" fill="black"/></svg>\n </a>\n </div>\n </div>\n </footer>\n </div>\n <div id="modal-overlay" class="modal-overlay"></div>\n </div>\n ',e.init=()=>{let t=document.createElement("div");t.innerHTML+=e.template,document.body.append(t),a=volantis.GLOBAL_CONFIG.search,a.appId&&a.apiKey&&a.indexName?(e.event(),e.setAlgolia()):(document.querySelector("#u-search main.modal-body").innerHTML="Algolia setting is invalid!",document.querySelector("#u-search main.modal-body").style.textAlign="center",document.querySelector("#u-search .modal").style.maxHeight="128px")},e.event=()=>{document.querySelector("#u-search-btn-close").addEventListener("click",e.close,!1),document.querySelector("#modal-overlay").addEventListener("click",e.close,!1),document.querySelectorAll(".u-search-form").forEach((t=>{t.addEventListener("submit",e.onSubmit,!1)})),document.querySelector("#meilisearch-search-input").addEventListener("input",(t=>{let a=t.target.querySelector(".ais-SearchBox-input");e.queryText=a?a.value:t.target.value}))},e.setAlgolia=()=>{t=instantsearch({indexName:a.indexName,searchClient:instantMeiliSearch(a.appId,a.apiKey),searchFunction(e){e.state.query&&e.search()}});instantsearch.widgets.configure({hitsPerPage:a.hitsPerPage});const s=instantsearch.widgets.searchBox({container:"#meilisearch-search-input",autofocus:!0,showReset:!1,showSubmit:!1,showLoadingIndicator:!1,searchAsYouType:a.searchAsYouType,placeholder:a.placeholder,templates:{input:"meilisearch-input"},queryHook(e,t){clearTimeout(i),i=setTimeout((()=>t(e)),500)}}),n=instantsearch.widgets.hits({container:"#meilisearch-hits",templates:{item(t){const a=e.queryText?`?keyword=${e.queryText}`:"",i=t.permalink?t.permalink:`${volantis.GLOBAL_CONFIG.root}${t.path}`,s=t._highlightResult,n=e.cutContent(s.text.value);return`\n <a href="${i}${a}" class="result">\n <span class="title">${s.title.value||"no-title"}</span>\n <span class="digest">${n}</span>\n </a>`},empty:function(e){return`<div id="resule-hits-empty"><i class="fa-solid fa-box-open"></i><p>${volantis.GLOBAL_CONFIG.languages.search.hits_empty.replace(/\$\{query}/,e.query)}</p></div>`}}}),l=instantsearch.widgets.stats({container:"#meilisearch-info > .meilisearch-stats",templates:{text:function(e){return`${volantis.GLOBAL_CONFIG.languages.search.hits_stats.replace(/\$\{hits}/,e.nbHits).replace(/\$\{time}/,e.processingTimeMS)}`}}});t.addWidgets([s,n,l]),t.start(),window.pjax&&t.on("render",(()=>{window.pjax.refresh(document.getElementById("meilisearch-hits"))}))},e.setQueryText=i=>{e.queryText=i,t||e.init(),t?.setUiState({[a.indexName]:{query:i}})},e.search=()=>{document.querySelector("#u-search").style.display="block",document.addEventListener("keydown",(t=>{"Escape"===t.code&&e.close()}),{once:!0})},e.onSubmit=t=>{t.preventDefault();let a=t.target.querySelector(".u-search-input");e.setQueryText(a?.value?a.value:t.target.value),e.search()},e.cutContent=e=>{if(""===e)return"";const t=e.indexOf("<mark>");let a=t-30,i=t+120,s="",n="";return a<=0?(a=0,i=140):s="...",i>e.length?i=e.length:n="...",s+e.substring(a,i)+n},e.close=()=>{document.querySelector("#u-search").style.display="none"},{init:e.init,setQueryText:t=>{e.setQueryText(t)},search:e.search,close:e.close}})();Object.freeze(SearchService),SearchService.init(),document.addEventListener("pjax:send",SearchService.close);
|
2
|
+
//# sourceMappingURL=../../maps/js/search/meilisearch.js.map
|
package/js/txmap.js
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
function getDistance(e,a,s,c){const{sin:r,cos:t,asin:o,PI:i,hypot:n}=Math;let b=(e,a)=>(e*=i/180,{x:t(a*=i/180)*t(e),y:t(a)*r(e),z:r(a)}),k=b(e,a),p=b(s,c),l=2*o(n(k.x-p.x,k.y-p.y,k.z-p.z)/2)*6371;return Math.round(l)}function showWelcome(){let e,a,s,c=getDistance(114.21416,22.576264,ipLocation.result.location.lng,ipLocation.result.location.lat),r=ipLocation.result.ad_info.nation;switch(ipLocation.result.ad_info.nation){case"日本":a="よろしく,一起去看樱花吗";break;case"美国":a="Let us live in peace!";break;case"英国":a="想同你一起夜乘伦敦眼";break;case"俄罗斯":a="干了这瓶伏特加!";break;case"法国":a="C'est La Vie";break;case"德国":a="Die Zeit verging im Fluge.";break;case"澳大利亚":a="一起去大堡礁吧!";break;case"加拿大":a="拾起一片枫叶赠予你";break;case"中国":switch(r=ipLocation.result.ad_info.province+" "+ipLocation.result.ad_info.city+" "+ipLocation.result.ad_info.district,e=ipLocation.result.ip,ipLocation.result.ad_info.province){case"北京市":a="北——京——欢迎你~~~";break;case"天津市":a="讲段相声吧";break;case"河北省":a="山势巍巍成壁垒,天下雄关铁马金戈由此向,无限江山";break;case"山西省":a="展开坐具长三尺,已占山河五百余";break;case"内蒙古自治区":a="天苍苍,野茫茫,风吹草低见牛羊";break;case"辽宁省":a="我想吃烤鸡架!";break;case"吉林省":a="状元阁就是东北烧烤之王";break;case"黑龙江省":a="很喜欢哈尔滨大剧院";break;case"上海市":a="众所周知,中国只有两个城市";break;case"江苏省":switch(ipLocation.result.ad_info.city){case"南京市":a="这是我挺想去的城市啦";break;case"苏州市":a="上有天堂,下有苏杭";break;default:a="散装是必须要散装的"}break;case"浙江省":a="东风渐绿西湖柳,雁已还人未南归";break;case"河南省":switch(ipLocation.result.ad_info.city){case"郑州市":a="豫州之域,天地之中";break;case"南阳市":a="臣本布衣,躬耕于南阳此南阳非彼南阳!";break;case"驻马店市":a="峰峰有奇石,石石挟仙气嵖岈山的花很美哦!";break;case"开封市":a="刚正不阿包青天";break;case"洛阳市":a="洛阳牡丹甲天下";break;default:a="可否带我品尝河南烩面啦?"}break;case"安徽省":a="蚌埠住了,芜湖起飞";break;case"福建省":a="井邑白云间,岩城远带山";break;case"江西省":a="落霞与孤鹜齐飞,秋水共长天一色";break;case"山东省":a="遥望齐州九点烟,一泓海水杯中泻";break;case"湖北省":if("黄冈市"===ipLocation.result.ad_info.city)a="红安将军县!辈出将才!";else a="来碗热干面~";break;case"湖南省":a="74751,长沙斯塔克";break;case"广东省":switch(ipLocation.result.ad_info.city){case"广州市":a="看小蛮腰,喝早茶了嘛~";break;case"深圳市":a="今天你逛商场了嘛~";break;case"阳江市":a="阳春合水!博主家乡~ 欢迎来玩~";break;default:a="来两斤福建人~"}break;case"广西壮族自治区":a="桂林山水甲天下";break;case"海南省":a="朝观日出逐白浪,夕看云起收霞光";break;case"四川省":a="康康川妹子";break;case"贵州省":a="茅台,学生,再塞200";break;case"云南省":a="玉龙飞舞云缠绕,万仞冰川直耸天";break;case"西藏自治区":a="躺在茫茫草原上,仰望蓝天";break;case"陕西省":a="来份臊子面加馍";break;case"甘肃省":a="羌笛何须怨杨柳,春风不度玉门关";break;case"青海省":a="牛肉干和老酸奶都好好吃";break;case"宁夏回族自治区":a="大漠孤烟直,长河落日圆";break;case"新疆维吾尔自治区":a="驼铃古道丝绸路,胡马犹闻唐汉风";break;case"台湾省":a="我在这头,大陆在那头";break;case"香港特别行政区":a="永定贼有残留地鬼嚎,迎击光非岁玉";break;case"澳门特别行政区":a="性感荷官,在线发牌";break;default:a="带我去你的城市逛逛吧!"}break;default:a="带我去你的国家逛逛吧"}let t=new Date;s=t.getHours()>=5&&t.getHours()<11?"<span>🌤️ 早上好,一日之计在于晨</span>":t.getHours()>=11&&t.getHours()<13?"<span>☀️ 中午好,记得午休喔~</span>":t.getHours()>=13&&t.getHours()<17?"<span>🕞 下午好,饮茶先啦!</span>":t.getHours()>=17&&t.getHours()<19?"<span>🚶♂️ 即将下班,记得按时吃饭~</span>":t.getHours()>=19&&t.getHours()<24?"<span>🌙 晚上好,夜生活嗨起来!</span>":"夜深了,早点休息,少熬夜",e.includes(":")&&(e="<br>好复杂,咱看不懂~(ipv6)");try{document.getElementById("welcome-info").innerHTML=`欢迎来自 <b><span style="color: var(--kouseki-ip-color);font-size: var(--kouseki-gl-size)">${r}</span></b> 的小友💖<br>${a}🍂<br>当前位置距博主约 <b><span style="color: var(--kouseki-ip-color)">${c}</span></b> 公里!<br>您的IP地址为:<b><span>${e}</span></b><br>${s} <br>`}catch(e){console.log("Pjax无法获取元素")}}$.ajax({type:"get",url:"https://apis.map.qq.com/ws/location/v1/ip",data:{key:"RIPBZ-MLQ64-A6WUR-KL2YV-O4KY5-DZFTC",output:"jsonp"},dataType:"jsonp",success:function(e){ipLocation=e}}),window.onload=showWelcome,document.addEventListener("pjax:complete",showWelcome);
|
1
|
+
function getDistance(e,a,s,c){const{sin:r,cos:t,asin:o,PI:i,hypot:n}=Math;let b=(e,a)=>(e*=i/180,{x:t(a*=i/180)*t(e),y:t(a)*r(e),z:r(a)}),k=b(e,a),p=b(s,c),l=2*o(n(k.x-p.x,k.y-p.y,k.z-p.z)/2)*6371;return Math.round(l)}function showWelcome(){let e,a,s,c=getDistance(114.21416,22.576264,ipLocation.result.location.lng,ipLocation.result.location.lat),r=ipLocation.result.ad_info.nation;switch(ipLocation.result.ad_info.nation){case"日本":a="よろしく,一起去看樱花吗";break;case"美国":a="Let us live in peace!";break;case"英国":a="想同你一起夜乘伦敦眼";break;case"俄罗斯":a="干了这瓶伏特加!";break;case"法国":a="C'est La Vie";break;case"德国":a="Die Zeit verging im Fluge.";break;case"澳大利亚":a="一起去大堡礁吧!";break;case"加拿大":a="拾起一片枫叶赠予你";break;case"中国":switch(r=ipLocation.result.ad_info.province+" "+ipLocation.result.ad_info.city+" "+ipLocation.result.ad_info.district,e=ipLocation.result.ip,ipLocation.result.ad_info.province){case"北京市":a="北——京——欢迎你~~~";break;case"天津市":a="讲段相声吧";break;case"河北省":a="山势巍巍成壁垒,天下雄关铁马金戈由此向,无限江山";break;case"山西省":a="展开坐具长三尺,已占山河五百余";break;case"内蒙古自治区":a="天苍苍,野茫茫,风吹草低见牛羊";break;case"辽宁省":a="我想吃烤鸡架!";break;case"吉林省":a="状元阁就是东北烧烤之王";break;case"黑龙江省":a="很喜欢哈尔滨大剧院";break;case"上海市":a="众所周知,中国只有两个城市";break;case"江苏省":switch(ipLocation.result.ad_info.city){case"南京市":a="这是我挺想去的城市啦";break;case"苏州市":a="上有天堂,下有苏杭";break;default:a="散装是必须要散装的"}break;case"浙江省":a="东风渐绿西湖柳,雁已还人未南归";break;case"河南省":switch(ipLocation.result.ad_info.city){case"郑州市":a="豫州之域,天地之中";break;case"南阳市":a="臣本布衣,躬耕于南阳此南阳非彼南阳!";break;case"驻马店市":a="峰峰有奇石,石石挟仙气嵖岈山的花很美哦!";break;case"开封市":a="刚正不阿包青天";break;case"洛阳市":a="洛阳牡丹甲天下";break;default:a="可否带我品尝河南烩面啦?"}break;case"安徽省":a="蚌埠住了,芜湖起飞";break;case"福建省":a="井邑白云间,岩城远带山";break;case"江西省":a="落霞与孤鹜齐飞,秋水共长天一色";break;case"山东省":a="遥望齐州九点烟,一泓海水杯中泻";break;case"湖北省":if("黄冈市"===ipLocation.result.ad_info.city)a="红安将军县!辈出将才!";else a="来碗热干面~";break;case"湖南省":a="74751,长沙斯塔克";break;case"广东省":switch(ipLocation.result.ad_info.city){case"广州市":a="看小蛮腰,喝早茶了嘛~";break;case"深圳市":a="今天你逛商场了嘛~";break;case"阳江市":a="阳春合水!博主家乡~ 欢迎来玩~";break;default:a="来两斤福建人~"}break;case"广西壮族自治区":a="桂林山水甲天下";break;case"海南省":a="朝观日出逐白浪,夕看云起收霞光";break;case"四川省":a="康康川妹子";break;case"贵州省":a="茅台,学生,再塞200";break;case"云南省":a="玉龙飞舞云缠绕,万仞冰川直耸天";break;case"西藏自治区":a="躺在茫茫草原上,仰望蓝天";break;case"陕西省":a="来份臊子面加馍";break;case"甘肃省":a="羌笛何须怨杨柳,春风不度玉门关";break;case"青海省":a="牛肉干和老酸奶都好好吃";break;case"宁夏回族自治区":a="大漠孤烟直,长河落日圆";break;case"新疆维吾尔自治区":a="驼铃古道丝绸路,胡马犹闻唐汉风";break;case"台湾省":a="我在这头,大陆在那头";break;case"香港特别行政区":a="永定贼有残留地鬼嚎,迎击光非岁玉";break;case"澳门特别行政区":a="性感荷官,在线发牌";break;default:a="带我去你的城市逛逛吧!"}break;default:a="带我去你的国家逛逛吧"}let t=new Date;s=t.getHours()>=5&&t.getHours()<11?"<span>🌤️ 早上好,一日之计在于晨</span>":t.getHours()>=11&&t.getHours()<13?"<span>☀️ 中午好,记得午休喔~</span>":t.getHours()>=13&&t.getHours()<17?"<span>🕞 下午好,饮茶先啦!</span>":t.getHours()>=17&&t.getHours()<19?"<span>🚶♂️ 即将下班,记得按时吃饭~</span>":t.getHours()>=19&&t.getHours()<24?"<span>🌙 晚上好,夜生活嗨起来!</span>":"夜深了,早点休息,少熬夜",e.includes(":")&&(e="<br>好复杂,咱看不懂~(ipv6)");try{document.getElementById("welcome-info").innerHTML=`欢迎来自 <b><span style="color: var(--kouseki-ip-color);font-size: var(--kouseki-gl-size)">${r}</span></b> 的小友💖<br>${a}🍂<br>当前位置距博主约 <b><span style="color: var(--kouseki-ip-color)">${c}</span></b> 公里!<br>您的IP地址为:<b><span>${e}</span></b><br>${s} <br>`}catch(e){console.log("Pjax无法获取元素")}}$.ajax({type:"get",url:"https://apis.map.qq.com/ws/location/v1/ip",data:{key:"RIPBZ-MLQ64-A6WUR-KL2YV-O4KY5-DZFTC",output:"jsonp"},dataType:"jsonp",success:function(e){ipLocation=e}}),window.onload=showWelcome,document.addEventListener("pjax:complete",showWelcome);
|
2
|
+
//# sourceMappingURL=../maps/js/txmap.js.map
|