15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved. 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Obtain the count of sandwiches from the page URL. 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)var count = window.location.hash.substring(1); 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)if (count) { 85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) // Replace the placeholder text with the actual count. 95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) var domcount = document.querySelector('#count'); 105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) domcount.innerText = count; 115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}