I have implemented a custom login page for users here.
If a user attempts to close the popup window before registering, I intend for the div with ID "uzenet" to have a shake effect similar to that seen in a Wordpress login form.
The great news is that the plugin provides a robust API function, which is fully documented and can be found: here.
The specific function I am trying to utilize is: on_close_popup_ui
, however, it seems to be failing to work properly without any apparent reasons.
Based on my understanding of the documentation, the correct code implementation should resemble the following:
<!-- The plugin will be loaded into this div //-->
<div style="margin-top: 23px;" id="oa_social_login_container"></div>
<div style="margin-top: 23px;" id="oa_social_login_container"></div>
<script type="text/javascript">
var _oneall = _oneall || [];
_oneall.push(['social_login', 'do_popup_ui']);
_oneall.push(['social_login', 'set_callback_uri', 'http://neocsatblog.mblx.hu/']);
_oneall.push(['social_login', 'set_providers', ['facebook', 'google', 'steam', 'twitter', 'windowslive', 'wordpress']]);
_oneall.push(['social_login', 'do_render_ui', 'oa_social_login_container']);
/*
Signature
<scope> : string - (social_login)
<function> : JavaScript function for execution
*/
_oneall.push(['social_login', 'set_event', 'on_close_popup_ui', 'my_on_close_popup_ui']);
/* Example */
var my_on_close_popup_ui = function() {
alert("You have closed the popup user interface");
}
_oneall.push(['social_login', 'set_event', 'on_close_popup_ui', 'my_on_close_popup_ui']);
</script>
Regrettably, despite my efforts, this setup isn't functioning as expected, leaving me puzzled about the cause.
There are no syntax errors reported in the Chrome console, and the lack of an alert popup implies that the function may be encountering some obstacles before recognizing themy_on_close_popup_ui
identifier.