11cb0ef41Sopenharmony_ci<!-- Copyright 2018 the V8 project authors. All rights reserved.
21cb0ef41Sopenharmony_ciUse of this source code is governed by a BSD-style license that can be
31cb0ef41Sopenharmony_cifound in the LICENSE file. -->
41cb0ef41Sopenharmony_ci<style>
51cb0ef41Sopenharmony_ci#fileReader {
61cb0ef41Sopenharmony_ci  width: 100%;
71cb0ef41Sopenharmony_ci  height: 100px;
81cb0ef41Sopenharmony_ci  line-height: 100px;
91cb0ef41Sopenharmony_ci  text-align: center;
101cb0ef41Sopenharmony_ci  border: solid 1px #000000;
111cb0ef41Sopenharmony_ci  border-radius: 5px;
121cb0ef41Sopenharmony_ci  cursor: pointer;
131cb0ef41Sopenharmony_ci  transition: all 0.5s ease-in-out;
141cb0ef41Sopenharmony_ci}
151cb0ef41Sopenharmony_ci
161cb0ef41Sopenharmony_ci#fileReader.done {
171cb0ef41Sopenharmony_ci    height: 20px;
181cb0ef41Sopenharmony_ci    line-height: 20px;
191cb0ef41Sopenharmony_ci}
201cb0ef41Sopenharmony_ci
211cb0ef41Sopenharmony_ci#fileReader:hover {
221cb0ef41Sopenharmony_ci  background-color: #e0edfe ;
231cb0ef41Sopenharmony_ci}
241cb0ef41Sopenharmony_ci
251cb0ef41Sopenharmony_ci.loading #fileReader {
261cb0ef41Sopenharmony_ci  cursor: wait;
271cb0ef41Sopenharmony_ci}
281cb0ef41Sopenharmony_ci
291cb0ef41Sopenharmony_ci#fileReader > input {
301cb0ef41Sopenharmony_ci  display: none;
311cb0ef41Sopenharmony_ci}
321cb0ef41Sopenharmony_ci
331cb0ef41Sopenharmony_ci
341cb0ef41Sopenharmony_ci#loader {
351cb0ef41Sopenharmony_ci  display: none;
361cb0ef41Sopenharmony_ci}
371cb0ef41Sopenharmony_ci
381cb0ef41Sopenharmony_ci.loading #loader {
391cb0ef41Sopenharmony_ci  display: block;
401cb0ef41Sopenharmony_ci  position: fixed;
411cb0ef41Sopenharmony_ci  top: 0px;
421cb0ef41Sopenharmony_ci  left: 0px;
431cb0ef41Sopenharmony_ci  width: 100%;
441cb0ef41Sopenharmony_ci  height: 100%;
451cb0ef41Sopenharmony_ci  background-color: rgba(255, 255, 255, 0.5);
461cb0ef41Sopenharmony_ci}
471cb0ef41Sopenharmony_ci
481cb0ef41Sopenharmony_ci#spinner {
491cb0ef41Sopenharmony_ci  position: absolute;
501cb0ef41Sopenharmony_ci  width: 100px;
511cb0ef41Sopenharmony_ci  height: 100px;
521cb0ef41Sopenharmony_ci  top: 40%;
531cb0ef41Sopenharmony_ci  left: 50%;
541cb0ef41Sopenharmony_ci  margin-left: -50px;
551cb0ef41Sopenharmony_ci  border: 30px solid #000;
561cb0ef41Sopenharmony_ci  border-top: 30px solid #36E;
571cb0ef41Sopenharmony_ci  border-radius: 50%;
581cb0ef41Sopenharmony_ci  animation: spin 1s ease-in-out infinite;
591cb0ef41Sopenharmony_ci}
601cb0ef41Sopenharmony_ci
611cb0ef41Sopenharmony_ci@keyframes spin {
621cb0ef41Sopenharmony_ci 0% {
631cb0ef41Sopenharmony_ci    transform: rotate(0deg);
641cb0ef41Sopenharmony_ci }
651cb0ef41Sopenharmony_ci 100% {
661cb0ef41Sopenharmony_ci    transform: rotate(360deg);
671cb0ef41Sopenharmony_ci }
681cb0ef41Sopenharmony_ci}
691cb0ef41Sopenharmony_ci</style>
701cb0ef41Sopenharmony_ci
711cb0ef41Sopenharmony_ci<section id="fileReaderSection">
721cb0ef41Sopenharmony_ci  <div id="fileReader" tabindex=1 >
731cb0ef41Sopenharmony_ci    <span id="label">
741cb0ef41Sopenharmony_ci      Drag and drop a trace file into this area, or click to choose from disk.
751cb0ef41Sopenharmony_ci     </span>
761cb0ef41Sopenharmony_ci    <input id="file" type="file" name="file" />
771cb0ef41Sopenharmony_ci  </div>
781cb0ef41Sopenharmony_ci  <div id="loader">
791cb0ef41Sopenharmony_ci    <div id="spinner"></div>
801cb0ef41Sopenharmony_ci  </div>
811cb0ef41Sopenharmony_ci</section>
82