[git] gnupg-doc - branch, preview, updated. 44d93da20312f1668e25b69730caf59009f20a4c

by Marcus Brinkmann cvs at cvs.gnupg.org
Wed May 17 18:25:17 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  44d93da20312f1668e25b69730caf59009f20a4c (commit)
      from  3525b5c85681f503d8b65697b084d4a892fe657e (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 44d93da20312f1668e25b69730caf59009f20a4c
Author: Marcus Brinkmann <marcus.brinkmann at ruhr-uni-bochum.de>
Date:   Wed May 17 18:25:10 2017 +0200

    web: Fix syntax error in JS.

diff --git a/web/share/campaign/campaign.js b/web/share/campaign/campaign.js
index 68c270e..4936204 100644
--- a/web/share/campaign/campaign.js
+++ b/web/share/campaign/campaign.js
@@ -86,10 +86,10 @@ function get_param_from_url(name) {
 
 /* Defer loading Youtube iframe until the user clicks on the video.  */
 $(document).ready(function() {
-  /* For the video preview, we use this for devices without hover events.  */
-  if ("ontouchstart" in document.documentElement) {
-    $("body").addClass("touch");
-  }
+    /* For the video preview, we use this for devices without hover events.  */
+    if ("ontouchstart" in document.documentElement) {
+	$("body").addClass("touch");
+    }
 
     let wanted_yt_id = get_param_from_url('play');
     $(".camp-video").each(function() {
@@ -106,8 +106,6 @@ $(document).ready(function() {
        for f in YTID1 YTID2 ...; do wget -O $f.jpg http://i1.ytimg.com/vi/$f/maxresdefault.jpg; done # or hqdefault.jpg */
 
     /* Click handler for all videos.  */
-
-    /* http://i1.ytimg.com/vi/VGazSZUYyf4/hqdefault.jpg */
     $(".camp-video").one("click", function() {
 	let yt_id = $(this).data("embed").split(",")[0];
 	let yt_list = $(this).data("embed-list");
@@ -118,5 +116,4 @@ $(document).ready(function() {
 	$(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 | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)


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




More information about the Gnupg-commits mailing list