1jQuery(document).ready(function($) { 2 3 4 5 $("#hide_login_as_box").click(function() { 6 $("#loginas_user_customer").hide(); 7 setTimeout(function() { 8 $("#loginas_user_customer").show(); 9 }, 10 5000); 11 }); 12 13 14 15 16 $("#logout_login_as").on("click", function(event) { 17 event.preventDefault(); 18 $.ajax({ 19 url: loginas_ajax_object.ajax_url, 20 type: 'get', 21 data: { 22 'action': 'loginas_return_admin' 23 }, 24 success: function(response) { 25 response = JSON.parse(response); 26 console.log(response) 27 if(response.status == true){ 28 if (localStorage.getItem('login_as_back_to') != '') { 29 var login_as_back_to = localStorage.getItem('login_as_back_to').replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");; 30 window.location.replace(login_as_back_to); 31 } else { 32 window.location.replace(loginas_ajax_object.home_url); 33 } 34 }else{ 35 alert(response.message); 36 } 37 }, 38 }); 39 }); 40});
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.