-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreference.js
More file actions
87 lines (64 loc) · 2.58 KB
/
Copy pathreference.js
File metadata and controls
87 lines (64 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
(function(){
// // function scriptLoader(scripts, callback) {
// // var count = scripts.length;
// // function urlCallback(url) {
// // return function () {
// // console.log(url + ' was loaded (' + --count + ' more scripts remaining).');
// // if (count < 1) {
// // callback();
// // }
// // };
// // }
// // function loadScript(url) {
// // var s = document.createElement('script');
// // s.setAttribute('src', url);
// // s.onload = urlCallback(url);
// // document.head.appendChild(s);
// // }
// // for (var script of scripts) {
// // loadScript(script);
// // }
// // }
// // function addScript( src ) {
// // var script = document.createElement( 'script' );
// // script.setAttribute( 'src', src );
// // document.body.appendChild( script );
// // }
// // addScript('https://code.jquery.com/jquery-3.3.1.slim.min.js');
// // addScript('https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js');
// // addScript('https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js');
// // scriptLoader([
// // 'https://code.jquery.com/jquery-3.3.1.slim.min.js',
// // 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js',
// // 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js'],
// // function(){
// // console.log('all done');
// // });
// scripts = [
// 'https://code.jquery.com/jquery-3.3.1.slim.min.js',
// 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js',
// 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js'
// ];
// var length = scripts.length;
// var counter = 0;
// function callback(url,script) {
// document.body.appendChild(script);
// console.log(url + ' was loaded');
// counter++;
// if (counter < length) {
// loadScript();
// }
// }
// function loadScript() {
// var url = scripts[counter];
// var script = document.createElement('script');
// script.setAttribute('src', url);
// script.onload = callback(url, script);
// }
// loadScript();
console.log('in end.js');
// $( document ).ready(function() {
// console.log('from onload');
// $('#target').load('x.html');
// });
})();