jquery-ui/demos/functional/js/behaviour.functionaldemos.js

13 lines
247 B
JavaScript
Raw Normal View History

$(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(/^#/, ""));
}
});