mirror of https://github.com/acanas/swad-core.git
Version18.139.3
This commit is contained in:
parent
f10b4a3335
commit
06e32d48f9
|
@ -2651,24 +2651,16 @@ a:hover img.CENTRE_PHOTO_SHOW
|
|||
|
||||
.MATCH_BUTTONS_CONTAINER
|
||||
{
|
||||
box-sizing:border-box;
|
||||
display:table;
|
||||
box-sizing:border-box;
|
||||
width:100%;
|
||||
background:pink;
|
||||
}
|
||||
|
||||
.MATCH_BUTTON_LEFT_CONTAINER
|
||||
{
|
||||
display:table-cell;
|
||||
box-sizing:border-box;
|
||||
float:left;
|
||||
width:50%;
|
||||
height:200px;
|
||||
margin:0 auto;
|
||||
text-align:center;
|
||||
vertical-align:middle;
|
||||
border:1px solid black;
|
||||
font-size:48pt;
|
||||
}
|
||||
.MATCH_BUTTON_RIGHT_CONTAINER
|
||||
{
|
||||
|
@ -2676,14 +2668,16 @@ a:hover img.CENTRE_PHOTO_SHOW
|
|||
box-sizing:border-box;
|
||||
float:left;
|
||||
width:50%;
|
||||
height:200px;
|
||||
margin:0 auto;
|
||||
text-align:center;
|
||||
vertical-align:middle;
|
||||
border:1px solid blue;
|
||||
font-size:48pt;
|
||||
}
|
||||
|
||||
.MATCH_BUTTON_CONTAINER
|
||||
{
|
||||
box-sizing:border-box;
|
||||
display:table;
|
||||
width:100%;
|
||||
height:100px;
|
||||
vertical-align:middle;
|
||||
}
|
||||
.MATCH_BUTTON
|
||||
{
|
||||
display:table-cell;
|
||||
|
@ -2691,12 +2685,12 @@ a:hover img.CENTRE_PHOTO_SHOW
|
|||
font-size:48pt;
|
||||
text-align:center;
|
||||
vertical-align:middle;
|
||||
background:red;
|
||||
margin:auto;
|
||||
}
|
||||
.MATCH_BUTTON a
|
||||
.MATCH_BUTTON_CONTAINER a
|
||||
{
|
||||
text-decoration:none;
|
||||
color:#404040;
|
||||
}
|
||||
|
||||
.MATCH_TCH_QST
|
||||
|
|
|
@ -460,10 +460,11 @@ En OpenSWAD:
|
|||
ps2pdf source.ps destination.pdf
|
||||
*/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 18.139.2 (2019-09-05)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 18.139.3 (2019-09-09)"
|
||||
#define CSS_FILE "swad18.138.css"
|
||||
#define JS_FILE "swad18.130.2.js"
|
||||
/*
|
||||
Version 18.139.3: Sep 09, 2019 Changes in layout of matches buttons. (244305 lines)
|
||||
Version 18.139.2: Sep 05, 2019 Number of match players is not displayed for students.
|
||||
Changes in layout of matches buttons (not finished).
|
||||
Display match elapsed time. (244306 lines)
|
||||
|
|
55
swad_game.c
55
swad_game.c
|
@ -3741,7 +3741,8 @@ static void Gam_ShowLeftColumnTch (struct Match *Match)
|
|||
// Gam_PutBigButton (ActCurMchTch,Match->MchCod,
|
||||
// "step-backward.svg",Txt_Stem);
|
||||
Gam_PutBigButton (ActCurMchTch,Match->MchCod,
|
||||
"⇤",Txt_Stem);
|
||||
"⏪", // "⇤"
|
||||
Txt_Stem);
|
||||
else
|
||||
{
|
||||
/* Get index of the previous question */
|
||||
|
@ -3752,13 +3753,15 @@ static void Gam_ShowLeftColumnTch (struct Match *Match)
|
|||
// Gam_PutBigButton (ActPrvMchTch,Match->MchCod,
|
||||
// "step-backward.svg",Txt_MATCH_Start);
|
||||
Gam_PutBigButton (ActPrvMchTch,Match->MchCod,
|
||||
"⇤",Txt_MATCH_Start);
|
||||
"⏪", // "⇤"
|
||||
Txt_MATCH_Start);
|
||||
else // There is a previous question
|
||||
/* Put button to show previous question */
|
||||
// Gam_PutBigButton (ActPrvMchTch,Match->MchCod,
|
||||
// "step-backward.svg",Txt_Previous_QUESTION);
|
||||
Gam_PutBigButton (ActPrvMchTch,Match->MchCod,
|
||||
"⇤",Txt_Previous_QUESTION);
|
||||
"⏪", // "⇤"
|
||||
Txt_Previous_QUESTION);
|
||||
}
|
||||
}
|
||||
else // Not being played
|
||||
|
@ -3770,7 +3773,8 @@ static void Gam_ShowLeftColumnTch (struct Match *Match)
|
|||
// Gam_PutBigButton (ActPrvMchTch,Match->MchCod,
|
||||
// "step-backward.svg",Txt_Previous_QUESTION);
|
||||
Gam_PutBigButton (ActPrvMchTch,Match->MchCod,
|
||||
"⇤",Txt_Previous_QUESTION);
|
||||
"⏪", // "⇤"
|
||||
Txt_Previous_QUESTION);
|
||||
|
||||
fprintf (Gbl.F.Out,"</div>");
|
||||
|
||||
|
@ -3791,20 +3795,23 @@ static void Gam_ShowLeftColumnTch (struct Match *Match)
|
|||
// Gam_PutBigButton (ActNxtMchTch,Match->MchCod,
|
||||
// "step-forward.svg",Txt_Finish);
|
||||
Gam_PutBigButton (ActNxtMchTch,Match->MchCod,
|
||||
"⇥",Txt_Finish);
|
||||
"⏩", // "⇤"
|
||||
Txt_Finish);
|
||||
else // There are more questions
|
||||
/* Put button to show next question */
|
||||
// Gam_PutBigButton (ActNxtMchTch,Match->MchCod,
|
||||
// "step-forward.svg",Txt_Next_QUESTION);
|
||||
Gam_PutBigButton (ActNxtMchTch,Match->MchCod,
|
||||
"⇥",Txt_Next_QUESTION);
|
||||
"⏩", // "⇤"
|
||||
Txt_Next_QUESTION);
|
||||
}
|
||||
else
|
||||
/* Put button to show answers */
|
||||
// Gam_PutBigButton (ActNxtMchTch,Match->MchCod,
|
||||
// "step-forward.svg",Txt_Answers);
|
||||
Gam_PutBigButton (ActNxtMchTch,Match->MchCod,
|
||||
"⇥",Txt_Answers);
|
||||
"⏩", // "⇤"
|
||||
Txt_Answers);
|
||||
}
|
||||
else
|
||||
/* Put button to start / resume match */
|
||||
|
@ -3815,7 +3822,7 @@ static void Gam_ShowLeftColumnTch (struct Match *Match)
|
|||
// Txt_Resume);
|
||||
Gam_PutBigButton (ActCurMchTch,
|
||||
Match->MchCod,
|
||||
"▸",
|
||||
"⏩", // "⇥", // "▸", // "▶", // "‣", //"⇥", // "▸",
|
||||
Match->Status.QstInd == 0 ? Txt_Start :
|
||||
Txt_Resume);
|
||||
|
||||
|
@ -4153,16 +4160,13 @@ static void Gam_PutBigButton (Act_Action_t NextAction,long MchCod,
|
|||
/* Submitting onmousedown instead of default onclick
|
||||
is necessary in order to be fast
|
||||
and not lose clicks due to refresh */
|
||||
fprintf (Gbl.F.Out,"<div class=\"MATCH_BUTTON\">");
|
||||
fprintf (Gbl.F.Out,"<a href=\"\"");
|
||||
fprintf (Gbl.F.Out," title=\"%s\"",Txt);
|
||||
fprintf (Gbl.F.Out," class=\"%s\"","ICO_HIGHLIGHT");
|
||||
fprintf (Gbl.F.Out," onmousedown=\"");
|
||||
fprintf (Gbl.F.Out,"document.getElementById('%s').submit();"
|
||||
"return false;\">",
|
||||
Gbl.Form.Id);
|
||||
fprintf (Gbl.F.Out,"%s",Icon);
|
||||
fprintf (Gbl.F.Out,"</a>");
|
||||
fprintf (Gbl.F.Out,"<div class=\"MATCH_BUTTON_CONTAINER\">");
|
||||
fprintf (Gbl.F.Out,"<a href=\"\" title=\"%s\" class=\"MATCH_BUTTON ICO_HIGHLIGHT\""
|
||||
" onmousedown=\"document.getElementById('%s').submit();"
|
||||
" return false;\">%s</a>",
|
||||
Txt,
|
||||
Gbl.Form.Id,
|
||||
Icon);
|
||||
fprintf (Gbl.F.Out,"</div>");
|
||||
|
||||
/***** End form *****/
|
||||
|
@ -4200,14 +4204,13 @@ static void Gam_PutBigButtonClose (void)
|
|||
/* onmousedown instead of default onclick
|
||||
is necessary in order to be fast
|
||||
and not lose clicks due to refresh */
|
||||
// fprintf (Gbl.F.Out,"<div class=\"MATCH_BUTTON\">");
|
||||
fprintf (Gbl.F.Out,"<a href=\"\"");
|
||||
fprintf (Gbl.F.Out," title=\"%s\"",Txt_Close);
|
||||
fprintf (Gbl.F.Out," class=\"%s\"","MATCH_BUTTON ICO_HIGHLIGHT");
|
||||
fprintf (Gbl.F.Out," onmousedown=\"window.close(); return false;\"\">");
|
||||
fprintf (Gbl.F.Out,"%s","×");
|
||||
fprintf (Gbl.F.Out,"</a>");
|
||||
// fprintf (Gbl.F.Out,"</div>");
|
||||
fprintf (Gbl.F.Out,"<div class=\"MATCH_BUTTON_CONTAINER\">");
|
||||
fprintf (Gbl.F.Out,"<a href=\"\" title=\"%s\" class=\"MATCH_BUTTON ICO_HIGHLIGHT\""
|
||||
" onmousedown=\"window.close(); return false;\"\">"
|
||||
"❎" // "❌" // "×" // "✕"
|
||||
"</a>",
|
||||
Txt_Close);
|
||||
fprintf (Gbl.F.Out,"</div>");
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
Loading…
Reference in New Issue