|
1 | | -<!DOCTYPE html> |
2 | | -<html> |
3 | | -<head> |
4 | | - <meta charset="UTF-8"> |
5 | | - <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
6 | | - <title><aha-table> Performance test</title> |
7 | | - <meta name="description" content=""> |
8 | | - <meta name="viewport" content="width=device-width, initial-scale=1"> |
9 | | - |
10 | | - <!-- Importing Web Component's Polyfill --> |
11 | | - <script src="../bower_components/platform/platform.js"></script> |
12 | | - |
13 | | - <!-- Importing Custom Elements --> |
14 | | - <link rel="import" href="../src/aha-table.html"> |
15 | | -</head> |
16 | | -<body> |
17 | | - <aha-table id="raw"></aha-table> |
18 | | - <script> |
19 | | - var dates = ['2012-12-21', '2013-2-15', '2014-3-8'], |
20 | | - titles = ["gym", "cafe", "work", "bar", "park"], |
21 | | - types = ["private", "public"], |
22 | | - contents = ["do it best", "just do it", "do as you wish", "no stop"], |
23 | | - enableds = [true, false]; |
24 | | - |
25 | | - var now = new Date(); |
26 | | - var events = []; |
27 | | - for (var i = 0; i<1000; i++) { |
28 | | - events.push({ |
29 | | - title: titles[Math.ceil(Math.random()*titles.length)-1], |
30 | | - date: dates[Math.ceil(Math.random()*dates.length)-1], |
31 | | - type: types[Math.ceil(Math.random()*types.length)-1], |
32 | | - content: contents[Math.ceil(Math.random()*contents.length)-1], |
33 | | - enabled: enableds[Math.ceil(Math.random()*enableds.length)-1] |
34 | | - }); |
35 | | - }; |
36 | | - var raw = document.getElementById("raw"); |
37 | | - window.addEventListener("polymer-ready", function(){ |
38 | | - raw.data = events; |
39 | | - }); |
40 | | - </script> |
41 | | -</body> |
42 | | -</html> |
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 6 | + <title><aha-table> Performance test</title> |
| 7 | + <meta name="description" content=""> |
| 8 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 9 | + |
| 10 | + <!-- Importing Web Component's Polyfill --> |
| 11 | + <script src="bower_components/webcomponentsjs/webcomponents.min.js"></script> |
| 12 | + |
| 13 | + <!-- Importing Custom Elements --> |
| 14 | + <link rel="import" href="../src/aha-table.html"> |
| 15 | +</head> |
| 16 | +<body> |
| 17 | + <aha-table id="raw"></aha-table> |
| 18 | + <script> |
| 19 | + var dates = ['2012-12-21', '2013-2-15', '2014-3-8'], |
| 20 | + titles = ["gym", "cafe", "work", "bar", "park"], |
| 21 | + types = ["private", "public"], |
| 22 | + contents = ["do it best", "just do it", "do as you wish", "no stop"], |
| 23 | + enableds = [true, false]; |
| 24 | + |
| 25 | + var now = new Date(); |
| 26 | + var events = []; |
| 27 | + for (var i = 0; i<1000; i++) { |
| 28 | + events.push({ |
| 29 | + title: titles[Math.ceil(Math.random()*titles.length)-1], |
| 30 | + date: dates[Math.ceil(Math.random()*dates.length)-1], |
| 31 | + type: types[Math.ceil(Math.random()*types.length)-1], |
| 32 | + content: contents[Math.ceil(Math.random()*contents.length)-1], |
| 33 | + enabled: enableds[Math.ceil(Math.random()*enableds.length)-1] |
| 34 | + }); |
| 35 | + }; |
| 36 | + var raw = document.getElementById("raw"); |
| 37 | + window.addEventListener("polymer-ready", function(){ |
| 38 | + raw.data = events; |
| 39 | + }); |
| 40 | + </script> |
| 41 | +</body> |
| 42 | +</html> |
0 commit comments