author | hgs |
Tue, 29 Jun 2010 00:46:29 -0400 | |
changeset 3 | 0954f5dd2cd0 |
parent 0 | 1450b09d0cfd |
child 16 | 3c88a81ff781 |
permissions | -rw-r--r-- |
0
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-EN"> |
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
3 |
<head> |
3 | 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> |
|
6 |
<script src="../../js/3rdparty/jquery-ui/ui.sortable.js" type="text/javascript"></script> |
|
0
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
7 |
<script src="../../js/LongPress.js" type="text/javascript"></script> |
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
8 |
<script src="../../js/Bind.js" type="text/javascript"></script> |
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
9 |
<script src="bookmarkview.js" type="text/javascript"></script> |
3 | 10 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
11 |
<link rel="stylesheet" id="CSSLink" type="text/css" href="bookmarkview.css"/> |
|
0
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
12 |
<meta name = "viewport" content = "width = device-width, height = device-height, initial-scale = 1.0, user-scalable = no"> |
3 | 13 |
<title>Bookmark View</title> |
0
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
14 |
|
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
15 |
<script type="text/javascript"> |
3 | 16 |
function scrollToTop() |
17 |
{ |
|
18 |
if(__prevOpenedBookmarkControl) |
|
19 |
_bookmarkHideControl(__prevOpenedBookmarkControl); |
|
20 |
||
21 |
$('html, body').attr({scrollTop: 0}); |
|
22 |
||
23 |
_updateBookmarkViewGoemetry(0); |
|
24 |
} |
|
0
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
25 |
|
3 | 26 |
function updateBookmakrView() |
27 |
{ |
|
28 |
window.views.WebView.BookmarkTreeView.shown.connect(scrollToTop); |
|
29 |
||
30 |
launchBookmarkView(); |
|
31 |
||
0
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
32 |
|
3 | 33 |
//set the Width & Height |
34 |
if (!window.views.WebView.bedrockTiledBackingStoreEnabled()) |
|
35 |
$("#bookmarkListId").css({"width": window.innerWidth+"px", "height": window.innerHeight+"px"}); |
|
36 |
||
37 |
} |
|
38 |
||
39 |
var __sortingEnabled = false; |
|
40 |
var __sortEleOffsetTop = 0; |
|
41 |
window.onresize = function(){ |
|
42 |
||
43 |
||
44 |
if (!window.views.WebView.bedrockTiledBackingStoreEnabled()) |
|
45 |
$("#bookmarkListId").css({"width": window.innerWidth+"px", "height": window.innerHeight+"px"}); |
|
46 |
||
47 |
if (__sortingEnabled) |
|
48 |
{ |
|
49 |
$('html, body').animate({ |
|
50 |
scrollTop: parseInt(__sortEleOffsetTop)}, 1000); |
|
51 |
} |
|
52 |
} |
|
53 |
||
0
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
54 |
</script> |
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
55 |
|
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
56 |
</head> |
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
57 |
|
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
58 |
<body onload=updateBookmakrView()> |
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
59 |
<div id="bookmarkListId" class="bookmarkList"> |
3 | 60 |
<ul id="bookmarkListTree"></ul> |
61 |
<div id="BottomPad"></div> |
|
62 |
</div> |
|
63 |
||
64 |
<div class="hiddenLoadImages"></div> |
|
65 |
||
0
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
66 |
</body> |
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
67 |
</html> |