[www-doc] [Git][VideoLAN.org/websites][master] Remove the live counter from download page

Jean-Baptiste Kempf gitlab at videolan.org
Mon Feb 15 10:38:32 CET 2016


Jean-Baptiste Kempf pushed to branch master at VideoLAN organization / websites


Commits:
a5f7911f by Jean-Baptiste Kempf at 2016-02-15T10:38:11Z
Remove the live counter from download page

- - - - -


1 changed file:

- www.videolan.org/vlc/stats/downloads.php


Changes:

=====================================
www.videolan.org/vlc/stats/downloads.php
=====================================
--- a/www.videolan.org/vlc/stats/downloads.php
+++ b/www.videolan.org/vlc/stats/downloads.php
@@ -6,24 +6,6 @@
     require($_SERVER["DOCUMENT_ROOT"]."/include/os-specific.php");
 ?>
 
-<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);
-            };
-        }
-    }
-
-    $(function() {
-        openWSCounterSocket();
-        setInterval(openWSCounterSocket, 5000);
-    });
-</script>
-
 <div id="fullwidth">
     <h1>VLC download statistics</h1>
 
@@ -35,8 +17,6 @@
     <p>We don't show statistics for GNU/Linux, iOS, Android, Chrome OS or Windows Phone as most downloads for those
        platforms are made through distributions or app stores.</p>
 
-    <p>Our latest release, version <?php echo $version ?>, was downloaded <b><span id="wscounter"></span></b> times so far!</p>
-
     <?php image('events/2billion.png', '2 billion downloads', 'announce-img'); ?>
 
     <h1>Downloads by version and by OS</h1>



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


More information about the www-doc mailing list