summaryrefslogtreecommitdiffhomepage
path: root/examples/web/audio/loader.html
diff options
context:
space:
mode:
Diffstat (limited to 'examples/web/audio/loader.html')
-rw-r--r--examples/web/audio/loader.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/web/audio/loader.html b/examples/web/audio/loader.html
index eb1cb58..affc6c8 100644
--- a/examples/web/audio/loader.html
+++ b/examples/web/audio/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);