mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-12-07 06:14:24 +00:00
13 lines
247 B
JavaScript
13 lines
247 B
JavaScript
|
$(document).ready(function() {
|
||
|
|
||
|
$('.component-links a').click(function() {
|
||
|
var comp = $(this).attr('href').replace(/^#/, "");
|
||
|
loadDemo(comp);
|
||
|
});
|
||
|
|
||
|
// hash listener
|
||
|
if (location.hash) {
|
||
|
loadDemo(location.hash.replace(/^#/, ""));
|
||
|
}
|
||
|
|
||
|
});
|