Skip to content

Commit d585ff1

Browse files
save file
1 parent bf69e0f commit d585ff1

File tree

1 file changed

+60
-4
lines changed

1 file changed

+60
-4
lines changed

utils/misc/global-state-diff/v2.0/global-state-diff-v2.0.html

Lines changed: 60 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,12 @@
9191

9292

9393
section
94-
{border:1px solid lightblue;padding:10px;border-radius:10px;display:flex;flex-direction:column;gap:20px}
94+
{border:1px solid lightblue;padding:10px;border-radius:10px;display:flex;flex-direction:column}
95+
section>:not(:first-child)
96+
{margin-bottom:10px}
9597

9698
h3
97-
{text-align:center;color:blue}
99+
{text-align:center;color:blue;margin:0}
98100

99101
input
100102
{font-size:16px;padding:5px 10px;box-sizing:border-box}
@@ -165,6 +167,27 @@
165167
hr
166168
{margin:20px}
167169

170+
171+
.links
172+
{display:flex;flex-direction:column;gap:10px;text-align:right}
173+
174+
a
175+
{color:#4a90e2;text-decoration:none;font-weight:500}
176+
a:hover
177+
{text-decoration:underline}
178+
.link-domain
179+
{font-size:0.85rem;color:#777;margin-left:0.25rem}
180+
.link-domain::before
181+
{content:'['}
182+
.link-domain::after
183+
{content:']'}
184+
.link-txt
185+
{}
186+
.no-underline
187+
{display:inline-block;text-decoration:none;color:black}
188+
189+
190+
168191
.spc
169192
{flex:1}
170193

@@ -182,8 +205,11 @@
182205

183206
<body>
184207

185-
<misc-hdr component=grp style='position:relative'>
186-
<img class=title src='images/global-state-diff.png' style='top:-5px;height:40px' alt=global-state-diff>
208+
<misc-hdr v2.0 component=grp>
209+
<img slot=title src='images/global-state-diff.png' style='top:-5px;height:40px' alt=global-state-diff>
210+
<div slot=version>
211+
v2.0
212+
</div>
187213
<time slot=date datetime=2026-02-13>
188214
13 Feb 2026
189215
</time>
@@ -199,6 +225,21 @@ <h3>
199225
</div>
200226
</h3>
201227

228+
<div class=links>
229+
<a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script' target=_blank>
230+
&lt;script&gt;: The Script element
231+
<span class=link-domain>
232+
developer.mozilla.org
233+
</span>
234+
</a>
235+
<a href='https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement' target=_blank>
236+
HTMLScriptElement
237+
<span class=link-domain>
238+
developer.mozilla.org
239+
</span>
240+
</a>
241+
</div>
242+
202243
<div>
203244
Analyze the impact of loading external JavaScript resources. The tool compares the global object
204245
before and after execution to identify newly added globals to help developers understand what
@@ -254,6 +295,21 @@ <h3>
254295
Import Inspector
255296
</h3>
256297

298+
<div class=links>
299+
<a href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import' target=_blank>
300+
import
301+
<span class=link-domain>
302+
developer.mozilla.org
303+
</span>
304+
</a>
305+
<a href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import' target=_blank>
306+
import()
307+
<span class=link-domain>
308+
developer.mozilla.org
309+
</span>
310+
</a>
311+
</div>
312+
257313
<div>
258314
Import Inspector complements global state diff by allowing users to specify a module URL and inspecting its
259315
exported bindings. It dynamically imports the module and lists all named and default exports, giving a

0 commit comments

Comments
 (0)