Skip to content

Commit 2936edb

Browse files
committed
1.2.3 version
1 parent efc9c96 commit 2936edb

File tree

4 files changed

+26
-9
lines changed

4 files changed

+26
-9
lines changed

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "uyou 新标签页",
44
"description": "这是一个很好看的新标签页!",
5-
"version": "1.2.2.999",
5+
"version": "1.2.3",
66
"icons": {
77
"128": "extension.png",
88
"48": "extension.png",

newPage/css/one.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@
77
border-radius: 50px;
88
box-shadow: 0px 0px 20px #00000070;
99
backdrop-filter: blur(40px);
10-
margin-bottom: -100px;
10+
margin-bottom: -200px;
1111
cursor: pointer;
1212
height: 50px;
1313
line-height: 50px;
1414
text-align: center;
1515
padding-left: 20px;
1616
padding-right: 20px;
1717
max-width: 500px;
18-
transition: margin 0.7s;
1918
color: var(--textColor);
2019
}
2120
.button:hover{

newPage/js/main/onLoadFeature.js

+21-5
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,21 @@ export function fesUse() {
9999
elemenetGetId('clock').hidden = false; //show calculator button
100100
} else {
101101
elemenetGetId('mainClock').style.display = "none"; //hide clock element
102-
onShow();
102+
chrome.storage.local.get(['hideHS', 'historyHS', 'reloadHS', 'calHS', 'timeHS', 'weatherHS', 'downHS', 'infoHS', 'oneHS', 'hs'], function (budget) {
103+
let hideHS = budget.hideHS;
104+
let historyHS = budget.historyHS;
105+
let reloadHS = budget.reloadHS;
106+
let calHS = budget.calHS;
107+
let timeHS = budget.timeHS;
108+
let weatherHS = budget.weatherHS;
109+
let downHS = budget.downHS;
110+
let infoHS = budget.infoHS;
111+
let oneHS = budget.oneHS;
112+
var hide = elemenetGetId('hide');
113+
var info = elemenetGetId('info');
114+
let hs = budget.hs;
115+
loadHs(hideHS, historyHS, reloadHS, calHS, timeHS, weatherHS, downHS, infoHS, oneHS, hs, hide, info)
116+
})
103117
}
104118
}
105119
}
@@ -216,9 +230,10 @@ export function changeStyle() {
216230
cal.style.marginRight = '0';//set calculator button margin right to 0px
217231
clock.hidden = true; //hide clock button
218232
history.hidden = true; //hide history button
219-
button.style.marginBottom = '20vh';//chenge ui button
233+
button.addEventListener('DOMNodeInserted', () => {
234+
button.style.marginBottom = '20vh';//chenge ui button
235+
})
220236
button.style.maxWidth = '280px';
221-
button.style.transition = 'margin 0.5s';
222237
button.style.zIndex = '100';
223238
oneMain.style.width = '0px';
224239
oneMain.style.height = '0px';
@@ -300,7 +315,6 @@ export function changeStyle() {
300315
window.onresize = () => {
301316
var nowHeight = document.documentElement.clientHeight;
302317
if (screenHeight - nowHeight > 50) {
303-
elemenetGetId('button').style.transition = '0s';
304318
elemenetGetId('button').style.marginBottom = '-60px';
305319
elemenetGetId('title').style.marginBottom = '-60px';
306320
} else {
@@ -310,7 +324,9 @@ export function changeStyle() {
310324
}
311325
} else {
312326
//in desktop mode to change some style
313-
button.style.marginBottom = '20px'
327+
button.addEventListener('DOMNodeInserted', () => {
328+
button.style.marginBottom = '20px'
329+
})
314330
oneMain.className = 'oneMainBefore';
315331
}
316332
}

popupPage/extension.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ <h2>欢迎使用 uyou 新标签页</h2>
1616
</div>
1717
<div class="Title new">当前版本:</div>
1818
<div class="message">
19-
<div class="v">版本:1.2.3 beta</div>
19+
<div class="v">版本:1.2.3</div>
2020
<div class="info">新增隐藏搜索栏功能</div>
2121
<div class="info">修复了部分功能按钮使用后显示问题</div>
22+
<div class="info">修复了一些移动端 ui 显示</div>
23+
<div class="info">删除了一言功能上移动画</div>
2224
</div>
2325
<div class="Title old">历史版本:</div>
2426
<div class="message">

0 commit comments

Comments
 (0)