aboutsummaryrefslogtreecommitdiffstats
path: root/demos/functional/js/behaviour.functionaldemos.js
blob: 8e375db28f42159903c3015ddcc6550c4ad13921 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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(/^#/, ""));
	}
	
});