OLD | NEW |
1 <link rel="stylesheet" href="../css/samples.css" /> | 1 <link rel="stylesheet" href="../css/samples.css" /> |
2 <script jscontent="search_data"></script> | 2 <script jscontent="search_data"></script> |
3 <script src="../js/sample_search.js"></script> | 3 <script src="../js/sample_search.js"></script> |
4 | 4 |
5 <script type="text/prerenderjs"> | 5 <script type="text/prerenderjs"> |
6 /** | 6 /** |
7 * The following code is executed before the jstemplate in this file is | 7 * The following code is executed before the jstemplate in this file is |
8 * rendered, meaning it can modify template data by changing the pageData | 8 * rendered, meaning it can modify template data by changing the pageData |
9 * window variable. See api_page_generator.js for more information. | 9 * window variable. See api_page_generator.js for more information. |
10 * | 10 * |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // The search data should be injected as executable JavaScript, so assign | 55 // The search data should be injected as executable JavaScript, so assign |
56 // a template value which will store the data as a page global. | 56 // a template value which will store the data as a page global. |
57 pageData.search_data = "var search_data = " + | 57 pageData.search_data = "var search_data = " + |
58 JSON.stringify(search_data, null, 2) + ";\n"; | 58 JSON.stringify(search_data, null, 2) + ";\n"; |
59 </script> | 59 </script> |
60 | 60 |
61 <div id="controls"> | 61 <div id="controls"> |
62 <div id="searchbox" class="controlbox"> | 62 <div id="searchbox" class="controlbox"> |
63 <strong>Filter by keyword:</strong> | 63 <strong>Filter by keyword:</strong> |
64 <input autofocus type="search" type="text" id="searchinput" placeholder="Typ
e to search" onkeyup="filterSamples();" /> | 64 <input autofocus type="search" type="text" id="searchinput" placeholder="Typ
e to search" onkeyup="filterSamples();" /> |
65 <a id="clearlink" href="javascript:void(0);" onclick="clearFilter();" style=
"display: none;">clear</a> | 65 <a id="clearlink" href="javascript:void(0);" onclick="clearFilter();" style=
"display: none;" volatile>clear</a> |
66 </div> | 66 </div> |
67 | 67 |
68 <div id="filterbox" class="controlbox"> | 68 <div id="filterbox" class="controlbox"> |
69 <strong>Filter by API:</strong> | 69 <strong>Filter by API:</strong> |
70 <span jseval="$total=api_modules.length"> | 70 <span jseval="$total=api_modules.length"> |
71 <span jsselect="api_modules" > | 71 <span jsselect="api_modules" > |
72 <a href="javascript:void(0);" jsvalues="onclick:'setFilter(\'' + $this +
'\', this)'" jscontent="$this"></a><span jsdisplay="$index != $total - 1">, </s
pan> | 72 <a href="javascript:void(0);" jsvalues="onclick:'setFilter(\'' + $this +
'\', this)'" jscontent="$this"></a><span jsdisplay="$index != $total - 1">, </s
pan> |
73 </span> | 73 </span> |
74 </span> | 74 </span> |
75 </div> | 75 </div> |
(...skipping 29 matching lines...) Expand all Loading... |
105 </div> | 105 </div> |
106 <div> | 106 <div> |
107 <a jsvalues="href:'../' + $this.zip_path">Download source</a> | 107 <a jsvalues="href:'../' + $this.zip_path">Download source</a> |
108 <!-- Only show the Install CRX link if a CRX file is provided --> | 108 <!-- Only show the Install CRX link if a CRX file is provided --> |
109 <span jsdisplay="$this.crx_path != null"> | 109 <span jsdisplay="$this.crx_path != null"> |
110 - <a jsvalues="href:$this.crx_path">Install extension</a> | 110 - <a jsvalues="href:$this.crx_path">Install extension</a> |
111 </span> | 111 </span> |
112 </div> | 112 </div> |
113 </div> | 113 </div> |
114 | 114 |
115 <div id="noresults" style="display:none"> | 115 <div id="noresults" style="display:none" volatile> |
116 Sorry, no results were found. | 116 Sorry, no results were found. |
117 </div> | 117 </div> |
OLD | NEW |