File tree Expand file tree Collapse file tree
apps/functors-models-natural-transformations/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,10 +73,23 @@ <h1>Prototype web apps for better project delivery</h1>
7373 const img = document . createElement ( 'img' ) ;
7474 // Use the numeric id to load the matching screenshot in pics/
7575 img . alt = item . name ;
76- img . src = 'pics/' + item [ '#' ] + '.png' ;
76+ const paths = [
77+ 'pics/' + item [ '#' ] + '.png' ,
78+ 'pics/' + item [ '#' ] + '.PNG' ,
79+ 'pics/' + item [ '#' ] + '.png.png' ,
80+ 'pics/' + item [ '#' ] + '.PNG.png' ,
81+ 'pics/' + item [ '#' ] + '.png.PNG' ,
82+ 'pics/' + item [ '#' ] + '.PNG.PNG' ,
83+ 'pics/' + item [ '#' ] + '.webp'
84+ ] ;
85+ let idx = 0 ;
86+ img . src = paths [ idx ++ ] ;
7787 img . onerror = ( ) => {
78- img . onerror = ( ) => { img . src = 'pics/blank.png' ; } ;
79- img . src = 'pics/' + item [ '#' ] + '.webp' ;
88+ if ( idx < paths . length ) {
89+ img . src = paths [ idx ++ ] ;
90+ } else {
91+ img . src = 'pics/blank.png' ;
92+ }
8093 } ;
8194 card . appendChild ( img ) ;
8295 const title = document . createElement ( 'h3' ) ;
Original file line number Diff line number Diff line change @@ -184,6 +184,9 @@ export default function App() {
184184 </ text >
185185 </ g >
186186 </ svg >
187+ < p className = "text-center text-sm text-gray-600 mt-2" >
188+ Click nodes and edges to see remarks.
189+ </ p >
187190
188191 { /* Info Dialog */ }
189192 < InfoDialog
You can’t perform that action at this time.
0 commit comments