summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRay <[email protected]>2019-05-20 19:31:00 +0200
committerRay <[email protected]>2019-05-20 19:31:00 +0200
commite9f7fac3afad35dafeff01695539393a54d0dd9b (patch)
tree30633e6cec9e858fbc7c8dfdcfb0aead418354f2 /examples
parent6bf76c25c8e83b702a1e6b3aa212a12256269eaf (diff)
downloadraylib.com-e9f7fac3afad35dafeff01695539393a54d0dd9b.tar.gz
raylib.com-e9f7fac3afad35dafeff01695539393a54d0dd9b.zip
Reference code and image directly from raylib main repo
Diffstat (limited to 'examples')
-rw-r--r--examples/web/audio/loader.html8
-rw-r--r--examples/web/core/loader.html8
-rw-r--r--examples/web/models/loader.html8
-rw-r--r--examples/web/physac/loader.html8
-rw-r--r--examples/web/shaders/loader.html8
-rw-r--r--examples/web/shapes/loader.html8
-rw-r--r--examples/web/text/loader.html8
-rw-r--r--examples/web/textures/loader.html8
8 files changed, 48 insertions, 16 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);
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);
diff --git a/examples/web/models/loader.html b/examples/web/models/loader.html
index db08e1c..a794b8f 100644
--- a/examples/web/models/loader.html
+++ b/examples/web/models/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);
diff --git a/examples/web/physac/loader.html b/examples/web/physac/loader.html
index eb1cb58..affc6c8 100644
--- a/examples/web/physac/loader.html
+++ b/examples/web/physac/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);
diff --git a/examples/web/shaders/loader.html b/examples/web/shaders/loader.html
index eb1cb58..affc6c8 100644
--- a/examples/web/shaders/loader.html
+++ b/examples/web/shaders/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);
diff --git a/examples/web/shapes/loader.html b/examples/web/shapes/loader.html
index eb1cb58..affc6c8 100644
--- a/examples/web/shapes/loader.html
+++ b/examples/web/shapes/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);
diff --git a/examples/web/text/loader.html b/examples/web/text/loader.html
index eb1cb58..affc6c8 100644
--- a/examples/web/text/loader.html
+++ b/examples/web/text/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);
diff --git a/examples/web/textures/loader.html b/examples/web/textures/loader.html
index eb1cb58..affc6c8 100644
--- a/examples/web/textures/loader.html
+++ b/examples/web/textures/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);