Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 5c4ee19e68
Fetching contributors…

Cannot retrieve contributors at this time

59 lines (48 sloc) 1.216 kB
<!DOCTYPE HTML>
<html>
<head>
<title>many curls test</title>
<script>
curl = {
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">
function logger () {
var args = arguments;
curl('curl/domReady', function (ready) {
ready(function () {
for (var i = 0; i < args.length; i++) {
document.body.appendChild(document.createTextNode(args[i]));
document.body.appendChild(document.createElement('hr'));
}
});
});
}
// to repro issue #14
curl(['js!stuff/plain_old.js'], logger);
curl(['stuff/wants-js-and-css'], logger);
</script>
</head>
<body>
<p>This text should all be the same <span style="color: #2faced;">color</span> if the css file loaded.</p>
<p>There should be two logged statements below if the callbacks worked.</p>
<hr/>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.