839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
|
** in order to be able to construct /file URLs, the information provided by
** the timeline-data-N blocks would have to be extended).
** o kFRST, kLAST: check if the previous/next page should be opened if focus is
** already at the top/bottom.
*/
(function(){
window.addEventListener('load',function(){
function focusDefaultId(){
var tn = document.querySelector(
'.timelineSelected:not(.timelineSecondary) .tl-nodemark')
|| document.querySelector('.timelineSelected .tl-nodemark')
|| document.querySelector('.timelineCurrent .tl-nodemark');
return tn ? tn.id : 'm1';
}
function focusSelectedId(){
var tn = document.querySelector(
'.timelineSelected:not(.timelineSecondary) .tl-nodemark');
return tn ? tn.id : null;
}
function focus2ndSelectedId(){
var tn = document.querySelector('.timelineSecondary .tl-nodemark');
return tn ? tn.id : null;
}
function focusCurrentId(){
var tn = document.querySelector('.timelineCurrent .tl-nodemark');
return tn ? tn.id : null;
}
function focusTickedId(){
|
>
>
>
>
>
|
>
|
<
|
<
|
>
|
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
|
** in order to be able to construct /file URLs, the information provided by
** the timeline-data-N blocks would have to be extended).
** o kFRST, kLAST: check if the previous/next page should be opened if focus is
** already at the top/bottom.
*/
(function(){
window.addEventListener('load',function(){
// "Primary" (1) and "secondary" (2) selections swapped compared to CSS classes:
// (1) .timelineSecondary →
// /vdiff?to=, /timeline?sel2=
// (2) .timelineSelected:not(.timelineSecondary) →
// /vdiff?from=, /timeline?c=, /timeline?sel1=
function focusDefaultId(){
var tn = document.querySelector('.timelineSecondary .tl-nodemark')
|| document.querySelector(
'.timelineSelected:not(.timelineSecondary) .tl-nodemark')
|| document.querySelector('.timelineCurrent .tl-nodemark');
return tn ? tn.id : 'm1';
}
function focusSelectedId(){
var tn = document.querySelector('.timelineSecondary .tl-nodemark');
return tn ? tn.id : null;
}
function focus2ndSelectedId(){
var tn = document.querySelector(
'.timelineSelected:not(.timelineSecondary) .tl-nodemark');
return tn ? tn.id : null;
}
function focusCurrentId(){
var tn = document.querySelector('.timelineCurrent .tl-nodemark');
return tn ? tn.id : null;
}
function focusTickedId(){
|