diff options
author | Ca-Phun Ung <pazu2k@gmail.com> | 2008-12-30 18:26:51 +0000 |
---|---|---|
committer | Ca-Phun Ung <pazu2k@gmail.com> | 2008-12-30 18:26:51 +0000 |
commit | 5d1b0cb7557d89d790858cef2c5cdb7ca888a552 (patch) | |
tree | f8521dc1452b7b2745fe3b8afd30ca22485d7623 /demos | |
parent | 31b8edcd4ac4a06f7156de20004a3f9234d70ed7 (diff) | |
download | jquery-ui-5d1b0cb7557d89d790858cef2c5cdb7ca888a552.tar.gz jquery-ui-5d1b0cb7557d89d790858cef2c5cdb7ca888a552.zip |
demos/index.html: added functionality to pull descriptions from individual html files.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/index.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/demos/index.html b/demos/index.html index 130b02f84..775630bf4 100644 --- a/demos/index.html +++ b/demos/index.html @@ -37,8 +37,21 @@ $(this).click(function() { $(this).parents('ul').find('li').removeClass('demo-config-on'); $(this).parent().addClass('demo-config-on'); + $('#demo-notes').hide(); + $('#demo-frame').fadeOut(); }); }); + + $('#demo-frame').load(function(){ + var notes = $('.demo-description *', $(this).contents()[0]); + if ($('#demo-notes').length == 0) { + $('<div id="demo-notes" />').insertAfter('#demo-config'); + } + $('#demo-notes').hide().empty().html(notes); + $('#demo-frame').fadeIn({complete: function() { + $('#demo-notes').fadeIn(); + }}); + }); }) .end() .end() |