summaryrefslogtreecommitdiffstats
path: root/example.html
blob: e617d5fa45365d16fd794c4cf8a28d350f24217d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!doctype html>
<html>
    <head>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8">
        <title>expandable example</title>
        <style type="text/css" media="screen">
            body { font: 12px "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; color: #000; background: #fff; }
            h1 { font-size: 18px; }
            textarea { width: 200px; height: 100px; }
        </style>
        <script>
            (function(){
                    var verMatch = /v=([\w\.]+)/.exec( location.search ),
                    version = verMatch && verMatch[1], src;
                    if ( version ) {
                            src = 'code.jquery.com/jquery-' + version;
                    } else {
                            src = 'code.jquery.com/jquery-git';
                    }
                    document.write( '<script src="http://' + src + '.js"><\/script>' );
            })();
        </script>
        <script src="jquery.expandable.js" type="text/javascript" charset="utf-8"></script>
        <script type="text/javascript" charset="utf-8">
            jQuery(function($) {
                $('#version').html('using jQuery ' + $.fn.jquery);
                $('textarea').expandable();
            });
        </script>
    </head>
    <body>
        <h1>jQuery Expandable Plugin Example (<span id="version"></span>)</h1>
        
        <p>This example uses default settings. Just start typing in the text area below and watch it expand.</p>
        <textarea name="example"></textarea>
    </body>
</html>