1/*global Drupal: false, jQuery: false */ 2/*jslint devel: true, browser: true, maxerr: 50, indent: 2 */ 3(function ($) { 4 "use strict"; 5 6 Drupal.behaviors.hybridauth_onclick = {}; 7 Drupal.behaviors.hybridauth_onclick.attach = function(context, settings) { 8 $('.hybridauth-widget-provider', context).each(function() { 9 // $(this).attr('href', $(this).attr('data-hybridauth-url')); 10 this.href = $(this).attr('data-hybridauth-url'); 11 }); 12 $('.hybridauth-onclick-current:not(.hybridauth-onclick-processed)', context).addClass('hybridauth-onclick-processed').bind('click', function() { 13 $(this).parents('.hybridauth-widget').after('<div>' + Drupal.t('Contacting @title...', {'@title': this.title}) + '</div>'); 14 }); 15 $('.hybridauth-onclick-popup:not(.hybridauth-onclick-processed)', context).addClass('hybridauth-onclick-processed').bind('click', function() { 16 var width = $(this).attr('data-hybridauth-width'), height = $(this).attr('data-hybridauth-height'); 17 var popup_window = window.open( 18 this.href, 19 'hybridauth', 20 'location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=yes,toolbar=no,channelmode=yes,fullscreen=yes,width=' + width + ',height=' + height 21 ); 22 popup_window.focus(); 23 return false; 24 }); 25 26 // Last used provider feature. 27 var last_provider = $.cookie('hybridauth_last_provider'); 28 if (last_provider != null) { 29 $('[data-hybridauth-provider="' + last_provider + '"]', context).addClass('hybridauth-last-provider'); 30 } 31 $('.hybridauth-widget-provider:not(.hybridauth-provider-processed)', context).addClass('hybridauth-provider-processed').bind('click', function() { 32 $.cookie('hybridauth_last_provider', $(this).attr('data-hybridauth-provider'), {expires: 30, path: '/'}); 33 }); 34 }; 35 36})(jQuery);
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.