Skip to content

Commit 5f89681

Browse files
agcolomapsdehal
authored andcommitted
Vclick: Fixed height of example in iframe to avoid scrolling
Closes gh-350
1 parent ec6e175 commit 5f89681

File tree

1 file changed

+31
-12
lines changed

1 file changed

+31
-12
lines changed

resources/vclick/example1.html

+31-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,40 @@
11
<!doctype html>
22
<html lang="en">
33
<head>
4-
<meta charset="utf-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
<title>hashtag demo</title>
7-
<link rel="stylesheet" href="//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<title>hashtag demo</title>
7+
<link rel="stylesheet" href="//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
88
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
99
<script src="//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
10+
<style>
11+
html,
12+
body {
13+
padding: 0;
14+
margin: 0;
15+
}
16+
html,
17+
.ui-mobile,
18+
.ui-mobile body {
19+
height: 85px;
20+
}
21+
.ui-mobile,
22+
.ui-mobile .ui-page {
23+
min-height: 85px;
24+
}
25+
.ui-content {
26+
padding:10px 15px 0px 15px;
27+
}
28+
</style>
1029
</head>
1130
<body>
12-
<p>Touch here to see what happens.</p>
13-
<script>
14-
$( function(){
15-
$( document ).on( "vclick", "p", function(){
16-
$( this ).append( '<span style="color:#108040;"> vclick fired...</span>' );
17-
});
18-
});
19-
</script>
31+
<p>Touch here to see what happens.</p>
32+
<script>
33+
$( function() {
34+
$( document ).on( "vclick", "p", function() {
35+
$( this ).append( "<span style='color:#108040;'> vclick fired...</span>" );
36+
});
37+
});
38+
</script>
2039
</body>
2140
</html>

0 commit comments

Comments
 (0)