Skip to content

Commit

Permalink
Fix local path
Browse files Browse the repository at this point in the history
  • Loading branch information
MuTsunTsai committed Dec 20, 2024
1 parent f9a3351 commit c713b8f
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/api/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><title>FEN Visualization SDK</title><meta charset="UTF-8"><meta name="viewport" content="initial-scale=1,maximum-scale=1,width=device-width,user-scalable=no"><meta name="description" content="Quick online tool for editing FEN."><link rel="icon" href="../favicon.ico" type="image/x-icon"><!-- Global site tag (gtag.js) - Google Analytics --><script async src="https://www.googletagmanager.com/gtag/js?id=G-NCH5HC15TN"></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[];var isHttps="https:"==location.protocol,isSelf=document.referrer&&document.referrer.includes("mutsuntsai.github.io");isHttps&&!isSelf&&(gtag("js",new Date),gtag("config","G-NCH5HC15TN"),gtag("event","fen_sdk",{url:location.href})),isHttps&&"serviceWorker"in navigator&&navigator.serviceWorker.register("../sw.js",{scope:"/fen-tool/"})</script><script>!function(){"use strict";var n={link:HTMLLinkElement,script:HTMLScriptElement,img:HTMLImageElement};function e(n,e){for(var r="",t=0;t<e.length;t++)if(-1!==n.indexOf(e[t])){r=e[t];break}return r||window.origin}var r={max:3,type:Object.keys(n),domain:[],crossOrigin:!1};function t(e,r){var t,i=r.target,a=null===(t=i.tagName)||void 0===t?void 0:t.toLocaleLowerCase(),o=e.type,c=function(n){return n instanceof HTMLScriptElement||n instanceof HTMLImageElement?n.src:n instanceof HTMLLinkElement?n.href:null}(i);return!!(a&&-1!==o.indexOf(a)&&n[a]&&i instanceof n[a]&&c)&&{target:i,tagName:a,url:c}}var i=/[?#].*$/;function a(n,r){var a,o=t(n,r);if(!1!==o){var c=o.target,s=o.tagName,u=o.url;if("undefined"==typeof window||!Object.keys(window.__RB_ASYNC_CHUNKS__||{}).some((function(n){return-1!==u.indexOf(n)}))){var d=n.test;if(d){if("string"==typeof d){var l=new RegExp(d);d=function(n){return l.test(n)}}if("function"!=typeof d||!d(u))return}var m=e(u,n.domain);if(!(n.domain&&n.domain.length>0&&-1===n.domain.indexOf(m))){var f=Number(c.dataset.rsbuildRetryTimes)||0;if(f!==n.max){var y=function(n,r){var t=e(n,r),i=r.indexOf(t);return r[(i+1)%r.length]||n}(m,n.domain),g=null!==(a=c.dataset.rsbuildOriginalQuery)&&void 0!==a?a:function(n){var e=n.split("?")[1];return e?"?".concat(e.split("#")[0]):""}(u),p=Boolean(c.dataset.rsbuildAsync)||c.async||c.defer,v={url:function(e,r,t,a){return function(n){return n.replace(i,"")}(e.replace(r,t))+function(e){return!0===n.addQuery?""!==g?"".concat(g,"&retry=").concat(e):"?retry=".concat(e):"function"==typeof n.addQuery?n.addQuery({times:e,originalQuery:g}):""}(a+1)}(u,m,y,f),times:f+1,crossOrigin:n.crossOrigin,isAsync:p,originalQuery:g},b=function(n,e){var r=!0===e.crossOrigin?"anonymous":e.crossOrigin,t=r?'crossorigin="'.concat(r,'"'):"",i=e.times?'data-rsbuild-retry-times="'.concat(e.times,'"'):"",a=e.originalQuery?'data-rsbuild-original-query="'.concat(e.originalQuery,'"'):"",o=e.isAsync?"data-rsbuild-async":"";if(n instanceof HTMLScriptElement){var c=document.createElement("script");return c.src=e.url,r&&(c.crossOrigin=r),e.times&&(c.dataset.rsbuildRetryTimes=String(e.times)),e.isAsync&&(c.dataset.rsbuildAsync=""),void 0!==e.originalQuery&&(c.dataset.rsbuildOriginalQuery=e.originalQuery),{element:c,str:'<script src="'.concat(e.url,'" ').concat(t," ").concat(i," ").concat(o," ").concat(a,">")+"<\/script>"}}if(n instanceof HTMLLinkElement){var s=document.createElement("link");return s.rel=n.rel||"stylesheet",n.as&&(s.as=n.as),s.href=e.url,r&&(s.crossOrigin=r),e.times&&(s.dataset.rsbuildRetryTimes=String(e.times)),void 0!==e.originalQuery&&(s.dataset.rsbuildOriginalQuery=e.originalQuery),{element:s,str:'<link rel="'.concat(s.rel,'" href="').concat(e.url,'" ').concat(t," ").concat(i," ").concat(s.as?'as="'.concat(s.as,'"'):""," ").concat(a,"></link>")}}}(c,v);if(n.onRetry&&"function"==typeof n.onRetry){var w={times:f,domain:m,url:u,tagName:s,isAsyncChunk:!1};n.onRetry(w)}!function(n,e,r){n instanceof HTMLScriptElement&&(r.isAsync?document.body.appendChild(e.element):document.write(e.str)),n instanceof HTMLLinkElement&&document.getElementsByTagName("head")[0].appendChild(e.element),n instanceof HTMLImageElement&&(n.src=r.url,n.dataset.rsbuildRetryTimes=String(r.times),n.dataset.rsbuildOriginalQuery=String(r.originalQuery))}(c,b,v)}else if("function"==typeof n.onFail){var E={times:f,domain:m,url:u,tagName:s,isAsyncChunk:!1};n.onFail(E)}}}}}!function(n){var i={};for(var o in r)i[o]=r[o];for(var c in n)i[c]=n[c];Array.isArray(i.type)&&0!==i.type.length||(i.type=r.type),Array.isArray(i.domain)&&0!==i.domain.length||(i.domain=r.domain),Array.isArray(i.domain)&&(i.domain=i.domain.filter(Boolean)),"undefined"==typeof window||window.__RB_ASYNC_CHUNKS__||(window.__RB_ASYNC_CHUNKS__={});try{!function(n,e){"undefined"!=typeof window&&void 0!==window.document&&(document.addEventListener("error",(function(e){e&&e.target instanceof Element&&n(e)}),!0),document.addEventListener("load",(function(n){n&&n.target instanceof Element&&e(n)}),!0))}((function(n){try{a(i,n)}catch(n){console.error("retry error captured",n)}}),(function(n){try{!function(n,r){var i=t(n,r);if(!1!==i){var a=i.target,o=i.tagName,c=i.url,s=e(c,n.domain),u=Number(a.dataset.rsbuildRetryTimes)||0;if(0!==u&&"function"==typeof n.onSuccess){var d={times:u,domain:s,url:c,tagName:o,isAsyncChunk:!1};n.onSuccess(d)}}}(i,n)}catch(n){console.error("load error captured",n)}}))}catch(n){console.error("monitor error captured",n)}}({addQuery:!0,max:2,crossOrigin:!1})}()</script><script defer="defer" src="/fen-tool/static/js/137.171cee8a.js"></script><script defer="defer" src="/fen-tool/static/js/api/index.41a9756b.js"></script></head><body><canvas id="CN"></canvas></body></html>
<!doctype html><html lang="en"><head><title>FEN Visualization SDK</title><meta charset="UTF-8"><meta name="viewport" content="initial-scale=1,maximum-scale=1,width=device-width,user-scalable=no"><meta name="description" content="Quick online tool for editing FEN."><link rel="icon" href="../favicon.ico" type="image/x-icon"><!-- Global site tag (gtag.js) - Google Analytics --><script async src="https://www.googletagmanager.com/gtag/js?id=G-NCH5HC15TN"></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[];var isHttps="https:"==location.protocol,isSelf=document.referrer&&document.referrer.includes("mutsuntsai.github.io");isHttps&&!isSelf&&(gtag("js",new Date),gtag("config","G-NCH5HC15TN"),gtag("event","fen_sdk",{url:location.href})),isHttps&&"serviceWorker"in navigator&&navigator.serviceWorker.register("../sw.js",{scope:"/fen-tool/"})</script><script>!function(){"use strict";var n={link:HTMLLinkElement,script:HTMLScriptElement,img:HTMLImageElement};function e(n,e){for(var r="",t=0;t<e.length;t++)if(-1!==n.indexOf(e[t])){r=e[t];break}return r||window.origin}var r={max:3,type:Object.keys(n),domain:[],crossOrigin:!1};function t(e,r){var t,i=r.target,a=null===(t=i.tagName)||void 0===t?void 0:t.toLocaleLowerCase(),o=e.type,c=function(n){return n instanceof HTMLScriptElement||n instanceof HTMLImageElement?n.src:n instanceof HTMLLinkElement?n.href:null}(i);return!!(a&&-1!==o.indexOf(a)&&n[a]&&i instanceof n[a]&&c)&&{target:i,tagName:a,url:c}}var i=/[?#].*$/;function a(n,r){var a,o=t(n,r);if(!1!==o){var c=o.target,s=o.tagName,u=o.url;if("undefined"==typeof window||!Object.keys(window.__RB_ASYNC_CHUNKS__||{}).some((function(n){return-1!==u.indexOf(n)}))){var d=n.test;if(d){if("string"==typeof d){var l=new RegExp(d);d=function(n){return l.test(n)}}if("function"!=typeof d||!d(u))return}var m=e(u,n.domain);if(!(n.domain&&n.domain.length>0&&-1===n.domain.indexOf(m))){var f=Number(c.dataset.rsbuildRetryTimes)||0;if(f!==n.max){var y=function(n,r){var t=e(n,r),i=r.indexOf(t);return r[(i+1)%r.length]||n}(m,n.domain),g=null!==(a=c.dataset.rsbuildOriginalQuery)&&void 0!==a?a:function(n){var e=n.split("?")[1];return e?"?".concat(e.split("#")[0]):""}(u),p=Boolean(c.dataset.rsbuildAsync)||c.async||c.defer,v={url:function(e,r,t,a){return function(n){return n.replace(i,"")}(e.replace(r,t))+function(e){return!0===n.addQuery?""!==g?"".concat(g,"&retry=").concat(e):"?retry=".concat(e):"function"==typeof n.addQuery?n.addQuery({times:e,originalQuery:g}):""}(a+1)}(u,m,y,f),times:f+1,crossOrigin:n.crossOrigin,isAsync:p,originalQuery:g},b=function(n,e){var r=!0===e.crossOrigin?"anonymous":e.crossOrigin,t=r?'crossorigin="'.concat(r,'"'):"",i=e.times?'data-rsbuild-retry-times="'.concat(e.times,'"'):"",a=e.originalQuery?'data-rsbuild-original-query="'.concat(e.originalQuery,'"'):"",o=e.isAsync?"data-rsbuild-async":"";if(n instanceof HTMLScriptElement){var c=document.createElement("script");return c.src=e.url,r&&(c.crossOrigin=r),e.times&&(c.dataset.rsbuildRetryTimes=String(e.times)),e.isAsync&&(c.dataset.rsbuildAsync=""),void 0!==e.originalQuery&&(c.dataset.rsbuildOriginalQuery=e.originalQuery),{element:c,str:'<script src="'.concat(e.url,'" ').concat(t," ").concat(i," ").concat(o," ").concat(a,">")+"<\/script>"}}if(n instanceof HTMLLinkElement){var s=document.createElement("link");return s.rel=n.rel||"stylesheet",n.as&&(s.as=n.as),s.href=e.url,r&&(s.crossOrigin=r),e.times&&(s.dataset.rsbuildRetryTimes=String(e.times)),void 0!==e.originalQuery&&(s.dataset.rsbuildOriginalQuery=e.originalQuery),{element:s,str:'<link rel="'.concat(s.rel,'" href="').concat(e.url,'" ').concat(t," ").concat(i," ").concat(s.as?'as="'.concat(s.as,'"'):""," ").concat(a,"></link>")}}}(c,v);if(n.onRetry&&"function"==typeof n.onRetry){var w={times:f,domain:m,url:u,tagName:s,isAsyncChunk:!1};n.onRetry(w)}!function(n,e,r){n instanceof HTMLScriptElement&&(r.isAsync?document.body.appendChild(e.element):document.write(e.str)),n instanceof HTMLLinkElement&&document.getElementsByTagName("head")[0].appendChild(e.element),n instanceof HTMLImageElement&&(n.src=r.url,n.dataset.rsbuildRetryTimes=String(r.times),n.dataset.rsbuildOriginalQuery=String(r.originalQuery))}(c,b,v)}else if("function"==typeof n.onFail){var E={times:f,domain:m,url:u,tagName:s,isAsyncChunk:!1};n.onFail(E)}}}}}!function(n){var i={};for(var o in r)i[o]=r[o];for(var c in n)i[c]=n[c];Array.isArray(i.type)&&0!==i.type.length||(i.type=r.type),Array.isArray(i.domain)&&0!==i.domain.length||(i.domain=r.domain),Array.isArray(i.domain)&&(i.domain=i.domain.filter(Boolean)),"undefined"==typeof window||window.__RB_ASYNC_CHUNKS__||(window.__RB_ASYNC_CHUNKS__={});try{!function(n,e){"undefined"!=typeof window&&void 0!==window.document&&(document.addEventListener("error",(function(e){e&&e.target instanceof Element&&n(e)}),!0),document.addEventListener("load",(function(n){n&&n.target instanceof Element&&e(n)}),!0))}((function(n){try{a(i,n)}catch(n){console.error("retry error captured",n)}}),(function(n){try{!function(n,r){var i=t(n,r);if(!1!==i){var a=i.target,o=i.tagName,c=i.url,s=e(c,n.domain),u=Number(a.dataset.rsbuildRetryTimes)||0;if(0!==u&&"function"==typeof n.onSuccess){var d={times:u,domain:s,url:c,tagName:o,isAsyncChunk:!1};n.onSuccess(d)}}}(i,n)}catch(n){console.error("load error captured",n)}}))}catch(n){console.error("monitor error captured",n)}}({addQuery:!0,max:2,crossOrigin:!1})}()</script><script defer="defer" src="/fen-tool/static/js/137.7b2f2d68.js"></script><script defer="defer" src="/fen-tool/static/js/api/index.41a9756b.js"></script></head><body><canvas id="CN"></canvas></body></html>
Loading

0 comments on commit c713b8f

Please sign in to comment.