OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
1 (function() { | 5 (function() { |
2 | 6 |
3 function addGplusButton() { | 7 function addGplusButton() { |
4 var po = document.createElement('script'); po.type = 'text/javascript'; po.asy
nc = true; | 8 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'; | 9 po.src = 'https://apis.google.com/js/plusone.js?onload=onLoadCallback'; |
6 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(
po, s); | 10 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(
po, s); |
7 } | 11 } |
8 | 12 |
9 function openFeedback(e) { | 13 function openFeedback(e) { |
10 e.preventDefault(); | 14 e.preventDefault(); |
(...skipping 14 matching lines...) Expand all Loading... |
25 pre.classList.add('prettyprint'); | 29 pre.classList.add('prettyprint'); |
26 } | 30 } |
27 window.prettyPrint && prettyPrint(); | 31 window.prettyPrint && prettyPrint(); |
28 } | 32 } |
29 | 33 |
30 prettyPrintCode(); | 34 prettyPrintCode(); |
31 addGoogleFeedback(); | 35 addGoogleFeedback(); |
32 addGplusButton(); | 36 addGplusButton(); |
33 | 37 |
34 })(); | 38 })(); |
OLD | NEW |