| Index: chrome/common/extensions/docs/static/js/site.js
|
| diff --git a/chrome/common/extensions/docs/static/js/site.js b/chrome/common/extensions/docs/static/js/site.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bd9e4e9653aecc19de03b8713b145334dbae8390
|
| --- /dev/null
|
| +++ b/chrome/common/extensions/docs/static/js/site.js
|
| @@ -0,0 +1,34 @@
|
| +(function() {
|
| +
|
| +function addGplusButton() {
|
| + var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
|
| + po.src = 'https://apis.google.com/js/plusone.js?onload=onLoadCallback';
|
| + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
|
| +}
|
| +
|
| +function openFeedback(e) {
|
| + e.preventDefault();
|
| + userfeedback.api.startFeedback({productId: 86265});
|
| +}
|
| +
|
| +function addGoogleFeedback() {
|
| + [].forEach.call(document.querySelectorAll('[data-feedback]'), function(el, i) {
|
| + el.addEventListener('click', openFeedback);
|
| + });
|
| +}
|
| +
|
| +
|
| +// Auto syntax highlight all pre tags.
|
| +function prettyPrintCode() {
|
| + var pres = document.querySelectorAll('pre');
|
| + for (var i = 0, pre; pre = pres[i]; ++i) {
|
| + pre.classList.add('prettyprint');
|
| + }
|
| + window.prettyPrint && prettyPrint();
|
| +}
|
| +
|
| +prettyPrintCode();
|
| +addGoogleFeedback();
|
| +addGplusButton();
|
| +
|
| +})();
|
|
|