uweb/en/searchurl/txt/markdeep.html

18 lines
605 B
HTML
Raw Normal View History

2023-02-17 13:11:35 +00:00
<script>
if(location.href.endsWith('/')){
window.onload=function (){
2023-02-25 03:46:02 +00:00
let as=document.getElementsByTagName('a');for(let i=as.length-1;i>=0;i--){let h=as[i].href;if(h.startsWith('file:')&&h.endsWith('.md'))as[i].onclick=function(){location.href=this.href+'.search';}}
2023-02-17 13:11:35 +00:00
}
}else{
function loadJS(u){
let d=document;
let e=d.createElement('script');e.src=u;
d.head.appendChild(e);
}
2023-02-25 03:46:02 +00:00
if(location.href.endsWith('.md.search')){
window.markdeepOptions = {onload};
loadJS("https://casual-effects.com/markdeep/latest/markdeep.min.js?");
}
2023-02-17 13:11:35 +00:00
}
</script>