Skip to content

Commit

Permalink
add all .idp to example search
Browse files Browse the repository at this point in the history
  • Loading branch information
phtournier committed Jan 12, 2024
1 parent 4d5de97 commit 0ad4401
Show file tree
Hide file tree
Showing 3 changed files with 11,498 additions and 1,040 deletions.
5 changes: 3 additions & 2 deletions source/_static/js/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ loadExamplefromGitHub = (name, dir, editor) => {
highlightKeyword(editor)
}

const url = 'https://raw.githubusercontent.com/FreeFem/FreeFem-sources/master/examples/'+dir+'/'+name
const fpath = (dir == 'idp' ? '' : 'examples/') + dir + '/'+name
const url = 'https://raw.githubusercontent.com/FreeFem/FreeFem-sources/master/' + fpath
console.log("load " + dir + "/" + name + "from GitHub");
document.getElementById('ExampleLinkToGitHub').innerHTML = "<a href='https://github.com/FreeFem/FreeFem-sources/blob/master/examples/"+dir+"/"+name+"' target='_blank'>"+dir+"/"+name+"</a>";
document.getElementById('ExampleLinkToGitHub').innerHTML = "<a href='https://github.com/FreeFem/FreeFem-sources/blob/master/"+fpath+"' target='_blank'>"+dir+"/"+name+"</a>";
HTTPGet(url, load)
}

Expand Down
Loading

0 comments on commit 0ad4401

Please sign in to comment.