Skip to content

Commit 3f0d4d4

Browse files
save file
1 parent 71a2509 commit 3f0d4d4

File tree

1 file changed

+44
-25
lines changed

1 file changed

+44
-25
lines changed

blog/25-08-17/nodejs-in-webpage/nodejs-in-webpage.html

Lines changed: 44 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -133,24 +133,49 @@
133133
html
134134
{height:100%;font-family:arial}
135135
body
136-
{min-height:calc(100% - 40px);display:flex;flex-direction:column;gap:10px;margin:20px;align-items:center;
136+
{min-height:calc(100% - 40px);display:flex;flex-direction:column;gap:20px;margin:20px;align-items:center;
137137
padding-bottom:200px;
138138
}
139139
body>*
140-
{max-width:1400px;width:100%;padding:0 20px;}
141-
142-
140+
{max-width:1400px;width:100%}
143141

144-
h3
145-
{text-align:center;color:blue}
146-
147-
#desc
148-
{white-space:pre-wrap}
142+
[component]
143+
{display:none}
149144

145+
.description
146+
{max-width:1000px;text-align:justify;border-left:4px solid #4a90e2;padding:1rem 2rem;
147+
background-color:#f9f9f9;font-family:system-ui,sans-serif;font-size:1rem;line-height:1.6;color:#333}
148+
.description>p
149+
{margin:0}
150+
.description > p+p
151+
{margin:10px 0}
152+
153+
code
154+
{font-family:monospace;background:whitesmoke}
155+
code.inline
156+
{display:inline;padding:5px 10px}
157+
158+
a
159+
{color:#4a90e2;text-decoration:none;font-weight:500}
160+
a:hover
161+
{text-decoration:underline}
162+
.link-domain
163+
{font-size:0.85rem;color:#777;margin-left:0.25rem}
164+
.link-domain::before
165+
{content:'['}
166+
.link-domain::after
167+
{content:']'}
168+
.link-txt
169+
{}
170+
150171
input
151-
{font-size:16px;padding:5px 10px}
172+
{font-size:16px;padding:5px 7px;box-sizing:border-box;}
152173
input[type=button]
153174
{cursor:pointer}
175+
176+
177+
178+
154179

155180

156181
</style>
@@ -170,16 +195,20 @@ <h1 class=title>
170195
</blog-hdr>
171196

172197

173-
<div id=desc>
198+
<div class=description>
174199

175-
running nodejs code in a webpage
200+
<p>
201+
running nodejs code in a webpage
202+
</p>
176203

177-
the containing page requires the following headers
204+
<p>
205+
the containing page requires the following headers
206+
</p>
178207

179-
<div style='font-family:monospace'>
208+
<p style='font-family:monospace;white-space:pre'>
180209
cross-origin-embedder-policy : require-corp || credentialless
181210
cross-origin-opener-policy : same-origin
182-
</div>
211+
</p>
183212

184213

185214
</div>
@@ -200,16 +229,6 @@ <h1 class=title>
200229
<script>
201230

202231

203-
var code_block;
204-
205-
var menu;
206-
207-
var root;
208-
209-
210-
//:
211-
212-
213232
function initdom(rootnode){
214233

215234
root = rootnode;

0 commit comments

Comments
 (0)