-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to reset the viewport and prevent page scroll events.
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,33 @@ | |||
<!DOCTYPE html> | |||
<html lang="en"> | |||
<head> | |||
|
|||
<title>No Page Scroll</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="style.css" type="text/css" media="screen"> | |||
|
|||
<script src="../src/viewporter.js"></script> | |||
|
|||
|
|||
</head> | |||
<body> | |||
<div id="viewporter"><!-- This wrapper element is also required --> | |||
|
|||
<div id="checker-bl"><p></p></div> | |||
<div id="checker-tr"><p></p></div> | |||
|
|||
</div> | |||
|
|||
<script type="text/javascript"> | |||
viewporter.preventPageScroll = true; | |||
</script> | |||
|
|||
</body> | |||
</html> |
This file contains 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