1<!-- Copyright 2021 the V8 project authors. All rights reserved. 2Use of this source code is governed by a BSD-style license that can be 3found in the LICENSE file. --> 4 5<head> 6 <link href="./index.css" rel="stylesheet" /> 7</head> 8<style> 9 #fileReader { 10 height: 100px; 11 line-height: 100px; 12 text-align: center; 13 cursor: pointer; 14 transition: all 0.5s ease-in-out; 15 background-color: var(--surface-color); 16 border: solid 1px var(--file-reader-border-color); 17 border-radius: 5px; 18 } 19 20 #fileReader:hover { 21 background-color: var(--primary-color); 22 color: var(--on-primary-color); 23 } 24 25 .done #fileReader { 26 display: none; 27 } 28 29 .fail #fileReader { 30 background-color: var(--error-color); 31 } 32 33 .loading #fileReader { 34 cursor: wait; 35 } 36 37 #fileReader > input { 38 display: none; 39 } 40 41 #loader { 42 display: none; 43 will-change: rotate; 44 } 45 46 .loading #loader { 47 display: block; 48 position: fixed; 49 z-index: 9999; 50 top: 0px; 51 left: 0px; 52 width: 100%; 53 height: 100%; 54 background-color: var(--file-reader-background-color); 55 } 56 57 #spinner, #progress, #progressText { 58 position: absolute; 59 width: 120px; 60 height: 120px; 61 top: 40%; 62 left: 50%; 63 margin-left: calc(-60px - 10px); 64 border-radius: 50%; 65 } 66 #spinner { 67 border: 20px solid var(--surface-color); 68 border-top: 20px solid var(--primary-color); 69 animation: spin 1s linear infinite; 70 will-change: transform; 71 transform: scale(1.1); 72 } 73 74 #progress, #progressText { 75 padding: 20px; 76 } 77 78 #progress { 79 transition: all 0.5s ease-in-out; 80 } 81 82 #progressText { 83 line-height: 120px; 84 font-size: 28px; 85 transform: scale(0.55); 86 text-align: center; 87 vertical-align: middle; 88 background-color: var(--surface-color); 89 } 90 91 #label { 92 user-select: none; 93 } 94 95 @keyframes spin { 96 0% { 97 transform: rotate(0deg); 98 } 99 100 100% { 101 transform: rotate(360deg); 102 } 103 } 104</style> 105<div id="root"> 106 <div id="fileReader" class="panel" tabindex="1"> 107 <span id="label"> 108 Drag and drop a v8.log file into this area, or click to choose from disk. 109 </span> 110 <input id="file" type="file" name="file" /> 111 </div> 112 <div id="loader"> 113 <div id="progress"></div> 114 <div id="spinner"></div> 115 <div id="progressText"></div> 116 </div> 117</div> 118