903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
|
'baseurl': ti.baseUrl,
'hashdigits': ti.hashDigits,
'hash': ti.rowinfo[k].h,
'branch': ti.rowinfo[k].br };
}
}
return null;
}
function focusVisualize(id,scroll){
var td = document.querySelector('.timelineFocused');
if( td ) td.classList.remove('timelineFocused');
if( !id ) return true;
var tn = document.getElementById(id);
if( tn ){
td = tn.parentElement.nextElementSibling;
if( td ) {
td.classList.add('timelineFocused');
if( scroll ){
if( td.scrollIntoViewIfNeeded ) td.scrollIntoViewIfNeeded();
else td.scrollIntoView(false);
}
return true;
}
}
return false;
}
function focusCacheInit(){
|
>
>
>
>
>
>
>
>
>
|
|
|
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
|
'baseurl': ti.baseUrl,
'hashdigits': ti.hashDigits,
'hash': ti.rowinfo[k].h,
'branch': ti.rowinfo[k].br };
}
}
return null;
}
function focusScrollToIntoViewTheFossilWay(e){
var y = 0;
do{
y += e.offsetTop;
}while( e = e.offsetParent );
y -= window.innerHeight/2;
if( y>0 ) window.scrollTo(0,y);
}
function focusVisualize(id,scroll){
var td = document.querySelector('.timelineFocused');
if( td ) td.classList.remove('timelineFocused');
if( !id ) return true;
var tn = document.getElementById(id);
if( tn ){
td = tn.parentElement.nextElementSibling;
if( td ) {
td.classList.add('timelineFocused');
if( scroll ){
focusScrollToIntoViewTheFossilWay(td);
//if( td.scrollIntoViewIfNeeded ) td.scrollIntoViewIfNeeded();
//else td.scrollIntoView(false);
}
return true;
}
}
return false;
}
function focusCacheInit(){
|