2012-03-14 15:51:01 -04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2013-01-23 09:37:46 -05:00
|
|
|
<title>Sliding View Sample</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
2012-03-14 15:51:01 -04:00
|
|
|
|
2013-01-23 09:37:46 -05:00
|
|
|
<script src="../../../src/libs/jquery-1.7.1.js"></script>
|
|
|
|
<script src="../../../src/libs/jquery.animate-enhanced.js"></script>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="../../../src/slidingview/slidingview.css" type="text/css" />
|
|
|
|
<script src="../../../src/slidingview/slidingview.js"></script>
|
2012-03-14 15:51:01 -04:00
|
|
|
|
|
|
|
<script>
|
2013-01-23 09:37:46 -05:00
|
|
|
|
2012-03-14 15:51:01 -04:00
|
|
|
$(document).ready( function() {
|
2013-01-23 09:37:46 -05:00
|
|
|
|
2012-03-14 15:51:01 -04:00
|
|
|
//Setup the ViewNavigator
|
2013-01-23 09:37:46 -05:00
|
|
|
new SlidingView( 'sidebar', 'body' );
|
2012-03-14 15:51:01 -04:00
|
|
|
} );
|
2013-01-23 09:37:46 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-14 15:51:01 -04:00
|
|
|
</script>
|
2013-01-23 09:37:46 -05:00
|
|
|
|
2012-03-14 15:51:01 -04:00
|
|
|
<style>
|
|
|
|
#sidebar {
|
|
|
|
background-color: red;
|
|
|
|
padding:10px;
|
|
|
|
}
|
|
|
|
#body {
|
|
|
|
background-color: white;
|
|
|
|
padding:10px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
2013-01-23 09:37:46 -05:00
|
|
|
|
2012-03-14 15:51:01 -04:00
|
|
|
<div class="slidingview_wrapper">
|
|
|
|
<div id="sidebar">sidebar here!</div>
|
|
|
|
<div id="body">body here!</div>
|
|
|
|
</div>
|
2013-01-23 09:37:46 -05:00
|
|
|
|
2012-03-14 15:51:01 -04:00
|
|
|
</body>
|
2013-01-23 09:37:46 -05:00
|
|
|
</html>
|