OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Skia Performance Monitoring | Clusters</title> | 4 <title>Skia Performance Monitoring | Clusters</title> |
5 | 5 |
6 {{template "header.html" .}} | 6 {{template "header.html" .}} |
7 | 7 |
8 <link href="/res/imp/cluster.html" rel="import" /> | 8 <link href="/res/imp/cluster.html" rel="import" /> |
9 <link href="/res/imp/sort.html" rel="import" /> | 9 <link href="/res/imp/sort.html" rel="import" /> |
10 | 10 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 }); | 95 }); |
96 | 96 |
97 $$$('#start').addEventListener('click', function(){ | 97 $$$('#start').addEventListener('click', function(){ |
98 beginClustering( | 98 beginClustering( |
99 $$$('#_k').value, $$$('#_stddev').value, $$$('#_issue').value, $$$
('query-sk').currentQuery); | 99 $$$('#_k').value, $$$('#_stddev').value, $$$('#_issue').value, $$$
('query-sk').currentQuery); |
100 }); | 100 }); |
101 | 101 |
102 $$('input[name="sort"]').forEach(function(ele) { | 102 $$('input[name="sort"]').forEach(function(ele) { |
103 ele.addEventListener('click', sort); | 103 ele.addEventListener('click', sort); |
104 }); | 104 }); |
| 105 |
| 106 sk.get('/tiles/0/-1/').then(JSON.parse).then(function(json){ |
| 107 $$$('query-sk').setParamSet(json.paramset); |
| 108 }); |
| 109 |
105 }; | 110 }; |
106 | 111 |
107 // TODO(jcgregorio) Make this into a Promise. | 112 // TODO(jcgregorio) Make this into a Promise. |
108 if (document.readyState != 'loading') { | 113 if (document.readyState != 'loading') { |
109 onLoad(); | 114 onLoad(); |
110 } else { | 115 } else { |
111 window.addEventListener('load', onLoad); | 116 window.addEventListener('load', onLoad); |
112 } | 117 } |
113 | 118 |
114 })(); | 119 })(); |
115 </script> | 120 </script> |
116 </body> | 121 </body> |
117 </html> | 122 </html> |
OLD | NEW |