This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
/
index.php
84 lines (73 loc) · 2.92 KB
/
index.php
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Popup alignment - jQuery Mobile Demos</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css">
<link rel="stylesheet" href="../_assets/css/jqm-demos.css">
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
<script src="../../external/jquery/jquery.js"></script>
<script src="../_assets/js/"></script>
<script src="../../js/"></script>
<script id="extension" src="popup.alignment.js"></script>
<script id="glue">
( function( $, undefined ) {
$.mobile.document.on( "slidestop", function() {
setTimeout( function() {
$( "#alignment-example" ).popup( "option", "align",
$( "#xalign" ).val() + "," + $( "#yalign" ).val() );
}, 250 );
});
})( jQuery );
</script>
<style id="alignment-example-style">
#alignment-example {
min-width: 200px;
opacity: 0.8;
}
#open-alignment-example {
position: relative;
left: 50%;
width: 6em;
margin-left: -3em;
background-color: #ffa0a0;
border-color: black;
}
</style>
</head>
<body>
<div data-role="page" id="demo-intro" class="jqm-demos">
<div data-role="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<a href="#" class="jqm-navmenu-link ui-btn ui-btn-icon-notext ui-corner-all ui-icon-bars ui-nodisc-icon ui-alt-icon ui-btn-left">Menu</a>
<a href="#" class="jqm-search-link ui-btn ui-btn-icon-notext ui-corner-all ui-icon-search ui-nodisc-icon ui-alt-icon ui-btn-right">Search</a>
</div><!-- /header -->
<div role="main" class="ui-content jqm-content">
<div data-demo-html="true" data-demo-js="#extension" data-demo-css="#alignment-example-style">
<div data-role="popup" id="alignment-example" class="ui-content">
<form data-role="fieldset">
<div class="ui-field-contain">
<label for="xalign">X Alignment</label>
<input type="range" id="xalign" name="xalign" value="0.5" min="-1" max="2" step="0.5"></input>
</div>
<div class="ui-field-contain">
<label for="yalign">Y Alignment</label>
<input type="range" id="yalign" name="yalign" value="0.5" min="-1" max="2" step="0.5"></input>
</div>
</form>
</div>
</div>
<a href="#alignment-example" id="open-alignment-example" data-rel="popup" role="button" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">Open Popup</a>
</div><!-- /content -->
<?php include( '../jqm-navmenu.php' ); ?>
<div data-role="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<p>Copyright 2014 The jQuery Foundation</p>
</div><!-- /footer -->
<?php include( '../jqm-search.php' ); ?>
</div><!-- /page -->
</body>
</html>