-
Notifications
You must be signed in to change notification settings - Fork 0
/
navigation_popTo_B.html
executable file
·49 lines (30 loc) · 1.09 KB
/
navigation_popTo_B.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
<link rel="stylesheet" type="text/css" href="css/styles.css"/>
</head>
<body class="green">
<div class="block">
<p>Push views "A" and "B" in pullToRefresh controller, then push "C" in simpleController, then try Pop to "A" or
"B"</p>
<p>You are on B. <b>now push C</b></p>
<a class="push" href="javascript:;" data-href="navigation_popTo_C.html" data-classid="default">Push C</a>
</div>
<script type="text/javascript" src="js/zepto.min.js"></script>
<script type="text/javascript" src="js/Cobalt-Web/cobalt.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<script>
Zepto(function($) {
cobalt.init();
cobalt.subscribe('cobalt:onPullToRefresh', function(){
cobalt.toast('reloading B.');
cobalt.pullToRefresh.dismiss();
});
app.initPage('PopTo, Page B');
})
</script>
</body>
</html>