Add todoapp benchmark
This commit is contained in:
parent
479db8c2cc
commit
02e7b40c07
218 changed files with 63168 additions and 0 deletions
29
bench/implementations/elm-0.17-optimized/index.html
Normal file
29
bench/implementations/elm-0.17-optimized/index.html
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Elm • TodoMVC</title>
|
||||
<script type="text/javascript" src="elm.js"></script>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
</body>
|
||||
|
||||
<script type="text/javascript">
|
||||
var todomvc = Elm.Todo.fullscreen();
|
||||
todomvc.ports.focus.subscribe(function(selector)
|
||||
{
|
||||
setTimeout(function()
|
||||
{
|
||||
var nodes = document.querySelectorAll(selector);
|
||||
if (nodes.length === 1 && document.activeElement !== nodes[0])
|
||||
{
|
||||
nodes[0].focus();
|
||||
}
|
||||
}, 50);
|
||||
});
|
||||
</script>
|
||||
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue