mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
demos/index.html - fixed incorrect closing of H4 heading and added a H3 heading for widget previews.
This commit is contained in:
parent
fae9c64bd9
commit
df653a0d82
@ -21,9 +21,11 @@
|
|||||||
jQuery(function($){
|
jQuery(function($){
|
||||||
$('.left-nav a').click(function(ev){
|
$('.left-nav a').click(function(ev){
|
||||||
var section = this.href.replace('/index.html','');
|
var section = this.href.replace('/index.html','');
|
||||||
|
var header = section.replace(/.+\/([^\/]+)/,'$1');
|
||||||
$('td.normal div.normal')
|
$('td.normal div.normal')
|
||||||
.empty()
|
.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>')
|
.append('<div id="demo-config"></div>')
|
||||||
.find('#demo-config')
|
.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>')
|
.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>')
|
||||||
|
Loading…
Reference in New Issue
Block a user