diff options
Diffstat (limited to 'demos/functional/js/behaviour.functionaldemos.js')
-rw-r--r-- | demos/functional/js/behaviour.functionaldemos.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/demos/functional/js/behaviour.functionaldemos.js b/demos/functional/js/behaviour.functionaldemos.js new file mode 100644 index 000000000..8e375db28 --- /dev/null +++ b/demos/functional/js/behaviour.functionaldemos.js @@ -0,0 +1,13 @@ +$(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(/^#/, "")); + } + +});
\ No newline at end of file |