]> source.dussan.org Git - jquery-ui.git/commitdiff
demos/index.html - fixed incorrect closing of H4 heading and added a H3 heading for...
authorCa-Phun Ung <pazu2k@gmail.com>
Tue, 30 Dec 2008 08:50:02 +0000 (08:50 +0000)
committerCa-Phun Ung <pazu2k@gmail.com>
Tue, 30 Dec 2008 08:50:02 +0000 (08:50 +0000)
demos/index.html

index 9ac37e0864fb93d91805858b8982ce80770d069d..0e39906379da36ccea151f2277da29161ad22b15 100644 (file)
        jQuery(function($){
                $('.left-nav a').click(function(ev){
                        var section = this.href.replace('/index.html','');
+                       var header = section.replace(/.+\/([^\/]+)/,'$1');
                        $('td.normal div.normal')
                                .empty()
-                               .append('<h4 class="demo-subheader">Functional demo:</div>')
+                               .append('<h4 class="demo-subheader">Functional demo:</h4>')
+                               .append('<h3 class="demo-header">'+ header +'</h3>')
                                .append('<div id="demo-config"></div>')
                                .find('#demo-config')
                                        .append('<iframe id="demo-frame" name="demo-frame" width="520" height="314" scrolling="auto" frameborder="0" src="'+ section +'/default.html"></iframe><div id="demo-config-menu"></div>')