Skip to content

Vclick: Fixed height of example in iframe to avoid scrolling #350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 31 additions & 12 deletions resources/vclick/example1.html
Original file line number Diff line number Diff line change
@@ -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>