diff options
Diffstat (limited to 'examples/web/core/loader.html')
| -rw-r--r-- | examples/web/core/loader.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/web/core/loader.html b/examples/web/core/loader.html index eb1cb58..affc6c8 100644 --- a/examples/web/core/loader.html +++ b/examples/web/core/loader.html @@ -59,8 +59,12 @@ document.title = "raylib - " + name.replace('_', ' '); var type = name.substring(0, name.indexOf("_")); - var srcUrl = '../../src/' + type + '/' + name + '.c'; - var imgUrl = '../' + type + '/' + name + '.png'; + //var srcUrl = '../../src/' + type + '/' + name + '.c'; + //var imgUrl = '../' + type + '/' + name + '.png'; + + // Get example code and image directly from original raylib GitHub and avoid duplicate code to maintain + var srcUrl = 'https://raw.githubusercontent.com/raysan5/raylib/master/examples/' + type + '/' + name + '.c'; + var imgUrl = 'https://raw.githubusercontent.com/raysan5/raylib/master/examples/' + type + '/' + name + '.png'; $('#eximage img').attr('src', imgUrl); |
