-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
popup.html
299 lines (279 loc) · 15.5 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
<html>
<head>
<link href="statics/lib/quasar.min.css" rel="stylesheet" type="text/css">
<link href="statics/lib/material_icon.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900" rel="stylesheet">
<style type="text/css">
body {
margin: 0;
font: normal 75% Arial, Helvetica, sans-serif;
}
canvas {
display: block;
vertical-align: bottom;
}
/* ---- particles.js container ---- */
#particles-js {
position: absolute;
width: 100%;
height: 100%;
}
[v-cloak] > * {
display: none
}
[v-cloak]::before {
content: ""
}
</style>
</head>
<body>
<div id="q-app" v-cloak style="font-family: 'Lato' !important;">
<q-layout view="hHh Lpr lFf">
<section style="min-height: 30vh;" :style="{'background-color':bg_color}"
class="flex text-white flex-center layout_bg" id="particles-js">
<div class="fixed-top text-center q-mt-md">
<!--text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;-->
<span class="" :style="{'color':text_color}" style="font-size: 15px;letter-spacing: 0.5px;word-spacing: 0.7px">{{random_str}}</span></div>
<div class="fixed-top-right q-mt-md">
<q-btn class="q-ma-sm" dense icon="color_lens" color="primary">
<q-tooltip transition-show="flip-right"
transition-hide="flip-left" self="center left" anchor="center right">Background color
</q-tooltip>
<q-menu anchor="bottom left" self="bottom right" transition-show="flip-right"
transition-hide="flip-left">
<q-color
v-model="bg_color"
no-header
no-footer
default-view="palette"
class="my-picker"
@input="changeBgColor()"
/>
</q-menu>
</q-btn>
<br>
<q-btn class="q-mx-sm" flat dense icon="swap_vert" @click="swapColors()" color="primary">
</q-btn>
<br>
<q-btn class="q-ma-sm" dense icon="colorize" color="primary">
<!--<q-tooltip></q-tooltip>-->
<q-tooltip transition-show="flip-right"
transition-hide="flip-left" self="center left" anchor="center right">Pattern color
</q-tooltip>
<q-menu anchor="bottom left" self="bottom right" transition-show="flip-right"
transition-hide="flip-left">
<q-color
v-model="pattern_color"
no-header
no-footer
default-view="palette"
class="my-picker"
@input="changePatternColor()"
/>
</q-menu>
</q-btn>
<br>
<br>
<br>
<q-btn class="q-ma-sm" dense icon="color_lens" color="primary">
<q-tooltip transition-show="flip-right"
transition-hide="flip-left" self="center right" anchor="center left">Text color
</q-tooltip>
<q-menu anchor="bottom left" self="bottom right" transition-show="flip-right"
transition-hide="flip-left">
<q-color
v-model="text_color"
no-header
no-footer
default-view="palette"
class="my-picker"
@input="changeTimeColor()"
/>
</q-menu>
</q-btn>
</div>
<div class="fixed-center q-pa-md full-width" style="padding-left: 30%;padding-right: 30%">
<div class="text-center" style="font-size: 50px;">
<span :style="{'color':text_color}" style="" class="">{{live_time}}</span>
</div>
<div class="bg-white" style="border-radius: 5px">
<q-input class="q-mb-xl" outlined v-model="search_text" @keyup.enter="goSearch"
label="Search Google">
<template v-slot:prepend>
<q-avatar>
<img src="statics/images/google_logo.png">
</q-avatar>
</template>
</q-input>
</div>
</div>
<!--<q-dialog v-model="mdl_tabs" :position="'right'" transition-show="flip-down" transition-hide="flip-up">-->
<!---->
<!--</q-dialog>-->
<!--<q-dialog v-model="mdl_tabs" :maximized="true" transition-show="flip-down" transition-hide="flip-up">-->
<!--<q-card class="bg-primary text-white">-->
<!--<q-bar>-->
<!--<span>Split screen</span>-->
<!--<q-space></q-space>-->
<!--<q-btn dense flat icon="close" class="float-right" v-close-popup>-->
<!--<q-tooltip content-class="bg-white text-primary">Close</q-tooltip>-->
<!--</q-btn>-->
<!--</q-bar>-->
<!--<q-card-section :style="{'height':(win_height-35)+'px'}">-->
<!--<q-splitter-->
<!--id="photos"-->
<!--v-model="splitterModel"-->
<!--:limits="[0, 100]"-->
<!--before-class="overflow-hidden"-->
<!--after-class="overflow-hidden"-->
<!-->-->
<!--<template v-slot:before>-->
<!--<div class="full-height full-width q-pr-sm">-->
<!--<iframe class="full-height full-width" src="" target="_parent"></iframe>-->
<!--</div>-->
<!--</template>-->
<!--<template v-slot:after>-->
<!--<div class="full-height full-width q-pl-sm">-->
<!--<iframe class="full-height full-width" src="" target="_parent"></iframe>-->
<!--</div>-->
<!--</template>-->
<!--</q-splitter>-->
<!--</q-card-section>-->
<!--</q-card>-->
<!--</q-dialog>-->
<!--<div class=" q-ma-sm bg-white rounded-borders" style="height: 38px;">-->
<!--<q-avatar dense class="float-left" style="height: 37px">-->
<!--<img style="height: 25px;width: 25px;"-->
<!--src="https://avatars0.githubusercontent.com/u/1342004?s=400&v=4">-->
<!--</q-avatar>-->
<!--<q-input dense borderless v-model="text" input-class="text-right" class="text-black float-left">-->
<!--<template v-slot:append>-->
<!--<q-icon class="q-mr-sm" v-if="text === ''" name="search"></q-icon>-->
<!--<q-icon class="q-mr-sm cursor-pointer" v-else name="clear" @click="text = ''"></q-icon>-->
<!--</template>-->
<!--</q-input>-->
<!--</div>-->
<!--<div class=" q-ma-sm bg-white rounded-borders" style="height: 38px;">-->
<!--<q-avatar dense class="float-left" style="height: 37px">-->
<!--<img style="height: 25px;width: 25px;"-->
<!--src="https://cdn.iconscout.com/icon/free/png-256/wikipedia-7-569210.png">-->
<!--</q-avatar>-->
<!--<q-input dense borderless v-model="text" input-class="text-right" class="text-black float-left">-->
<!--<template v-slot:append>-->
<!--<q-icon class="q-mr-sm" v-if="text === ''" name="search"></q-icon>-->
<!--<q-icon class="q-mr-sm cursor-pointer" v-else name="clear" @click="text = ''"></q-icon>-->
<!--</template>-->
<!--</q-input>-->
<!--</div>-->
<q-fab
id="fab_menu_icon"
v-model="fabLeft"
vertical-actions-align="left"
color="primary"
icon="menu"
direction="up"
class="fixed-bottom-left q-ma-sm"
>
<q-fab-action label-position="right" color="primary" icon="bookmark" @click="fabLeft=true"
label="Bookmarks" class="q-mr-md">
<q-menu :content-style="{ border: '4px solid grey' }" transition-show="rotate"
transition-hide="rotate" max-width="260px" class="q-ml-md"
anchor="bottom right" self="bottom left">
<div class="row">
<div class="col-12">
<div class="text-white">
<!--<q-toolbar class="bg-white text-black" style="border: 1px solid lightgray">-->
<!--<q-toolbar-title class="text-grey-8">Bookmarks</q-toolbar-title>-->
<!--</q-toolbar>-->
<!--<q-scroll-area :style="{'height':win_height+'px'}" style="border: 1px solid lightgrey">-->
<q-list dense separator>
<q-item-section class="q-pa-sm">
<q-input clearable dense outlined v-model="search_bookmark"
label="Search bookmarks"></q-input>
</q-item-section>
<q-item class="text-grey-9" v-ripple
v-for="item,index_bk in get_all_filtered_bookmarks">
<q-item-section side>
<q-icon @click="removeBookmark(item)"
@mouseover="selected_index_bk=index_bk"
@mouseleave="selected_index_bk=null"
:name="selected_index_bk==index_bk ? 'close' : 'star'"
class="cursor-pointer" color="orange">
<q-tooltip>Remove</q-tooltip>
</q-icon>
</q-item-section>
<q-item-section @click="goToUrl(item.url)" top class="q-py-sm text-indigo">
<!--<q-img style="width: 27px;" class="float-left"-->
<!--:src="'https://besticon-demo.herokuapp.com/icon?url='+item.url+'&size=32..50..120'"></q-img>-->
<span class="ellipsis full-width cursor-pointer">{{item.title}}</span>
</q-item-section>
</q-item>
</q-list>
<!--</q-scroll-area>-->
</div>
</div>
<div class="col-9"></div>
</div>
</q-menu>
</q-fab-action>
<q-fab-action label-position="right" color="secondary" icon="tab" @click="fabLeft=true"
label="Open tabs">
<q-menu :content-style="{ border: '4px solid grey' }" transition-show="rotate"
transition-hide="rotate" max-width="260px" class="q-ml-md"
anchor="bottom right" self="bottom left">
<div class="row">
<div class="col-12">
<div class="text-white">
<!--<q-toolbar class="bg-white text-black" style="border: 1px solid lightgray">-->
<!--<q-toolbar-title class="text-grey-8">Open tabs</q-toolbar-title>-->
<!--</q-toolbar>-->
<!--<q-scroll-area :style="{'height':win_height+'px'}" style="border: 1px solid lightgrey">-->
<q-list dense separator>
<q-item-section class="q-pa-sm">
<q-input clearable dense outlined v-model="search_open_tabs"
label="Search open tabs"></q-input>
</q-item-section>
<q-item class="text-grey-9 q-px-xs" clickable v-ripple
v-for="item,index in get_all_open_tabs">
<!--<q-item-section avatar>-->
<!--<q-avatar square>-->
<!--<q-img style="width: 27px;" :src="item.favIconUrl"></q-img>-->
<!--</q-avatar>-->
<!--</q-item-section>-->
<q-item-section side>
<q-icon @click="closeTab(item)" @mouseover="selected_index=index"
@mouseleave="selected_index=null"
:name="selected_index==index ? 'close' : 'tab'" color="orange">
<q-tooltip>Close</q-tooltip>
</q-icon>
</q-item-section>
<q-item-section @click="switchTab(item.id)" class="q-py-sm text-indigo">
<span class="ellipsis cursor-pointer full-width">{{item.title}}</span>
</q-item-section>
</q-item>
</q-list>
<!--</q-scroll-area>-->
</div>
</div>
<div class="col-9"></div>
</div>
</q-menu>
</q-fab-action>
</q-fab>
<div class="fixed-bottom-right q-mr-md q-mb-xs" :style="{'color':text_color}"
style="font-size: 17px;">Made
with
<span style="color: #e25555;font-size: 19.5px;">♥</span> using
<a target="_blank" class="text-indigo-5" style="text-decoration: none"
href="https://quasar-framework.org">Quasar</a> for you.
</div>
</section>
</q-layout>
</div>
</body>
<script src="statics/lib/vue.js"></script>
<script src="statics/lib/material.min.js"></script>
<script src="statics/lib/quasar.umd.min.js"></script>
<script src="statics/lib/particles.min.js"></script>
<script src=statics/js/anotherscript.js></script>
</html>