Closed yhoogstrate closed 8 years ago
based on the source it looks like it is coming soon (https://github.com/dasmoth/dalliance/blob/master/js/cbrowser.js#L1324)
It is actually easy to do this yourself:
just add the following code to your page:
<a class="btn" href="#" role="button" onclick="requestFullscreen('svgHolder'); return false;"><i class="fa fa-arrows-alt"></i> Fullscreen</a>
<script>
function requestFullscreen(ele) {
$('#' +ele).css({"padding":"5%","background":"white"});
var elem = document.getElementById(ele);
if (elem.requestFullscreen) {
elem.requestFullscreen();
} else if (elem.msRequestFullscreen) {
elem.msRequestFullscreen();
} else if (elem.mozRequestFullScreen) {
elem.mozRequestFullScreen();
} else if (elem.webkitRequestFullscreen) {
elem.webkitRequestFullscreen();
}
}
</script>
I'm not sure if this has been discussed before or whether I can't find the button, but to me it would be useful to have a "full screen" button at the BioDalliance home page. With full screen I mean that the viewer takes the entire browsers width.
Keep up the good work!