4 <script src="../../js/3rdparty/jquery-1.4.2.min.js" type="text/javascript"></script> |
4 <script src="../../js/3rdparty/jquery-1.4.2.min.js" type="text/javascript"></script> |
5 <script src="../../js/3rdparty/jquery-ui/ui.core.js" type="text/javascript"></script> |
5 <script src="../../js/3rdparty/jquery-ui/ui.core.js" type="text/javascript"></script> |
6 <script src="../../js/3rdparty/jquery-ui/ui.sortable.js" type="text/javascript"></script> |
6 <script src="../../js/3rdparty/jquery-ui/ui.sortable.js" type="text/javascript"></script> |
7 <script src="../../js/LongPress.js" type="text/javascript"></script> |
7 <script src="../../js/LongPress.js" type="text/javascript"></script> |
8 <script src="../../js/Bind.js" type="text/javascript"></script> |
8 <script src="../../js/Bind.js" type="text/javascript"></script> |
9 <script src="../../js/ActionButton.js" type="text/javascript"></script> |
|
10 <script src="bookmarkview.js" type="text/javascript"></script> |
9 <script src="bookmarkview.js" type="text/javascript"></script> |
11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
10 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
12 <link rel="stylesheet" id="CSSLink" type="text/css" href="bookmarkview.css"/> |
11 <link rel="stylesheet" id="CSSLink" type="text/css" href="bookmarkview.css"/> |
13 <meta name = "viewport" content = "width = device-width, height = device-height, initial-scale = 1.0, user-scalable = no"> |
12 <meta name = "viewport" content = "width = device-width, height = device-height, initial-scale = 1.0, user-scalable = no"> |
14 <title>Bookmark View</title> |
13 <title>Bookmark View</title> |
15 |
14 |
16 <script type="text/javascript"> |
15 <script type="text/javascript"> |
|
16 function scrollToTop() |
|
17 { |
|
18 if(__prevOpenedBookmarkControl) |
|
19 _bookmarkHideControl(__prevOpenedBookmarkControl); |
|
20 |
|
21 $('html, body').attr({scrollTop: 0}); |
|
22 |
|
23 _updateBookmarkViewGoemetry(0); |
|
24 } |
|
25 |
17 function updateBookmakrView() |
26 function updateBookmakrView() |
18 { |
27 { |
|
28 window.views.WebView.BookmarkTreeView.shown.connect(scrollToTop); |
|
29 |
19 launchBookmarkView(); |
30 launchBookmarkView(); |
20 |
31 |
21 |
32 |
22 // set the Width & Height |
33 //set the Width & Height |
23 $("#bookmarkListId").css({"width": window.innerWidth+"px", "height": window.innerHeight+"px"}); |
34 if (!window.views.WebView.bedrockTiledBackingStoreEnabled()) |
|
35 $("#bookmarkListId").css({"width": window.innerWidth+"px", "height": window.innerHeight+"px"}); |
|
36 |
24 } |
37 } |
25 |
38 |
26 var __sortingEnabled = false; |
39 var __sortingEnabled = false; |
27 var __sortEleOffsetTop = 0; |
40 var __sortEleOffsetTop = 0; |
28 window.onresize = function(){ |
41 window.onresize = function(){ |
|
42 |
|
43 |
|
44 if (!window.views.WebView.bedrockTiledBackingStoreEnabled()) |
29 $("#bookmarkListId").css({"width": window.innerWidth+"px", "height": window.innerHeight+"px"}); |
45 $("#bookmarkListId").css({"width": window.innerWidth+"px", "height": window.innerHeight+"px"}); |
30 |
46 |
31 if (__sortingEnabled) |
47 if (__sortingEnabled) |
32 { |
48 { |
33 $('html, body').animate({ |
49 $('html, body').animate({ |
34 scrollTop: parseInt(__sortEleOffsetTop)}, 1000); |
50 scrollTop: parseInt(__sortEleOffsetTop)}, 1000); |
35 } |
|
36 } |
51 } |
|
52 } |
37 |
53 |
38 </script> |
54 </script> |
39 |
55 |
40 </head> |
56 </head> |
41 |
57 |
42 <body onload=updateBookmakrView()> |
58 <body onload=updateBookmakrView()> |
43 <div id="bookmarkListId" class="bookmarkList"> |
59 <div id="bookmarkListId" class="bookmarkList"> |
44 <ul id="bookmarkListTree"></ul> |
60 <ul id="bookmarkListTree"></ul> |
|
61 <div id="BottomPad"></div> |
45 </div> |
62 </div> |
46 |
63 |
47 <div class="hiddenLoadImages"></div> |
64 <div class="hiddenLoadImages"></div> |
48 |
65 |
49 </body> |
66 </body> |