diff --git a/css/browser.css b/css/browser.css index 6b1fedf..3ad61d4 100644 --- a/css/browser.css +++ b/css/browser.css @@ -27,7 +27,7 @@ body,#container{ margin:0; padding:0; overflow:hidden; - background:#000; + background:#0A3772; } #content, #screensaver{ position:absolute; @@ -66,7 +66,7 @@ body.tabbed #tabs, body.show-nav #tabs{ .tabs{ overflow-x: hidden; - background: #000; + background: #0A3772; left:0; right:0; width:100%; @@ -87,7 +87,7 @@ body.show-nav .tabs{ #nav{ display:none; visibility:hidden; - background: #000; + background: #0A3772; position:absolute; height:48px; width:144px; @@ -118,7 +118,10 @@ body.show-nav .tabs{ #nav li.inactive a{ color: #333; } -#nav li.inactive a:hover{ +#nav li.inactive{ + background-color: #0A3772; +} +#nav a:hover{ background-color: #000; } body.show-nav #nav{ diff --git a/js/browser.js b/js/browser.js index 7a7790b..0e6597e 100644 --- a/js/browser.js +++ b/js/browser.js @@ -76,7 +76,7 @@ $(function(){ }); } //print on ctrl+p - if (allowPrint && e.which == 80 && e.ctrlKey){ + if (allowPrint && (e.which == 36 || e.which == 80 && e.ctrlKey)){ var activeBrowserID = $('#tabs a.active').attr('href'); $(activeBrowserID+' webview').get(0).print(); } @@ -93,7 +93,10 @@ $(function(){ var activeHomeURL = $webview.data('src'); $webview.attr('src', activeHomeURL); }); - + $('#nav .print').click(function(e){ + var activeBrowserID = $('#tabs a.active').attr('href'); + $(activeBrowserID+' webview').get(0).print(); + }); $('#nav .back').click(function(e){ if($('#nav .back').hasClass('inactive')){ return; diff --git a/windows/browser.html b/windows/browser.html index 97568e9..1a72fe9 100644 --- a/windows/browser.html +++ b/windows/browser.html @@ -101,6 +101,7 @@