index.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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="canonical" href="https://jamesfengcao.gitlab.io/uweb/en/globalcss/" />
  7. <link rel="stylesheet" href="../style.css#" type="text/css" />
  8. <title>CSS styles</title>
  9. <script>
  10. function findLang(){
  11. let href = location.href;
  12. for(let i=href.length-1;i>0;i--){
  13. if('/'==href.charAt(i) && '/'==href.charAt(i-3))
  14. return i;
  15. }
  16. return 0;
  17. }
  18. function nav2(page){
  19. let i = findLang();
  20. location.href = location.href.substring(0,i+1)+page;
  21. }
  22. function nav2Lang(lang){
  23. let i = findLang();
  24. let href = location.href;
  25. location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
  26. }
  27. </script>
  28. </head>
  29. <body>
  30. <header class='header'>
  31. <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>
  32. <a class="logo" href="javascript:void(0)" onclick="return nav2Lang('zh')">简体中文</a>
  33. <nav>
  34. </nav>
  35. </header>
  36. <br />
  37. <div class="container">
  38. <h1 class="title">CSS styles
  39. <br>
  40. <span class="subtitle"></span>
  41. </h1>
  42. <ul class="tags">
  43. </ul>
  44. <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>
  45. <p><a href="i:0hcss/clearfont.css:../../zh/searchurl/txt/clearfont.css">Clearing font settings</a></p>
  46. <p>The file &quot;night.css&quot; is used as night mode, click the following links to install one:<br>
  47. <a href="i:0hnight.css:../../zh/searchurl/txt/night.css">webview 81+ night mode</a><br>
  48. <a href="i:0hnight.css:../../zh/searchurl/txt/night_old.css">webview 80- night mode</a></p>
  49. <h4 id="earliest-loaded-global-js">Earliest loaded global js</h4>
  50. <p>The &quot;.js&quot; files under the folder &quot;css&quot; are loaded as earlier as possible on the page.</p>
  51. <p>Click the following links to install early loaded global js:<br>
  52. <a href="i:0hcss/nojscopy.js::document.addEventListener(%22copy%22,(e)=>{e.preventDefault()})">No webpage clipboard copy</a></p>
  53. </div>
  54. <p>Last Modified: 13 October 2024<br>
  55. add css/nojscopy.js to disable webpage clipboard copy<br>
  56. <pre></pre>
  57. </p>
  58. <script id='jsgiscus'
  59. src='https://giscus.app/client.js'
  60. data-repo="torappinfo/uweb"
  61. data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
  62. data-category="Announcements"
  63. data-category-id="DIC_kwDOEgNLGc4CQjsh"
  64. data-mapping="title"
  65. data-strict="0"
  66. data-reactions-enabled="1"
  67. data-emit-metadata="0"
  68. data-input-position="top"
  69. data-theme="light"
  70. data-lang="en"
  71. data-loading="lazy"
  72. crossorigin="anonymous" async>
  73. </script>
  74. <footer class="site-footer">
  75. <div class="container">
  76. &copy; 2018-2024 Richard H. Cao
  77. </div>
  78. </footer>
  79. <!-- 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/>. -->
  80. </body>
  81. </html>