Skip to content

Commit c48d78a

Browse files
committed
update cdn from rawgit to jsdeliver for Three.js
Note: there are still instances of rawgit in the files
1 parent 57b9391 commit c48d78a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+953
-138
lines changed

build/assets/javascripts/app.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function otherSideView() {
9090

9191
// IO
9292
function loadSTL() {
93-
const urlDefault = 'https://rawgit.com/opentecture/build/master/components/Door%20Handle.stl';
93+
const urlDefault = 'https://https://cdn.jsdelivr.net/gh/mrdoob/three.js@r93.com/opentecture/build/master/components/Door%20Handle.stl';
9494
loadSTLFileByURL(urlDefault, 'door handle');
9595
}
9696

@@ -222,7 +222,7 @@ function drawText(text = "Hello 3d World") {
222222

223223
var loader = new THREE.FontLoader();
224224

225-
loader.load( 'https://cdn.rawgit.com/mrdoob/three.js/r93/examples/fonts/gentilis_regular.typeface.json', function ( loadedFont ) {
225+
loader.load( 'https://cdn.https://cdn.jsdelivr.net/gh/mrdoob/three.js@r93.com/mrdoob/three.js/r93/examples/fonts/gentilis_regular.typeface.json', function ( loadedFont ) {
226226
font = loadedFont;
227227
init();
228228
} );
@@ -446,7 +446,7 @@ function toggleRotation() {
446446

447447
function onHashChange() {
448448

449-
const path = 'https://rawgit.com/opentecture/build/master/';
449+
const path = 'https://https://cdn.jsdelivr.net/gh/mrdoob/three.js@r93.com/opentecture/build/master/';
450450
const fileName = location.hash ? location.hash.slice( 1 ) : urls[ Math.floor( Math.random() * urls.length ) ].path;
451451
console.log( 'path', path );
452452
console.log( 'fileName', fileName );
@@ -469,8 +469,8 @@ function fetchGitHubFolderContents() {
469469
function callbackGitHubMenu ( files ) {
470470

471471
const urlGitHubSource = 'https://github.com/opentecture/build/tree/master/';
472-
const urlGitHubPage = 'https://rawgit.com/opentecture/build/master/';
473-
const iconGitHubMark = '<img src="https://rawgit.com/ladybug-tools/spider/master/images/github-mark.png" height=14 style=vertical-align:middle>';
472+
const urlGitHubPage = 'https://https://cdn.jsdelivr.net/gh/mrdoob/three.js@r93.com/opentecture/build/master/';
473+
const iconGitHubMark = '<img src="https://https://cdn.jsdelivr.net/gh/mrdoob/three.js@r93.com/ladybug-tools/spider/master/images/github-mark.png" height=14 style=vertical-align:middle>';
474474

475475
let txt = '';
476476
urls = [];

build/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
margin: 0 auto;
2626
}
2727
</style>
28-
<script src="https://cdn.rawgit.com/mrdoob/three.js/r93/build/three.min.js"></script>
29-
<script src="https://cdn.rawgit.com/mrdoob/three.js/r93/examples/js/controls/OrbitControls.js"></script>
30-
<script src="https://cdn.rawgit.com/mrdoob/three.js/r93/examples/js/controls/DragControls.js"></script>
31-
<script src="https://cdn.rawgit.com/mrdoob/three.js/r93/examples/js/controls/TransformControls.js"></script>
32-
<script src="https://cdn.rawgit.com/mrdoob/three.js/r93/examples/js/controls/TrackballControls.js"></script>
33-
<script src="https://cdn.rawgit.com/mrdoob/three.js/r93/examples/js/loaders/STLLoader.js"></script>
28+
<script src="https://cdn.https://cdn.jsdelivr.net/gh/mrdoob/three.js@r93.com/mrdoob/three.js/r93/build/three.min.js"></script>
29+
<script src="https://cdn.https://cdn.jsdelivr.net/gh/mrdoob/three.js@r93.com/mrdoob/three.js/r93/examples/js/controls/OrbitControls.js"></script>
30+
<script src="https://cdn.https://cdn.jsdelivr.net/gh/mrdoob/three.js@r93.com/mrdoob/three.js/r93/examples/js/controls/DragControls.js"></script>
31+
<script src="https://cdn.https://cdn.jsdelivr.net/gh/mrdoob/three.js@r93.com/mrdoob/three.js/r93/examples/js/controls/TransformControls.js"></script>
32+
<script src="https://cdn.https://cdn.jsdelivr.net/gh/mrdoob/three.js@r93.com/mrdoob/three.js/r93/examples/js/controls/TrackballControls.js"></script>
33+
<script src="https://cdn.https://cdn.jsdelivr.net/gh/mrdoob/three.js@r93.com/mrdoob/three.js/r93/examples/js/loaders/STLLoader.js"></script>
3434
<script src="../../assets/SVGLoader.js"></script>
3535
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
3636
</head>

connect-edit/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</head>
66
<body>
77
<script>
8-
// 2018-05-31. Copyright 2018 PushMe-PullYou authors. MIT License.
8+
// 2018-05-31. Copyright 2019 PushMe-PullYou authors. MIT License.
99
// goal: drop this anywhere in any folder it will call the top level index.html and add the local read me file path as location hash
1010
// works locally and in GitHub Pages
1111

0 commit comments

Comments
 (0)