Version18.123.1

This commit is contained in:
Antonio Cañas Vargas 2019-05-22 10:48:28 +02:00
parent 24e2bbde64
commit a4f60d4aaa
6 changed files with 22 additions and 2 deletions

View File

@ -2615,6 +2615,13 @@ a:hover img.CENTRE_PHOTO_SHOW
display:table; display:table;
margin:5%; margin:5%;
width:90%; width:90%;
text-align:center;
}
.GAM_PLAY_STD_WAIT
{
box-sizing:border-box;
width:50%;
margin:0 auto;
} }
.GAM_PLAY_STD_NUM_QST .GAM_PLAY_STD_NUM_QST
{ {

1
icon/flag-checkered.svg Normal file
View File

@ -0,0 +1 @@
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="flag-checkered" class="svg-inline--fa fa-flag-checkered fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#404040" d="M243.2 189.9V258c26.1 5.9 49.3 15.6 73.6 22.3v-68.2c-26-5.8-49.4-15.5-73.6-22.2zm223.3-123c-34.3 15.9-76.5 31.9-117 31.9C296 98.8 251.7 64 184.3 64c-25 0-47.3 4.4-68 12 2.8-7.3 4.1-15.2 3.6-23.6C118.1 24 94.8 1.2 66.3 0 34.3-1.3 8 24.3 8 56c0 19 9.5 35.8 24 45.9V488c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24v-94.4c28.3-12.1 63.6-22.1 114.4-22.1 53.6 0 97.8 34.8 165.2 34.8 48.2 0 86.7-16.3 122.5-40.9 8.7-6 13.8-15.8 13.8-26.4V95.9c.1-23.3-24.2-38.8-45.4-29zM169.6 325.5c-25.8 2.7-50 8.2-73.6 16.6v-70.5c26.2-9.3 47.5-15 73.6-17.4zM464 191c-23.6 9.8-46.3 19.5-73.6 23.9V286c24.8-3.4 51.4-11.8 73.6-26v70.5c-25.1 16.1-48.5 24.7-73.6 27.1V286c-27 3.7-47.9 1.5-73.6-5.6v67.4c-23.9-7.4-47.3-16.7-73.6-21.3V258c-19.7-4.4-40.8-6.8-73.6-3.8v-70c-22.4 3.1-44.6 10.2-73.6 20.9v-70.5c33.2-12.2 50.1-19.8 73.6-22v71.6c27-3.7 48.4-1.3 73.6 5.7v-67.4c23.7 7.4 47.2 16.7 73.6 21.3v68.4c23.7 5.3 47.6 6.9 73.6 2.7V143c27-4.8 52.3-13.6 73.6-22.5z"></path></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
icon/wait.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -452,6 +452,10 @@ ps2pdf source.ps destination.pdf
#define CSS_FILE "swad18.123.css" #define CSS_FILE "swad18.123.css"
#define JS_FILE "swad18.123.js" #define JS_FILE "swad18.123.js"
/* /*
Version 18.123.1: May 22, 2019 Wait icon while a game has not started. (? lines)
Copy the following icon to icon public directory:
sudo cp icon/wait.gif /var/www/html/swad/icon/
Version 18.123: May 22, 2019 Game is refreshed automatically. Version 18.123: May 22, 2019 Game is refreshed automatically.
Code refactoring in actions related to AJAX refreshing. (242770 lines) Code refactoring in actions related to AJAX refreshing. (242770 lines)
Version 18.122.5: May 20, 2019 Buttons for options in games. (242596 lines) Version 18.122.5: May 20, 2019 Buttons for options in games. (242596 lines)

View File

@ -44,7 +44,7 @@ extern struct Globals Gbl;
should be large enough to prevent an IP from being banned should be large enough to prevent an IP from being banned
due to automatic refresh when the user is viewing the last clicks. */ due to automatic refresh when the user is viewing the last clicks. */
#define Fw_CHECK_INTERVAL ((time_t)(10UL)) // Check clicks in the last 10 seconds #define Fw_CHECK_INTERVAL ((time_t)(10UL)) // Check clicks in the last 10 seconds
#define Fw_MAX_CLICKS_IN_INTERVAL 30 // Maximum of 30 clicks allowed in 10 seconds #define Fw_MAX_CLICKS_IN_INTERVAL 50 // Maximum of 50 clicks allowed in 10 seconds
#define Fw_TIME_BANNED ((time_t)(60UL*60UL)) // Ban IP for 1 hour #define Fw_TIME_BANNED ((time_t)(60UL*60UL)) // Ban IP for 1 hour

View File

@ -3401,7 +3401,7 @@ static void Gam_ShowQuestionBeingPlayed (void)
ShowAnswers = (row[2][0] == 'Y'); ShowAnswers = (row[2][0] == 'Y');
} }
/***** Free structure that stores the query result *****/ /* Free structure that stores the query result */
DB_FreeMySQLResult (&mysql_res); DB_FreeMySQLResult (&mysql_res);
/***** Show question *****/ /***** Show question *****/
@ -3453,6 +3453,14 @@ static void Gam_ShowQuestionBeingPlayed (void)
fprintf (Gbl.F.Out,"</div>"); fprintf (Gbl.F.Out,"</div>");
} }
else
{
fprintf (Gbl.F.Out,"<img src=\"%s/wait.gif\""
" alt=\"Please wait\" title=\"%s\""
" class=\"GAM_PLAY_STD_WAIT\" />",
Cfg_URL_ICON_PUBLIC,
"Por favor, espere a que el juego comience..."); // TODO: Need translation!!!!!
}
} }
/*****************************************************************************/ /*****************************************************************************/