Add a table example.

This commit is contained in:
Hyunje Alex Jun 2015-02-05 20:05:52 +00:00
parent 81dd8e9eb0
commit ff3a3c04b2

View File

@ -1,12 +1,10 @@
<!DOCTYPE HTML>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>perfect-scrollbar example</title>
<link href="../src/perfect-scrollbar.css" rel="stylesheet">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="../src/perfect-scrollbar.js"></script>
<link href="../out/css/perfect-scrollbar.css" rel="stylesheet">
<script src="../out/js/perfect-scrollbar.global.js"></script>
<style>
#table {
font-size: 20px;
@ -30,11 +28,6 @@
box-sizing: border-box;
}
</style>
<script type="text/javascript">
$(document).ready(function ($) {
$('#table tbody').perfectScrollbar();
});
</script>
</head>
<body>
<div id="table" class="wrapper">
@ -79,5 +72,11 @@
</tr>
</tbody>
</table>
<script type="text/javascript">
var $ = document.querySelector.bind(document);
window.onload = function () {
Ps.initialize($('#table tbody'));
};
</script>
</body>
</html>