Changes for page Get Started
Last modified by Veronika Kocher on Friday, 04 Sep 2026 15:32
From version 5.2
edited by Veronika Kocher
on Tuesday, 01 Sep 2026 10:49
on Tuesday, 01 Sep 2026 10:49
Change comment:
Update property defaultLocale
To version 8.10
edited by Veronika Kocher
on Friday, 04 Sep 2026 14:23
on Friday, 04 Sep 2026 14:23
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -42,7 +42,7 @@ 42 42 <section class="arsn-card" style="margin-bottom:18px;overflow:hidden;border-left:6px solid #e94b13;"> 43 43 <div class="arsn-hero-image"><img src="https://xwiki.uni-ak.ac.at/bin/download/Service%20Navigator/Art%20%26%20Research%20Services%20Navigator/WebHome/enable.png" alt="Planning an artistic or research project" /></div> 44 44 <div style="padding:18px 21px 20px 21px;"> 45 - <div class="arsn-eyebrow" style="color:#8a4d36;margin-bottom:5px;">E NABLE · GET STARTED · AUSTRIA</div>45 + <div class="arsn-eyebrow" style="color:#8a4d36;margin-bottom:5px;">PREPARE · GET STARTED · AUSTRIA</div> 46 46 <h2 style="font-size:27px;line-height:1.2;margin:0 0 8px 0;color:#2c2926;">From project idea to a fundable, workable project</h2> 47 47 <p style="margin:0;color:#5e5953;line-height:1.6;max-width:1100px;"> 48 48 Use this page to clarify your project before you search for funding or start spending money. ... ... @@ -432,5 +432,1415 @@ 432 432 and <a href="https://xwiki.uni-ak.ac.at/bin/view/Service%20Navigator/Art%20%26%20Research%20Services%20Navigator/Enable/Plan%20Your%20Data%20Management/">Plan Your Data Management</a>. 433 433 </div> 434 434 435 +<!-- ARSN_TRAINING_WORKSHOPS_INCLUDE_V1_START --> 436 +{{include reference="Service Navigator.Art & Research Services Navigator.Code.TrainingWorkshopsBlock" author="target" /}} 437 +<!-- ARSN_TRAINING_WORKSHOPS_INCLUDE_V1_END --> 438 + 439 +<!-- ARSN_PRACTICAL_RESOURCES_FALLBACK_V1_START --> 440 +{{include reference="Service Navigator.Art & Research Services Navigator.Code.PracticalResourcesFallbackBlock" author="target" /}} 441 +<!-- ARSN_PRACTICAL_RESOURCES_FALLBACK_V1_END --> 442 + 435 435 </div> 436 436 {{/html}} 445 + 446 +{{html clean="false"}} 447 +<!-- SN_SERVICE_NAVIGATOR_MASTER_STYLE_START --> 448 + 449 +<style data-sn-service-navigator-master="1"> 450 +/* ========================================================= 451 + MASTER TYPOGRAPHY 452 + ========================================================= */ 453 +#xwikicontent h1, 454 +#xwikicontent h2, 455 +#xwikicontent h3, 456 +#xwikicontent h4, 457 +#xwikicontent h5, 458 +#xwikicontent h6, 459 +#xwikicontent .box-title, 460 +#xwikicontent [role="heading"], 461 +#xwikicontent h1 a, 462 +#xwikicontent h2 a, 463 +#xwikicontent h3 a, 464 +#xwikicontent h4 a, 465 +#xwikicontent h5 a, 466 +#xwikicontent h6 a, 467 +#xwikicontent .box-title a, 468 +#xwikicontent [role="heading"] a{ 469 + text-align:left!important; 470 + text-justify:auto!important; 471 + word-spacing:normal!important; 472 +} 473 + 474 +/* ========================================================= 475 + COMING SOON / IN VORBEREITUNG 476 + ========================================================= */ 477 +.sn-coming-soon-badge{ 478 + display:inline-block; 479 + vertical-align:middle; 480 + margin-left:10px; 481 + padding:4px 8px; 482 + border-radius:14px; 483 + border:1px solid #efd9cc; 484 + background:#fff4ee; 485 + color:#8a4d36; 486 + font-size:11px; 487 + font-weight:700; 488 + letter-spacing:.055em; 489 + line-height:1.2; 490 + white-space:nowrap; 491 +} 492 + 493 +/* ========================================================= 494 + NATIVE / DETAIL CALLOUT GEOMETRY 495 + Preserve existing backgrounds. 496 + ========================================================= */ 497 +#xwikicontent .arsn-info, 498 +#xwikicontent .dmp-info, 499 +#xwikicontent .ido-info, 500 +#xwikicontent .pp-info, 501 +#xwikicontent .infomessage{ 502 + box-sizing:border-box!important; 503 + border-left:4px solid #21b6d7!important; 504 + border-radius:8px; 505 + text-align:left!important; 506 + word-spacing:normal!important; 507 +} 508 + 509 +#xwikicontent .arsn-warn, 510 +#xwikicontent .dmp-warn, 511 +#xwikicontent .ido-warn, 512 +#xwikicontent .pp-warn, 513 +#xwikicontent .warn, 514 +#xwikicontent .warning, 515 +#xwikicontent .warningmessage, 516 +#xwikicontent .errormessage{ 517 + box-sizing:border-box!important; 518 + border-left:4px solid #e94b13!important; 519 + border-radius:8px; 520 + text-align:left!important; 521 + word-spacing:normal!important; 522 +} 523 + 524 +[data-sn-master-equal-height], 525 +[data-sn-master-first-row]{ 526 + box-sizing:border-box; 527 +} 528 + 529 +/* ========================================================= 530 + FULL-WIDTH THREE-LINE NUMBER / TITLE / SUBTITLE BLOCKS 531 + ========================================================= */ 532 +#xwikicontent .arsn-area-label[data-sn-three-line="1"]{ 533 + display:grid!important; 534 + grid-template-columns:minmax(0,1fr)!important; 535 + grid-auto-rows:auto!important; 536 + width:100%!important; 537 + max-width:none!important; 538 + box-sizing:border-box!important; 539 + justify-items:start!important; 540 + align-items:start!important; 541 + gap:2px!important; 542 + text-align:left!important; 543 + text-align-last:left!important; 544 + text-justify:auto!important; 545 + word-spacing:normal!important; 546 + white-space:normal!important; 547 +} 548 +#xwikicontent .arsn-area-label[data-sn-three-line="1"] > .arsn-area-number, 549 +#xwikicontent .arsn-area-label[data-sn-three-line="1"] > .sn-area-label-title, 550 +#xwikicontent .arsn-area-label[data-sn-three-line="1"] > .arsn-area-action{ 551 + display:block!important; 552 + width:100%!important; 553 + margin:0!important; 554 + text-align:left!important; 555 + text-align-last:left!important; 556 + text-justify:auto!important; 557 + word-spacing:normal!important; 558 + white-space:normal!important; 559 +} 560 +</style> 561 + 562 +<script data-sn-service-navigator-master="1"> 563 +(function(){ 564 + "use strict"; 565 + 566 + var PAGE_KIND="detail"; 567 + var PLACEHOLDER=false; 568 + var PLACEHOLDER_LABEL="COMING SOON"; 569 + 570 + var MOBILE_MAX=767; 571 + var ROW_TOLERANCE=6; 572 + var RESIZE_DEBOUNCE=220; 573 + 574 + var root= 575 + document.getElementById("xwikicontent")|| 576 + document.querySelector(".xwiki-rendering-content")|| 577 + document.querySelector("main")|| 578 + document.body; 579 + 580 + if(!root)return; 581 + 582 + var managedHeight=new Set(); 583 + var managedMargin=new Set(); 584 + var originalHeight=new WeakMap(); 585 + var originalMargin=new WeakMap(); 586 + 587 + var resizeTimer=0; 588 + var running=false; 589 + 590 + var THEMES=[ 591 + { 592 + name:"BLUE", 593 + accent:"#21b6d7", 594 + bg:"#eaf7fb", 595 + text:"#315d68", 596 + labels:[ 597 + "HIER STARTEN", 598 + "ENTSCHEIDEN", 599 + "ÜBERPRÜFEN & ANPASSEN", 600 + "START HERE", 601 + "DECIDE", 602 + "REVIEW & ADAPT" 603 + ] 604 + }, 605 + { 606 + name:"RED", 607 + accent:"#e94b13", 608 + bg:"#fff1ec", 609 + text:"#8a4d36", 610 + labels:[ 611 + "PLANEN & ORGANISIEREN", 612 + "ORGANISIEREN & DOKUMENTIEREN", 613 + "PUBLIZIEREN & PRÄSENTIEREN", 614 + "PLAN & ORGANISE", 615 + "PLAN & ORGANIZE", 616 + "ORGANISE & DOCUMENT", 617 + "ORGANIZE & DOCUMENT", 618 + "PUBLISH & PRESENT" 619 + ] 620 + }, 621 + { 622 + name:"YELLOW", 623 + accent:"#f0aa00", 624 + bg:"#fff8e7", 625 + text:"#785b17", 626 + labels:[ 627 + "SCHÜTZEN & KLÄREN", 628 + "STANDARDISIEREN & IDENTIFIZIEREN", 629 + "ÖFFNEN, NACHNUTZEN & AUFFINDBAR MACHEN", 630 + "PROTECT & CLARIFY", 631 + "STANDARDISE & IDENTIFY", 632 + "STANDARDIZE & IDENTIFY", 633 + "OPEN, REUSE & MAKE FINDABLE" 634 + ] 635 + }, 636 + { 637 + name:"GREEN", 638 + accent:"#38b76a", 639 + bg:"#edf9f1", 640 + text:"#3f7451", 641 + labels:[ 642 + "INFRASTRUKTUR EINRICHTEN", 643 + "INFRASTRUKTUR & ZUSAMMENARBEIT EINRICHTEN", 644 + "SPEICHERN & ZUGRIFF STEUERN", 645 + "REPOSITORIUM, ERHALTEN & ÜBERGEBEN", 646 + "SET UP INFRASTRUCTURE", 647 + "SET UP INFRASTRUCTURE & COLLABORATION", 648 + "STORE & CONTROL ACCESS", 649 + "REPOSITORY, PRESERVE & HAND OVER" 650 + ] 651 + } 652 + ]; 653 + 654 + function num(value){ 655 + var n=parseFloat(value); 656 + return Number.isFinite(n)?n:0; 657 + } 658 + 659 + function norm(value){ 660 + return String(value||"") 661 + .replace(/\s+/g," ") 662 + .trim() 663 + .toUpperCase(); 664 + } 665 + 666 + function visible(el){ 667 + if(!el||el.nodeType!==1)return false; 668 + 669 + var style=getComputedStyle(el); 670 + var rect=el.getBoundingClientRect(); 671 + 672 + return ( 673 + style.display!=="none"&& 674 + style.visibility!=="hidden"&& 675 + rect.width>20&& 676 + rect.height>4 677 + ); 678 + } 679 + 680 + function saveStyle(el,map,property){ 681 + if(map.has(el))return; 682 + 683 + map.set(el,{ 684 + value:el.style.getPropertyValue(property), 685 + priority:el.style.getPropertyPriority(property) 686 + }); 687 + } 688 + 689 + function restoreStyle(el,map,property){ 690 + var original=map.get(el); 691 + 692 + if(original&&original.value){ 693 + el.style.setProperty( 694 + property, 695 + original.value, 696 + original.priority||"" 697 + ); 698 + }else{ 699 + el.style.removeProperty(property); 700 + } 701 + } 702 + 703 + function resetRuntime(){ 704 + managedHeight.forEach(function(el){ 705 + restoreStyle( 706 + el, 707 + originalHeight, 708 + "min-height" 709 + ); 710 + el.removeAttribute( 711 + "data-sn-master-equal-height" 712 + ); 713 + }); 714 + 715 + managedMargin.forEach(function(el){ 716 + restoreStyle( 717 + el, 718 + originalMargin, 719 + "margin-top" 720 + ); 721 + el.removeAttribute( 722 + "data-sn-master-first-row" 723 + ); 724 + }); 725 + 726 + managedHeight.clear(); 727 + managedMargin.clear(); 728 + } 729 + 730 + function themeFor(text){ 731 + var value=norm(text); 732 + 733 + for(var i=0;i<THEMES.length;i++){ 734 + for(var j=0;j<THEMES[i].labels.length;j++){ 735 + var label=THEMES[i].labels[j]; 736 + 737 + if( 738 + value===label|| 739 + value.indexOf(label+" ")===0|| 740 + value.indexOf(label+" -")===0|| 741 + value.indexOf(label+" ·")===0 742 + ){ 743 + return THEMES[i]; 744 + } 745 + } 746 + } 747 + 748 + return null; 749 + } 750 + 751 + /* ======================================================= 752 + BORDERLESS FILLED RED/ORANGE CTA BUTTONS 753 + ======================================================= */ 754 + 755 + function colourDistance(a,b){ 756 + return Math.sqrt( 757 + Math.pow(a[0]-b[0],2)+ 758 + Math.pow(a[1]-b[1],2)+ 759 + Math.pow(a[2]-b[2],2) 760 + ); 761 + } 762 + 763 + function makeFilledRedOrangeCTAsBorderless(){ 764 + var RED_ORANGE=[233,75,19]; 765 + 766 + Array.from( 767 + root.querySelectorAll( 768 + 'a,button,[role="button"],input[type="submit"],input[type="button"]' 769 + ) 770 + ).forEach(function(el){ 771 + if(!visible(el))return; 772 + 773 + var style=getComputedStyle(el); 774 + var rgb=parseRGB(style.backgroundColor); 775 + 776 + if(!rgb)return; 777 + 778 + if( 779 + colourDistance( 780 + rgb, 781 + RED_ORANGE 782 + )>55 783 + ){ 784 + return; 785 + } 786 + 787 + var rect=el.getBoundingClientRect(); 788 + 789 + if( 790 + rect.width<80|| 791 + rect.height<24 792 + ){ 793 + return; 794 + } 795 + 796 + el.style.setProperty( 797 + "border", 798 + "none", 799 + "important" 800 + ); 801 + 802 + el.style.setProperty( 803 + "border-left", 804 + "none", 805 + "important" 806 + ); 807 + 808 + el.style.setProperty( 809 + "border-top", 810 + "none", 811 + "important" 812 + ); 813 + 814 + el.style.setProperty( 815 + "border-right", 816 + "none", 817 + "important" 818 + ); 819 + 820 + el.style.setProperty( 821 + "border-bottom", 822 + "none", 823 + "important" 824 + ); 825 + 826 + el.style.setProperty( 827 + "box-shadow", 828 + "none", 829 + "important" 830 + ); 831 + }); 832 + } 833 + 834 + /* ======================================================= 835 + FULL-WIDTH THREE-LINE AREA LABELS 836 + ======================================================= */ 837 + 838 + function compactText(value){ 839 + return String(value||"") 840 + .replace(/\s+/g," ") 841 + .trim(); 842 + } 843 + 844 + function makeThreeLineAreaLabels(){ 845 + Array.from( 846 + root.querySelectorAll( 847 + ".arsn-area-label" 848 + ) 849 + ).forEach(function(label){ 850 + if( 851 + label.getAttribute( 852 + "data-sn-three-line" 853 + )==="1" 854 + ){ 855 + return; 856 + } 857 + 858 + var number= 859 + label.querySelector( 860 + ":scope > .arsn-area-number" 861 + ); 862 + 863 + var action= 864 + label.querySelector( 865 + ":scope > .arsn-area-action" 866 + ); 867 + 868 + if( 869 + !number|| 870 + !action 871 + ){ 872 + return; 873 + } 874 + 875 + var clone= 876 + label.cloneNode(true); 877 + 878 + var cloneNumber= 879 + clone.querySelector( 880 + ":scope > .arsn-area-number" 881 + ); 882 + 883 + var cloneAction= 884 + clone.querySelector( 885 + ":scope > .arsn-area-action" 886 + ); 887 + 888 + if(cloneNumber){ 889 + cloneNumber.remove(); 890 + } 891 + 892 + if(cloneAction){ 893 + cloneAction.remove(); 894 + } 895 + 896 + var titleText= 897 + compactText( 898 + clone.textContent 899 + ); 900 + 901 + if(!titleText){ 902 + return; 903 + } 904 + 905 + var numberNode= 906 + number.cloneNode(true); 907 + 908 + var actionNode= 909 + action.cloneNode(true); 910 + 911 + var titleNode= 912 + document.createElement( 913 + "span" 914 + ); 915 + 916 + titleNode.className= 917 + "sn-area-label-title"; 918 + 919 + titleNode.textContent= 920 + titleText; 921 + 922 + while(label.firstChild){ 923 + label.removeChild( 924 + label.firstChild 925 + ); 926 + } 927 + 928 + label.appendChild( 929 + numberNode 930 + ); 931 + 932 + label.appendChild( 933 + titleNode 934 + ); 935 + 936 + label.appendChild( 937 + actionNode 938 + ); 939 + 940 + label.setAttribute( 941 + "data-sn-three-line", 942 + "1" 943 + ); 944 + 945 + var head= 946 + label.closest( 947 + ".arsn-area-head" 948 + ); 949 + 950 + if(head){ 951 + head.style.setProperty( 952 + "width", 953 + "100%", 954 + "important" 955 + ); 956 + 957 + head.style.setProperty( 958 + "max-width", 959 + "100%", 960 + "important" 961 + ); 962 + 963 + head.style.setProperty( 964 + "box-sizing", 965 + "border-box", 966 + "important" 967 + ); 968 + } 969 + }); 970 + } 971 + 972 + /* ======================================================= 973 + PLACEHOLDER BADGE 974 + ======================================================= */ 975 + 976 + function applyPlaceholderBadge(){ 977 + if(!PLACEHOLDER)return; 978 + 979 + if( 980 + document.querySelector( 981 + ".sn-coming-soon-badge" 982 + ) 983 + ){ 984 + return; 985 + } 986 + 987 + var title= 988 + document.querySelector( 989 + "#document-title" 990 + )|| 991 + document.querySelector( 992 + "h1" 993 + ); 994 + 995 + if(!title)return; 996 + 997 + var badge= 998 + document.createElement( 999 + "span" 1000 + ); 1001 + 1002 + badge.className= 1003 + "sn-coming-soon-badge"; 1004 + 1005 + badge.textContent= 1006 + PLACEHOLDER_LABEL; 1007 + 1008 + badge.setAttribute( 1009 + "aria-label", 1010 + PLACEHOLDER_LABEL 1011 + ); 1012 + 1013 + title.appendChild( 1014 + badge 1015 + ); 1016 + } 1017 + 1018 + /* ======================================================= 1019 + DETAIL PAGE OWN-ACCENT PROPAGATION 1020 + ======================================================= */ 1021 + 1022 + function parseRGB(value){ 1023 + var match=String(value||"").match( 1024 + /rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)/i 1025 + ); 1026 + 1027 + if(!match)return null; 1028 + 1029 + return [ 1030 + Number(match[1]), 1031 + Number(match[2]), 1032 + Number(match[3]) 1033 + ]; 1034 + } 1035 + 1036 + function distance(a,b){ 1037 + return Math.sqrt( 1038 + Math.pow(a[0]-b[0],2)+ 1039 + Math.pow(a[1]-b[1],2)+ 1040 + Math.pow(a[2]-b[2],2) 1041 + ); 1042 + } 1043 + 1044 + function paletteMatch(cssColor){ 1045 + var rgb=parseRGB(cssColor); 1046 + 1047 + if(!rgb)return null; 1048 + 1049 + var palette=[ 1050 + {hex:"#21b6d7",rgb:[33,182,215]}, 1051 + {hex:"#e94b13",rgb:[233,75,19]}, 1052 + {hex:"#f0aa00",rgb:[240,170,0]}, 1053 + {hex:"#38b76a",rgb:[56,183,106]} 1054 + ]; 1055 + 1056 + var best=null; 1057 + var bestDistance=Infinity; 1058 + 1059 + palette.forEach(function(item){ 1060 + var d=distance(rgb,item.rgb); 1061 + 1062 + if(d<bestDistance){ 1063 + best=item; 1064 + bestDistance=d; 1065 + } 1066 + }); 1067 + 1068 + return bestDistance<=30 1069 + ?best 1070 + :null; 1071 + } 1072 + 1073 + function propagateDetailAccents(){ 1074 + if(PAGE_KIND!=="detail")return; 1075 + 1076 + Array.from( 1077 + root.querySelectorAll( 1078 + ".arsn-call,.dmp-call,.ido-call,.pp-call,"+ 1079 + ".arsn-source,.dmp-source,.ido-source,.pp-source" 1080 + ) 1081 + ).forEach(function(el){ 1082 + if(!visible(el))return; 1083 + 1084 + var style=getComputedStyle(el); 1085 + 1086 + if( 1087 + num(style.borderTopWidth)>=2 1088 + ){ 1089 + var match= 1090 + paletteMatch( 1091 + style.borderTopColor 1092 + ); 1093 + 1094 + if(match){ 1095 + el.style.setProperty( 1096 + "border-left", 1097 + "4px solid "+match.hex, 1098 + "important" 1099 + ); 1100 + } 1101 + } 1102 + }); 1103 + 1104 + // Warning families: explicit safety override. 1105 + Array.from( 1106 + root.querySelectorAll( 1107 + ".arsn-warn,.dmp-warn,.ido-warn,.pp-warn,"+ 1108 + ".warn,.warning,.warningmessage,.errormessage" 1109 + ) 1110 + ).forEach(function(el){ 1111 + if(!visible(el))return; 1112 + 1113 + el.style.setProperty( 1114 + "border-left", 1115 + "4px solid #e94b13", 1116 + "important" 1117 + ); 1118 + }); 1119 + 1120 + // Info families: explicit orientation override. 1121 + Array.from( 1122 + root.querySelectorAll( 1123 + ".arsn-info,.dmp-info,.ido-info,.pp-info,.infomessage" 1124 + ) 1125 + ).forEach(function(el){ 1126 + if(!visible(el))return; 1127 + 1128 + el.style.setProperty( 1129 + "border-left", 1130 + "4px solid #21b6d7", 1131 + "important" 1132 + ); 1133 + }); 1134 + } 1135 + 1136 + /* ======================================================= 1137 + OVERVIEW SEMANTIC THEME PALETTE 1138 + ======================================================= */ 1139 + 1140 + function smallestThemeHeaders(){ 1141 + return Array.from( 1142 + root.querySelectorAll( 1143 + "div,span,p,strong,h3,h4,h5,h6" 1144 + ) 1145 + ).filter(function(el){ 1146 + if(!visible(el))return false; 1147 + if(!themeFor(el.textContent))return false; 1148 + 1149 + return !Array.from( 1150 + el.children||[] 1151 + ).some(function(child){ 1152 + return !!themeFor( 1153 + child.textContent 1154 + ); 1155 + }); 1156 + }); 1157 + } 1158 + 1159 + function findOverviewCard(header){ 1160 + var node=header.parentElement; 1161 + var candidates=[]; 1162 + 1163 + while(node&&node!==root){ 1164 + var rect=node.getBoundingClientRect(); 1165 + var style=getComputedStyle(node); 1166 + 1167 + var border= 1168 + num(style.borderTopWidth)+ 1169 + num(style.borderRightWidth)+ 1170 + num(style.borderBottomWidth)+ 1171 + num(style.borderLeftWidth); 1172 + 1173 + if( 1174 + rect.width>=220&& 1175 + rect.width<=800&& 1176 + rect.height>=120&& 1177 + border>=1 1178 + ){ 1179 + candidates.push(node); 1180 + } 1181 + 1182 + node=node.parentElement; 1183 + } 1184 + 1185 + if(!candidates.length)return null; 1186 + 1187 + candidates.sort(function(a,b){ 1188 + return ( 1189 + b.getBoundingClientRect().height- 1190 + a.getBoundingClientRect().height 1191 + ); 1192 + }); 1193 + 1194 + return candidates[0]; 1195 + } 1196 + 1197 + function rowCandidates(link,card){ 1198 + var result=[]; 1199 + var cardRect= 1200 + card.getBoundingClientRect(); 1201 + 1202 + var node=link; 1203 + 1204 + while(node&&node!==card){ 1205 + if(visible(node)){ 1206 + var rect= 1207 + node.getBoundingClientRect(); 1208 + 1209 + if( 1210 + rect.height<=105&& 1211 + rect.width>= 1212 + cardRect.width*.50&& 1213 + rect.width<= 1214 + cardRect.width*1.03 1215 + ){ 1216 + result.push(node); 1217 + } 1218 + } 1219 + 1220 + node=node.parentElement; 1221 + } 1222 + 1223 + return result; 1224 + } 1225 + 1226 + function chooseOuterRow( 1227 + candidates, 1228 + link 1229 + ){ 1230 + if(!candidates.length){ 1231 + return link; 1232 + } 1233 + 1234 + var bordered= 1235 + candidates.filter(function(el){ 1236 + return ( 1237 + num( 1238 + getComputedStyle(el) 1239 + .borderLeftWidth 1240 + )>=1 1241 + ); 1242 + }); 1243 + 1244 + var pool= 1245 + bordered.length 1246 + ?bordered 1247 + :candidates; 1248 + 1249 + pool.sort(function(a,b){ 1250 + var ar= 1251 + a.getBoundingClientRect(); 1252 + 1253 + var br= 1254 + b.getBoundingClientRect(); 1255 + 1256 + return ( 1257 + ar.left-br.left|| 1258 + br.width-ar.width 1259 + ); 1260 + }); 1261 + 1262 + return pool[0]||link; 1263 + } 1264 + 1265 + function applyOverviewPalette(){ 1266 + if(PAGE_KIND!=="overview"){ 1267 + return []; 1268 + } 1269 + 1270 + var headers= 1271 + smallestThemeHeaders() 1272 + .map(function(el){ 1273 + return { 1274 + el:el, 1275 + theme: 1276 + themeFor( 1277 + el.textContent 1278 + ), 1279 + card: 1280 + findOverviewCard( 1281 + el 1282 + ) 1283 + }; 1284 + }) 1285 + .filter(function(row){ 1286 + return !!row.card; 1287 + }); 1288 + 1289 + var unique=[]; 1290 + var seenHeaders=new Set(); 1291 + 1292 + headers.forEach(function(row){ 1293 + var key= 1294 + row.theme.name+ 1295 + "|"+ 1296 + Math.round( 1297 + row.card 1298 + .getBoundingClientRect() 1299 + .left 1300 + )+ 1301 + "|"+ 1302 + Math.round( 1303 + row.el 1304 + .getBoundingClientRect() 1305 + .top 1306 + ); 1307 + 1308 + if(!seenHeaders.has(key)){ 1309 + seenHeaders.add(key); 1310 + unique.push(row); 1311 + } 1312 + }); 1313 + 1314 + unique.forEach(function(row){ 1315 + var headerRect= 1316 + row.el 1317 + .getBoundingClientRect(); 1318 + 1319 + row.el.style.setProperty( 1320 + "background", 1321 + row.theme.bg, 1322 + "important" 1323 + ); 1324 + 1325 + row.el.style.setProperty( 1326 + "color", 1327 + row.theme.text, 1328 + "important" 1329 + ); 1330 + 1331 + row.el.style.setProperty( 1332 + "text-align", 1333 + "left", 1334 + "important" 1335 + ); 1336 + 1337 + row.el.style.setProperty( 1338 + "word-spacing", 1339 + "normal", 1340 + "important" 1341 + ); 1342 + 1343 + var later= 1344 + unique 1345 + .filter(function(other){ 1346 + return ( 1347 + other.card===row.card&& 1348 + other.el 1349 + .getBoundingClientRect() 1350 + .top> 1351 + headerRect.top+2 1352 + ); 1353 + }) 1354 + .sort(function(a,b){ 1355 + return ( 1356 + a.el 1357 + .getBoundingClientRect() 1358 + .top- 1359 + b.el 1360 + .getBoundingClientRect() 1361 + .top 1362 + ); 1363 + }); 1364 + 1365 + var stopTop= 1366 + later.length 1367 + ?later[0].el 1368 + .getBoundingClientRect() 1369 + .top 1370 + :Infinity; 1371 + 1372 + Array.from( 1373 + row.card.querySelectorAll("a") 1374 + ).forEach(function(link){ 1375 + if(!visible(link))return; 1376 + 1377 + var rect= 1378 + link.getBoundingClientRect(); 1379 + 1380 + if( 1381 + rect.top<= 1382 + headerRect.bottom-2|| 1383 + rect.top>= 1384 + stopTop-2 1385 + ){ 1386 + return; 1387 + } 1388 + 1389 + var candidates= 1390 + rowCandidates( 1391 + link, 1392 + row.card 1393 + ); 1394 + 1395 + var target= 1396 + chooseOuterRow( 1397 + candidates, 1398 + link 1399 + ); 1400 + 1401 + candidates.forEach(function(el){ 1402 + el.style.setProperty( 1403 + "border-left", 1404 + "0 solid transparent", 1405 + "important" 1406 + ); 1407 + }); 1408 + 1409 + target.style.setProperty( 1410 + "border-left", 1411 + "3px solid "+ 1412 + row.theme.accent, 1413 + "important" 1414 + ); 1415 + 1416 + target.style.setProperty( 1417 + "box-sizing", 1418 + "border-box", 1419 + "important" 1420 + ); 1421 + }); 1422 + }); 1423 + 1424 + return unique; 1425 + } 1426 + 1427 + /* ======================================================= 1428 + OVERVIEW CARD HEIGHT + FIRST THEMATIC ROW 1429 + ======================================================= */ 1430 + 1431 + function alignOverviewCards(headers){ 1432 + if( 1433 + PAGE_KIND!=="overview"|| 1434 + window.innerWidth<=MOBILE_MAX 1435 + ){ 1436 + return; 1437 + } 1438 + 1439 + var cards=[]; 1440 + var seen=new Set(); 1441 + 1442 + headers.forEach(function(row){ 1443 + if(!seen.has(row.card)){ 1444 + seen.add(row.card); 1445 + cards.push(row.card); 1446 + } 1447 + }); 1448 + 1449 + if(cards.length<2){ 1450 + return; 1451 + } 1452 + 1453 + // Group cards by actual top position. 1454 + var groups=[]; 1455 + 1456 + cards.forEach(function(card){ 1457 + var top= 1458 + card.getBoundingClientRect().top; 1459 + 1460 + var group=null; 1461 + 1462 + for(var i=0;i<groups.length;i++){ 1463 + if( 1464 + Math.abs( 1465 + groups[i].top-top 1466 + )<=ROW_TOLERANCE 1467 + ){ 1468 + group=groups[i]; 1469 + break; 1470 + } 1471 + } 1472 + 1473 + if(!group){ 1474 + group={ 1475 + top:top, 1476 + cards:[] 1477 + }; 1478 + groups.push(group); 1479 + } 1480 + 1481 + group.cards.push(card); 1482 + }); 1483 + 1484 + groups.forEach(function(group){ 1485 + if(group.cards.length<2){ 1486 + return; 1487 + } 1488 + 1489 + var firstHeaders= 1490 + group.cards.map(function(card){ 1491 + var candidates= 1492 + headers 1493 + .filter(function(row){ 1494 + return row.card===card; 1495 + }) 1496 + .sort(function(a,b){ 1497 + return ( 1498 + a.el 1499 + .getBoundingClientRect() 1500 + .top- 1501 + b.el 1502 + .getBoundingClientRect() 1503 + .top 1504 + ); 1505 + }); 1506 + 1507 + return candidates.length 1508 + ?candidates[0] 1509 + :null; 1510 + }); 1511 + 1512 + if( 1513 + !firstHeaders.some(function(row){ 1514 + return !row; 1515 + }) 1516 + ){ 1517 + var targetTop= 1518 + Math.max.apply( 1519 + Math, 1520 + firstHeaders.map(function(row){ 1521 + return ( 1522 + row.el 1523 + .getBoundingClientRect() 1524 + .top- 1525 + row.card 1526 + .getBoundingClientRect() 1527 + .top 1528 + ); 1529 + }) 1530 + ); 1531 + 1532 + firstHeaders.forEach(function(row){ 1533 + var relativeTop= 1534 + row.el 1535 + .getBoundingClientRect() 1536 + .top- 1537 + row.card 1538 + .getBoundingClientRect() 1539 + .top; 1540 + 1541 + var delta= 1542 + targetTop-relativeTop; 1543 + 1544 + if(delta>1){ 1545 + saveStyle( 1546 + row.el, 1547 + originalMargin, 1548 + "margin-top" 1549 + ); 1550 + 1551 + var current= 1552 + num( 1553 + getComputedStyle( 1554 + row.el 1555 + ).marginTop 1556 + ); 1557 + 1558 + row.el.style.setProperty( 1559 + "margin-top", 1560 + ( 1561 + current+delta 1562 + )+"px" 1563 + ); 1564 + 1565 + row.el.setAttribute( 1566 + "data-sn-master-first-row", 1567 + "1" 1568 + ); 1569 + 1570 + managedMargin.add( 1571 + row.el 1572 + ); 1573 + } 1574 + }); 1575 + } 1576 + 1577 + var maxHeight=0; 1578 + 1579 + group.cards.forEach(function(card){ 1580 + maxHeight= 1581 + Math.max( 1582 + maxHeight, 1583 + card 1584 + .getBoundingClientRect() 1585 + .height 1586 + ); 1587 + }); 1588 + 1589 + maxHeight= 1590 + Math.ceil(maxHeight); 1591 + 1592 + group.cards.forEach(function(card){ 1593 + saveStyle( 1594 + card, 1595 + originalHeight, 1596 + "min-height" 1597 + ); 1598 + 1599 + card.style.setProperty( 1600 + "min-height", 1601 + maxHeight+"px" 1602 + ); 1603 + 1604 + card.setAttribute( 1605 + "data-sn-master-equal-height", 1606 + "1" 1607 + ); 1608 + 1609 + managedHeight.add( 1610 + card 1611 + ); 1612 + }); 1613 + }); 1614 + } 1615 + 1616 + /* ======================================================= 1617 + DETAIL GRID EQUAL HEIGHT, DESKTOP ONLY 1618 + ======================================================= */ 1619 + 1620 + function equaliseDetailGrids(){ 1621 + if( 1622 + PAGE_KIND!=="detail"|| 1623 + window.innerWidth<=MOBILE_MAX 1624 + ){ 1625 + return; 1626 + } 1627 + 1628 + var selectors=[ 1629 + ".arsn-grid", 1630 + ".arsn-grid-2", 1631 + ".arsn-grid-3", 1632 + ".dmp-grid", 1633 + ".ido-grid", 1634 + ".pp-grid" 1635 + ]; 1636 + 1637 + selectors.forEach(function(selector){ 1638 + Array.from( 1639 + root.querySelectorAll(selector) 1640 + ).forEach(function(grid){ 1641 + var children= 1642 + Array.from( 1643 + grid.children||[] 1644 + ).filter(visible); 1645 + 1646 + if(children.length<2){ 1647 + return; 1648 + } 1649 + 1650 + var groups=[]; 1651 + 1652 + children.forEach(function(child){ 1653 + var top= 1654 + child 1655 + .getBoundingClientRect() 1656 + .top; 1657 + 1658 + var group=null; 1659 + 1660 + for(var i=0;i<groups.length;i++){ 1661 + if( 1662 + Math.abs( 1663 + groups[i].top-top 1664 + )<=ROW_TOLERANCE 1665 + ){ 1666 + group=groups[i]; 1667 + break; 1668 + } 1669 + } 1670 + 1671 + if(!group){ 1672 + group={ 1673 + top:top, 1674 + items:[] 1675 + }; 1676 + groups.push(group); 1677 + } 1678 + 1679 + group.items.push(child); 1680 + }); 1681 + 1682 + groups.forEach(function(group){ 1683 + if(group.items.length<2){ 1684 + return; 1685 + } 1686 + 1687 + var maxHeight=0; 1688 + 1689 + group.items.forEach(function(item){ 1690 + maxHeight= 1691 + Math.max( 1692 + maxHeight, 1693 + item 1694 + .getBoundingClientRect() 1695 + .height 1696 + ); 1697 + }); 1698 + 1699 + maxHeight= 1700 + Math.ceil(maxHeight); 1701 + 1702 + group.items.forEach(function(item){ 1703 + saveStyle( 1704 + item, 1705 + originalHeight, 1706 + "min-height" 1707 + ); 1708 + 1709 + item.style.setProperty( 1710 + "min-height", 1711 + maxHeight+"px" 1712 + ); 1713 + 1714 + item.setAttribute( 1715 + "data-sn-master-equal-height", 1716 + "1" 1717 + ); 1718 + 1719 + managedHeight.add(item); 1720 + }); 1721 + }); 1722 + }); 1723 + }); 1724 + } 1725 + 1726 + /* ======================================================= 1727 + RUN / RESPONSIVE SCHEDULING 1728 + ======================================================= */ 1729 + 1730 + function run(){ 1731 + if(running)return; 1732 + 1733 + running=true; 1734 + 1735 + try{ 1736 + resetRuntime(); 1737 + applyPlaceholderBadge(); 1738 + propagateDetailAccents(); 1739 + 1740 + var headers= 1741 + applyOverviewPalette(); 1742 + 1743 + makeThreeLineAreaLabels(); 1744 + makeFilledRedOrangeCTAsBorderless(); 1745 + 1746 + if( 1747 + window.innerWidth> 1748 + MOBILE_MAX 1749 + ){ 1750 + alignOverviewCards( 1751 + headers 1752 + ); 1753 + 1754 + equaliseDetailGrids(); 1755 + } 1756 + }finally{ 1757 + running=false; 1758 + } 1759 + } 1760 + 1761 + function onResize(){ 1762 + if(resizeTimer){ 1763 + clearTimeout( 1764 + resizeTimer 1765 + ); 1766 + } 1767 + 1768 + resizeTimer= 1769 + setTimeout( 1770 + function(){ 1771 + resizeTimer=0; 1772 + run(); 1773 + }, 1774 + RESIZE_DEBOUNCE 1775 + ); 1776 + } 1777 + 1778 + async function waitForReady(){ 1779 + if( 1780 + document.readyState!=="complete" 1781 + ){ 1782 + await new Promise(function(resolve){ 1783 + window.addEventListener( 1784 + "load", 1785 + resolve, 1786 + {once:true} 1787 + ); 1788 + }); 1789 + } 1790 + 1791 + if( 1792 + document.fonts&& 1793 + document.fonts.ready 1794 + ){ 1795 + try{ 1796 + await document.fonts.ready; 1797 + }catch(error){} 1798 + } 1799 + 1800 + var images= 1801 + Array.from( 1802 + root.querySelectorAll("img") 1803 + ); 1804 + 1805 + await Promise.all( 1806 + images.map(function(img){ 1807 + if(img.complete){ 1808 + return Promise.resolve(); 1809 + } 1810 + 1811 + return new Promise(function(resolve){ 1812 + var done=function(){ 1813 + resolve(); 1814 + }; 1815 + 1816 + img.addEventListener( 1817 + "load", 1818 + done, 1819 + {once:true} 1820 + ); 1821 + 1822 + img.addEventListener( 1823 + "error", 1824 + done, 1825 + {once:true} 1826 + ); 1827 + }); 1828 + }) 1829 + ); 1830 + 1831 + run(); 1832 + } 1833 + 1834 + window.addEventListener( 1835 + "resize", 1836 + onResize, 1837 + {passive:true} 1838 + ); 1839 + 1840 + waitForReady(); 1841 +})(); 1842 +</script> 1843 + 1844 +<!-- SN_SERVICE_NAVIGATOR_MASTER_STYLE_END --> 1845 +{{/html}} 1846 +