PageSourceSearch

https://amaze.org/wp-content/plugins/wordpress-social-login/assets/js/widget.js?ver=6.8.2

js amaze.org collected 2026-09-24 08:51:00 UTC 2,130 bytes, 74 lines download raw bytes

1/*!
2* WordPress Social Login
3*
4* http://miled.github.io/wordpress-social-login/ | https://github.com/miled/wordpress-social-login
5*  (c) 2011-2020 Mohamed Mrassi and contributors | http://wordpress.org/plugins/wordpress-social-login/
6*/
7
8/**
9* Manage authentications via a popup
10*
11* Based on http://wordpress.org/extend/plugins/social-connect/
12*/
13
14/**
15* bind on click event to idps icons
16*/
17(function($){
18	$(function(){
19		$(document).on( 'click', 'a.wp-social-login-provider', function(){
20			popupurl = $( '#wsl_popup_base_url' ).val();
21
22			provider = $(this).attr("data-provider");
23
24			var width  = 768;
25			var height = 480;
26			var top    = ( screen.height / 2 ) - ( height / 2 ) - 50;
27			var left   = ( screen.width  / 2 ) - ( width  / 2 );
28
29			window.open( popupurl + '&provider=' + provider, 'hybridauth_social_sing_on', 'location=1,status=0,scrollbars=0,height=' + height + ',width=' + width + ',top=' + top + ',left=' + left);
30		});
31	});
32})(jQuery);
33
34/**
35* generate login wp form
36*/
37window.wsl_wordpress_social_login = function( config ){
38	jQuery( '#loginform' ).unbind( 'submit.simplemodal-login' );
39
40	var form_id = '#loginform';
41
42	if( ! jQuery( '#loginform' ).length )
43	{
44		if( jQuery( '#registerform' ).length )
45		{
46			form_id = '#registerform';
47		}
48
49		else {
50			var login_uri = jQuery( '#wsl_login_form_uri' ).val();
51
52			jQuery('body').append( '<form id="loginform" method="post" action="' + login_uri + '"></form>' );
53
54			jQuery('#loginform').append( '<input type="hidden" id="redirect_to" name="redirect_to" value="' + window.location.href + '">' );
55		}
56	}
57
58	jQuery.each( config, function( key, value ){
59		jQuery( '#' + key ).remove();
60
61		jQuery( form_id ).append( '<input type="hidden" id="' + key + '" name="' + key + '" value="' + value + '">' );
62	});
63
64	if( jQuery( '#simplemodal-login-form' ).length )
65	{
66		var current_url = window.location.href;
67
68		jQuery( '#redirect_to' ).remove();
69
70		jQuery( form_id ).append( '<input type="hidden" id="redirect_to" name="redirect_to" value="' + current_url + '">' );
71	}
72
73	jQuery( form_id ).submit();
74}

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.