File tree 3 files changed +10
-11
lines changed
3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ define(["mod_eductx/assets",
50
50
{
51
51
text : title ,
52
52
margin : [ 0 , 75 , 30 , 0 ] ,
53
- fontSize : 40 ,
53
+ fontSize : getFontSize ( title . length ) ,
54
54
color : "#333C75"
55
55
} ,
56
56
{
@@ -134,14 +134,14 @@ define(["mod_eductx/assets",
134
134
{
135
135
align : "right" ,
136
136
image : assets . eduCtxLogo ,
137
- width : 58 ,
138
- height : 58 ,
137
+ width : 48 ,
138
+ height : 48 ,
139
139
} ,
140
140
{
141
141
align : "left" ,
142
142
image : assets . bclabLogo ,
143
- height : 58 ,
144
- width : 161 ,
143
+ height : 48 ,
144
+ width : 133 ,
145
145
margin : [ - 42 , 0 , 0 , 0 ]
146
146
} ,
147
147
] ,
@@ -233,8 +233,8 @@ define(["mod_eductx/assets",
233
233
}
234
234
} ;
235
235
236
- function getFontSize ( lengthOfName ) {
237
- let fontsizeFullName = 0 ;
236
+ const getFontSize = ( lengthOfName ) => {
237
+ let fontsizeFullName = 12 ;
238
238
if ( lengthOfName <= 17 ) {
239
239
fontsizeFullName = 38 ;
240
240
} else if ( lengthOfName > 17 && lengthOfName <= 20 ) {
@@ -255,8 +255,7 @@ define(["mod_eductx/assets",
255
255
fontsizeFullName = 14 ;
256
256
}
257
257
return fontsizeFullName ;
258
- }
259
-
258
+ } ;
260
259
261
260
const getContent = async ( certificate ) => {
262
261
const personFullName =
Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ define(["mod_eductx/main",
397
397
'_' +
398
398
certificate . person . lastName +
399
399
'_' +
400
- certificate . certificate . unitTitle
400
+ certificate . certificate . unitTitle + ".pdf"
401
401
) ;
402
402
403
403
// eslint-disable-next-line no-console
Original file line number Diff line number Diff line change 93
93
<input type =" text" class =" form-control" id =" achievement" name =" achievement"
94
94
placeholder =" e.g. Certified Cyber Security Expert" ><br >
95
95
<label for =" certShortDesc" >Short Description</label >
96
- <textarea id =" certShortDesc" class =" form-control" name =" certShortDesc" form =" issueCert"
96
+ <textarea maxlength = " 100 " id =" certShortDesc" class =" form-control" name =" certShortDesc" form =" issueCert"
97
97
placeholder =" Successfully completed Cyber Security Workshop 2021, held in Maribor at FERI UM." ></textarea ><br >
98
98
<label for =" certType" >Certificate Type</label >
99
99
<input type =" text" class =" form-control" id =" certType" name =" certType"
You can’t perform that action at this time.
0 commit comments