mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
18 lines
662 B
HTML
18 lines
662 B
HTML
<style>a{color:inherit;text-decoration:inherit;}</style>
|
|
<script>
|
|
if(location.href.endsWith('/')){
|
|
window.onload=function (){
|
|
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';}}
|
|
}
|
|
}else{
|
|
function loadJS(u){
|
|
let d=document;
|
|
let e=d.createElement('script');e.src=u;
|
|
d.head.appendChild(e);
|
|
}
|
|
if(location.href.endsWith('.md.search')){
|
|
window.markdeepOptions = {onload};
|
|
loadJS("https://casual-effects.com/markdeep/latest/markdeep.min.js?");
|
|
}
|
|
}
|
|
</script>
|