1const FranceConnectBTN = document.getElementById('franceConnectBtn') 2const currentURL = document.location.url 3const FranceConnectLogoutBTN = document.getElementById('franceConnectLogout') 4 5!!FranceConnectBTN && 6FranceConnectBTN.addEventListener('click', function () { 7 jQuery.ajax({ 8 url: document.location.origin + '/wp-admin/admin-ajax.php', 9 type: 'GET', 10 data: { 11 action: 'handleConnexionFC', 12 currentURL: currentURL 13 }, 14 success: function (response) { 15 window.location.href = response.data; 16 }, 17 error: function (response) { 18 console.log(response) 19 } 20 }); 21}) 22 23!!FranceConnectLogoutBTN && 24FranceConnectLogoutBTN.addEventListener('click', function () { 25 jQuery.ajax({ 26 url: document.location.origin + '/wp-admin/admin-ajax.php', 27 type: 'GET', 28 data: { 29 action: 'logoutFromFC', 30 currentURL: currentURL 31 }, 32 success: function (response) { 33 window.location.href = response.data; 34 }, 35 error: function (response) { 36 console.log(response) 37 } 38 }); 39})
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.