1jQuery('document').ready(function($) { 2 3 $(".tgp_logout_btn").click(function(e) { 4 $.ajax({ 5 type: 'POST', 6 url: ajaxData.ajaxUrl, 7 data: { 8 'action': 'tgp_user_logout', 9 }, 10 success: function(response) { 11 var data = JSON.parse(response); 12 if (data.logout == true) { 13 if (data.url != "") { 14 window.location.href = data.url; 15 } 16 } else { 17 window.location.href = data.url; 18 19 } 20 } 21 22 }); 23 }); 24 25 //Show Wp admin bar on hover 26 $('#wp-admin-bar-site-name').mouseover(function() { 27 $('#wpadminbar').addClass('admin-bar-link'); 28 }); 29 $(document).mouseout(function(e) { 30 var container = $("#wpadminbar"); 31 // if the target of the click isn't the container nor a descendant of the container 32 if (!container.is(e.target) && container.has(e.target).length === 0) { 33 $('#wpadminbar').removeClass('admin-bar-link'); 34 } 35 }); 36 37});
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.