index.html revision b5390ca8d67763a8c17c8dd688695774fb89826b
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>pjax Test — Baz</title>
</head>
<body>
<h1>pjax Test</h1>
<p>Current Time: <strong id="now"></strong></p>
<div id="content">
<h2>Baz</h2>
<ul id="nav">
<li><a href="../">Index</a></li>
</ul>
</div>
<script>
YUI({ filter: 'raw' }).use('pjax-plugin', function (Y) {
// Shows a timestamp so you notice full page reloads.
Y.one('#now').set('text', new Date());
// Plug-in the pjax.
Y.one('#content').plug(Y.Plugin.Pjax, {
contentSelector: '#content > *',
linkSelector : '#nav a'
});
});
</script>
</body>
</html>