[www-doc] [Git][VideoLAN.org/websites][master] 2 commits: Fix mixed content

Ludovic Fauvet gitlab at videolan.org
Fri Feb 12 22:03:03 CET 2016


Ludovic Fauvet pushed to branch master at VideoLAN organization / websites


Commits:
512b739b by Ludovic Fauvet at 2016-02-12T22:00:14Z
Fix mixed content

- - - - -
b3e64311 by Ludovic Fauvet at 2016-02-12T22:01:58Z
[PoC] Live download stats in websocket

- - - - -


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
@@ -5,6 +5,15 @@
     require($_SERVER["DOCUMENT_ROOT"]."/include/header.php");
 ?>
 
+<script>
+    $(function() {
+        var ws = new WebSocket("wss://get.videolan.org/wscounter");
+        ws.onmessage = function(event) {
+            $('#wscounter').text(event.data);
+        };
+    });
+</script>
+
 <div id="fullwidth">
     <h1>VLC download statistics</h1>
 
@@ -16,13 +25,15 @@
     <p>We don't show Linux download statistics as most downloads for this
        OS are made through distributions.</p>
 
+    <p align="center" id="wscounter"></p>
+
 <?php    echo "<center><img src='//images.videolan.org/images/events/1billion.png' alt='1 billion downloads' class='' style='box-shadow: 0px 0px 10px 5px #FFF; margin-top: 20px;' /></center>"; ?>
 
     <h1>Downloads by version and by OS</h1>
     <table border="0">
     <tr>
     <th style="text-align: left; width: 60px;">Version</th>
-    <th class="os" style="text-align: right;"><img src="http://images.videolan.org/images/icons/winvista.png" alt="Windows" width="32" height="32" />
+    <th class="os" style="text-align: right;"><img src="//images.videolan.org/images/icons/winvista.png" alt="Windows" width="32" height="32" />
     </th>
     <th class="os" style="text-align: right;"><img src="/images/icons/macosx.png" alt="Mac OS X" width="32" height="32" />
     </th>



View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/compare/cce50730e00d29e17427aae923949a093d4f29bc...b3e643118a6464d2c913d5f0111019b4a94bf71d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/www-doc/attachments/20160212/f8b2bd6f/attachment.html>


More information about the www-doc mailing list