2021-12-17 03:09:34 +00:00
|
|
|
<!-- Copyright 2021 the V8 project authors. All rights reserved.
|
2020-06-29 19:21:56 +00:00
|
|
|
Use of this source code is governed by a BSD-style license that can be
|
|
|
|
found in the LICENSE file. -->
|
|
|
|
|
2020-08-25 06:31:43 +00:00
|
|
|
<head>
|
2021-12-17 03:09:34 +00:00
|
|
|
<link href="./index.css" rel="stylesheet" />
|
2020-08-25 06:31:43 +00:00
|
|
|
</head>
|
2020-06-29 19:21:56 +00:00
|
|
|
<style>
|
|
|
|
#fileReader {
|
|
|
|
height: 100px;
|
|
|
|
line-height: 100px;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.5s ease-in-out;
|
2020-07-15 03:26:53 +00:00
|
|
|
background-color: var(--surface-color);
|
2021-12-17 03:09:34 +00:00
|
|
|
border: solid 1px var(--file-reader-border-color);
|
|
|
|
border-radius: 5px;
|
2020-06-29 19:21:56 +00:00
|
|
|
}
|
2021-06-14 12:44:00 +00:00
|
|
|
|
2020-10-23 11:21:18 +00:00
|
|
|
#fileReader:hover {
|
|
|
|
background-color: var(--primary-color);
|
|
|
|
color: var(--on-primary-color);
|
|
|
|
}
|
2020-06-29 19:21:56 +00:00
|
|
|
|
2021-12-17 03:09:34 +00:00
|
|
|
.done #fileReader {
|
2021-06-14 12:44:00 +00:00
|
|
|
display: none;
|
2020-06-29 19:21:56 +00:00
|
|
|
}
|
|
|
|
|
2020-10-23 11:21:18 +00:00
|
|
|
.fail #fileReader {
|
|
|
|
background-color: var(--error-color);
|
2020-06-29 19:21:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.loading #fileReader {
|
|
|
|
cursor: wait;
|
|
|
|
}
|
|
|
|
|
2021-12-17 03:09:34 +00:00
|
|
|
#fileReader > input {
|
2020-06-29 19:21:56 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#loader {
|
|
|
|
display: none;
|
2022-04-08 18:54:33 +00:00
|
|
|
will-change: rotate;
|
2020-06-29 19:21:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.loading #loader {
|
|
|
|
display: block;
|
|
|
|
position: fixed;
|
2021-01-12 14:43:12 +00:00
|
|
|
z-index: 9999;
|
2020-06-29 19:21:56 +00:00
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2020-08-28 04:18:59 +00:00
|
|
|
background-color: var(--file-reader-background-color);
|
2020-06-29 19:21:56 +00:00
|
|
|
}
|
2021-06-14 12:44:00 +00:00
|
|
|
|
2022-04-08 18:54:33 +00:00
|
|
|
#spinner, #progress, #progressText {
|
2020-06-29 19:21:56 +00:00
|
|
|
position: absolute;
|
2022-04-08 18:54:33 +00:00
|
|
|
width: 120px;
|
|
|
|
height: 120px;
|
2020-06-29 19:21:56 +00:00
|
|
|
top: 40%;
|
|
|
|
left: 50%;
|
2022-04-08 18:54:33 +00:00
|
|
|
margin-left: calc(-60px - 10px);
|
2020-06-29 19:21:56 +00:00
|
|
|
border-radius: 50%;
|
2022-04-08 18:54:33 +00:00
|
|
|
}
|
|
|
|
#spinner {
|
|
|
|
border: 20px solid var(--surface-color);
|
|
|
|
border-top: 20px solid var(--primary-color);
|
|
|
|
animation: spin 1s linear infinite;
|
|
|
|
will-change: transform;
|
|
|
|
transform: scale(1.1);
|
|
|
|
}
|
|
|
|
|
|
|
|
#progress, #progressText {
|
|
|
|
padding: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#progress {
|
|
|
|
transition: all 0.5s ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
#progressText {
|
|
|
|
line-height: 120px;
|
|
|
|
font-size: 28px;
|
|
|
|
transform: scale(0.55);
|
|
|
|
text-align: center;
|
|
|
|
vertical-align: middle;
|
|
|
|
background-color: var(--surface-color);
|
2020-06-29 19:21:56 +00:00
|
|
|
}
|
|
|
|
|
2021-06-17 15:09:24 +00:00
|
|
|
#label {
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2020-06-29 19:21:56 +00:00
|
|
|
@keyframes spin {
|
2020-08-25 06:31:43 +00:00
|
|
|
0% {
|
2020-06-29 19:21:56 +00:00
|
|
|
transform: rotate(0deg);
|
2020-08-25 06:31:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
2020-06-29 19:21:56 +00:00
|
|
|
transform: rotate(360deg);
|
2020-08-25 06:31:43 +00:00
|
|
|
}
|
2020-06-29 19:21:56 +00:00
|
|
|
}
|
|
|
|
</style>
|
2020-10-23 11:21:18 +00:00
|
|
|
<div id="root">
|
2021-12-17 03:09:34 +00:00
|
|
|
<div id="fileReader" class="panel" tabindex="1">
|
2020-10-23 11:21:18 +00:00
|
|
|
<span id="label">
|
|
|
|
Drag and drop a v8.log file into this area, or click to choose from disk.
|
|
|
|
</span>
|
2021-12-17 03:09:34 +00:00
|
|
|
<input id="file" type="file" name="file" />
|
2020-10-23 11:21:18 +00:00
|
|
|
</div>
|
|
|
|
<div id="loader">
|
2022-04-08 18:54:33 +00:00
|
|
|
<div id="progress"></div>
|
2020-10-23 11:21:18 +00:00
|
|
|
<div id="spinner"></div>
|
2022-04-08 18:54:33 +00:00
|
|
|
<div id="progressText"></div>
|
2020-10-23 11:21:18 +00:00
|
|
|
</div>
|
2020-10-19 16:48:36 +00:00
|
|
|
</div>
|