| Index: chrome/common/extensions/docs/examples/api/infobars/sandwichbar/infobar.js
|
| diff --git a/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/infobar.js b/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/infobar.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..30ed797b0991535368e1428b1c4de58f29474db7
|
| --- /dev/null
|
| +++ b/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/infobar.js
|
| @@ -0,0 +1,11 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// Obtain the count of sandwiches from the page URL.
|
| +var count = window.location.hash.substring(1);
|
| +if (count) {
|
| + // Replace the placeholder text with the actual count.
|
| + var domcount = document.querySelector('#count');
|
| + domcount.innerText = count;
|
| +}
|
|
|