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

Side by Side Diff: chrome/common/extensions/docs/static/js/site.js

Issue 102593005: Clean patch with DCC static content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests for sidenav_data_source Created 7 years 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
OLDNEW
(Empty)
1 (function() {
2
3 function addGplusButton() {
4 var po = document.createElement('script'); po.type = 'text/javascript'; po.asy nc = true;
5 po.src = 'https://apis.google.com/js/plusone.js?onload=onLoadCallback';
6 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore( po, s);
7 }
8
9 function openFeedback(e) {
10 e.preventDefault();
11 userfeedback.api.startFeedback({productId: 86265});
12 }
13
14 function addGoogleFeedback() {
15 [].forEach.call(document.querySelectorAll('[data-feedback]'), function(el, i) {
16 el.addEventListener('click', openFeedback);
17 });
18 }
19
20
21 // Auto syntax highlight all pre tags.
22 function prettyPrintCode() {
23 var pres = document.querySelectorAll('pre');
24 for (var i = 0, pre; pre = pres[i]; ++i) {
25 pre.classList.add('prettyprint');
26 }
27 window.prettyPrint && prettyPrint();
28 }
29
30 prettyPrintCode();
31 addGoogleFeedback();
32 addGplusButton();
33
34 })();
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/static/js/search.js ('k') | chrome/common/extensions/docs/templates/articles/pillar.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698