- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / docs / examples / extensions / news / javascript / util.js
1 /**
2  * Copyright (c) 2010 The Chromium Authors. All rights reserved.  Use of this
3  * source code is governed by a BSD-style license that can be found in the
4  * LICENSE file.
5  */
6
7 /**
8  * @fileoverview Defines the constants and most commonly used functions.
9  * @author navneetg@google.com (Navneet Goel).
10  */
11
12 /**
13  * Default feed news URL.
14  */
15 var DEFAULT_NEWS_URL = 'http://news.google.com/news?output=rss';
16
17 /**
18  * Image URL of Israel country.
19  */
20 var ISRAEL_IMAGE_URL = 'http://www.gstatic.com/news/img/logo/iw_il/news.gif';
21
22 /**
23  * Alias for getElementById.
24  * @param {String} elementId Element id of the HTML element to be fetched.
25  * @return {Element} Element corresponding to the element id.
26  */
27 function $(elementId) {
28   return document.getElementById(elementId);
29 }