login-page
5 years ago
admin-login-custom.js
1 week ago
admin-main.js
1 week ago
front-main.js
1 week ago
social-front.js
1 week ago
sortable.min.js
5 years ago
admin-login-custom.js
1 lines
| 1 | "use strict";function xs_show_hide(e){document.getElementById("xs_data_tr__"+e).classList.toggle("active_tr")}function xs_show_hide_role(e){var t=document.getElementById("xs_data_tr__role");1==e?t.classList.add("active_tr"):t.classList.remove("active_tr")}function copy_callback(e){document.getElementById(e+"_callback").select(),document.execCommand("copy")}function xs_counter_open(e){let t=e.getAttribute("xs-target-id");if(!t)return!1;let o=document.getElementById(t),n=document.querySelector(".xs-backdrop");o&&(o.classList.toggle("is-open"),n.classList.toggle("is-open"))}function social_counter_enable(e){var t=e.getAttribute("data-key"),o=e.checked?1:"",n=e.checked?window.xsLoginCustomI18n.settings:window.xsLoginCustomI18n.gettingStarted,s=jQuery(e).closest("div.xs-block-footer").find("div.right-content a"),i={val:o,social:t};jQuery.ajax({data:i,type:"post",url:window.rest_api_conf.root+"wp_social/v1/counter/enable/"+t,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",window.rest_api_conf.nonce),s.text(window.xsLoginCustomI18n.waiting)},success:function(t){t.success?s.text(n):jQuery(e).closest("div").append('<span style="color:red">'+window.xsLoginCustomI18n.unexpectedError+"</span>")},error:function(e){s.text(window.xsLoginCustomI18n.error)}})}function social_share_enable(e){var t=e.getAttribute("data-key"),o=e.checked?1:"",n=e.checked?window.xsLoginCustomI18n.settings:window.xsLoginCustomI18n.gettingStarted,s=jQuery(e).closest("div.xs-block-footer").find("div.right-content a"),i={val:o,social:t};jQuery.ajax({data:i,type:"post",url:window.rest_api_conf.root+"wp_social/v1/share/enable/"+t.replace("-",""),beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",window.rest_api_conf.nonce),s.text(window.xsLoginCustomI18n.waiting)},success:function(t){t.success?s.text(n):jQuery(e).closest("div").append('<span style="color:red">'+window.xsLoginCustomI18n.unexpectedError+"</span>")},error:function(e){s.text(window.xsLoginCustomI18n.error)}})}function enable_provider_login(e){var t=e.getAttribute("data-key"),o=e.checked?1:"",n=e.checked?window.xsLoginCustomI18n.settings:window.xsLoginCustomI18n.gettingStarted,s=jQuery(e).closest("div.xs-block-footer").find("div.right-content a"),i={val:o,social:t};console.log(i,s),jQuery.ajax({data:i,type:"post",url:window.rest_api_conf.root+"wp_social/v1/login/enable/"+t,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",window.rest_api_conf.nonce),s.text(window.xsLoginCustomI18n.waiting)},success:function(t){t.success?s.text(n):jQuery(e).closest("div").append('<span style="color:red">'+window.xsLoginCustomI18n.unexpectedError+"</span>")},error:function(e){s.text(window.xsLoginCustomI18n.error)}})} |