[FFmpeg-cvslog] [ffmpeg-web] branch master updated. fa9af8d web/template_head2: Prevent battleforthenet widget to show again after being clicked away

ffmpeg-git at ffmpeg.org ffmpeg-git at ffmpeg.org
Sun Nov 5 18:50:19 EET 2017


The branch, master has been updated
       via  fa9af8d7c5c16b1a5d343a8c29a4cd2afed8d94a (commit)
      from  50427978d7af74fa288a31e0fd78fa5572ac178c (commit)


- Log -----------------------------------------------------------------
commit fa9af8d7c5c16b1a5d343a8c29a4cd2afed8d94a
Author:     Michael Niedermayer <michael at niedermayer.cc>
AuthorDate: Sat Nov 4 17:41:45 2017 +0100
Commit:     Michael Niedermayer <michael at niedermayer.cc>
CommitDate: Sat Nov 4 17:48:32 2017 +0100

    web/template_head2: Prevent battleforthenet widget to show again after being clicked away
    
    Also ensure that the widget does not use google analytics.
    Iam not sure it actually did before, my box has too many layers that stop this.
    
    Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

diff --git a/src/template_head2 b/src/template_head2
index d7bb7bd..71daf07 100644
--- a/src/template_head2
+++ b/src/template_head2
@@ -3,6 +3,28 @@
       <script src="js/html5shiv.min.js"></script>
       <script src="js/respond.min.js"></script>
     <![endif]-->
+    <script type="text/javascript">
+    var _bftn_options = {
+        /*
+        * Specify view cookie expiration. After initial view, modal will not be
+        * displayed to a user again until after this cookie expires. Defaults to one
+        * day.
+        */
+        viewCookieExpires: 60, // @type {number}
+
+        /*
+        * Specify action cookie expiration. After initiating a call or clicking a
+        * donate link, modal will not be displayed to a user again until after this
+        * cookie expires. Defaults to one week.
+        */
+        actionCookieExpires: 60, // @type {number}
+
+        /*
+        * Prevents the widget iframe from loading Google Analytics. Defaults to false.
+        */
+        disableGoogleAnalytics: true, // @type {boolean}
+    };
+    </script>
     <script src="https://widget.battleforthenet.com/widget.js" async></script>
 
     <link href="main.rss" rel="alternate" type="application/rss+xml" title="ffmpeg.org" />

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

Summary of changes:
 src/template_head2 | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)


hooks/post-receive
-- 



More information about the ffmpeg-cvslog mailing list