Changes for page Get Started

Last modified by Veronika Kocher on Friday, 04 Sep 2026 15:32

From version 8.4
edited by Veronika Kocher
on Thursday, 03 Sep 2026 9:18
Change comment: There is no comment for this version
To version 8.5
edited by Veronika Kocher
on Thursday, 03 Sep 2026 9:34
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -437,20 +437,22 @@
437 437  
438 438  {{html clean="false"}}
439 439  <!-- SN_HORIZONTAL_BOX_HARMONIZER_START -->
440 -<style data-sn-horizontal-box-harmonizer="1">
441 -[data-sn-equal-height-managed="1"]{box-sizing:border-box}
442 -@media(max-width:767px){
443 - [data-sn-equal-height-managed="1"]{min-height:0!important}
440 +<style data-sn-horizontal-box-harmonizer="4">
441 +[data-sn-equal-height-managed],
442 +[data-sn-first-section-aligned]{
443 + box-sizing:border-box;
444 444  }
445 445  </style>
446 -<script data-sn-horizontal-box-harmonizer="1">
446 +<script data-sn-horizontal-box-harmonizer="4">
447 447  (function(){
448 448   "use strict";
449 449  
450 450   var MOBILE_MAX=767;
451 - var ROW_TOLERANCE=4;
451 + var ROW_TOLERANCE=6;
452 452   var MIN_W=150;
453 453   var MIN_H=36;
454 + var MAX_PARENT_CHILDREN=16;
455 + var SEARCH_DEPTH=5;
454 454  
455 455   var root=
456 456   document.getElementById("xwikicontent")||
... ... @@ -460,7 +460,10 @@
460 460  
461 461   if(!root)return;
462 462  
463 - var managed=new Set();
465 + var heightManaged=new Set();
466 + var sectionManaged=new Set();
467 + var originalMinHeight=new WeakMap();
468 + var originalMarginTop=new WeakMap();
464 464   var raf=0;
465 465  
466 466   function num(v){
... ... @@ -468,64 +468,181 @@
468 468   return Number.isFinite(n)?n:0;
469 469   }
470 470  
471 - function visible(el){
476 + function visible(el,minW,minH){
472 472   if(!el||el.nodeType!==1)return false;
478 +
473 473   var s=getComputedStyle(el);
474 - if(s.display==="none"||s.visibility==="hidden"||Number(s.opacity)===0)return false;
480 +
481 + if(
482 + s.display==="none"||
483 + s.visibility==="hidden"||
484 + Number(s.opacity)===0
485 + ){
486 + return false;
487 + }
488 +
475 475   var r=el.getBoundingClientRect();
476 - return r.width>=MIN_W&&r.height>=MIN_H;
490 +
491 + return (
492 + r.width>=(minW||1)&&
493 + r.height>=(minH||1)
494 + );
477 477   }
478 478  
479 479   function excluded(el){
480 - return !el.matches||el.matches(
481 - "button,input,select,textarea,option,label,img,svg,canvas,table,thead,tbody,tfoot,tr,td,th,summary,script,style,noscript,template,.btn,.chip,[role=button]"
498 + return (
499 + !el.matches||
500 + el.matches(
501 + "button,input,select,textarea,option,label,img,svg,canvas,table,thead,tbody,tfoot,tr,td,th,summary,script,style,noscript,template,.btn,.chip,[role=button]"
502 + )
482 482   );
483 483   }
484 484  
485 485   function namedLikeBox(el){
486 - var c=typeof el.className==="string"?el.className:"";
487 - return /(^|[\s_-])(box|card|tile|panel|role|check|service|source|call|area|detail|resource|topic|warn|info)([\s_-]|$)/i.test(c);
507 + var c=
508 + typeof el.className==="string"
509 + ? el.className
510 + : "";
511 +
512 + return /(^|[s_-])(box|card|tile|panel|role|check|service|source|call|area|detail|resource|topic|warn|info)([s_-]|$)/i.test(c);
488 488   }
489 489  
490 490   function boxLike(el){
491 - if(!visible(el)||excluded(el))return false;
516 + if(!visible(el,MIN_W,MIN_H)||excluded(el))return false;
517 +
492 492   var s=getComputedStyle(el);
493 493   var r=el.getBoundingClientRect();
520 +
494 494   var border=
495 - num(s.borderTopWidth)+num(s.borderRightWidth)+
496 - num(s.borderBottomWidth)+num(s.borderLeftWidth);
522 + num(s.borderTopWidth)+
523 + num(s.borderRightWidth)+
524 + num(s.borderBottomWidth)+
525 + num(s.borderLeftWidth);
526 +
497 497   var radius=Math.max(
498 - num(s.borderTopLeftRadius),num(s.borderTopRightRadius),
499 - num(s.borderBottomLeftRadius),num(s.borderBottomRightRadius)
528 + num(s.borderTopLeftRadius),
529 + num(s.borderTopRightRadius),
530 + num(s.borderBottomLeftRadius),
531 + num(s.borderBottomRightRadius)
500 500   );
501 - var bg=s.backgroundColor&&s.backgroundColor!=="rgba(0, 0, 0, 0)"&&s.backgroundColor!=="transparent";
502 - var shadow=s.boxShadow&&s.boxShadow!=="none";
503 - return namedLikeBox(el)||border>=1||(bg&&radius>=3)||(shadow&&r.width>=180);
533 +
534 + var bg=
535 + s.backgroundColor&&
536 + s.backgroundColor!=="rgba(0, 0, 0, 0)"&&
537 + s.backgroundColor!=="transparent";
538 +
539 + var shadow=
540 + s.boxShadow&&
541 + s.boxShadow!=="none";
542 +
543 + return (
544 + namedLikeBox(el)||
545 + border>=1||
546 + (bg&&radius>=3)||
547 + (shadow&&r.width>=180)
548 + );
504 504   }
505 505  
551 + function saveOriginal(el,map,property){
552 + if(map.has(el))return;
553 +
554 + map.set(el,{
555 + value:el.style.getPropertyValue(property),
556 + priority:el.style.getPropertyPriority(property)
557 + });
558 + }
559 +
560 + function restoreOriginal(el,map,property){
561 + var original=map.get(el);
562 +
563 + if(original&&original.value){
564 + el.style.setProperty(
565 + property,
566 + original.value,
567 + original.priority||""
568 + );
569 + }else{
570 + el.style.removeProperty(property);
571 + }
572 + }
573 +
574 + function reset(){
575 + heightManaged.forEach(function(el){
576 + restoreOriginal(
577 + el,
578 + originalMinHeight,
579 + "min-height"
580 + );
581 +
582 + el.removeAttribute(
583 + "data-sn-equal-height-managed"
584 + );
585 + });
586 +
587 + sectionManaged.forEach(function(el){
588 + restoreOriginal(
589 + el,
590 + originalMarginTop,
591 + "margin-top"
592 + );
593 +
594 + el.removeAttribute(
595 + "data-sn-first-section-aligned"
596 + );
597 + });
598 +
599 + heightManaged.clear();
600 + sectionManaged.clear();
601 + }
602 +
506 506   function pickTarget(child){
507 - if(!visible(child))return null;
508 - if(boxLike(child))return child;
604 + if(!visible(child,MIN_W,MIN_H))return null;
509 509  
606 + if(boxLike(child)){
607 + return child;
608 + }
609 +
510 510   var cr=child.getBoundingClientRect();
511 511   var q=[];
612 +
512 512   Array.from(child.children||[]).forEach(function(el){
513 513   q.push({el:el,depth:1});
514 514   });
515 515  
516 - var best=null,bestScore=-1;
617 + var best=null;
618 + var bestScore=-Infinity;
517 517  
518 518   while(q.length){
519 519   var item=q.shift();
520 520   var el=item.el;
521 - if(!visible(el))continue;
522 522  
624 + if(!visible(el,MIN_W,MIN_H))continue;
625 +
523 523   var r=el.getBoundingClientRect();
524 524  
525 - if(r.width>=cr.width*.72&&boxLike(el)){
526 - var widthFit=1-Math.min(1,Math.abs(cr.width-r.width)/Math.max(1,cr.width));
527 - var topFit=1-Math.min(1,Math.abs(cr.top-r.top)/80);
528 - var score=widthFit*5+topFit*2+Math.min(r.height,600)/600;
628 + if(
629 + r.width>=cr.width*.68&&
630 + boxLike(el)
631 + ){
632 + var widthFit=
633 + 1-Math.min(
634 + 1,
635 + Math.abs(cr.width-r.width)/
636 + Math.max(1,cr.width)
637 + );
638 +
639 + var topFit=
640 + 1-Math.min(
641 + 1,
642 + Math.abs(cr.top-r.top)/100
643 + );
644 +
645 + var score=
646 + widthFit*6+
647 + topFit*3+
648 + Math.min(r.height,900)/450+
649 + Math.min(r.width*r.height,900000)/900000;
650 +
529 529   if(score>bestScore){
530 530   best=el;
531 531   bestScore=score;
... ... @@ -532,9 +532,12 @@
532 532   }
533 533   }
534 534  
535 - if(item.depth<3){
657 + if(item.depth<SEARCH_DEPTH){
536 536   Array.from(el.children||[]).forEach(function(next){
537 - q.push({el:next,depth:item.depth+1});
659 + q.push({
660 + el:next,
661 + depth:item.depth+1
662 + });
538 538   });
539 539   }
540 540   }
... ... @@ -542,61 +542,392 @@
542 542   return best;
543 543   }
544 544  
545 - function reset(){
546 - managed.forEach(function(el){
547 - el.style.removeProperty("min-height");
548 - el.removeAttribute("data-sn-equal-height-managed");
549 - });
550 - managed.clear();
670 + function groupsByVisualRow(entries){
671 + var groups=[];
672 +
673 + entries
674 + .slice()
675 + .sort(function(a,b){
676 + return (
677 + a.rect.top-b.rect.top||
678 + a.rect.left-b.rect.left
679 + );
680 + })
681 + .forEach(function(entry){
682 + var group=null;
683 +
684 + for(var i=0;i<groups.length;i++){
685 + if(
686 + Math.abs(
687 + groups[i].top-
688 + entry.rect.top
689 + )<=ROW_TOLERANCE
690 + ){
691 + group=groups[i];
692 + break;
693 + }
694 + }
695 +
696 + if(!group){
697 + group={
698 + top:entry.rect.top,
699 + entries:[]
700 + };
701 + groups.push(group);
702 + }
703 +
704 + group.entries.push(entry);
705 + });
706 +
707 + return groups;
551 551   }
552 552  
553 - function horizontalLayout(parent){
554 - if(!visible(parent))return false;
555 - var s=getComputedStyle(parent);
556 - if(s.display==="grid"||s.display==="inline-grid")return true;
557 - if(s.display==="flex"||s.display==="inline-flex"){
558 - return s.flexDirection==="row"||s.flexDirection==="row-reverse";
710 + function validHorizontalGroup(group){
711 + if(group.entries.length<2)return false;
712 +
713 + var lefts=
714 + group.entries
715 + .map(function(e){return e.rect.left;})
716 + .sort(function(a,b){return a-b;});
717 +
718 + if(
719 + lefts[lefts.length-1]-
720 + lefts[0]<
721 + 80
722 + ){
723 + return false;
559 559   }
560 - return false;
725 +
726 + var widths=
727 + group.entries
728 + .map(function(e){return e.rect.width;})
729 + .filter(function(w){return w>0;});
730 +
731 + if(widths.length<2)return false;
732 +
733 + var minWidth=Math.min.apply(Math,widths);
734 + var maxWidth=Math.max.apply(Math,widths);
735 +
736 + return (
737 + maxWidth/
738 + Math.max(1,minWidth)<=
739 + 1.9
740 + );
561 561   }
562 562  
563 - function rowGroups(entries){
564 - var groups=[];
565 - entries.slice().sort(function(a,b){
566 - return a.rect.top-b.rect.top||a.rect.left-b.rect.left;
567 - }).forEach(function(entry){
568 - var group=null;
569 - for(var i=0;i<groups.length;i++){
570 - if(Math.abs(groups[i].top-entry.rect.top)<=ROW_TOLERANCE){
571 - group=groups[i];
572 - break;
573 - }
743 + function normalizeText(text){
744 + return String(text||"")
745 + .replace(/s+/g," ")
746 + .trim()
747 + .toUpperCase();
748 + }
749 +
750 + function exactKnownFirstSection(el){
751 + var text=normalizeText(el.textContent);
752 +
753 + return (
754 + text==="HIER STARTEN"||
755 + text==="ORGANISIEREN & DOKUMENTIEREN"||
756 + text==="ENTSCHEIDEN"||
757 + text==="START HERE"||
758 + text==="GET STARTED"||
759 + text==="ORGANISE & DOCUMENT"||
760 + text==="ORGANIZE & DOCUMENT"||
761 + text==="DECIDE"
762 + );
763 + }
764 +
765 + function visuallyFirstSectionBar(card){
766 + var cardRect=card.getBoundingClientRect();
767 + var candidates=[];
768 +
769 + Array.from(
770 + card.querySelectorAll(
771 + "div,p,span,strong,h3,h4,h5,h6"
772 + )
773 + ).forEach(function(el){
774 + if(!visible(el,20,6))return;
775 + if(excluded(el))return;
776 +
777 + var r=el.getBoundingClientRect();
778 + var relativeTop=r.top-cardRect.top;
779 +
780 + if(
781 + relativeTop<45||
782 + relativeTop>cardRect.height*.72
783 + ){
784 + return;
574 574   }
575 - if(!group){
576 - group={top:entry.rect.top,entries:[]};
577 - groups.push(group);
786 +
787 + var widthRatio=
788 + r.width/
789 + Math.max(1,cardRect.width);
790 +
791 + if(
792 + widthRatio<.55||
793 + widthRatio>1.05||
794 + r.height>54
795 + ){
796 + return;
578 578   }
579 - group.entries.push(entry);
798 +
799 + var text=normalizeText(el.textContent);
800 +
801 + if(
802 + text.length<2||
803 + text.length>90
804 + ){
805 + return;
806 + }
807 +
808 + var style=getComputedStyle(el);
809 +
810 + var bg=
811 + style.backgroundColor&&
812 + style.backgroundColor!=="rgba(0, 0, 0, 0)"&&
813 + style.backgroundColor!=="transparent";
814 +
815 + var border=
816 + num(style.borderTopWidth)+
817 + num(style.borderRightWidth)+
818 + num(style.borderBottomWidth)+
819 + num(style.borderLeftWidth);
820 +
821 + var mostlyUpper=
822 + text.length>=3&&
823 + text===text.toUpperCase();
824 +
825 + var exact=exactKnownFirstSection(el);
826 +
827 + var score=
828 + (exact?20:0)+
829 + (bg?6:0)+
830 + (border>=1?2:0)+
831 + (mostlyUpper?4:0)+
832 + (num(style.fontWeight)>=600?1:0);
833 +
834 + if(score>=7){
835 + candidates.push({
836 + el:el,
837 + relativeTop:relativeTop,
838 + width:r.width,
839 + score:score
840 + });
841 + }
580 580   });
581 - return groups;
843 +
844 + if(!candidates.length)return null;
845 +
846 + candidates.sort(function(a,b){
847 + if(a.score!==b.score)return b.score-a.score;
848 + if(Math.abs(a.relativeTop-b.relativeTop)>3){
849 + return a.relativeTop-b.relativeTop;
850 + }
851 + return b.width-a.width;
852 + });
853 +
854 + // For exact known labels always prefer the earliest exact match.
855 + var exacts=candidates.filter(function(c){
856 + return exactKnownFirstSection(c.el);
857 + });
858 +
859 + if(exacts.length){
860 + exacts.sort(function(a,b){
861 + return a.relativeTop-b.relativeTop||b.width-a.width;
862 + });
863 + return exacts[0].el;
864 + }
865 +
866 + // Generic fallback: earliest high-confidence bar.
867 + candidates.sort(function(a,b){
868 + return a.relativeTop-b.relativeTop||b.score-a.score||b.width-a.width;
869 + });
870 +
871 + return candidates[0].el;
582 582   }
583 583  
874 + function alignFirstSections(cards){
875 + var rows=
876 + cards.map(function(card){
877 + var bar=
878 + visuallyFirstSectionBar(card);
879 +
880 + if(!bar)return null;
881 +
882 + var cardRect=
883 + card.getBoundingClientRect();
884 +
885 + var barRect=
886 + bar.getBoundingClientRect();
887 +
888 + return {
889 + card:card,
890 + bar:bar,
891 + relativeTop:
892 + barRect.top-cardRect.top,
893 + label:
894 + normalizeText(bar.textContent)
895 + };
896 + });
897 +
898 + // Conservative: only align when every card in the horizontal row
899 + // has a reliable first section bar.
900 + if(
901 + rows.some(function(row){
902 + return !row;
903 + })
904 + ){
905 + return null;
906 + }
907 +
908 + var targetTop=
909 + Math.max.apply(
910 + Math,
911 + rows.map(function(row){
912 + return row.relativeTop;
913 + })
914 + );
915 +
916 + rows.forEach(function(row){
917 + var delta=
918 + targetTop-
919 + row.relativeTop;
920 +
921 + if(delta<=1)return;
922 +
923 + saveOriginal(
924 + row.bar,
925 + originalMarginTop,
926 + "margin-top"
927 + );
928 +
929 + var currentMargin=
930 + num(
931 + getComputedStyle(
932 + row.bar
933 + ).marginTop
934 + );
935 +
936 + row.bar.style.setProperty(
937 + "margin-top",
938 + (
939 + currentMargin+
940 + delta
941 + )+"px"
942 + );
943 +
944 + row.bar.setAttribute(
945 + "data-sn-first-section-aligned",
946 + "4"
947 + );
948 +
949 + sectionManaged.add(row.bar);
950 + });
951 +
952 + return {
953 + labels:
954 + rows.map(function(row){
955 + return row.label;
956 + }),
957 + targetRelativeTop:
958 + Math.round(targetTop)
959 + };
960 + }
961 +
962 + function applyGroup(group){
963 + if(!validHorizontalGroup(group)){
964 + return null;
965 + }
966 +
967 + var cards=[];
968 + var seen=new Set();
969 +
970 + group.entries.forEach(function(entry){
971 + if(!seen.has(entry.target)){
972 + seen.add(entry.target);
973 + cards.push(entry.target);
974 + }
975 + });
976 +
977 + if(cards.length<2)return null;
978 +
979 + var firstSection=
980 + alignFirstSections(cards);
981 +
982 + // The section alignment can change natural card heights.
983 + // Measure only afterwards.
984 + var maxHeight=0;
985 +
986 + cards.forEach(function(card){
987 + maxHeight=Math.max(
988 + maxHeight,
989 + card.getBoundingClientRect().height
990 + );
991 + });
992 +
993 + maxHeight=Math.ceil(maxHeight);
994 +
995 + if(maxHeight<MIN_H)return null;
996 +
997 + cards.forEach(function(card){
998 + saveOriginal(
999 + card,
1000 + originalMinHeight,
1001 + "min-height"
1002 + );
1003 +
1004 + card.style.setProperty(
1005 + "min-height",
1006 + maxHeight+"px"
1007 + );
1008 +
1009 + card.setAttribute(
1010 + "data-sn-equal-height-managed",
1011 + "4"
1012 + );
1013 +
1014 + heightManaged.add(card);
1015 + });
1016 +
1017 + return {
1018 + cards:cards.length,
1019 + height:maxHeight,
1020 + firstSection:firstSection
1021 + };
1022 + }
1023 +
584 584   function run(){
585 585   reset();
586 586  
587 - if(window.innerWidth<=MOBILE_MAX)return;
1027 + if(
1028 + window.innerWidth<=MOBILE_MAX
1029 + ){
1030 + return;
1031 + }
588 588  
589 - var parents=Array.from(root.querySelectorAll("*")).filter(function(el){
590 - return el.children&&el.children.length>=2&&horizontalLayout(el);
591 - });
1033 + var parents=
1034 + Array.from(
1035 + root.querySelectorAll("*")
1036 + ).filter(function(parent){
1037 + return (
1038 + visible(parent,MIN_W,MIN_H)&&
1039 + parent.children&&
1040 + parent.children.length>=2&&
1041 + parent.children.length<=MAX_PARENT_CHILDREN
1042 + );
1043 + });
592 592  
1045 + var touched=new Set();
1046 +
593 593   parents.forEach(function(parent){
594 594   var entries=[];
595 595  
596 596   Array.from(parent.children).forEach(function(child){
597 - if(!visible(child))return;
1051 + if(!visible(child,MIN_W,MIN_H))return;
1052 +
598 598   var target=pickTarget(child);
599 599   if(!target)return;
1055 +
600 600   entries.push({
601 601   target:target,
602 602   rect:target.getBoundingClientRect()
... ... @@ -605,37 +605,30 @@
605 605  
606 606   if(entries.length<2)return;
607 607  
608 - rowGroups(entries).forEach(function(group){
609 - if(group.entries.length<2)return;
1064 + groupsByVisualRow(entries).forEach(function(group){
1065 + if(!validHorizontalGroup(group))return;
610 610  
611 - var lefts=group.entries.map(function(e){return e.rect.left;}).sort(function(a,b){return a-b;});
612 - if(lefts[lefts.length-1]-lefts[0]<80)return;
1067 + var signature=
1068 + group.entries.map(function(entry){
1069 + return entry.target;
1070 + });
613 613  
614 - var targets=[];
615 - var seen=new Set();
1072 + if(
1073 + !signature.some(function(el){
1074 + return !touched.has(el);
1075 + })
1076 + ){
1077 + return;
1078 + }
616 616  
617 - group.entries.forEach(function(e){
618 - if(!seen.has(e.target)){
619 - seen.add(e.target);
620 - targets.push(e.target);
621 - }
622 - });
1080 + var applied=
1081 + applyGroup(group);
623 623  
624 - if(targets.length<2)return;
625 -
626 - var max=0;
627 - targets.forEach(function(el){
628 - max=Math.max(max,el.getBoundingClientRect().height);
629 - });
630 -
631 - max=Math.ceil(max);
632 - if(max<MIN_H)return;
633 -
634 - targets.forEach(function(el){
635 - el.style.setProperty("min-height",max+"px");
636 - el.setAttribute("data-sn-equal-height-managed","1");
637 - managed.add(el);
638 - });
1083 + if(applied){
1084 + signature.forEach(function(el){
1085 + touched.add(el);
1086 + });
1087 + }
639 639   });
640 640   });
641 641   }
... ... @@ -642,6 +642,7 @@
642 642  
643 643   function schedule(){
644 644   if(raf)cancelAnimationFrame(raf);
1094 +
645 645   raf=requestAnimationFrame(function(){
646 646   raf=requestAnimationFrame(function(){
647 647   raf=0;
... ... @@ -653,17 +653,28 @@
653 653   addEventListener("resize",schedule,{passive:true});
654 654   addEventListener("load",schedule,{once:true});
655 655  
656 - root.addEventListener("click",function(){
657 - setTimeout(schedule,0);
658 - },true);
1106 + root.addEventListener(
1107 + "click",
1108 + function(){
1109 + setTimeout(schedule,0);
1110 + },
1111 + true
1112 + );
659 659  
1114 + Array.from(root.querySelectorAll("img")).forEach(function(img){
1115 + if(!img.complete){
1116 + img.addEventListener("load",schedule,{once:true});
1117 + }
1118 + });
1119 +
660 660   if(document.fonts&&document.fonts.ready){
661 661   document.fonts.ready.then(schedule);
662 662   }
663 663  
664 664   schedule();
665 - setTimeout(schedule,250);
666 - setTimeout(schedule,900);
1125 + setTimeout(schedule,200);
1126 + setTimeout(schedule,650);
1127 + setTimeout(schedule,1400);
667 667  })();
668 668  </script>
669 669  <!-- SN_HORIZONTAL_BOX_HARMONIZER_END -->