2018-01-15 15:24:18 +00:00
|
|
|
<!-- Copyright 2018 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. -->
|
|
|
|
<style>
|
|
|
|
#fileReader {
|
|
|
|
width: 100%;
|
|
|
|
height: 100px;
|
|
|
|
line-height: 100px;
|
|
|
|
text-align: center;
|
|
|
|
border: solid 1px #000000;
|
|
|
|
border-radius: 5px;
|
2018-02-14 08:26:42 +00:00
|
|
|
cursor: pointer;
|
2018-03-02 10:51:03 +00:00
|
|
|
transition: all 0.5s ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
#fileReader.done {
|
|
|
|
height: 20px;
|
|
|
|
line-height: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#fileReader:hover {
|
|
|
|
background-color: #e0edfe ;
|
2018-02-14 08:26:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.loading #fileReader {
|
|
|
|
cursor: wait;
|
2018-01-15 15:24:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#fileReader > input {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-02-14 08:26:42 +00:00
|
|
|
|
2018-03-02 10:51:03 +00:00
|
|
|
|
2018-02-14 08:26:42 +00:00
|
|
|
#loader {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-03-02 10:51:03 +00:00
|
|
|
.loading #loader {
|
2018-02-14 08:26:42 +00:00
|
|
|
display: block;
|
|
|
|
position: fixed;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-color: rgba(255, 255, 255, 0.5);
|
|
|
|
}
|
|
|
|
|
|
|
|
#spinner {
|
|
|
|
position: absolute;
|
|
|
|
width: 100px;
|
|
|
|
height: 100px;
|
|
|
|
top: 40%;
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -50px;
|
|
|
|
border: 30px solid #000;
|
|
|
|
border-top: 30px solid #36E;
|
|
|
|
border-radius: 50%;
|
|
|
|
animation: spin 1s ease-in-out infinite;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes spin {
|
2018-11-20 20:43:55 +00:00
|
|
|
0% {
|
2018-02-14 08:26:42 +00:00
|
|
|
transform: rotate(0deg);
|
2018-11-20 20:43:55 +00:00
|
|
|
}
|
|
|
|
100% {
|
2018-02-14 08:26:42 +00:00
|
|
|
transform: rotate(360deg);
|
2018-11-20 20:43:55 +00:00
|
|
|
}
|
2018-02-14 08:26:42 +00:00
|
|
|
}
|
2018-01-15 15:24:18 +00:00
|
|
|
</style>
|
2018-02-14 08:26:42 +00:00
|
|
|
|
|
|
|
<section id="fileReaderSection">
|
2018-03-02 12:22:56 +00:00
|
|
|
<div id="fileReader" tabindex=1 >
|
2018-02-14 08:26:42 +00:00
|
|
|
<span id="label">
|
|
|
|
Drag and drop a trace 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>
|
|
|
|
</section>
|