OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 3 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
4 for details. All rights reserved. Use of this source code is governed by a | 4 for details. All rights reserved. Use of this source code is governed by a |
5 BSD-style license that can be found in the LICENSE file. | 5 BSD-style license that can be found in the LICENSE file. |
6 --> | 6 --> |
7 <html> | 7 <html> |
8 <head> | 8 <head> |
9 <meta charset="utf-8"> | 9 <meta charset="utf-8"> |
10 <link rel="import" href="results.html"> | 10 <link rel="import" href="results.html"> |
11 </head> | 11 </head> |
12 | 12 |
13 <body> | 13 <body> |
14 <element name="search-box" constructor="Search" extends="div"> | 14 <element name="search-box" constructor="Search" extends="div"> |
15 <template> | 15 <template> |
16 <div class="navbar-form pull-right dropdown | 16 <div class="navbar-form pull-right dropdown |
17 {{!searchQuery.isEmpty && isFocused ? 'open' : ''}}" id="search"> | 17 {{!searchQuery.isEmpty && isFocused ? 'open' : ''}}" id="search"> |
18 <input type="search" name="q" id="q" autocomplete="off" | 18 <input type="search" name="q" id="q" autocomplete="off" |
19 class="form-control dropdown-toggle" placeholder="Search API" | 19 class="form-control dropdown-toggle" placeholder="Search API" |
20 bind-value="searchQuery" on-key-press="updateResults()" | 20 bind-value="searchQuery" |
21 on-key-up="updateResults()" data-toggle="dropdown"> | 21 on-key-up="updateResults()" data-toggle="dropdown"> |
22 | 22 |
23 <ul class="dropdown-menu pull-right" role="menu" | 23 <ul class="dropdown-menu pull-right" role="menu" |
24 aria-labelledby="dropdownMenu"> | 24 aria-labelledby="dropdownMenu"> |
25 <template if="results.isEmpty"> | 25 <template if="results.isEmpty"> |
26 <li class="search-result disabled"> | 26 <li class="search-result disabled"> |
27 <a tabindex="-1" href="#">No Results.</a> | 27 <a tabindex="-1" href="#">No Results.</a> |
28 </li> | 28 </li> |
29 </template> | 29 </template> |
30 <template iterate="result in results"> | 30 <template iterate="result in results"> |
(...skipping 10 matching lines...) Expand all Loading... |
41 </div> | 41 </div> |
42 | 42 |
43 </template> | 43 </template> |
44 | 44 |
45 | 45 |
46 <script type="application/dart" src="search.dart"> | 46 <script type="application/dart" src="search.dart"> |
47 </script> | 47 </script> |
48 </element> | 48 </element> |
49 | 49 |
50 </body></html> | 50 </body></html> |
OLD | NEW |