mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 14:37:49 +00:00
49 lines
1.4 KiB
HTML
49 lines
1.4 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Lo-Dash Performance Suite</title>
|
|
<style>
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
}
|
|
applet {
|
|
position: absolute;
|
|
left: -9999em;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<script src="../lodash.min.js"></script>
|
|
<script>
|
|
var lodash = _.noConflict();
|
|
</script>
|
|
<script src="../vendor/underscore/underscore.js"></script>
|
|
<script src="../vendor/benchmark.js/benchmark.js"></script>
|
|
<script src="../vendor/firebug-lite/src/firebug-lite-debug.js"></script>
|
|
<script>
|
|
(function() {
|
|
if (!/[?&]nojava=true(?:&|$)/.test(location.search)) {
|
|
// using innerHTML avoids an alert in some versions of IE6
|
|
var div = document.createElement('div');
|
|
div.innerHTML = '<applet code=nano archive="../vendor/benchmark.js/nano.jar">';
|
|
document.body.insertBefore(div.lastChild, document.body.firstChild);
|
|
}
|
|
}());
|
|
|
|
window.onload = function() {
|
|
var fbUI = document.getElementById('FirebugUI'),
|
|
fbDoc = (fbDoc = fbUI.contentWindow || fbUI.contentDocument).document || fbDoc,
|
|
sibling = document.getElementsByTagName('script')[0],
|
|
script = document.createElement('script');
|
|
|
|
fbUI.style.height = fbDoc.body.style.height = fbDoc.documentElement.style.height = '100%';
|
|
script.src = 'perf.js?t=' + (+new Date);
|
|
sibling.parentNode.insertBefore(script, sibling);
|
|
};
|
|
</script>
|
|
</body>
|
|
</html>
|