| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |