PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/auctionforyou.kerihosting.com/wp-content/themes/AuctionTheme/js/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/auctionforyou.kerihosting.com/wp-content/themes/AuctionTheme/js/connect.js |
jQuery.noConflict(); (function($) { $(function() { // ready to roll var _social_connect_wordpress_form = $($('.social_connect_wordpress_form')[0]); //_social_connect_wordpress_form.dialog({ autoOpen: false, modal: true, dialogClass: 'social-connect-dialog', resizable: false, maxHeight: 400, width:350, maxWidth: 600 }); var _do_google_connect = function() { var google_auth = $('#social_connect_google_auth'); var redirect_uri = google_auth.find('input[type=hidden][name=redirect_uri]').val(); window.open(redirect_uri,'','scrollbars=no,menubar=no,height=400,width=800,resizable=yes,toolbar=no,status=no'); }; var _do_yahoo_connect = function() { var yahoo_auth = $('#social_connect_yahoo_auth'); var redirect_uri = yahoo_auth.find('input[type=hidden][name=redirect_uri]').val(); window.open(redirect_uri,'','scrollbars=no,menubar=no,height=400,width=800,resizable=yes,toolbar=no,status=no'); }; var _do_twitter_connect = function() { var twitter_auth = $('#social_connect_twitter_auth'); var redirect_uri = twitter_auth.find('input[type=hidden][name=redirect_uri]').val(); window.open(redirect_uri,'','scrollbars=no,menubar=no,height=400,width=800,resizable=yes,toolbar=no,status=no'); }; var _do_wordpress_connect = function(e) { var wordpress_auth = $('#social_connect_wordpress_auth'); var redirect_uri = wordpress_auth.find('input[type=hidden][name=redirect_uri]').val(); var context = $(e.target).parents('.social_connect_wordpress_form')[0]; var blog_name = $('.wordpress_blog_url', context).val(); var blog_url = "http://" + blog_name + ".wordpress.com"; redirect_uri = redirect_uri + "?wordpress_blog_url=" + encodeURIComponent(blog_url); window.open(redirect_uri,'','scrollbars=yes,menubar=no,height=400,width=800,resizable=yes,toolbar=no,status=no'); }; var _do_facebook_connect = function() { var facebook_auth = $('#social_connect_facebook_auth'); var client_id = facebook_auth.find('input[type=hidden][name=client_id]').val(); var redirect_uri = facebook_auth.find('input[type=hidden][name=redirect_uri]').val(); if(client_id == "") { alert("Social Connect plugin has not been configured for this provider") } else { window.open('https://graph.facebook.com/oauth/authorize?client_id=' + client_id + '&redirect_uri=' + redirect_uri + '&scope=email', '','scrollbars=no,menubar=no,height=400,width=800,resizable=yes,toolbar=no,status=no'); } }; // Close dialog if open and user clicks anywhere outside of it function overlay_click_close() { if (closedialog) { _social_connect_already_connected_form.dialog('close'); } closedialog = 1; } $(".social_connect_login_facebook").click(function() { _do_facebook_connect(); }); $(".social_connect_login_continue_facebook").click(function() { _do_facebook_connect(); }); $(".social_connect_login_twitter").click(function() { _do_twitter_connect(); }); $(".social_connect_login_continue_twitter").click(function() { _do_twitter_connect(); }); $(".social_connect_login_google").click(function() { _do_google_connect(); }); $(".social_connect_login_continue_google").click(function() { _do_google_connect(); }); $(".social_connect_login_yahoo").click(function() { _do_yahoo_connect(); }); $(".social_connect_login_continue_yahoo").click(function() { _do_yahoo_connect(); }); $(".social_connect_login_wordpress").click(function() { _social_connect_wordpress_form.dialog('open'); }); $(".social_connect_wordpress_proceed").click(function(e) { _do_wordpress_connect(e); }); }); })(jQuery); window.wp_social_connect = function(config) { jQuery('#loginform').unbind('submit.simplemodal-login'); var form_id = '#loginform'; if(!jQuery('#loginform').length) { // if register form exists, just use that if(jQuery('#registerform').length) { form_id = '#registerform'; } else { // create the login form var login_uri = jQuery("#social_connect_login_form_uri").val(); jQuery('body').append("<form id='loginform' method='post' action='" + login_uri + "'></form>"); jQuery('#loginform').append("<input type='hidden' id='redirect_to' name='redirect_to' value='" + window.location.href + "'>"); } } jQuery.each(config, function(key, value) { jQuery("#" + key).remove(); jQuery(form_id).append("<input type='hidden' id='" + key + "' name='" + key + "' value='" + value + "'>"); }); if(jQuery("#simplemodal-login-form").length) { var current_url = window.location.href; jQuery("#redirect_to").remove(); jQuery(form_id).append("<input type='hidden' id='redirect_to' name='redirect_to' value='" + current_url + "'>"); } //console.log(jQuery(form_id)); //console.log("Asd"); jQuery(form_id).submit(); }