Skip to content

Commit 1298b8b

Browse files
committed
fix missing idp files
1 parent 73df2f5 commit 1298b8b

File tree

3 files changed

+11644
-1084
lines changed

3 files changed

+11644
-1084
lines changed

source/_static/js/examples.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ loadExamplefromGitHub = (name, dir, editor) => {
9696
showExample(viewMarkdown);
9797
}
9898

99-
const fpath = (dir == 'idp' ? 'examples/' : 'examples/') + dir + '/' + name
99+
const fpath = (dir == 'idp' ? '' : 'examples/') + dir + '/' + name
100100
const url = "https://raw.githubusercontent.com/FreeFem/FreeFem-sources/develop/" + fpath
101101
console.log('load ' + dir + '/' + name + ' from GitHub')
102102
document.getElementById('ExampleLinkToGitHub').innerHTML =
@@ -108,7 +108,7 @@ loadExamplefromGitHub = (name, dir, editor) => {
108108
name +
109109
'</a>'
110110

111-
if (name.endsWith('.edp'))
111+
if (name.endsWith('.edp') || name.endsWith('.idp'))
112112
HTTPGet(url, loadedp)
113113
else
114114
HTTPGet(url, loadmd)

0 commit comments

Comments
 (0)