-
-
Save fkchang/5059202 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>jQuery Scrollz</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"/> | |
<meta name="apple-mobile-web-app-capable" content="yes"/> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css"/> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js"></script> | |
<!-- Scrollz --> | |
<link rel="stylesheet" href="/assets/jquery.scrollz.css"/> | |
<script type="text/javascript" src="/assets/jquery.scrollz.js"></script> | |
<script> | |
jQuery(function($) { | |
// #content must have a height set before calling scrollz | |
$('#content').scrollz( { | |
pull : true | |
} | |
); | |
$('#content').bind('pulled', function() { | |
$('#content').scrollz('hidePullHeader'); | |
}); | |
$('#content').bind('bottomreached', function() { | |
alert("bottom"); | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<div id="content" style="height: 100%"> | |
<ul id="tweets"> | |
<% @entries.each do |medium| -%> | |
<li><%= render "/mobile/mobile_article", medium: medium %> | |
</li> | |
<% end -%> | |
</ul> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment