PageSourceSearch

https://s.mihnati.com/c/js/facebook.js?ver=20260929135133

js mihnati.com collected 2026-10-02 02:33:15 UTC 7,285 bytes, 152 lines download raw bytes

1window.fbAsyncInit = function () {
2    if (typeof FB == 'object') {
3        FB.init({
4            appId: FB_APPID, // Rozee Official App Id
5            xfbml: true,
6            version: 'v2.5'
7        });
8    }
9};
10
11(function (d, s, id) {
12    var js, fjs = d.getElementsByTagName(s)[0];
13    if (d.getElementById(id))
14        return;
15    js = d.createElement(s);
16    js.id = id;
17    js.src = "//connect.facebook.net/en_US/sdk/xfbml.save.js";
18    fjs.parentNode.insertBefore(js, fjs);
19}(document, 'script', 'facebook-jssdk'));
20
21/////////////////////////////////////////////////////////////////////////////////////////////////
22
23function getUserData(response) {
24    var job_id = $('#modal_job_id').val();
25    var tempData = response;
26    var accessToken = response.authResponse.accessToken;
27    var expiresIn = response.authResponse.expiresIn;
28    var userId = response.authResponse.userID;
29    var fEmail = '';
30    if (typeof FB == 'object') {
31        FB.api('/me', {fields: 'name, first_name, last_name, age_range, link, email, gender, locale, picture.width(999), timezone, updated_time, location, education, work, birthday'}, function (response) {
32            if ('email' in response) {
33                pData = {user_id: userId, access_token: accessToken, email: response.email};
34            } else {
35                pData = {user_id: userId, access_token: accessToken};
36            }
37
38            if (typeof tempData.goAheadCall !== 'undefined') {
39                pData.goAheadCall = tempData.goAheadCall;
40            }
41
42            $.ajax({
43                url: site_url + 'fb/token',
44                data: pData,
45                type: 'POST',
46                success: function (result) {
47                    jResult = JSON.parse(result);
48                    if (typeof jResult.code !== 'undefined' && jResult.code === 121) {
49                        bootbox.confirm({
50                            title: msg_duplicateLogin,
51                            message: "<h5>" + jResult.message + "</h5>",
52                            //className: 'confirmLoginProceed',
53                            buttons: {
54                                confirm: {
55                                    label: msg_continuelogin_btn,
56                                    className: 'btn-success'
57                                },
58                                cancel: {
59                                    label: msg_cancel_btn,
60                                    className: 'btn-danger'
61                                }
62                            },
63                            callback: function (result) {
64                                //console.log('This was logged in the callback: ' + result);
65                                if (result) {
66                                    tempData.goAheadCall = 'Y';
67                                    console.log('NEW: ', tempData);
68                                    getUserData(tempData);
69                                } else {
70                                    $('#login-form .loading').hide();
71                                    $('.btn-default').show();
72                                }
73                            }
74                        });
75                        return;
76                    }
77                    if (jResult.status == 'success') {
78                        if(typeof sigin_flag !== 'undefined'){
79                            if(sigin_flag != ''){
80                                getApplyLayers(job_id, jResult.user_meta);
81                                return false;
82                            }
83                        }
84
85                        commonAlert('success', jResult.msg, 'no-hide');
86                        var redirectTo = localStorage.getItem('lastUrl');
87                        localStorage.setItem('lastUrl', null);
88                        if (redirectTo != null && redirectTo != 'null') {
89                            setTimeout(window.location = redirectTo, 1500);
90                        } else {
91                            setTimeout(window.location = jResult.rUrl + 'dashboard', 1500);
92                        }
93                        return;
94                    } else if (jResult.status == 'danger') {
95                        commonAlert('danger', jResult.msg, 'no-hide');
96                    } else if (jResult.status == 'info') {
97                        commonAlert('info', jResult.msg, 'no-hide');
98                        if (jResult.email != 'None') {
99                            $('#email').val(jResult.email);
100                            $('#pwd').val('');
101                        }
102                        if (jResult.action == 'createNewEmail' && jResult.fRedirect == 'Yes') {
103                            // FB Sign Up flow
104                            var params = {};
105                            params.fbData = response;
106                            params.accessToken = accessToken;
107                            ajx('POST', params, 'site/convertFbObjectJson', '', function (resp) {
108                                if (resp.status === true) {
109                                    if(sigin_flag != ''){
110                                        sigup_flag = '1';
111                                        $('#full_name').val(jResult.first_name + ' ' + jResult.last_name);
112                                        $('#email').val(jResult.email);
113                                        $('#email_second').val(jResult.email);
114                                        $('#register_div').show();
115                                        $('#signin_div').hide();
116                                    }else{
117                                        window.location.href = site_url + 'register/fbProfile/?utm_campaign=FACEBOOK_REGISTER&utm_source=register&utm_medium=website';
118                                    }
119                                } else if (resp.status == 'login') {
120                                    window.location.href = site_url + 'dashboard/?utm_campaign=FACEBOOK_DASHBOARD&utm_source=register&utm_medium=website';
121                                } else if (resp.status == 'emailFound') {
122                                    commonAlert('danger', resp.msg, 'no-hide');
123                                } else {
124                                    window.location.href = site_url + 'register';
125                                }
126                            });
127                            //////////////////
128                        }
129                    }
130                }
131            });
132        });
133    }
134}
135
136function fbLogin() {
137    commonAlert('info', FbLogin_3, 'no-hide');
138    if (site_at != 'sailfish' && typeof __gaTracker == 'function') {
139        __gaTracker('send', 'pageview', '/fbLogin');
140    }
141    if (typeof FB == 'object') {
142        FB.login(function (response) {
143            console.log(response);
144            if (response.status === 'connected') {
145                commonAlert('info', FbLogin_2, 'no-hide');
146                getUserData(response);
147            } else {
148                commonAlert('danger', FbLogin_1, 'no-hide');
149            }
150        }, {scope: 'email,public_profile,user_location,user_birthday'});
151    }
152}

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.