ginebra/chrome/demochrome/snippets/BottomSnippet.html
changeset 5 0f2326c2a325
parent 1 b0dd75e285d2
child 6 1c3b8676e58c
equal deleted inserted replaced
1:b0dd75e285d2 5:0f2326c2a325
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
       
     2 
       
     3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
       
     4 
       
     5   <head>
       
     6     <link rel="stylesheet" id = "CSSLink" type="text/css" href="../css/chromeStyleBlack.css" />
       
     7   </head>
       
     8   <script type="text/javascript">
       
     9 
       
    10       var pageInfoShowing = false;
       
    11 
       
    12       function showPageInfo() {
       
    13          if(!pageInfoShowing){
       
    14             window.parent.document.getElementById("pageInfo_UrlId").value = window.parent.pageController.currentDocUrl;
       
    15             window.parent.document.getElementById("pageInfo_TitleId").value = window.parent.pageController.currentDocTitle;
       
    16             window.parent.chrome.showPageInfo();
       
    17             pageInfoShowing = true;
       
    18          }
       
    19          else {
       
    20            window.parent.chrome.hidePageInfo();
       
    21            pageInfoShowing = false;
       
    22          }
       
    23       }
       
    24 
       
    25       function showHistory() {
       
    26           window.parent.viewManager.showContent("historyView");
       
    27           window.parent.viewManager.historyView.setPosition(40, 40);
       
    28           window.parent.viewManager.historyView.done.connect(
       
    29               function() {
       
    30                   window.parent.viewManager.showContent("webView");
       
    31               }
       
    32           );
       
    33       }
       
    34   </script>
       
    35 
       
    36   <body>
       
    37     <span class="ButtonRow">
       
    38       <img src="../images/backArrow.png" align="center" style="width: 18px" class="ButtonImage" onclick="window.parent.pageController.currentBack()"/>
       
    39       <img src="../images/forwardArrow.png" align="center" style="width: 18px" class="ButtonImage" onclick="window.parent.pageController.currentForward()"/>
       
    40       <img src="../images/history.png" align="center"  class="ButtonImage" onclick="showHistory()"/>
       
    41       <img src="../images/stop.png" align="center" style="width: 18px" class="ButtonImage" onclick="window.parent.pageController.currentStop()"/>
       
    42       <img src="../images/reload.png" align="center" style="width: 20px" class="ButtonImage" onclick="window.parent.pageController.currentReload()"/>
       
    43       <img src="../images/zoomIn.png" align="center" style="width: 20px" class="ButtonImage" onclick="window.parent.webView.zoomIn()"/>
       
    44       <img src="../images/zoomOut.png" align="center" style="width: 20px" class="ButtonImage" onclick="window.parent.webView.zoomOut()"/>
       
    45       <img src="../images/info.png" align="center" style="width: 20px" class="ButtonImage" onclick="showPageInfo()"/>
       
    46       <img src="../images/wrench_icon.jpg" align="center"  class="ButtonImage" onclick="window.parent.chrome.popToggle('PopChromeId')"/>
       
    47       <img src="../images/red_sox_logo.gif" align="center"  class="ButtonImage" onclick="window.parent.chrome.loadChrome('chrome/boston-chrome.html');"/>
       
    48       <img src="../images/star.png" id="StarButtonId" align="center" class="ButtonImage" style="display: none;"/>
       
    49     </span>
       
    50   </body>
       
    51 </html>