2020-06-29 19:21:56 +00:00
|
|
|
<!-- 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. -->
|
|
|
|
|
2020-08-25 06:31:43 +00:00
|
|
|
<head>
|
|
|
|
<link href="./index.css" rel="stylesheet">
|
|
|
|
</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);
|
2020-06-29 19:21:56 +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
|
|
|
|
2020-10-23 11:21:18 +00:00
|
|
|
.done #fileReader{
|
2020-08-25 06:31:43 +00:00
|
|
|
height: 20px;
|
|
|
|
line-height: 20px;
|
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;
|
|
|
|
}
|
|
|
|
|
2020-08-25 06:31:43 +00:00
|
|
|
#fileReader>input {
|
2020-06-29 19:21:56 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#loader {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.loading #loader {
|
|
|
|
display: block;
|
|
|
|
position: fixed;
|
|
|
|
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
|
|
|
}
|
|
|
|
#spinner {
|
|
|
|
position: absolute;
|
|
|
|
width: 100px;
|
|
|
|
height: 100px;
|
|
|
|
top: 40%;
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -50px;
|
2020-07-15 03:26:53 +00:00
|
|
|
border: 30px solid var(--surface-color);
|
|
|
|
border-top: 30px solid var(--primary-color);
|
2020-06-29 19:21:56 +00:00
|
|
|
border-radius: 50%;
|
|
|
|
animation: spin 1s ease-in-out infinite;
|
|
|
|
}
|
|
|
|
|
|
|
|
@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">
|
|
|
|
<div id="fileReader" class="panel" tabindex=1>
|
|
|
|
<span id="label">
|
|
|
|
Drag and drop a v8.log file into this area, or click to choose from disk.
|
|
|
|
</span>
|
|
|
|
<input id="file" type="file" name="file">
|
|
|
|
</div>
|
|
|
|
<div id="loader">
|
|
|
|
<div id="spinner"></div>
|
|
|
|
</div>
|
2020-10-19 16:48:36 +00:00
|
|
|
</div>
|