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