Skip to content

Commit 500bf66

Browse files
authored
Merge pull request #371 from jliermann/main
privacy-wrapping of YouTube videos
2 parents bcb14a7 + 65d651a commit 500bf66

File tree

5 files changed

+127
-74
lines changed

5 files changed

+127
-74
lines changed

docs/40_smartlab/20_chemotion_eln.mdx

+17-8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ slug: "/chemotion_eln"
44
id: "chemotion_eln"
55
---
66

7+
import VideoPrivacy from "video-privacy";
78
import useBaseUrl from "@docusaurus/useBaseUrl";
89

910
# Chemotion ELN
@@ -22,14 +23,22 @@ Chemotion ELN offers a specific function that facilitates the [publication of re
2223

2324
A short introduction to the Chemotion ELN as well as the connection to the Chemotion repository is demonstrated in this video:
2425

25-
<iframe
26-
width="860"
27-
height="370"
28-
src="https://www.youtube.com/embed/tZHaP6DW-Dw"
29-
frameborder="0"
30-
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
31-
allowfullscreen
32-
></iframe>
26+
<VideoPrivacy
27+
imageUrl={useBaseUrl("/img/smartlab/chemotion_preview.jpg")}
28+
width={800}
29+
info="YouTube uses cookies and stores personal data. To view embedded videos from YouTube, please indicate your consent to load this video from anexternal source."
30+
buttonText="I agree"
31+
customButtonClass="button button--primary"
32+
>
33+
<iframe
34+
width="860"
35+
height="484"
36+
src="https://www.youtube.com/embed/tZHaP6DW-Dw"
37+
frameborder="0"
38+
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
39+
allowfullscreen
40+
></iframe>
41+
</VideoPrivacy>
3342

3443
### Documentation, information, and contact
3544

0 commit comments

Comments
 (0)