Version 17.0.1

This commit is contained in:
Antonio Cañas Vargas 2017-09-13 22:17:27 +02:00
parent 37eec0c39a
commit 34a0e4b8b5
3 changed files with 53 additions and 6 deletions

View File

@ -695,10 +695,6 @@ a:hover /* Default ==> underlined */
text-transform:uppercase;
}
}
.TAB_OFF a:hover, .TAB_ON a:hover
{
text-decoration:none;
}
.TAB_ON_WHITE {background-color:rgba(247, 246, 245, 0.99);}
.TAB_ON_GREY {background-color:rgba(247, 246, 245, 0.99);}
@ -2397,6 +2393,10 @@ a:hover img.CENTRE_PHOTO_SHOW
text-align:left;
vertical-align:middle;
}
.GAM_PLAY_CONTAINER a
{
text-decoration:none;
}
.GAM_PLAY_NUM_QST
{
display:inline-block;
@ -2405,7 +2405,7 @@ a:hover img.CENTRE_PHOTO_SHOW
position:relative;
color:#808080;
font-size:48pt;
background:yellow;
font-weight:bold;
}
.GAM_PLAY_QST_STEM
{
@ -2415,7 +2415,11 @@ a:hover img.CENTRE_PHOTO_SHOW
position:relative;
color:#404040;
font-size:24pt;
background:pink;
}
.GAM_PLAY_CONTINUE
{
color:#404040;
font-size:24pt;
}
/******************************* Time table **********************************/

View File

@ -257,6 +257,10 @@
// 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 17.0.1: Sep 13, 2017 Icon to show question answers when playing a game. (227283 lines)
Copy the following icon to icon public directory:
sudo cp icon/step-forward64x64.png /var/www/html/swad/icon/
Version 17.0: Sep 13, 2017 New action to display a game question. (227245 lines)
Version 16.254.2: Sep 13, 2017 Removed notifications in games.
Start playing a game.

View File

@ -151,6 +151,8 @@ static void Gam_ExchangeQuestions (long GamCod,
unsigned QstIndTop,unsigned QstIndBottom);
static void Gam_PutBigButtonToStartGame (long GamCod);
static void Gam_PutBigButtonToContinue (Act_Action_t NextAction,
long GamCod,unsigned QstInd);
static void Gam_ReceiveAndStoreUserAnswersToAGame (long GamCod);
static void Gam_IncreaseAnswerInDB (long QstCod,unsigned AnsInd);
@ -3550,6 +3552,43 @@ void Gam_PlayGameNextQuestion (void)
"TEST_IMG_EDIT_LIST_STEM_CONTAINER",
"TEST_IMG_EDIT_LIST_STEM");
/***** Put button to show answers *****/
Gam_PutBigButtonToContinue (ActPlyGamNxtQst,Game.GamCod,QstInd);
fprintf (Gbl.F.Out,"</div>");
}
/*****************************************************************************/
/*********************** Put a big button to continue ************************/
/*****************************************************************************/
static void Gam_PutBigButtonToContinue (Act_Action_t NextAction,
long GamCod,unsigned QstInd)
{
extern const char *Txt_Continue;
/***** Start container *****/
fprintf (Gbl.F.Out,"<div class=\"CENTER_TOP\">");
/***** Start form *****/
Act_FormStart (NextAction);
Gam_PutParamGameCod (GamCod);
Gam_PutParamQstInd (QstInd);
/***** Put icon with link *****/
Act_LinkFormSubmit (Txt_Continue,"GAM_PLAY_CONTINUE ICO_HIGHLIGHT",NULL);
fprintf (Gbl.F.Out,"<img src=\"%s/step-forward64x64.png\" alt=\"%s\" title=\"%s\""
" class=\"ICO64x64\" />"
"<br />"
"%s",
Gbl.Prefs.IconsURL,Txt_Continue,Txt_Continue,
Txt_Continue);
fprintf (Gbl.F.Out,"</a>");
/***** End form *****/
Act_FormEnd ();
/***** End container *****/
fprintf (Gbl.F.Out,"</div>");
}