PageSourceSearch

https://supermegasite.ru/wp-content/plugins/wordpress-social-login/assets/js/widget.js?ver=7.1.2

js supermegasite.ru collected 2026-10-02 20:05:41 UTC 1,690 bytes, 56 lines download raw bytes

1(function($){
2	$(function(){
3		$(document).on( 'click', 'a.wp-social-login-provider', function(){
4			popupurl = $( '#wsl_popup_base_url' ).val();
5
6			provider = $(this).attr("data-provider");
7
8			var width  = 768;
9			var height = 480;
10			var top    = ( screen.height / 2 ) - ( height / 2 ) - 50;
11			var left   = ( screen.width  / 2 ) - ( width  / 2 );
12
13			window.open( popupurl + '&provider=' + provider, 'hybridauth_social_sing_on', 'location=1,status=0,scrollbars=0,height=' + height + ',width=' + width + ',top=' + top + ',left=' + left);
14		});
15	});
16})(jQuery);
17
18
19window.wsl_wordpress_social_login = function( config ){
20	jQuery( '#loginform' ).unbind( 'submit.simplemodal-login' );
21
22	var form_id = '#loginform';
23
24	if( ! jQuery( '#loginform' ).length )
25	{
26		if( jQuery( '#registerform' ).length )
27		{
28			form_id = '#registerform';
29		}
30
31		else {
32			var login_uri = jQuery( '#wsl_login_form_uri' ).val();
33
34			jQuery('body').append( '<form id="loginform" method="post" action="' + login_uri + '"></form>' );
35
36			jQuery('#loginform').append( '<input type="hidden" id="redirect_to" name="redirect_to" value="' + window.location.href + '">' );
37		}
38	}
39
40	jQuery.each( config, function( key, value ){
41		jQuery( '#' + key ).remove();
42
43		jQuery( form_id ).append( '<input type="hidden" id="' + key + '" name="' + key + '" value="' + value + '">' );
44	});
45
46	if( jQuery( '#simplemodal-login-form' ).length )
47	{
48		var current_url = window.location.href;
49
50		jQuery( '#redirect_to' ).remove();
51
52		jQuery( form_id ).append( '<input type="hidden" id="redirect_to" name="redirect_to" value="' + current_url + '">' );
53	}
54
55	jQuery( form_id ).submit();
56}

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.