-
Notifications
You must be signed in to change notification settings - Fork 203
Expand file tree
/
Copy pathdebug.html
More file actions
61 lines (51 loc) · 1.38 KB
/
debug.html
File metadata and controls
61 lines (51 loc) · 1.38 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
<!DOCTYPE HTML>
<html>
<head>
<title>curl debug module test file</title>
<script>
curl = {
debug: true,
paths: {
curl: '../src/curl/'
}
};
// mock console for IE
if (!window.console) console = {};
if (!('log' in console)) {
console._msg = [];
console.log = function (msg) {
var _msg = this._msg;
_msg.push([].join.call(arguments, ' '));
clearTimeout(this._timeout);
this._timeout = setTimeout(function () {
alert(_msg.join('\n'));
}, 100);
};
}
</script>
<script src="../src/curl.js" type="text/javascript"></script>
<script type="text/javascript">
var start = new Date();
curl(['curl/debug']).next(
[
'stuff/three',
'css!stuff/base',
'text!stuff/template.html'
]
).then(
function (three, link, template) {
console.log('total time:', new Date() - start);
if (document.body) {
document.body.appendChild(document.createTextNode('A module with dependencies loaded successfully if 3 == ' + three + '.'));
document.body.appendChild(document.createElement('br'));
document.body.appendChild(document.createTextNode('There should be a success message below if the text file loaded:'));
document.body.appendChild(document.createElement('div')).innerHTML = template;
}
}
);
</script>
</head>
<body>
<p>This text should all be the same <span style="color: #2faced;">color</span> if the css file loaded.</p>
</body>
</html>