index.html 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <link rel="stylesheet" href="../style.css#" type="text/css" />
  7. <title>CSS styles</title>
  8. <script type="text/javascript">
  9. function findLang(){
  10. let href = location.href;
  11. for(let i=href.length-1;i>0;i--){
  12. if('/'==href.charAt(i) && '/'==href.charAt(i-3))
  13. return i;
  14. }
  15. return 0;
  16. }
  17. function nav2(page){
  18. let i = findLang();
  19. location.href = location.href.substring(0,i+1)+page;
  20. }
  21. function nav2Lang(lang){
  22. let i = findLang();
  23. let href = location.href;
  24. location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
  25. }
  26. </script>
  27. </head>
  28. <body>
  29. <header class='header'>
  30. <a class="logo" href="javascript:void(0)" onclick="return nav2('index.html#')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html#')">Tags</a>
  31. <a class="logo" href="javascript:void(0)" onclick="return nav2Lang('zh')">简体中文</a>
  32. <nav>
  33. </nav>
  34. </header>
  35. <br />
  36. <div class="container">
  37. <h1 class="title">CSS styles
  38. <br>
  39. <span class="subtitle"></span>
  40. </h1>
  41. <ul class="tags">
  42. </ul>
  43. <p><a href="../index.html#">Uweb browser</a> loads all &quot;.css&quot; files under the folder &quot;css&quot; as global css. Click the following links to install global css files:</p>
  44. <p><a href="i:0hcss/clearfont.css:../../zh/searchurl/txt/clearfont.css">Clearing font settings</a></p>
  45. <p>The file &quot;night.css&quot; is used as night mode, click the following links to install one:<br>
  46. <a href="i:0hnight.css:../../zh/searchurl/txt/night.css">webview 81+ night mode</a><br>
  47. <a href="i:0hnight.css:../../zh/searchurl/txt/night_old.css">webview 80- night mode</a></p>
  48. <h4 id="earliest-loaded-global-js">Earliest loaded global js</h4>
  49. <p>The &quot;.js&quot; files under the folder &quot;css&quot; are loaded as earlier as possible on the page.</p>
  50. </div>
  51. <p>Last Modified: 2 April 2024<br>
  52. add js function in README<br>
  53. <pre></pre>
  54. </p>
  55. <script id='jsgiscus'
  56. src='https://giscus.app/client.js'
  57. data-repo="torappinfo/uweb"
  58. data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
  59. data-category="Announcements"
  60. data-category-id="DIC_kwDOEgNLGc4CQjsh"
  61. data-mapping="title"
  62. data-strict="0"
  63. data-reactions-enabled="1"
  64. data-emit-metadata="0"
  65. data-input-position="top"
  66. data-theme="light"
  67. data-lang="en"
  68. data-loading="lazy"
  69. crossorigin="anonymous" async>
  70. </script>
  71. <footer class="site-footer">
  72. <div class="container">
  73. &copy; 2018-2024 Richard H. Cao
  74. </div>
  75. </footer>
  76. <!-- This document is licensed under the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is available at <https://www.gnu.org/licenses/>. -->
  77. </body>
  78. </html>