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

Side by Side Diff: chrome/common/extensions/docs/examples/api/infobars/sandwichbar/infobar.html

Issue 9289057: Changing manifest to v2 extension samples (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Adding zip files after rebasing with master Created 8 years, 10 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 * Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this 3 * Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this
4 * source code is governed by a BSD-style license that can be found in the 4 * source code is governed by a BSD-style license that can be found in the
5 * LICENSE file. 5 * LICENSE file.
6 --> 6 -->
7 <html> 7 <html>
8 <head> 8 <head>
9 <style> 9 <style>
10 html { 10 html {
(...skipping 11 matching lines...) Expand all
22 font-weight: bold; 22 font-weight: bold;
23 font-style: normal; 23 font-style: normal;
24 } 24 }
25 </style> 25 </style>
26 </head> 26 </head>
27 <body> 27 <body>
28 <div id="wrap"> 28 <div id="wrap">
29 The word <em>sandwich</em> appears <em id="count">X</em> times on this 29 The word <em>sandwich</em> appears <em id="count">X</em> times on this
30 page. 30 page.
31 </div> 31 </div>
32 <script> 32 <script src="infobar.js"></script>
33 // Obtain the count of sandwiches from the page URL.
34 var count = window.location.hash.substring(1);
35 if (count) {
36 // Replace the placeholder text with the actual count.
37 var domcount = document.querySelector('#count');
38 domcount.innerText = count;
39 }
40 </script>
41 </body> 33 </body>
42 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698