Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (35 sloc) 1.42 KB
<!DOCTYPE html>
<html lang="en">
<title>Viewporter enabled</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<!-- This exact meta viewport is required for Viewporter for work properly -->
<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0" />
<link rel="stylesheet" href="common/style.css" type="text/css" media="screen">
<!-- important files (non-optional) -->
<script src="../src/viewporter.js"></script>
<!-- the following two are optional, and just for this demo -->
<script src=""></script>
<script src="common/debug.js"></script>
// orientation locking
$(window).bind('viewportready viewportchange', function() {
<div id="viewporter">
<div id="orientationlock"><p>Please rotate your device to use this demo application.</p></div>
<div id="checker-bl">
<p><strong>window width:</strong> <span id="viewporter-debug-width"></span></p>
<p><strong>window height:</strong> <span id="viewporter-debug-height"></span></p>
<div id="checker-tr">
<p><strong>user agent:</strong> <span id="viewporter-debug-useragent"></span></p>
Jump to Line
Something went wrong with that request. Please try again.