-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsleep.html
118 lines (100 loc) · 2.51 KB
/
sleep.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<link href="css/sleep/sleep.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="css/mui.css"/>
<link rel="stylesheet" type="text/css" href="css/common.css"/>
<script src="svg/iconfont.js" type="text/javascript" charset="utf-8"></script>
<style>
.icon {
width: 35px;
height: 35px;
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}
</style>
<script type="text/javascript">
if(window.localStorage){
var un = localStorage.getItem("username");
var pas = localStorage.getItem("password");
//alert(un+pas);
}else{alert("浏览不支持localStorage")}
</script>
</head>
<body>
<script src="js/mui.js"></script>
<script type="text/javascript">
mui.init()
</script>
<!-- <div class="alarmBtn" onclick="openAlarm()">
<svg class="icon" aria-hidden="true">
<use xlink:href="#icon-naozhong"></use>
</svg>
<h3 class="word1">8:00</h3>
</div> -->
<!-- <div class="noiseBtn" onclick="openNoise()">
<svg class="icon" aria-hidden="true">
<use xlink:href="#icon-bzy"></use>
</svg>
<h3 class="word1">白噪音</h3>
</div>
-->
<div class="reportBtn" onclick="openReport()">
<svg class="icon" aria-hidden="true">
<use xlink:href="#icon-baogao"></use>
</svg>
<h3 class="word">睡眠报告</h3>
</div>
<div class="addAlarmBtn" onclick="openAlarm()">
<svg class="icon" aria-hidden="true">
<use xlink:href="#icon-alarm_add"></use>
</svg>
<h3 class="word">添加闹钟</h3>
</div>
<div class="sleepBtn" onclick="openBeginSleep();">
<svg class="icon" aria-hidden="true" style="width: 200px;height: 200px;">
<use xlink:href="#icon-shuimianjiance"></use>
</svg>
</div>
</body>
<script type="text/javascript">
function openBeginSleep(){
mui.openWindow({
url : 'sleep_begin.html',
extras :
{}
});
}
function openNoise(){
mui.openWindow({
url : 'sleep_noise.html',
extras :
{}
});
}
function openAlarm(){
mui.openWindow({
url : 'sleep_add_alarm.html',
extras :
{}
});
}
function openSetting(){
mui.openWindow({
url : 'sleep_setting.html',
extras :
{}
});
}
function openReport(){
mui.openWindow({
url : 'sleep_report.html',
extras :
{}
});
}
</script>
</html>