v8/tools/system-analyzer/source-panel-template.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.1 KiB
HTML
Raw Normal View History

<!-- Copyright 2020 the V8 project authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<head>
<link href="./index.css" rel="stylesheet">
</head>
<style>
pre.scriptNode {
white-space: pre-wrap;
}
pre.scriptNode:before {
counter-reset: sourceLineCounter;
}
pre.scriptNode span {
counter-increment: sourceLineCounter;
}
pre.scriptNode span::before {
content: counter(sourceLineCounter) " ";
display: inline-block;
width: 4em;
padding-left: auto;
margin-left: auto;
text-align: right;
}
mark {
width: 1ch;
height: 1lh;
border-radius: 0.1lh;
border: 0.5px var(--background-color) solid;
cursor: pointer;
}
.marked {
background-color: var(--primary-color);
color: var(--on-primary-color);
}
</style>
<div class="panel">
<h2>Source Panel</h2>
<div class="script-dropdown">
<label for="scripts-label">Scripts:</label>
<select id="script-dropdown"></select>
</div>
<div id="script">
<pre class="scripNode"></pre>
</div>
</div>