[git] gnupg-doc - branch, preview, updated. 0654e75407aa0aa65b70a1027afbd377592811f9

by Marcus Brinkmann cvs at cvs.gnupg.org
Fri May 19 17:36:23 CEST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GnuPG website and other docs".

The branch, preview has been updated
       via  0654e75407aa0aa65b70a1027afbd377592811f9 (commit)
      from  9538d92d99e63ee916181984946c9a6dc5a32d3d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0654e75407aa0aa65b70a1027afbd377592811f9
Author: Marcus Brinkmann <marcus.brinkmann at ruhr-uni-bochum.de>
Date:   Fri May 19 17:35:48 2017 +0200

    web: Enable captions by default on mobile.

diff --git a/web/share/campaign/campaign.js b/web/share/campaign/campaign.js
index 95d1bd6..99d08fb 100644
--- a/web/share/campaign/campaign.js
+++ b/web/share/campaign/campaign.js
@@ -113,6 +113,9 @@ $(document).ready(function() {
 	if (yt_list) {
 	    extra_parms = "&list=" + yt_list;
 	}
+	if (screen.width < 768) {
+	    extra_parms = extra_parms + "&cc_load_policy=1"
+	}
 	$(this).html('<iframe class="embed-responsive-item" allowfullscreen src="https://www.youtube.com/embed/'
 		     + yt_id + '?autoplay=1&modestbranding=1&rel=0' + extra_parms + '"></iframe>');
     });

-----------------------------------------------------------------------

Summary of changes:
 web/share/campaign/campaign.js | 3 +++
 1 file changed, 3 insertions(+)


hooks/post-receive
-- 
The GnuPG website and other docs
http://git.gnupg.org




More information about the Gnupg-commits mailing list