Lines Matching defs:target
32 var target = $(this).attr('href');
33 tasksBeforeScrolling(target);
34 scrollToTarget(target);
39 * scroll to / set focus to target of direct link if value of location hash equals direct link
46 var target = $(this).attr('href');
47 if(hash === target) {
48 tasksBeforeScrolling(target);
49 scrollToTarget(target);
50 setFocusOnLoad(target);
58 * @param target
60 tasksBeforeScrolling = function(target) {
61 switch (target) {
63 showSearchField(target);
67 $(target).find('li:first-child').find('a').focus();
74 * set focus on target or first link found in target
75 * @param target
77 setFocusOnLoad = function(target) {
78 var $target = $(target);
79 switch (target) {
83 $target.focus();
90 $target.attr('tabindex',0);
91 $target.focus();
99 * @param target
101 showSearchField = function(target) {
108 * scrolls to the target with an offset of 60px
109 * @param target
111 scrollToTarget = function(target) {
112 // scroll to each target
114 scrollTop: (target.offset().top - 60)