@@ -41,6 +41,14 @@ class ProjectViewer {
4141 const Planet = this . Planet ;
4242 this . id = id ;
4343 const proj = this . ProjectCache [ id ] ;
44+
45+ const setBoldText = ( el , text ) => {
46+ el . textContent = "" ;
47+ const b = document . createElement ( "b" ) ;
48+ b . textContent = String ( text ) ;
49+ el . appendChild ( b ) ;
50+ } ;
51+
4452 const options = {
4553 year : "numeric" ,
4654 month : "short" ,
@@ -60,14 +68,10 @@ class ProjectViewer {
6068 ) ;
6169
6270 document . getElementById ( "projectviewer-title" ) . textContent = proj . ProjectName ;
63- document . getElementById (
64- "projectviewer-last-updated"
65- ) . innerHTML = `<b>${ formatted_LastUpdated } </b>` ;
66- document . getElementById ( "projectviewer-date" ) . innerHTML = `<b>${ formatted_CreatedDate } </b>` ;
67- document . getElementById (
68- "projectviewer-downloads"
69- ) . innerHTML = `<b>${ proj . ProjectDownloads } </b>` ;
70- document . getElementById ( "projectviewer-likes" ) . innerHTML = `<b>${ proj . ProjectLikes } </b>` ;
71+ setBoldText ( document . getElementById ( "projectviewer-last-updated" ) , formatted_LastUpdated ) ;
72+ setBoldText ( document . getElementById ( "projectviewer-date" ) , formatted_CreatedDate ) ;
73+ setBoldText ( document . getElementById ( "projectviewer-downloads" ) , proj . ProjectDownloads ) ;
74+ setBoldText ( document . getElementById ( "projectviewer-likes" ) , proj . ProjectLikes ) ;
7175
7276 let img = proj . ProjectImage ;
7377 if ( img === "" || img === null )
0 commit comments