Version 16.119.4

This commit is contained in:
Antonio Cañas Vargas 2017-01-18 00:55:24 +01:00
parent f3fff80865
commit d564bd047b
4 changed files with 19 additions and 15 deletions

View File

@ -274,6 +274,7 @@ a:hover /* Default ==> underlined */
#current_date
{
box-sizing:border-box;
background-color:rgba(255, 255, 255, 0.8);
width:80px;
margin-left:6px;
border-radius:4px;
@ -282,17 +283,17 @@ a:hover /* Default ==> underlined */
#current_month
{
border-radius:4px 4px 0 0;
background-color:rgba(172, 64, 64, 0.8);;
background-color:rgba(222, 33, 33, 0.8);
color:white;
font-size:12pt;
font-size:10pt;
font-weight:bold;
white-space:nowrap;
overflow:hidden;
}
#current_day
{
background-color:rgba(255, 255, 255, 0.8);;
color:#606060;
margin:2px 0 -4px 0;
font-size:20pt;
font-weight:bold;
line-height:100%;
@ -300,7 +301,6 @@ a:hover /* Default ==> underlined */
#current_time
{
border-radius:0 0 4px 4px;
background-color:rgba(255, 255, 255, 0.8);;
color:#606060;
font-size:12pt;
font-weight:bold;

View File

@ -350,13 +350,9 @@ function writeLocalClock () {
Hou = d.getHours();
Min = d.getMinutes();
StrMin = ((Min < 10) ? '0' : '') + Min;
document.getElementById('hm').innerHTML = '<div id="current_date"><div id="current_month">' +
Months[Mon] +
'</div><div id="current_day">' +
Day +
'</div><div id="current_time">' +
Hou + ':' + StrMin +
'</div></div>';
document.getElementById('current_month').innerHTML = Months[Mon];
document.getElementById('current_day').innerHTML = Day;
document.getElementById('current_time').innerHTML = Hou + ':' + StrMin;
}
function writeClockConnected () {

View File

@ -191,13 +191,15 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.119.2 (2017-01-17)"
#define CSS_FILE "swad16.119.css"
#define JS_FILE "swad16.119.js"
#define Log_PLATFORM_VERSION "SWAD 16.119.4 (2017-01-18)"
#define CSS_FILE "swad16.119.4.css"
#define JS_FILE "swad16.119.3.js"
// Number of lines (includes comments but not blank lines) has been got with the following command:
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
/*
Version 16.119.4: Jan 18, 2017 Changes in layout of current data and time. (211882 lines)
Version 16.119.3: Jan 17, 2017 Changes in layout of current data and time. (211881 lines)
Version 16.119.2: Jan 17, 2017 Fixed bug in web service related to attendance. (211879 lines)
Version 16.119.1: Jan 17, 2017 Fixed bug in attendance. (211877 lines)
Version 16.119: Jan 17, 2017 Changes in layout of current data and time.

View File

@ -160,8 +160,14 @@ bool Dat_GetDateFromYYYYMMDD (struct Date *Date,const char *YYYYMMDD)
void Dat_ShowClientLocalTime (void)
{
fprintf (Gbl.F.Out,"<div id=\"hm\">"
fprintf (Gbl.F.Out,"<div id=\"current_date\">"
"<div id=\"current_month\">"
"</div>"
"<div id=\"current_day\">"
"</div>"
"<div id=\"current_time\">"
"</div>"
"</div>"
"<script type=\"text/javascript\">\n"
"secondsSince1970UTC = %ld;\n"
"writeLocalClock();"