-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.html
68 lines (68 loc) · 2.23 KB
/
page.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="applicable-device" content="mobile"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta content="telephone=no" name="format-detection"/>
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="yes" name="apple-mobile-web-app-capable"/>
<meta http-equiv="Cache-Control" content="no-transform"/>
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<title>TalkingData Page</title>
<link rel="stylesheet" href="css/public_head.css" />
<link rel="stylesheet" href="css/public_body.css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/phone.js" ></script>
<script type="text/javascript" src="js/TalkingDataSDK.js"></script>
<script type="text/javascript">
(function() {
TalkingDataSDK.onPageBegin("page");
})();
</script>
</head>
<body>
<div class="head_line">
<p class="head_line_p">
TalkingDataSDK
</p>
</div>
<div class="new_index">
<div class="wd_title">
<img src="images/page.png">页面统计
</div>
<div class="wd_index">
<div class="btn_line">
<input id="btn_page1" type="button" class="bottom_btn" value="跳转至新页面1">
</div>
<div class="btn_line">
<input id="btn_page2" type="button" class="bottom_btn" value="跳转至新页面2">
</div>
</div>
</div>
<div class="new_index">
<div class="wd_title">
</div>
<div class="btn_line">
<input id="btn_back" type="button" class="bottom_btn" value="返回">
</div>
</div>
<script src="cordova.js"></script>
<script>
$('#btn_page1').on('click', function(){
TalkingDataSDK.onPageEnd("page");
TalkingDataSDK.onPageBegin("page1");
window.location.href = 'page1.html';
});
$('#btn_page2').on('click', function(){
TalkingDataSDK.onPageEnd("page");
TalkingDataSDK.onPageBegin("page2");
window.location.href = 'page2.html';
});
$('#btn_back').on("click", function(){
TalkingDataSDK.onPageEnd("page");
window.history.back();
});
</script>
</body>
</html>