Skip to content

Commit

Permalink
Vclick: Fixed height of example in iframe to avoid scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
agcolom committed Dec 16, 2014
1 parent 640c072 commit eb7ae7b
Showing 1 changed file with 31 additions and 12 deletions.
43 changes: 31 additions & 12 deletions resources/vclick/example1.html
@@ -1,21 +1,40 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hashtag demo</title>
<link rel="stylesheet" href="//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hashtag demo</title>
<link rel="stylesheet" href="//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<style>
html,
body {
padding: 0;
margin: 0;
}
html,
.ui-mobile,
.ui-mobile body {
height: 85px;
}
.ui-mobile,
.ui-mobile .ui-page {
min-height: 85px;
}
.ui-content {
padding:10px 15px 0px 15px;
}
</style>
</head>
<body>
<p>Touch here to see what happens.</p>
<script>
$( function(){
$( document ).on( "vclick", "p", function(){
$( this ).append( '<span style="color:#108040;"> vclick fired...</span>' );
});
});
</script>
<p>Touch here to see what happens.</p>
<script>
$( function() {
$( document ).on( "vclick", "p", function() {
$( this ).append( "<span style='color:#108040;'> vclick fired...</span>" );
});
});
</script>
</body>
</html>

0 comments on commit eb7ae7b

Please sign in to comment.