-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
51 lines (43 loc) · 2.64 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<meta name='apple-mobile-web-app-capable' content='yes' />
<meta name='apple-mobile-web-app-status-bar-style' content='black-translucent' />
<title>Swipe Up demo</title>
<meta name='viewport' id='meta-viewport' data-viewport-type="modern"
content='width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover'>
<link rel='stylesheet' href='css/style.css' />
<script src='viewport.js'></script>
<script src='demo.js'></script>
</head>
<body>
<div class='wrapper'>
<h3>Demo of Swipe Up <span id='ver'></span></h3>
<i id='userAgent'></i><br>
<span id='userAgentName'></span> / <span id='deviceName'></span><br>
<a href='https://github.com/device-hackers/swipe-up'>https://github.com/device-hackers/swipe-up</a><br><br>
<input class='inputForKeyboardOnDemo' type='text' placeholder='Tap to show keyboard'>
<button id='toggleViewport' class='demoButton'>Toggle viewport</button>
<button id='toggleDebugWidget' class='demoButton'>Toggle debug widget</button>
<button id='toggleEnableDisable' class='demoButton'>Toggle enable/disable</button>
<div class='options'>
<p>Options:</p>
<button id='initialOrientation' class='demoButton'>initialOrientation = not null</button>
<button id='fixateRootElementsOnInit' class='demoButton'>fixateRootElementsOnInit = true</button>
<button id='scrollWindowToTopOnShow' class='demoButton'>scrollWindowToTopOnShow = true</button>
<button id='useHtml5FullScreenWhenPossible' class='demoButton'>useHtml5FullScreenWhenPossible = false</button>
<button id='excludedUserAgents' class='demoButton'>excludedUserAgents = /Tablets/i</button>
<button id='customTexts' class='demoButton'>customTexts</button>
<button id='customCSS' class='demoButton'>customCSS</button>
<button id='customCSSCleanSlate' class='demoButton'>customCSSCleanSlate = true</button>
<button id='animated' class='demoButton'>animated</button>
<button id='expandBodyHeightTo1' class='demoButton'>expandBodyHeightTo = '120vh'</button>
<button id='expandBodyHeightTo2' class='demoButton'>expandBodyHeightTo = '100%'</button>
<button id='expandBodyHeightTo3' class='demoButton'>expandBodyHeightTo = 'initial'</button>
<button id='updateTimeout1' class='demoButton'>updateTimeout = 0</button>
<button id='updateTimeout2' class='demoButton'>updateTimeout = 200</button>
</div>
</div>
</body>
</html>