~bac/juju-gui/trunkcopy

« back to all changes in this revision

Viewing changes to lib/yui/tests/pjax/tests/manual/bar/index.html

  • Committer: kapil.foss at gmail
  • Date: 2012-07-13 18:45:59 UTC
  • Revision ID: kapil.foss@gmail.com-20120713184559-2xl7be17egsrz0c9
reshape

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html>
2
 
<html>
3
 
<head>
4
 
    <meta charset="utf-8">
5
 
    <title>pjax Test — Bar</title>
6
 
</head>
7
 
<body>
8
 
 
9
 
    <h1>pjax Test</h1>
10
 
    <p>Current Time: <strong id="now"></strong></p>
11
 
 
12
 
    <div id="content">
13
 
        <h2>Bar</h2>
14
 
        <ul id="nav">
15
 
            <li><a href="../">Index</a></li>
16
 
            <li><a href="../foo/">Foo</a></li>
17
 
            <li><a href="../bar/">Bar</a></li>
18
 
            <li><a href="../baz/">Baz</a></li>
19
 
        </ul>
20
 
    </div>
21
 
 
22
 
    <script src="../../../../../build/yui/yui.js"></script>
23
 
    <script>
24
 
    YUI({ filter: 'raw' }).use('pjax-plugin', function (Y) {
25
 
 
26
 
        // Shows a timestamp so you notice full page reloads.
27
 
        Y.one('#now').set('text', new Date());
28
 
 
29
 
        // Plug-in the pjax.
30
 
        Y.one('#content').plug(Y.Plugin.Pjax, {
31
 
            contentSelector: '#content > *',
32
 
            linkSelector   : '#nav a'
33
 
        });
34
 
 
35
 
    });
36
 
    </script>
37
 
 
38
 
</body>
39
 
</html>