File tree Expand file tree Collapse file tree 6 files changed +22
-8
lines changed Expand file tree Collapse file tree 6 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -106,9 +106,9 @@ facilities:
106
106
107
107
108
108
partners :
109
- - name : DECTRIS
110
- image : /assets/images/partners/dectris .svg
111
- url : https://www.dectris.ch/en /
109
+ - name : DECTRIS CLOUD
110
+ image : /assets/images/partners/dectris_cloud .svg
111
+ url : https://www.dectris.cloud /
112
112
113
113
114
114
team :
Original file line number Diff line number Diff line change @@ -17,8 +17,10 @@ <h1 class="mt-5 mb-5">Facilities</h1>
17
17
</ div >
18
18
{% endfor %}
19
19
</ div >
20
- </ div >
21
- < div class ="container mb-3 ">
20
+ < aside class ="secondary-breaker ">
21
+ < div class ="container text-center ">
22
+ </ div >
23
+ </ aside >
22
24
< h2 class ="mt-5 mb-5 "> Industry Partners</ h2 >
23
25
< div class ="row justify-content-center ">
24
26
{% for partner in site.partners %}
Original file line number Diff line number Diff line change 18
18
}
19
19
}
20
20
21
- // Given a specific element Id, check if the element is currenty visible on the screen
21
+ // Given a specific element Id, check if more than 50% of the element is currently visible on the screen
22
22
function isElementVisible ( elemId ) {
23
23
let elm = document . getElementById ( elemId ) . getBoundingClientRect ( ) ;
24
24
let viewHeight = Math . max ( document . documentElement . clientHeight , window . innerHeight ) ;
25
- return ! ( elm . bottom < 0 || elm . top - viewHeight >= 0 ) ;
25
+ let elementHeight = elm . height || ( elm . bottom - elm . top ) ;
26
+ let visibleHeight = Math . min ( elm . bottom , viewHeight ) - Math . max ( elm . top , 0 ) ;
27
+ return visibleHeight > elementHeight / 2 ;
26
28
}
27
29
28
30
/*
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ <h1 class="mt-5 mb-5">Team</h1>
10
10
</ div >
11
11
{% endfor %}
12
12
</ div >
13
+ < aside class ="secondary-breaker ">
14
+ < div class ="container text-center ">
15
+ </ div >
16
+ </ aside >
13
17
< h2 class ="mt-5 mb-4 "> Contributors</ h2 >
14
18
< div class ="row contributors ">
15
19
< div id ="loading " style ="display: none; ">
Original file line number Diff line number Diff line change @@ -67,7 +67,13 @@ div.container {
67
67
.section-breaker {
68
68
background-color : #041526 ;
69
69
opacity : 0.9 ;
70
- height : 0.3rem !important ;
70
+ height : 0.2rem !important ;
71
+ }
72
+
73
+ .secondary-breaker {
74
+ background-color : #0415263b ;
75
+ opacity : 0.9 ;
76
+ height : 0.1rem !important ;
71
77
}
72
78
73
79
.show-all-button {
File renamed without changes.
You can’t perform that action at this time.
0 commit comments