| 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 * |
| 11 * Adds the samples manifest data + API modules. | 11 * Adds the samples manifest data + API modules. |
| 12 */ | 12 */ |
| 13 pageData.samples = samples; | 13 pageData.samples = samples; |
| 14 pageData.api_mapping = apiMapping; | 14 pageData.api_mapping = apiMapping; |
| 15 pageData.api_modules = []; | 15 pageData.api_modules = []; |
| 16 schema.forEach(function(mod) { | 16 schema.forEach(function(mod) { |
| 17 if (mod.nodoc) { | 17 if (mod.nodoc || |
| 18 return; | 18 mod.internal || |
| 19 } | 19 mod.namespace.indexOf('experimental') != -1) { |
| 20 if (mod.namespace.indexOf('experimental') != -1) { | |
| 21 return; | 20 return; |
| 22 } | 21 } |
| 23 pageData.api_modules.push('chrome.' + mod.namespace); | 22 pageData.api_modules.push('chrome.' + mod.namespace); |
| 24 }); | 23 }); |
| 25 pageData.api_modules.push('chrome.experimental'); | 24 pageData.api_modules.push('chrome.experimental'); |
| 26 pageData.api_modules.sort(); | 25 pageData.api_modules.sort(); |
| 27 | 26 |
| 28 var search_data = {}; | 27 var search_data = {}; |
| 29 samples.forEach(function(sample) { | 28 samples.forEach(function(sample) { |
| 30 search_data[sample.id] = sample.search_string; | 29 search_data[sample.id] = sample.search_string; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 <!-- Only show the Install CRX link if a CRX file is provided --> | 109 <!-- Only show the Install CRX link if a CRX file is provided --> |
| 111 <span jsdisplay="$this.crx_path != null"> | 110 <span jsdisplay="$this.crx_path != null"> |
| 112 - <a jsvalues="href:$this.crx_path">Install extension</a> | 111 - <a jsvalues="href:$this.crx_path">Install extension</a> |
| 113 </span> | 112 </span> |
| 114 </div> | 113 </div> |
| 115 </div> | 114 </div> |
| 116 | 115 |
| 117 <div id="noresults" style="display:none"> | 116 <div id="noresults" style="display:none"> |
| 118 Sorry, no results were found. | 117 Sorry, no results were found. |
| 119 </div> | 118 </div> |
| OLD | NEW |