This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (65 loc) · 2.11 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<!-- Require.js is bundled with Tianbar -->
<script src="tianbar:///data/scripts/vendor/require.js"></script>
<script>
require.config({
paths: {
// All Tianbar widgets are under tianbar:///data/scripts
'tianbar': 'tianbar:///data/scripts',
// Bundled libraries (required for widgets) are in
// 'vendor' subdirectory.
'jquery': 'tianbar:///data/scripts/vendor/jquery',
'moment': 'tianbar:///data/scripts/vendor/moment'
}
});
// Load the necessary widgets
require([
'tianbar/power',
'tianbar/network',
'tianbar/time',
'tianbar/weather'
]);
</script>
<style type="text/css">
/* All the styling is in CSS. */
* {
margin: 0;
overflow: hidden;
}
body {
background: -webkit-linear-gradient(-90deg,
#cff0ff 00px, #cff0ff 05px,
#dccfff 05px, #dccfff 10px,
#ffd3cf 10px, #ffd3cf 15px,
#e3f6c8 15px, #e3f6c8 20px,
#ffdabd 20px, #ffdabd 25px
) repeat-x;
color: brown;
text-shadow: 0px 0px 2px orange;
background-size: 25px 25px;
margin: 3px 4px;
font-family: sans-serif;
font-size: 16px;
cursor: default;
}
.widget-left {
float: left;
margin-right: 15px;
}
.widget-right {
float: right;
margin-left: 15px;
}
</style>
</head>
<body>
<span class="widget-left title">Tianbar</span>
<!-- Each widget recognizes its own class. -->
<span class="widget-right widget-time"></span>
<span class="widget-right widget-network"></span>
<span class="widget-right widget-power"></span>
<span class="widget-right widget-weather"></span>
</body>
</html>