author | hgs |
Fri, 15 Oct 2010 17:30:59 -0400 | |
changeset 16 | 3c88a81ff781 |
parent 3 | 0954f5dd2cd0 |
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> |
16 | 4 |
<script src="/chrome/jquery-1.4.2.min.js" type="text/javascript"></script> |
5 |
<script src="/chrome/ui.core.js" type="text/javascript"></script> |
|
6 |
<script src="/chrome/ui.sortable.js" type="text/javascript"></script> |
|
7 |
<script src="/chrome/LongPress.js" type="text/javascript"></script> |
|
8 |
<script src="/chrome/Bind.js" type="text/javascript"></script> |
|
9 |
<script src="/bookmarkview/bookmarkview.js" type="text/javascript"></script> |
|
0
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
10 |
|
16 | 11 |
<link rel="stylesheet" id="CSSLink" type="text/css" href="/bookmarkview/bookmarkview.css"/> |
12 |
||
13 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
14 |
<meta name = "viewport" content = "width = device-width, height = device-height, initial-scale = 1.0, user-scalable = no"> |
|
15 |
||
16 |
<title>Bookmarks</title> |
|
17 |
||
18 |
<script type="text/javascript"> |
|
19 |
function scrollToTop() { |
|
3 | 20 |
|
16 | 21 |
if(__prevOpenedBookmarkControl) |
22 |
_bookmarkHideControl(__prevOpenedBookmarkControl); |
|
3 | 23 |
|
16 | 24 |
$('html, body').attr({scrollTop: 0}); |
0
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
25 |
|
16 | 26 |
_updateBookmarkViewGoemetry(0); |
27 |
} |
|
3 | 28 |
|
16 | 29 |
function updateBookmakrView() { |
30 |
||
31 |
window.views.WebView.BookmarkTreeView.shown.connect(scrollToTop); |
|
32 |
||
33 |
launchBookmarkView(); |
|
3 | 34 |
|
16 | 35 |
//set the Width & Height |
36 |
if ( !window.views.WebView.bedrockTiledBackingStoreEnabled() ) |
|
37 |
$("#bookmarkListId").css({"width": window.innerWidth+"px", "height": window.innerHeight+"px"}); |
|
38 |
} |
|
3 | 39 |
|
16 | 40 |
var __sortingEnabled = false; |
41 |
var __sortEleOffsetTop = 0; |
|
42 |
||
43 |
window.onresize = function() { |
|
3 | 44 |
|
16 | 45 |
if ( !window.views.WebView.bedrockTiledBackingStoreEnabled() ) |
46 |
$("#bookmarkListId").css({"width": window.innerWidth+"px", "height": window.innerHeight+"px"}); |
|
47 |
||
48 |
if (__sortingEnabled) |
|
49 |
{ |
|
50 |
$('html, body').animate( |
|
51 |
{scrollTop: parseInt(__sortEleOffsetTop)}, |
|
52 |
1000); |
|
53 |
} |
|
3 | 54 |
} |
16 | 55 |
</script> |
0
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()> |
3 | 59 |
|
16 | 60 |
<div id="bookmarkListId" class="bookmarkList"> |
61 |
<ul id="bookmarkListTree"></ul> |
|
62 |
<div id="BottomPad"></div> |
|
63 |
</div> |
|
64 |
||
65 |
<!-- |
|
66 |
<div class="hiddenLoadImages"></div> |
|
67 |
--> |
|
0
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
68 |
</body> |
1450b09d0cfd
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
69 |
</html> |