PageSourceSearch

https://offerilla.com/wp-content/plugins/miniorange-login-openid/includes/js/social_login.js

js offerilla.com collected 2026-09-26 15:23:22 UTC 2,577 bytes, 68 lines download raw bytes

1jQuery(window).load(function () {
2    function mo_openid_set_cookie(cname,cvalue){var d=new Date();d.setTime(d.getTime()+(3*60*1000));var expires="expires="+d.toUTCString();document.cookie=cname+"="+cvalue+";"+expires+";path=/"}
3    function mo_openid_get_cookie(cname){var name=cname+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1)}
4        if(c.indexOf(name)==0){return c.substring(name.length,c.length)}}
5        return""}
6
7    // If cookie is set, scroll to the position saved in the cookie.
8    if ( (mo_openid_get_cookie("scroll")) !== 'null' ) {
9        jQuery(document).scrollTop( mo_openid_get_cookie("scroll") );
10        mo_openid_set_cookie("scroll",null);
11    }
12
13    // When a button is clicked...
14    jQuery('.mo_openid_custom-login-button').on("click", function() {
15        // Set a cookie that holds the scroll position.
16        mo_openid_set_cookie("scroll",jQuery(document).scrollTop());
17    });
18
19    jQuery('.login-button').on("click", function() {
20        // Set a cookie that holds the scroll position.
21        mo_openid_set_cookie("scroll",jQuery(document).scrollTop());
22    });
23
24
25});
26
27jQuery(document).ready(function () {
28    //show mcrypt extension installation reason
29
30    jQuery("#openid_sharing_shortcode_title").click(function () {
31        jQuery("#openid_sharing_shortcode").slideToggle(400);
32    });
33
34});
35
36function moOpeniddeletelinkaccount(elem, userId, $identifier) {
37
38    var confirm_dialog = confirm("Do you want to continue ?");
39    if (confirm_dialog == true) {
40
41        jQuery.ajax({
42            url: my_ajax_object.ajax_url, //the page containing php script
43            method: "POST", //request type,
44            data: {action:"delete_account", user_id: userId, linked_social_app_identifier: $identifier},
45            dataType:"text",
46            success: function (success) {
47                alert("Linked account is deleted. Press OK to continue.");
48                window.location.reload(true);
49            }
50        });
51    } else {
52        window.location.reload(true);
53        return false;
54    }
55}
56function moOpenidDeleteSocialProfile(elem, userId){
57    jQuery.ajax({
58        url:my_ajax_object.ajax_url, //the page containing php script
59        method: "POST", //request type,
60        data: {action : 'delete_social_profile_data', user_id : userId},
61        dataType: 'text',
62        success:function(result){
63            alert('Social Profile Data Deleted successfully. Press OK to continue.');
64            window.location.reload(true);
65        }
66    });
67
68}

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.