mirror of
https://github.com/tjy-gitnub/win12.git
synced 2026-09-21 12:44:02 +08:00
v3.0.0 桌面图标、记事本、可安装到电脑
-可以在Edge、Chrome等主流浏览器中将Win12安装为pwa应用 -新增桌面图标,并增加桌面右键菜单'刷新'功能 -可以将开始菜单应用右键添加到桌面 -新增'记事本'应用 -新的深色模式切换按钮 -改进了窗口的外观 -细节优化和修复
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
更多功能还在制作之中...
|
||||
|
||||
## 在线体验
|
||||
[在线预览](https://tjy-gitnub.github.io/win12/start.html)
|
||||
[在线预览](https://tjy-gitnub.github.io/win12/desktop.html)
|
||||
有点慢,稍等一下
|
||||
|
||||
## 安装和使用
|
||||
|
||||
+3
-3
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user