[www-doc] [Git][VideoLAN.org/websites][master] live counter: automatically display the counter for the given VLC version

Ludovic Fauvet gitlab at videolan.org
Sun Dec 4 11:57:52 CET 2016


Ludovic Fauvet pushed to branch master at VideoLAN organization / websites


Commits:
5eec2783 by Ludovic Fauvet at 2016-12-04T11:56:43+01:00
live counter: automatically display the counter for the given VLC version

- - - - -


1 changed file:

- www.videolan.org/include/os-specific.php


Changes:

=====================================
www.videolan.org/include/os-specific.php
=====================================
--- a/www.videolan.org/include/os-specific.php
+++ b/www.videolan.org/include/os-specific.php
@@ -236,7 +236,7 @@ function downloadButton2($dropdownItems = null, $targetOS = null, $displayMainOS
 
         function openWSCounterSocket() {
             if (ws === undefined || ws.readyState === undefined || ws.readyState > 1) {
-                ws = new WebSocket("wss://get.videolan.org/wscounter");
+                ws = new WebSocket("wss://get.videolan.org/wscounter/<?php echo $defaultDetail["latestVersion"] ?>");
                 ws.onmessage = function(event) {
                     var value = event.data.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
                     $('#wscounter').text(value + " <?php echo _("downloads so far"); ?>");



View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/commit/5eec278326b76df834a14aee31846fdd6bce4442
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/www-doc/attachments/20161204/02d1a358/attachment.html>


More information about the www-doc mailing list