1/** 2 * @file 3 * A JavaScript file for the theme. 4 * 5 * In order for this JavaScript to be loaded on pages, see the instructions in 6 * the README.txt next to this file. 7 */ 8 9// JavaScript should be made compatible with libraries other than jQuery by 10// wrapping it with an "anonymous closure". See: 11// - https://drupal.org/node/1446420 12// - http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth 13(function ($, Drupal, window, document, undefined) { 14 15 16// To understand behaviors, see https://drupal.org/node/756722#behaviors 17Drupal.behaviors.google_translate = { 18 attach: function(context, settings) { 19 var widget = $('#google_translate_element'); 20 $('.block-menu-menu-top-menu li.first a').replaceWith(widget); 21 } 22}; 23 24})(jQuery, Drupal, this, this.document);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.