Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions css/browser.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ body,#container{
margin:0;
padding:0;
overflow:hidden;
background:#000;
background:#0A3772;
}
#content, #screensaver{
position:absolute;
Expand Down Expand Up @@ -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%;
Expand All @@ -87,7 +87,7 @@ body.show-nav .tabs{
#nav{
display:none;
visibility:hidden;
background: #000;
background: #0A3772;
position:absolute;
height:48px;
width:144px;
Expand Down Expand Up @@ -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{
Expand Down
7 changes: 5 additions & 2 deletions js/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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;
Expand Down
1 change: 1 addition & 0 deletions windows/browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ <h5 class="text"></h5>
<nav id="nav">
<ul>
<li class="home inactive"><a href="#"><i class="material-icons">home</i></a></li>
<li class="print"><a href="#"><i class="material-icons">print</i></a></li>
<li class="back inactive"><a href="#"><i class="material-icons">arrow_back</i></a></li>
<li class="refresh"><a href="#"><i class="material-icons">refresh</i></a></li>
</ul>
Expand Down