Created
February 21, 2018 23:46
-
-
Save camilamoreiradev/4086ddecf8448b35725cada86b110dc9 to your computer and use it in GitHub Desktop.
Criar botão que ativa o full screen na página.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* BOTÃO HTML */ | |
<a href="javascript:;" class="dropdown-toggle" id="requestFullScreen"> | |
Expandir | |
</a> | |
/* JAVASCRIPT */ | |
<script> | |
$(document).ready(function() { | |
$('#requestFullScreen').click(function () { | |
screenfull.request(); | |
}); | |
}); | |
</script> | |
/* LINK DE DEMO */ | |
https://jsfiddle.net/camilamoreira_webdesigner/1jtkgL62/11/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment