summaryrefslogtreecommitdiffstats
path: root/third_party/webkit/PerformanceTests/Speedometer/resources/todomvc/functional-prog-examples/elm/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/webkit/PerformanceTests/Speedometer/resources/todomvc/functional-prog-examples/elm/index.html')
-rw-r--r--third_party/webkit/PerformanceTests/Speedometer/resources/todomvc/functional-prog-examples/elm/index.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/third_party/webkit/PerformanceTests/Speedometer/resources/todomvc/functional-prog-examples/elm/index.html b/third_party/webkit/PerformanceTests/Speedometer/resources/todomvc/functional-prog-examples/elm/index.html
new file mode 100644
index 0000000000..99134a25fc
--- /dev/null
+++ b/third_party/webkit/PerformanceTests/Speedometer/resources/todomvc/functional-prog-examples/elm/index.html
@@ -0,0 +1,32 @@
+<!doctype html>
+<html lang="en" data-framework="elm">
+<head>
+ <meta charset="utf-8">
+ <title>Elm • TodoMVC</title>
+ <link rel="stylesheet" href="node_modules/todomvc-common/base.css">
+ <link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
+ <style>
+ body {
+ width: auto;
+ }
+ .todomvc-wrapper {
+ visibility: visible !important;
+ }
+ </style>
+</head>
+
+<body>
+<script src="dist/elm.js"></script>
+<script>
+ (function () {
+ // var result = localStorage.getItem('elm-todo-model');
+ // var savedModel = result ? JSON.parse(result) : null;
+ var savedModel = null;
+ var todomvc = Elm.Todo.fullscreen(savedModel);
+ // todomvc.ports.save.subscribe(function (model) {
+ // localStorage.setItem('elm-todo-model', JSON.stringify(model));
+ // });
+ }());
+</script>
+</body>
+</html>