refine markdeep.html

This commit is contained in:
James Feng Cao 2023-02-25 11:46:02 +08:00
parent 8fde5df446
commit b0147c8c85
4 changed files with 14 additions and 11 deletions

View file

@ -23,9 +23,9 @@
<guid>/en/bookmark/</guid> <guid>/en/bookmark/</guid>
<description>Wait for url from other devices <description>Wait for url from other devices
berify: reverse image search for video berify: reverse image search for video
Tips File handling and styling with home.css &amp;quot;home.css&amp;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 &amp;quot;&amp;lt;style&amp;gt;&amp;quot; tag for CSS. Tips File handling and styling with home.css &amp;quot;home.css&amp;quot; (in current folder, parent folder or the &amp;quot;bookmark&amp;quot; folder) styles bookmarks, search engines and the folder itself. The file is in html format instead of CSS, so it needs &amp;quot;&amp;lt;style&amp;gt;&amp;quot; tag for CSS.
Install markdeep styling for markdown files under the folder &amp;quot;bookmark/md/&amp;quot; Install markdeep styling for markdown files
Bookmarks with secrets (POST instead of GET) The search engine (&amp;quot;.</description> Bookmarks with secrets (POST instead of GET) The search engine (&amp;quot;.search&amp;quot;) file can be used as bookmarks with secret.</description>
</item> </item>
<item> <item>

View file

@ -51,8 +51,8 @@
<a href="https://berify.com">berify: reverse image search for video</a></p> <a href="https://berify.com">berify: reverse image search for video</a></p>
<h3 id="tips">Tips</h3> <h3 id="tips">Tips</h3>
<h4 id="file-handling-and-styling-with-homecss">File handling and styling with home.css</h4> <h4 id="file-handling-and-styling-with-homecss">File handling and styling with home.css</h4>
<p>&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.</p> <p>&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.</p>
<p><a href="i:0hbookmark/md/home.css:../searchurl/txt/markdeep.html">Install markdeep styling for markdown files under the folder &quot;bookmark/md/&quot;</a></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> <h3 id="bookmarks-with-secrets-post-instead-of-get">Bookmarks with secrets (POST instead of GET)</h3>
<p>The search engine (&quot;.search&quot;) file can be used as bookmarks with secret. Here is an example bookmark for webdav cloud storage (replace &quot;xxx&quot; with real user and password):<br> <p>The search engine (&quot;.search&quot;) file can be used as bookmarks with secret. Here is an example bookmark for webdav cloud storage (replace &quot;xxx&quot; with real user and password):<br>
box cloud:POST:type=webdav&amp;url=https://dav.box.com/dav&amp;username=xxx&amp;password=xxx:https://demo.filestash.app/login</p> box cloud:POST:type=webdav&amp;url=https://dav.box.com/dav&amp;username=xxx&amp;password=xxx:https://demo.filestash.app/login</p>

View file

@ -23,9 +23,9 @@
<guid>/en/bookmark/</guid> <guid>/en/bookmark/</guid>
<description>Wait for url from other devices <description>Wait for url from other devices
berify: reverse image search for video berify: reverse image search for video
Tips File handling and styling with home.css &amp;quot;home.css&amp;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 &amp;quot;&amp;lt;style&amp;gt;&amp;quot; tag for CSS. Tips File handling and styling with home.css &amp;quot;home.css&amp;quot; (in current folder, parent folder or the &amp;quot;bookmark&amp;quot; folder) styles bookmarks, search engines and the folder itself. The file is in html format instead of CSS, so it needs &amp;quot;&amp;lt;style&amp;gt;&amp;quot; tag for CSS.
Install markdeep styling for markdown files under the folder &amp;quot;bookmark/md/&amp;quot; Install markdeep styling for markdown files
Bookmarks with secrets (POST instead of GET) The search engine (&amp;quot;.</description> Bookmarks with secrets (POST instead of GET) The search engine (&amp;quot;.search&amp;quot;) file can be used as bookmarks with secret.</description>
</item> </item>
<item> <item>

View file

@ -1,7 +1,8 @@
<style>a{color:inherit;text-decoration:inherit;}</style>
<script> <script>
if(location.href.endsWith('/')){ if(location.href.endsWith('/')){
window.onload=function (){ 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{ }else{
function loadJS(u){ function loadJS(u){
@ -9,7 +10,9 @@
let e=d.createElement('script');e.src=u; let e=d.createElement('script');e.src=u;
d.head.appendChild(e); d.head.appendChild(e);
} }
window.markdeepOptions = {onload}; if(location.href.endsWith('.md.search')){
loadJS("https://casual-effects.com/markdeep/latest/markdeep.min.js?"); window.markdeepOptions = {onload};
loadJS("https://casual-effects.com/markdeep/latest/markdeep.min.js?");
}
} }
</script> </script>