mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
refine markdeep.html
This commit is contained in:
parent
8fde5df446
commit
b0147c8c85
4 changed files with 14 additions and 11 deletions
|
@ -23,9 +23,9 @@
|
|||
<guid>/en/bookmark/</guid>
|
||||
<description>Wait for url from other devices
|
||||
berify: reverse image search for video
|
||||
Tips File handling and styling with home.css &quot;home.css&quot; styles bookmarks, search engines in the same folder or subfolders (it styles the folders too). The file is in html format instead of CSS, so it needs &quot;&lt;style&gt;&quot; tag for CSS.
|
||||
Install markdeep styling for markdown files under the folder &quot;bookmark/md/&quot;
|
||||
Bookmarks with secrets (POST instead of GET) The search engine (&quot;.</description>
|
||||
Tips File handling and styling with home.css &quot;home.css&quot; (in current folder, parent folder or the &quot;bookmark&quot; folder) styles bookmarks, search engines and the folder itself. The file is in html format instead of CSS, so it needs &quot;&lt;style&gt;&quot; tag for CSS.
|
||||
Install markdeep styling for markdown files
|
||||
Bookmarks with secrets (POST instead of GET) The search engine (&quot;.search&quot;) file can be used as bookmarks with secret.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
|
|
@ -51,8 +51,8 @@
|
|||
<a href="https://berify.com">berify: reverse image search for video</a></p>
|
||||
<h3 id="tips">Tips</h3>
|
||||
<h4 id="file-handling-and-styling-with-homecss">File handling and styling with home.css</h4>
|
||||
<p>"home.css" styles bookmarks, search engines in the same folder or subfolders (it styles the folders too). The file is in html format instead of CSS, so it needs "<style>" tag for CSS.</p>
|
||||
<p><a href="i:0hbookmark/md/home.css:../searchurl/txt/markdeep.html">Install markdeep styling for markdown files under the folder "bookmark/md/"</a></p>
|
||||
<p>"home.css" (in current folder, parent folder or the "bookmark" folder) styles bookmarks, search engines and the folder itself. The file is in html format instead of CSS, so it needs "<style>" tag for CSS.</p>
|
||||
<p><a href="i:0hbookmark/home.css:../searchurl/txt/markdeep.html">Install markdeep styling for markdown files</a></p>
|
||||
<h3 id="bookmarks-with-secrets-post-instead-of-get">Bookmarks with secrets (POST instead of GET)</h3>
|
||||
<p>The search engine (".search") file can be used as bookmarks with secret. Here is an example bookmark for webdav cloud storage (replace "xxx" with real user and password):<br>
|
||||
box cloud:POST:type=webdav&url=https://dav.box.com/dav&username=xxx&password=xxx:https://demo.filestash.app/login</p>
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
<guid>/en/bookmark/</guid>
|
||||
<description>Wait for url from other devices
|
||||
berify: reverse image search for video
|
||||
Tips File handling and styling with home.css &quot;home.css&quot; styles bookmarks, search engines in the same folder or subfolders (it styles the folders too). The file is in html format instead of CSS, so it needs &quot;&lt;style&gt;&quot; tag for CSS.
|
||||
Install markdeep styling for markdown files under the folder &quot;bookmark/md/&quot;
|
||||
Bookmarks with secrets (POST instead of GET) The search engine (&quot;.</description>
|
||||
Tips File handling and styling with home.css &quot;home.css&quot; (in current folder, parent folder or the &quot;bookmark&quot; folder) styles bookmarks, search engines and the folder itself. The file is in html format instead of CSS, so it needs &quot;&lt;style&gt;&quot; tag for CSS.
|
||||
Install markdeep styling for markdown files
|
||||
Bookmarks with secrets (POST instead of GET) The search engine (&quot;.search&quot;) file can be used as bookmarks with secret.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<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].href=h+'.search';}
|
||||
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){
|
||||
|
@ -9,7 +10,9 @@
|
|||
let e=d.createElement('script');e.src=u;
|
||||
d.head.appendChild(e);
|
||||
}
|
||||
window.markdeepOptions = {onload};
|
||||
loadJS("https://casual-effects.com/markdeep/latest/markdeep.min.js?");
|
||||
if(location.href.endsWith('.md.search')){
|
||||
window.markdeepOptions = {onload};
|
||||
loadJS("https://casual-effects.com/markdeep/latest/markdeep.min.js?");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue