@@ -149,6 +149,7 @@ function addForm() {
149149 } ;
150150 label2 . appendChild ( input2 ) ;
151151 form . appendChild ( label2 ) ;
152+ /*
152153 // Add a date picker to input the minimum date of modification
153154 const label3 = document.createElement('label');
154155 label3.textContent = 'If modified since:';
@@ -168,6 +169,7 @@ function addForm() {
168169 addTable();
169170 };
170171 form.appendChild(dateInput);
172+ */
171173 // Add a span with id result to display the number of lines
172174 const lines = document . createElement ( 'span' ) ;
173175 lines . id = 'lines' ;
@@ -191,6 +193,13 @@ function createMissingImageElement() {
191193 return text ;
192194}
193195
196+ function createUpToDateImageElement ( ) {
197+ const text = document . createElement ( 'p' ) ;
198+ text . className = "missing" ;
199+ text . textContent = 'Image not updated' ;
200+ return text ;
201+ }
202+
194203function convertToHumanReadableDate ( modifiedDayTime ) {
195204 var date = new Date ( modifiedDayTime * 86400000 ) ;
196205 return date . toLocaleDateString ( ) ;
@@ -270,6 +279,8 @@ function addTable() {
270279 const foreignFile = englishFile . replace ( "en]" , `${ dataLanguages [ languageIndex ] } ]` ) . replace ( "_S_" , "_T_" )
271280 const fullForeignFile = `${ dataLanguages [ languageIndex ] } /${ foreignFile } .png` ;
272281 td . appendChild ( createImageElement ( fullForeignFile , modifiedDayTime ) ) ;
282+ } else {
283+ td . appendChild ( createUpToDateImageElement ( ) ) ;
273284 }
274285 }
275286 tr . appendChild ( td ) ;
0 commit comments