Skip to content

Commit 55aba7e

Browse files
Merge pull request #32 from lawrencerowland/codex/add-note-and-update-github-action-rules
Improve index image detection and add usage note
2 parents 57e4daa + 6aa289e commit 55aba7e

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

app-index.html

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff 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');

apps/functors-models-natural-transformations/src/App.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)