5 <meta name=
"viewport" content=
"width=device-width, initial-scale=1" />
6 <link rel=
"canonical" href=
"https://jamesfengcao.gitlab.io/uweb/en/globalcss/" />
8 <link rel=
"stylesheet" href=
"../style.css#" type=
"text/css" />
9 <title>CSS styles
</title>
12 let href
= location
.href
;
13 for(let i
=href
.length
-1;i
>0;i
--){
14 if('/'==href
.charAt(i
) && '/'==href
.charAt(i
-3))
21 location
.href
= location
.href
.substring(0,i
+1)+page
;
23 function nav2Lang(lang
){
25 let href
= location
.href
;
26 location
.href
= location
.href
.substring(0,i
-2)+lang
+location
.href
.substring(i
);
31 <header class='header'
>
32 <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>
35 <a class=
"logo" href=
"javascript:void(0)" onclick=
"return nav2Lang('zh')">简体中文
</a>
43 <div class=
"container">
44 <h1 class=
"title">CSS styles
46 <span class=
"subtitle"></span>
51 <p><a href=
"../index.html#">Uweb browser
</a> loads all
".css
" files under the folder
"css
" as global css. Click the following links to install global css files:
</p>
52 <p><a href=
"i:0hcss/clearfont.css:../../zh/searchurl/txt/clearfont.css">Clearing font settings
</a></p>
53 <p>The file
"night.css
" is used as night mode, click the following links to install one:
<br>
54 <a href=
"i:0hnight.css:../../zh/searchurl/txt/night.css">webview
81+ night mode
</a><br>
55 <a href=
"i:0hnight.css:../../zh/searchurl/txt/night_old.css">webview
80- night mode
</a></p>
56 <h4 id=
"earliest-loaded-global-js">Earliest loaded global js
</h4>
57 <p>The
".js
" files under the folder
"css
" are loaded as earlier as possible on the page.
</p>
58 <p>Click the following links to install early loaded global js:
<br>
59 <a href=
"i:0hcss/nojscopy.js::document.addEventListener(%22copy%22,(e)=>{e.preventDefault()})">No webpage clipboard copy
</a></p>
62 <p>Last Modified:
13 October
2024<br>
63 add css/nojscopy.js to disable webpage clipboard copy
<br>
68 src='https://giscus.app/client.js'
69 data-repo=
"torappinfo/uweb"
70 data-repo-id=
"MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
71 data-category=
"Announcements"
72 data-category-id=
"DIC_kwDOEgNLGc4CQjsh"
75 data-reactions-enabled=
"1"
76 data-emit-metadata=
"0"
77 data-input-position=
"top"
81 crossorigin=
"anonymous" async
>
84 <footer class=
"site-footer">
85 <div class=
"container">
86 © 2018-
2025 Richard H. Cao
89 <!-- 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/>. -->