Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (36 sloc) 0.909 kB
<html>
<head>
<title>fullscreen component</title>
<link rel="stylesheet" href="../build/build.css">
<style>
.relative {
position: relative;
height: 300px;
width: 300px;
margin-left: 200px;
}
textarea {
outline: none;
font: 16px "Helvetica Neue", Helvetica;
}
textarea.is-fullscreen {
max-width: 800px;
display: block;
margin: 0 auto;
}
</style>
</head>
<body>
<h1>fullscreen component</h1>
<div class="relative">
<textarea id="content" cols="30" rows="10"></textarea>
</div>
<button onclick="fullscreen.open()">Go fullscreen</button>
<script src="../build/build.js" type="text/javascript"></script>
<script type="text/javascript">
var Fullscreen = require('fullscreen'),
textarea = document.getElementById('content');
var fullscreen = Fullscreen(textarea);
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.