-
Notifications
You must be signed in to change notification settings - Fork 4
/
demo.html
225 lines (219 loc) · 11.3 KB
/
demo.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
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<title>mac桌面</title>
<meta name="description" content="mac桌面">
<meta name="keywords" content="mac桌面">
<link rel='Shortcut Icon' type='image/x-icon' href='./favicon.ico'>
<link rel="stylesheet" href="https://cdn.staticfile.org/animate.css/4.1.1/animate.min.css">
<link rel="stylesheet" href="./component/fontawesome-6.4.0/css/all.min.css">
<link rel="stylesheet" href="./css/index.min.css">
<link rel="stylesheet" href="./plugins/shortcut-drawer/shortcut-drawer.min.css">
</head>
<body>
<div id="mac">
<div id="mac_task_bar" class="backgroud_blur">
<div id="mac_btn_group_left" class="btn_group">
<div id="mac_btn_win" class="btn"><i class="fa-brands fa-apple"></i></div>
</div>
<div id="mac_btn_group_middle" class="btn_group"></div>
<div id="mac_btn_group_right" class="btn_group">
<div class="btn" id="mac_btn_time"></div>
<div class="btn" id="mac_btn_command"><i id="mac-msg-nof" class="fa-solid fa-list-ul"></i></div>
<div class="btn" id="mac_btn_show_desktop"></div>
</div>
</div>
<div class="desktop">
<div id="mac-shortcuts" class="shortcuts-hidden">
<div class="shortcut"
onclick="Macui.openUrl('./index.html','<img class=\'icon\' src=\'./img/icon/computer.png\'/>','OS官网')">
<img class="icon" src="./img/icon/computer.png"/>
<div class="title">OS官网</div>
</div>
<div class="shortcut"
onclick="Macui.openUrl('./app/todo','<img class=\'icon\' src=\'./img/icon/notes.png\'/>','note')">
<img class="icon" src="./img/icon/notes.png"/>
<div class="title">Note</div>
</div>
<div class="shortcut"
onclick="Macui.openUrl('https://developer.apple.com/game-center','<img class=\'icon\' src=\'./img/icon/gamecenter.png\'/>','GameCenter')">
<img class="icon" src="./img/icon/gamecenter.png"/>
<div class="title">GameCenter</div>
</div>
<div class="shortcut"
onclick="Macui.openUrl('./app/calendar','<img class=\'icon\' src=\'./img/icon/calendar.png\'/>','Calendar',[['910px','675px'],'auto'])">
<img class="icon" src="./img/icon/calendar.png"/>
<div class="title">Calendar</div>
</div>
<div class="shortcut"
onclick="Macui.openUrl('./app/calculator','<img class=\'icon\' src=\'./img/icon/calculator.png\'/>','Calculator',[['387px','613px'],'auto'])">
<img class="icon" src="./img/icon/calculator.png"/>
<div class="title">Calculator</div>
</div>
<div class="shortcut" onclick="window.open('https://www.icloud.com/')">
<img class="icon" src="./img/icon/icloud.png"/>
<div class="title">iCloud</div>
</div>
<div class="shortcut"
onclick="Macui.openUrl('https://map.baidu.com','<img class=\'icon\' src=\'./img/icon/maps.png\'/>','Map')">
<img class="icon" src="./img/icon/maps.png"/>
<div class="title">地图</div>
</div>
<div class="shortcut"
onclick="window.open('https://github.com/yuri2peter/mac-ui/archive/master.zip')">
<img class="icon" src="./img/icon/prefapp.png"/>
<div class="title">设置</div>
</div>
<div class="shortcut"
onclick="window.open('./login.html','<i class=\'fa fa-user icon black-green\'></i>','登录页')">
<i class="fa fa-user icon black-green"></i>
<div class="title">登录页</div>
</div>
<div class="shortcut mac-open-window flipInX animated"
data-url="./plugins/theme_switcher/theme_switcher.html" style="left: 92px; top: 510px;">
<img class="icon" src="./img/icon/DesktopScreenEffectsPref.png"/>
<div class="title">切换壁纸</div>
</div>
<div class="shortcut mac-drawer">
<img class="icon" src="./img/icon/folder.png"/>
<div class="title">新建文件夹</div>
<div class="mac-drawer-box">
<div class="shortcut-drawer mac-drawer">
<img class="icon" src="./img/icon/folder.png"/>
<div class="title">新建文件夹</div>
<div class="mac-drawer-box">
<div class="shortcut-drawer mac-open-window" data-url="www.baidu.com">
<i class="icon fa fa-fw fa-th-list orange"></i>
<div class="title">子项1</div>
</div>
</div>
</div>
<div class="shortcut-drawer mac-open-window" data-url="www.baidu.com">
<i class="icon fa fa-fw fa-th-list orange"></i>
<div class="title">子项1</div>
</div>
<div class="shortcut-drawer">
<i class="icon fa fa-fw fa-th-list orange"></i>
<div class="title">子项2</div>
</div>
</div>
</div>
</div>
<div id="mac-desktop-scene" class="background blur"></div>
</div>
<div id="mac-menu" class="hidden backgroud_blur">
<div class="list mac-menu-hidden animated animated-slideOutLeft">
<div class="item"><i class="icon fa fa-wrench fa-fw"></i><span>API测试</span></div>
<div class="sub-item" onclick="Macui.openUrl('./child.html','子页')">父子页沟通</div>
<div class="sub-item" onclick="Macui.commandCenterOpen()">打开消息中心</div>
<div class="sub-item"
onclick="Macui.newMsg('API测试','通过API可以发送消息至消息中心,自定义标题与内容(点击我试试)',function() {alert('click')})">
发送带回调的消息
</div>
<div class="sub-item" onclick="Macui.menuClose()">关闭菜单</div>
<div class="item"><i class="icon fa fa-gavel fa-fw"></i>辅助工具</div>
<div class="sub-item"
onclick="Macui.openUrl('win10ui.yuri2.cn/src/tools/builder-shortcut.html','图标代码生成器')">桌面图标代码生成器
</div>
<div class="sub-item"
onclick="Macui.openUrl('win10ui.yuri2.cn/src/tools/builder-tile.html','磁贴代码生成器')">
磁贴代码生成器
</div>
<div class="sub-item"
onclick="Macui.openUrl('win10ui.yuri2.cn/src/tools/builder-menu.html','菜单代码生成器')">
菜单代码生成器
</div>
<div class="item" onclick="Macui.aboutUs()"><i class="icon fa fa-star fa-fw"></i>关于</div>
<div class="item" onclick=" Macui.exit();"><i class="icon fa fa-power-off fa-fw"></i>关闭</div>
</div>
</div>
<div id="mac_command_center" class="hidden_right backgroud_blur">
<div class="command-header">
<div class="tab-today active">今天</div>
<div class="tab-msg">通知</div>
</div>
<div class="command-body today"></div>
<!-- <span id="mac_btn_command_center_clean_all">全部清除</span> -->
<div class="command-body msgs"></div>
</div>
<!--bottom dock -->
<div class="dock" id="dock">
<div class="dock-container backgroud_blur">
<a class="dock-item"
onclick="Macui.openUrl('./app/finder','<img class=\'icon\' src=\'./img/icon/finder.png\'/>','finder')"><span>finder</span><img
src="./img/icon/finder.png" alt="finder"></a>
<a class="dock-item launchpad" href="#"><span>launchpad</span><img src="./img/icon/launchpad.png"
alt="launchpad"/></a>
<a class="dock-item"
onclick="Macui.openUrl('./app/safari','<img class=\'icon\' src=\'./img/icon/safari.png\'/>','safari')"><span>safari</span><img
src="./img/icon/safari.png" alt="safari"></a>
<a class="dock-item" id="trashicon"><span>trashicon</span><img src="./img/icon/trashicon.png"
alt="trashicon"/></a>
</div>
</div>
<div id="launchpad" class="launchpad backgroud_blur hidden">
<div id="app-serach-box" class="app-serach-box">
<form action="" class="search">
<div class="serach-box">
<input type="text" class="input-search" name="input-search" pattern=".{1,}" required>
<label>Search</label>
</div>
</form>
</div>
<div id="app-shortcuts" class="app-shortcuts">
<div class="shortcut"
onclick="Macui.openUrl('./index.html','<img class=\'icon\' src=\'./img/icon/computer.png\'/>','UI官网')">
<img class="icon" src="./img/icon/computer.png"/>
<div class="title">UI官网</div>
</div>
<div class="shortcut" onclick="window.open('./demo.html')">
<img class="icon" src="./img/icon/demo.png"/>
<div class="title">查看DEMO</div>
</div>
<div class="shortcut"
onclick="Macui.openUrl('./index.html','<img class=\'icon\' src=\'./img/icon/computer.png\'/>','UI官网')">
<img class="icon" src="./img/icon/computer.png"/>
<div class="title">UI官网</div>
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript" src="https://cdn.staticfile.org/jquery/2.2.4/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.staticfile.org/layer/3.5.1/layer.min.js"></script>
<script type="text/javascript" src="./js/index.min.js"></script>
<script type="text/javascript" src="./js/interface.min.js"></script>
<script type="text/javascript" src="./plugins/shortcut-drawer/shortcut-drawer.min.js"></script>
<script>
Macui.onReady(function () {
//设置壁纸
Macui.setBgUrl({
main: './img/wallpapers/main.jpg',
mobile: './img/wallpapers/mobile.jpg',
});
Macui.setAnimated([
'animated flip',
'animated bounceIn',
], 0.01);
setTimeout(function () {
Macui.newMsg('推荐全屏', '按下F11全屏以达到最佳视觉效果(点击进入)', function () {
Macui.enableFullScreen();
})
}, 1500);
setTimeout(function () {
layer.open({
type: 2,
title: '最新资讯',
area: ['300px', '380px'],
shade: 0,
skin: 'mac-open-iframe',
offset: 'rb',
content: 'broadcast.html'
})
}, 2000);
});
</script>
</html>