Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: chrome/common/extensions/docs/static/samples.html

Issue 7601024: Extension docs: Adjusting `.../samples.html` to have more readable diffs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pam is a genius. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/extensions/docs/samples.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 'url': 'http://src.chromium.org/viewvc/chrome/trunk' + 52 'url': 'http://src.chromium.org/viewvc/chrome/trunk' +
53 '/src/chrome/common/extensions/docs/' + sample.path + 53 '/src/chrome/common/extensions/docs/' + sample.path +
54 source_files[i] + '?content-type=text/plain' 54 source_files[i] + '?content-type=text/plain'
55 }); 55 });
56 } 56 }
57 }); 57 });
58 58
59 // The search data should be injected as executable JavaScript, so assign 59 // The search data should be injected as executable JavaScript, so assign
60 // a template value which will store the data as a page global. 60 // a template value which will store the data as a page global.
61 pageData.search_data = "var search_data = " + 61 pageData.search_data = "var search_data = " +
62 JSON.stringify(search_data); + ";"; 62 JSON.stringify(search_data, null, 2) + ";\n";
63 </script> 63 </script>
64 64
65 <div id="controls"> 65 <div id="controls">
66 <div id="searchbox" class="controlbox"> 66 <div id="searchbox" class="controlbox">
67 <strong>Filter by keyword:</strong> 67 <strong>Filter by keyword:</strong>
68 <input autofocus type="search" type="text" id="searchinput" placeholder="Typ e to search" onkeyup="filterSamples();" /> 68 <input autofocus type="search" type="text" id="searchinput" placeholder="Typ e to search" onkeyup="filterSamples();" />
69 <a id="clearlink" href="javascript:void(0);" onclick="clearFilter();" style= "display: none;">clear</a> 69 <a id="clearlink" href="javascript:void(0);" onclick="clearFilter();" style= "display: none;">clear</a>
70 </div> 70 </div>
71 71
72 <div id="filterbox" class="controlbox"> 72 <div id="filterbox" class="controlbox">
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 </div> 108 </div>
109 <div> 109 <div>
110 <a jsvalues="href:'http://src.chromium.org/viewvc/chrome/trunk/src/chrome/co mmon/extensions/docs/' + path" target="_blank">Browse source</a> 110 <a jsvalues="href:'http://src.chromium.org/viewvc/chrome/trunk/src/chrome/co mmon/extensions/docs/' + path" target="_blank">Browse source</a>
111 - <a jsvalues="href:$this.zip_path">Download source</a> 111 - <a jsvalues="href:$this.zip_path">Download source</a>
112 </div> 112 </div>
113 </div> 113 </div>
114 114
115 <div id="noresults" style="display:none"> 115 <div id="noresults" style="display:none">
116 Sorry, no results were found. 116 Sorry, no results were found.
117 </div> 117 </div>
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/samples.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698