mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Merge pull request #6112 from RobLoach/emscripten-top-nav
emscripten: Allow hiding the top menu
This commit is contained in:
commit
92ef4002d1
@ -95,6 +95,11 @@
|
|||||||
</li>
|
</li>
|
||||||
</div>
|
</div>
|
||||||
</ul>
|
</ul>
|
||||||
|
<div class="toggleMenu">
|
||||||
|
<button class="btn btn-primary" id="btnHideMenu" title="Toggle Menu">
|
||||||
|
<span class="fa fa-chevron-up" id="icnHideMenu"></span> <span class="sr-only">Hide Top Navigation</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--/.Collapse content-->
|
<!--/.Collapse content-->
|
||||||
</div>
|
</div>
|
||||||
@ -102,6 +107,11 @@
|
|||||||
<div class="bg-inverse webplayer-container">
|
<div class="bg-inverse webplayer-container">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="webplayer_border text-xs-center" id="canvas_div">
|
<div class="webplayer_border text-xs-center" id="canvas_div">
|
||||||
|
<div class="showMenu">
|
||||||
|
<button type="button" class="btn btn-link">
|
||||||
|
<span class="fa fa-chevron-down" id="icnShowMenu"></span> <span class="sr-only">Show Top Navigation</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
<canvas class="webplayer" id="canvas" tabindex="1" oncontextmenu="event.preventDefault()" style="display: none"></canvas>
|
<canvas class="webplayer" id="canvas" tabindex="1" oncontextmenu="event.preventDefault()" style="display: none"></canvas>
|
||||||
<img class="webplayer-preview img-fluid" src="media/canvas.png" width="960px" height="720px" alt="RetroArch Logo">
|
<img class="webplayer-preview img-fluid" src="media/canvas.png" width="960px" height="720px" alt="RetroArch Logo">
|
||||||
</div>
|
</div>
|
||||||
|
@ -92,8 +92,23 @@ textarea {
|
|||||||
font-size: 0.7em;
|
font-size: 0.7em;
|
||||||
height: 95%;
|
height: 95%;
|
||||||
width: 95%;
|
width: 95%;
|
||||||
border-style: none;
|
border-style: none;
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
resize: none;
|
resize: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Toggle Top Navigation
|
||||||
|
*/
|
||||||
|
.toggleMenu {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.showMenu {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
#icnShowMenu {
|
||||||
|
color: #565656 !important;
|
||||||
|
}
|
||||||
|
@ -230,6 +230,13 @@ $(function() {
|
|||||||
placement: 'right'
|
placement: 'right'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Allow hiding the top menu.
|
||||||
|
$('.showMenu').hide();
|
||||||
|
$('#btnHideMenu, .showMenu').click(function () {
|
||||||
|
$('nav').slideToggle('slow');
|
||||||
|
$('.showMenu').toggle('slow');
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attempt to disable some default browser keys.
|
* Attempt to disable some default browser keys.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user