File tree 2 files changed +16
-2
lines changed
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,17 @@ <h2>Talks</h2>
30
30
< div class ="talkdetails ">
31
31
< strong > {{ talk.title }}</ strong > < span class ="label "> by {{ talk.speaker }}</ span >
32
32
{% if talk.file %}
33
- < br > < br > < object data ="{{ talk.file }} " width ="100% " height ="500 " type ="application/pdf "> </ object >
33
+ < br > < br > < object data ="{{ talk.file }} " width ="100% " height ="500 " type ="application/pdf " class ="hide-on-mobile "> </ object >
34
+ < p > < a href ="{{ talk.file }} " class ="show-on-mobile "> 📄 Open/Download PDF</ a > </ p >
34
35
{% else %}
35
36
< br > < br > The speaker has not provided the slides (yet).
36
37
{% endif %}
37
38
{% if talk.recording %}
38
39
{% assign rec = talk.recording | split: 'v=' %}
39
40
{% assign video_id = rec[1] %}
40
41
< center >
41
- < br > < iframe width ="560 " height ="315 " src ="https://www.youtube.com/embed/{{ video_id }} " title ="YouTube video player " frameborder ="0 " allow ="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share " referrerpolicy ="strict-origin-when-cross-origin " allowfullscreen > </ iframe >
42
+ < br > < iframe width ="560 " height ="315 " src ="https://www.youtube.com/embed/{{ video_id }} " title ="YouTube video player " frameborder ="0 " allow ="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share " referrerpolicy ="strict-origin-when-cross-origin " allowfullscreen class ="hide-on-mobile "> </ iframe >
43
+ < iframe src ="https://www.youtube.com/embed/{{ video_id }} " title ="YouTube video player " frameborder ="0 " allow ="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share " referrerpolicy ="strict-origin-when-cross-origin " allowfullscreen class ="show-on-mobile "> </ iframe >
42
44
</ center >
43
45
{% endif %}
44
46
</ div >
Original file line number Diff line number Diff line change @@ -1291,3 +1291,15 @@ Modules - reusable parts of our design
1291
1291
margin : 20px 0 ;
1292
1292
}
1293
1293
1294
+ .hide-on-mobile {
1295
+ display : block ;
1296
+ @include mobile {
1297
+ display : none ;
1298
+ }
1299
+ }
1300
+ .show-on-mobile {
1301
+ display : none ;
1302
+ @include mobile {
1303
+ display : block ;
1304
+ }
1305
+ }
You can’t perform that action at this time.
0 commit comments