From: Matteo Nastasi (mop) Date: Tue, 1 Jan 2013 17:05:45 +0000 (+0100) Subject: add html elements to be able to activate graphical feedback for data streaming status X-Git-Tag: v4.5.0~3 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=d002471a22f3eb88175fcb7397fa3d2668a7d6a3;p=brisk.git add html elements to be able to activate graphical feedback for data streaming status --- diff --git a/web/briskin5/index.php b/web/briskin5/index.php index ca57254..181b9e9 100644 --- a/web/briskin5/index.php +++ b/web/briskin5/index.php @@ -32,8 +32,14 @@ require_once("Obj/briskin5.phh"); $mlang_bin5_index = array( 'aucwin' => array( 'it' => 'Hai vinto l\'asta.
Scegli il seme:', 'en' => 'You win the auction.
Choose the seed:' ), - 'tit_pref'=>array( 'it' => 'Preferenze.', - 'en' => 'Preferences.'), + 'tit_info' => array( 'it' => 'Info', + 'en' => 'Info'), + 'tit_relo' => array( 'it' => 'Reload', + 'en' => 'Reload'), + 'tit_out' => array( 'it' => 'Fuori', + 'en' => 'Out'), + 'tit_pref' => array( 'it' => 'Prefs', + 'en' => 'Prefs'), 'itm_ringauc' => array('it' => 'riproduci un suono di notifica alla fine dell\' asta', 'en' => 'play a sound at the end of the auction'), 'btn_update' => array('it' => 'Aggiorna.', @@ -247,11 +253,13 @@ window.onload = function() {
- - - + + + - + + +
diff --git a/web/heartbit.js b/web/heartbit.js index d408775..c1d0180 100644 --- a/web/heartbit.js +++ b/web/heartbit.js @@ -1,4 +1,4 @@ -function heartbit(symb) +function heartbit_old(symb) { if ($("heartbit").innerHTML.length >= 120) { $("heartbit").innerHTML = $("heartbit").innerHTML.substring(10); @@ -9,3 +9,13 @@ function heartbit(symb) } } +function heartbit(s_stat, w_stat) +{ + if (w_stat == "r") { + $("stm_stat").src = "img/line-status_cb.png"; + } + else { + $("stm_stat").src = "img/line-status_o"+s_stat+".png"; + } +} + diff --git a/web/index.php b/web/index.php index 0534005..5604db1 100644 --- a/web/index.php +++ b/web/index.php @@ -20,13 +20,7 @@ * not, write to the Free Software Foundation, Inc, 59 Temple Place - * Suite 330, Boston, MA 02111-1307, USA. * - - -TODO: - - header - - setcookie - - gestire per intero la var globale di output -*/ + */ require_once("Obj/brisk.phh"); require_once("Obj/auth.phh"); @@ -889,7 +883,8 @@ supported by:


%s %s -
'; +
+'; /* Templates. */ if ($ACTION == 'login') {