<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>Ludovic Fauvet pushed to branch master at <a href="https://code.videolan.org/VideoLAN.org/websites">VideoLAN organization / websites</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://code.videolan.org/VideoLAN.org/websites/commit/41cae33f7f964ea3a115ed6f8e770c514feb0789">41cae33f</a></strong>
<div>
<span>by Ludovic Fauvet</span>
<i>at 2016-02-14T13:43:29Z</i>
</div>
<pre class='commit-message'>Add the downloads counter on a live page for testing purpose</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
www.videolan.org/include/os-specific.php
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://code.videolan.org/VideoLAN.org/websites/commit/41cae33f7f964ea3a115ed6f8e770c514feb0789#diff-0'>
<strong>
www.videolan.org/include/os-specific.php
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/www.videolan.org/include/os-specific.php
</span><span style="color: #000000;background-color: #ddffdd">+++ b/www.videolan.org/include/os-specific.php
</span><span style="color: #aaaaaa">@@ -230,6 +230,24 @@ function downloadButton2($dropdownItems = null, $targetOS = null, $displayMainOS
</span>     $defaultOS = is_null($targetOS) || $targetOS == 'All' ? "windows" : $targetOS;
     $defaultDetail = getOS($defaultOS);
     ?>
<span style="color: #000000;background-color: #ddffdd">+    <script>
+        var ws;
+
+        function openWSCounterSocket() {
+            if (ws === undefined || ws.readyState === undefined || ws.readyState > 1) {
+                ws = new WebSocket("wss://get.videolan.org/wscounter");
+                ws.onmessage = function(event) {
+                    $('#wscounter').text(event.data + " <?php echo _("downloads so far"); ?>");
+                };
+            }
+        }
+
+        $(function() {
+            openWSCounterSocket();
+            setInterval(openWSCounterSocket, 5000);
+        });
+    </script>
+
</span>     <div class="inner center-xs">
         <div class="btn-group">
             <a id='downloadButton2' class="btn btn-default btn-lg btn-dl" href='<?php echo $defaultDetail["location"]; ?>'>
<span style="color: #aaaaaa">@@ -262,6 +280,7 @@ function downloadButton2($dropdownItems = null, $targetOS = null, $displayMainOS
</span>         <div id="downloadDetails">
             Version <span id='downloadVersion'>
             <?php echo $defaultDetail["latestVersion"] ?></span>&nbsp;&#8226;&nbsp;<span id='downloadOS'><?php echo $defaultDetail["name"]; ?></span>&nbsp;&#8226;&nbsp;<span id='downloadSize'><?php echo $defaultDetail["size"] ?></span>
<span style="color: #000000;background-color: #ddffdd">+            <br/><span id="wscounter"></span>
</span>         </div>
         <?php if ($displayMainOSicons) { ?>
         <div class="platform-icons main-os-icons">
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://code.videolan.org/VideoLAN.org/websites/commit/41cae33f7f964ea3a115ed6f8e770c514feb0789">View it on GitLab</a>
<br>
You're receiving this email because of your account on <a href="https://code.videolan.org/">code.videolan.org</a>.
If you'd like to receive fewer emails, you can adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://code.videolan.org/VideoLAN.org/websites/commit/41cae33f7f964ea3a115ed6f8e770c514feb0789"}}</script>
</p>
</div>
</body>
</html>