-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
99 lines (81 loc) · 3.81 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
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
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>公司行號 算命</title>
<meta name="description" content="公司行號 算命" />
<meta name="keywords" content="公司行號,算命" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes, minimum-scale=1, maximum-scale=2.0" />
<meta name="format-detection" content="telephone=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<!-- <link rel="Shortcut Icon" href="images/favicon.ico" /> -->
<link rel="stylesheet" type="text/css" href="css/lib/mui-0.2.1/mui.min.css" />
<link rel="stylesheet" type="text/css" href="css/flaticon/flaticon.css" />
<link rel="stylesheet" type="text/css" href="css/main.css" />
<script type="text/javascript" src="js/lib/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/lib/jquery/imagesloaded.pkgd.min.js"></script>
<script type="text/javascript" src="js/lib/mui-0.2.1/mui.js"></script>
<script type="text/javascript" src="js/util.js"></script>
<script type="text/javascript" src="js/String.js"></script>
<script type="text/javascript" src="js/JsThread.js"></script>
<script type="text/javascript" src="js/constant/Config.js"></script>
<script type="text/javascript" src="js/constant/StoreDataName.js"></script>
<script type="text/javascript" src="js/data/Words.js"></script>
<script type="text/javascript" src="js/data/WordsByNum.js"></script>
<script type="text/javascript" src="js/data/Fortune.js"></script>
<script type="text/javascript" src="js/component/Date.js"></script>
<script type="text/javascript" src="js/component/Loader.js"></script>
<script type="text/javascript" src="js/component/Grid.js"></script>
<script type="text/javascript" src="js/component/ComboBox.js"></script>
<script type="text/javascript" src="js/component/MenuBox.js"></script>
<script type="text/javascript" src="js/component/HeaderBar.js"></script>
<script type="text/javascript" src="js/services/StoreService.js"></script>
<script type="text/javascript" src="js/services/DialogService.js"></script>
<script type="text/javascript" src="js/services/WordService.js"></script>
<script type="text/javascript" src="js/services/FortuneService.js"></script>
<script type="text/javascript" src="js/WebManage.js"></script>
</head>
<body>
<div class="container">
<div class="header-margin"></div>
<div class="views"></div>
<div class="footer-margin"></div>
<div class="common-footer">
<div>因為要取公司行號名稱,得到了標準公式,可是字太多了,只好寫系統來算。</div>
</div>
</div>
<script type="text/javascript">
window.webManage = new WebManage();
var headerBar = new HeaderBar();
var wordService = new WordService();
var fortuneService = new FortuneService();
$('body .footer-margin').height($('body .common-footer').height());
$(window).load(function(){
inputFocusEvent();
//处理动态生成的element 添加input focus event
$(document).bind('DOMNodeInserted', function () {
delayAction('inputFocusEvent',500,inputFocusEvent);
});
});
//Input focus 隐藏headerbar、footerbar
function inputFocusEvent(){
$('input').unbind('focus',_inputFocus);
$('input').unbind('focusout',_inputFocusout);
$('input').bind('focus',_inputFocus);
$('input').bind('focusout',_inputFocusout);
function _inputFocus(){
if(!$(this).attr('readonly')){
headerBar.hide();
webManage.getStoreService().set(StoreDataName.InputFocus,true);
}
}
function _inputFocusout(){
if(!$(this).attr('readonly')){
headerBar.show();
webManage.getStoreService().set(StoreDataName.InputFocus,false);
}
}
}
</script>
</body>
</html>