summaryrefslogtreecommitdiff
path: root/help3xsl/online_transform.xsl
diff options
context:
space:
mode:
authorIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2022-02-09 12:57:37 +0200
committerOlivier Hallot <olivier.hallot@libreoffice.org>2022-02-09 16:24:41 +0100
commit751aa416e5aa4fdb6faf5be273aa8d999e1630e4 (patch)
tree9de656ce180488ac9c7b51638bb545abcc8d75f9 /help3xsl/online_transform.xsl
parent5e2cb8e64fbd008ab9e1372575f5b96f0f27e728 (diff)
Add YouTube consent click
Change-Id: I60d64e1becbc7ea33301d4a8073f0b550998b87d Reviewed-on: https://gerrit.libreoffice.org/c/help/+/129716 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/online_transform.xsl')
-rw-r--r--help3xsl/online_transform.xsl9
1 files changed, 6 insertions, 3 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl
index a6ce8255bf..ac6337d7ec 100644
--- a/help3xsl/online_transform.xsl
+++ b/help3xsl/online_transform.xsl
@@ -108,6 +108,7 @@
<xsl:variable name ="ui_selectlang"><xsl:apply-templates select="$tmp_doc_ui//variable[@id='selectlanguage']"/></xsl:variable>
<xsl:variable name ="ui_search"><xsl:apply-templates select="$tmp_doc_ui//variable[@id='searchhelpcontents']"/></xsl:variable>
<xsl:variable name ="ui_copyclip"><xsl:apply-templates select="$tmp_doc_ui//variable[@id='copyclip']"/></xsl:variable>
+<xsl:variable name ="ytvideobutton"><xsl:apply-templates select="$tmp_doc_ui//variable[@id='ytbutton']"/></xsl:variable>
<!--
#############
# Templates #
@@ -1264,9 +1265,11 @@
<xsl:variable name="auxID" select="concat('obj',generate-id())"/>
<xsl:choose>
<xsl:when test="starts-with(@type,'video/youtube')">
- <div id="mediadiv">
- <iframe id="{@id}" src="{@data}" width="{$width}" height="{$height}" frameborder="0" allowfullscreen="true"></iframe>
- </div>
+ <div id="{@id}" class="youtube_placeholder" style="border: 1px solid #eee; width:500px; padding: 10px;">
+ <button style="background-color: red;" onClick="youtubeLoader('{@id}', 700, 394)" >
+ <xsl:value-of select="$ytvideobutton"/>
+ </button>
+ </div>
</xsl:when>
<xsl:when test="not(starts-with(@type,'video/youtube')) and starts-with(@type,'video')">
<div id="mediadiv">