1window.addEventListener("load", buscarFucnaoEsconder, false); 2 3function buscarFucnaoEsconder() { 4 5 var btn = $('.icon-16-function')[0]?.parentNode 6 7 if (btn) { 8 var p = { 9 method: "FuncoesEsconder", 10 interfaceName: $('#hdnInterfaceName').val() 11 }; 12 proxy = new Q.data.HttpRequest({ 13 type: 'post', 14 dataType: 'json', 15 async: false, 16 url: Q.ROOT_PATH + 'pgs/proxy/FuncoesGerais.ashx', 17 params: p, 18 listeners: { 19 success: function (data, textStatus, jqXHR) { 20 for (var i = 0; i < data.data.length; i++) { 21 $(btn).click() 22 var funcao = window.parent.top.document.querySelector(`[id^="${data.data[i].NomeFuncao}"]`) 23 if (funcao) { 24 $(funcao).remove() 25 } 26 $(btn).click() 27 } 28 }, 29 error: function (jqXHR, textStatus, errorThrown) { 30 } 31 } 32 }); 33 proxy.request(); 34 } 35}
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.