-
Notifications
You must be signed in to change notification settings - Fork 0
/
searchn1.js
16 lines (15 loc) · 1.01 KB
/
searchn1.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Alterar os projetos que queira que seja selecionado automáticamente
var projetosx = ['QA_2017','REGRESSAO_2017','2018_PROJ_MOVEL','2018_PROJ_DIGITAL','2018_PP_B2B_FIXA',
'2018_PROJ_CONVERGENTE_OSS', 'BEATRIX_FASE_2','FS_Beatrix','2018_PP_MOVEL','2018_PROJ_B2B_FIXA',
'2018_PROJ_TRANSFORMACAO_B2C','TST_CANAIS_2018', 'QA', 'VIVO_AUTOMACAO','2018_PP_CONVERGENTE_OSS'];
setTimeout(function() {
var check = document.getElementById("checks"); //Seleciona a div que possui as checkbox
for (i = 0; i < check.childNodes.length; i++) {
var selectCheck = check.childNodes[i];
selectCheck.childNodes[0].checked = false; //Seleciona o checkbox que não estiver no projetosx como flase
for (cont = 0; cont < projetosx.length; cont++){
if(selectCheck.childNodes[1].innerText === projetosx[cont])
selectCheck.childNodes[0].checked = true; //Seleciona o checkbox que estiver no projetox como true
}
}
}, 1700); //Tempo que o script será carregado