v3.0.0 桌面图标、记事本、可安装到电脑

-可以在Edge、Chrome等主流浏览器中将Win12安装为pwa应用
-新增桌面图标,并增加桌面右键菜单'刷新'功能
-可以将开始菜单应用右键添加到桌面
-新增'记事本'应用
-新的深色模式切换按钮
-改进了窗口的外观
-细节优化和修复
This commit is contained in:
tjy-gitnub
2022-11-06 12:37:59 +08:00
parent 8f2828c096
commit a6baca1d99
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -18,7 +18,7 @@
更多功能还在制作之中...
## 在线体验
[在线预览](https://tjy-gitnub.github.io/win12/start.html)
[在线预览](https://tjy-gitnub.github.io/win12/desktop.html)
有点慢,稍等一下
## 安装和使用
+3 -3
View File
@@ -369,9 +369,6 @@ navigator.serviceWorker.register('sw.js',{scope:'./'});
navigator.serviceWorker.addEventListener('message', function (e) {
if(e.data=='update'){
$('.msg.update>.main>.tit').html('<i class="bi bi-stars" style="background-image: linear-gradient(100deg, #ad6eca, #3b91d8);-webkit-background-clip: text;-webkit-text-fill-color: transparent;text-shadow:3px 3px 5px var(--sd);filter:saturate(200%) brightness(0.9);"></i> ' + $('#win-about>.cnt.update>div>details:first-child>summary').text());
$('.msg.update>.main>.cont').html($('#win-about>.cnt.update>div>details:first-child>p').html());
$('#loadbackupdate').css('display','block');
updated=true;
if(aftload){
$('.msg.update').addClass('show');
@@ -383,5 +380,8 @@ navigator.serviceWorker.addEventListener('message', function (e) {
// v3更新 清除cookie
if(document.cookie!=''){
document.cookie='version=3.0.0;expires=Thu, 01 Jan 1970 00:00:00 UTC;';
$('.msg.update>.main>.tit').html('<i class="bi bi-stars" style="background-image: linear-gradient(100deg, #ad6eca, #3b91d8);-webkit-background-clip: text;-webkit-text-fill-color: transparent;text-shadow:3px 3px 5px var(--sd);filter:saturate(200%) brightness(0.9);"></i> ' + $('#win-about>.cnt.update>div>details:first-child>summary').text());
$('.msg.update>.main>.cont').html($('#win-about>.cnt.update>div>details:first-child>p').html());
$('#loadbackupdate').css('display','block');
updated=true;
}