-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpopup.html
109 lines (109 loc) · 3.03 KB
/
popup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>vx</title>
<style>
body {
background: transparent;
color: #e9e8e7;
font: 18px Arimo, sans-serif;
}
.full body {
background: #353433;
padding: 8px 24px;
}
#vxchrome .box {
position: absolute;
z-index: 2147483647;
top: 40px;
left: 40px;
margin-right: 40px;
background: #0008;
font: bold 24px Arimo, Noto Sans Thai, sans-serif;
border-radius: 8px;
padding: 8px 16px;
color: #fff;
text-shadow: 0 2px 8px #000;
border: 2px solid #8b8685;
box-shadow: 0 4px 16px #000;
transition: 0.2s all;
line-height: 36px;
transform-origin: 0 28px;
transform: scale(0.95);
}
#vxchrome .box[data-status='listening'] {
border-color: #bef;
}
#vxchrome .box[data-status='listening'][data-final='true'] {
border-color: #d7fc70;
transform: scale(1);
}
#vxchrome .box[data-status='ended'] {
transform: scale(1);
}
#vxchrome .initial {
color: #8b8685;
}
#vxchrome .final {
color: #d7fc70;
}
#actions {
display: none;
position: fixed;
bottom: 16px;
right: 16px;
}
.full #actions {
display: block;
}
#actions button {
border: 0;
background: transparent;
color: #8b8685;
}
#actions button svg {
width: 32px;
height: 32px;
}
</style>
</head>
<body>
<div id="app">
<div id="vxchrome">
<template v-if="data">
<div
class="box"
v-if="data.showing"
:data-status="data.status"
:data-final="data.finalTranscript ? 'true' : 'false'"
>
<span class="initial">>>></span>
<span class="final">{{ data.finalTranscript }}</span>
<span class="interim">{{ data.interimTranscript }}</span>
</div>
</template>
</div>
</div>
<p id="actions">
<button id="open-options-button">
<svg
class="octicon"
viewBox="0 0 14 16"
version="1.1"
aria-hidden="true"
>
<path
fill="currentColor"
fill-rule="evenodd"
d="M14 8.77v-1.6l-1.94-.64-.45-1.09.88-1.84-1.13-1.13-1.81.91-1.09-.45-.69-1.92h-1.6l-.63 1.94-1.11.45-1.84-.88-1.13 1.13.91 1.81-.45 1.09L0 7.23v1.59l1.94.64.45 1.09-.88 1.84 1.13 1.13 1.81-.91 1.09.45.69 1.92h1.59l.63-1.94 1.11-.45 1.84.88 1.13-1.13-.92-1.81.47-1.09L14 8.75v.02zM7 11c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z"
></path>
</svg>
</button>
</p>
<script src="vendor/vue-2.6.11.js"></script>
<script src="popup.js"></script>
</body>
</html>