diff --git a/inc/html.php b/inc/html.php index cdcd166d9c8d5e95bbc59318f9e626227b199b54..87affd47b64e50cdaf442def6f625174f9bfaeae 100644 --- a/inc/html.php +++ b/inc/html.php @@ -939,12 +939,16 @@ function html_list_index($item){ function html_li_index($item){ global $INFO; + $class = ''; + $id = ''; + if($item['type'] == "f"){ // scroll to the current item if($item['id'] == $INFO['id']) { $id = ' id="scroll__here"'; + $class = ' bounce'; } - return '<li class="level'.$item['level'].'" '.$id.'>'; + return '<li class="level'.$item['level'].$class.'" '.$id.'>'; }elseif($item['open']){ return '<li class="open">'; }else{ diff --git a/lib/scripts/behaviour.js b/lib/scripts/behaviour.js index 9a2cbaf13ebb1085deb356b1c1eb0a4fbc0dcab5..fb61f6e48b4de063787f30c10ab9affbe18a5759 100644 --- a/lib/scripts/behaviour.js +++ b/lib/scripts/behaviour.js @@ -56,6 +56,8 @@ var dw_behaviour = { jQuery(document).on('click','#page__revisions input[type=checkbox]', dw_behaviour.revisionBoxHandler ); + + jQuery('.bounce').effect('bounce', {times:10}, 2000 ); }, /**