ipfire-new: Fix encoding of refreshInetInfo.js.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 5 Jan 2014 13:15:11 +0000 (14:15 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 5 Jan 2014 13:15:11 +0000 (14:15 +0100)
html/html/themes/ipfire-new/include/js/refreshInetInfo.js

index 7ead8330ae63988e6357c6bd8712f51178cbdcb1..ed4a966b402d74903958b8280258a3e07a396270 100644 (file)
@@ -1,53 +1,54 @@
-/* refreshInetInfo.js \r
-* functions for retrieving status information via jQuery\r
-* Modified: March 6th, 2013 by michael@koehler.tk\r
-* Authors:     IPFire Team (info@ipfire.org)\r
-                       Kay-Michael Köhler (michael@koehler.tk)\r
-* Visit http://www.ipfire.org/\r
-*/\r
-\r
-var t_current;\r
-var t_last = 0;\r
-var rxb_current;\r
-var rxb_last = 0;\r
-var txb_current;\r
-var txb_last = 0;\r
-\r
-$(document).ready(function(){\r
-       refreshInetInfo();\r
-});\r
-\r
-function refreshInetInfo() {\r
-       $.ajax({\r
-               url: '/cgi-bin/speed.cgi',\r
-               success: function(xml){\r
-                       \r
-                       t_current = new Date();\r
-                       var t_diff = t_current - t_last;\r
-                       \r
-                       rxb_current = $("rxb",xml).text();\r
-                       var rxb_diff = rxb_current - rxb_last;\r
-                       rxb_last = rxb_current;\r
-\r
-                       var rx_kbs = rxb_diff/t_diff;\r
-                       rx_kbs = Math.round(rx_kbs*10)/10;\r
-\r
-                       txb_current = $("txb",xml).text();\r
-                       var txb_diff = txb_current - txb_last;\r
-                       txb_last = txb_current;\r
-\r
-                       var tx_kbs = txb_diff/t_diff;\r
-                       tx_kbs = Math.round(tx_kbs*10)/10;\r
-                       \r
-                       if (t_last != 0) {\r
-                               $("#rx_kbs").text(rx_kbs + ' kb/s');\r
-                               $("#tx_kbs").text(tx_kbs + ' kb/s');\r
-                               if ($("#bandwidthCalculationContainer").css('display') == 'none')\r
-                                       $("#bandwidthCalculationContainer").css('display','block');\r
-                       }\r
-                       \r
-                       t_last = t_current;\r
-               }\r
-       });\r
-       window.setTimeout("refreshInetInfo()", 2000);\r
-}\r
+/* refreshInetInfo.js
+* functions for retrieving status information via jQuery
+* Modified: March 6th, 2013 by michael@koehler.tk
+* Authors:     IPFire Team (info@ipfire.org)
+                       Kay-Michael Köhler (michael@koehler.tk)
+* Visit http://www.ipfire.org/
+*/
+
+var t_current;
+var t_last = 0;
+var rxb_current;
+var rxb_last = 0;
+var txb_current;
+var txb_last = 0;
+
+$(document).ready(function(){
+       refreshInetInfo();
+});
+
+function refreshInetInfo() {
+       $.ajax({
+               url: '/cgi-bin/speed.cgi',
+               success: function(xml){
+
+                       t_current = new Date();
+                       var t_diff = t_current - t_last;
+
+                       rxb_current = $("rxb",xml).text();
+                       var rxb_diff = rxb_current - rxb_last;
+                       rxb_last = rxb_current;
+
+                       var rx_kbs = rxb_diff/t_diff;
+                       rx_kbs = Math.round(rx_kbs*10)/10;
+
+                       txb_current = $("txb",xml).text();
+                       var txb_diff = txb_current - txb_last;
+                       txb_last = txb_current;
+
+                       var tx_kbs = txb_diff/t_diff;
+                       tx_kbs = Math.round(tx_kbs*10)/10;
+
+                       if (t_last != 0) {
+                               $("#rx_kbs").text(rx_kbs + ' kb/s');
+                               $("#tx_kbs").text(tx_kbs + ' kb/s');
+                               if ($("#bandwidthCalculationContainer").css('display') == 'none')
+                                       $("#bandwidthCalculationContainer").css('display','block');
+                       }
+
+                       t_last = t_current;
+               }
+       });
+
+       window.setTimeout("refreshInetInfo()", 2000);
+}