1$(document).ready(function(){ 2 3 // LIMPAR ERRO 4 5 // $(".bt_chama_modal").click(function(){ 6 // $(".erro").val("teste"); 7 // }); 8 9 // MODAL BENEFICIÃRIO 10 // $("#num").blur(function(){ 11 // var tipo_acesso = $("#tipo-acesso").val(); 12 // var num = $("#num").val().replace(/\D/g, ''); 13 // var matricula = $("#matricula").val().replace(/\D/g, ''); 14 // var data_nasc = $("#data_nasc").val().replace(/\D/g, ''); 15 16 // if (tipo_acesso == "form-cpf") { 17 // if (num.length == 11) { 18 // if (data_nasc.length == 8) { 19 // $("#logar-beneficiario").removeAttr("disabled"); 20 // $("#logar-beneficiario").addClass("bt-logar-liberado"); 21 // } else { 22 // $("#logar-beneficiario").Attr("disabled"); 23 // $("#logar-beneficiario").removeClass("bt-logar-liberado"); 24 // }; 25 // } else { 26 // $("#logar-beneficiario").Attr("disabled"); 27 // $("#logar-beneficiario").removeClass("bt-logar-liberado"); 28 // }; 29 // } else { 30 // if (matricula.length == 8 !== "") { 31 // $("#logar-beneficiario").removeAttr("disabled"); 32 // $("#logar-beneficiario").addClass("bt-logar-liberado"); 33 // } else { 34 // $("#logar-beneficiario").Attr("disabled"); 35 // $("#logar-beneficiario").removeClass("bt-logar-liberado"); 36 // }; 37 // }; 38 // }); 39 40 // $("#data_nasc").blur(function(){ 41 // var tipo_acesso = $("#tipo-acesso").val(); 42 // var num = $("#num").val().replace(/\D/g, ''); 43 // var data_nasc = $("#data_nasc").val().replace(/\D/g, ''); 44 45 // if (tipo_acesso == "form-cpf") { 46 // if (data_nasc.length == 8) { 47 // if (num.length == 11) { 48 // $("#logar-beneficiario").removeAttr("disabled"); 49 // $("#logar-beneficiario").addClass("bt-logar-liberado"); 50 // } else { 51 // $("#logar-beneficiario").Attr("disabled"); 52 // $("#logar-beneficiario").removeClass("bt-logar-liberado"); 53 // }; 54 // } else { 55 // $("#logar-beneficiario").Attr("disabled"); 56 // $("#logar-beneficiario").removeClass("bt-logar-liberado"); 57 // }; 58 // }; 59 // }); 60 61 // $("#matricula").blur(function(){ 62 // var tipo_acesso = $("#tipo-acesso").val(); 63 // var matricula = $("#matricula").val().replace(/\D/g, ''); 64 65 // if (tipo_acesso == "form-matricula") { 66 // if (matricula.length == 8) { 67 // $("#logar-beneficiario").removeAttr("disabled"); 68 // $("#logar-beneficiario").addClass("bt-logar-liberado"); 69 // } else { 70 // $("#logar-beneficiario").Attr("disabled"); 71 // $("#logar-beneficiario").removeClass("bt-logar-liberado"); 72 // }; 73 // }; 74 // }); 75 76 $("#login-benef-cpf").click(function(){ 77 $("#tipo-acesso").val("form-cpf"); 78 79 $("#num").css("display","block"); 80 $("#data_nasc").css("display","block"); 81 $("#matricula").css("display","none"); 82 83 $("#login-benef-cpf").css("background-color","var(--login-cor)"); 84 $("#login-benef-cpf").css("color","#fff"); 85 86 $("#login-benef-matricula").css("background-color","#fff"); 87 $("#login-benef-matricula").css("color","var(--login-cor)"); 88 89 $("#num").val(""); 90 $("#matricula").val(""); 91 $("#data_nasc").val(""); 92 }); 93 94 $("#login-benef-matricula").click(function(){ 95 $("#tipo-acesso").val("form-matricula"); 96 97 $("#num").css("display","none"); 98 $("#data_nasc").css("display","none"); 99 $("#matricula").css("display","block"); 100 101 $("#login-benef-matricula").css("background-color","var(--login-cor)"); 102 $("#login-benef-matricula").css("color","#fff"); 103 104 $("#login-benef-cpf").css("background-color","#fff"); 105 $("#login-benef-cpf").css("color","var(--login-cor)"); 106 107 $("#num").val(""); 108 $("#matricula").val(""); 109 $("#data_nasc").val(""); 110 });
111 112 // MODAL EMPRESA 113 114 // $("#estipulante").blur(function(){ 115 // var estipulante = $("#estipulante").val().replace(/\D/g, ''); 116 // var subestipulante = $("#subestipulante").val().replace(/\D/g, ''); 117 // var passestip = $("#passestip").val(); 118 119 // if (estipulante.length == 4) { 120 // if (subestipulante.length == 3) { 121 // if (passestip !== ""){ 122 // $("#logar-empresa").removeAttr("disabled"); 123 // $("#logar-empresa").addClass("bt-logar-liberado"); 124 // } else { 125 // $("#logar-empresa").Attr("disabled"); 126 // $("#logar-empresa").removeClass("bt-logar-liberado"); 127 // }; 128 // } else { 129 // $("#logar-empresa").Attr("disabled"); 130 // $("#logar-empresa").removeClass("bt-logar-liberado"); 131 // }; 132 // } else { 133 // $("#logar-empresa").Attr("disabled"); 134 // $("#logar-empresa").removeClass("bt-logar-liberado"); 135 // }; 136 // }); 137 138 // $("#subestipulante").blur(function(){ 139 // var estipulante = $("#estipulante").val().replace(/\D/g, ''); 140 // var subestipulante = $("#subestipulante").val().replace(/\D/g, ''); 141 // var passestip = $("#passestip").val(); 142 143 // if (subestipulante.length == 3) { 144 // if (estipulante.length == 4) { 145 // if (passestip !== ""){ 146 // $("#logar-empresa").removeAttr("disabled"); 147 // $("#logar-empresa").addClass("bt-logar-liberado"); 148 // } else { 149 // $("#logar-empresa").Attr("disabled"); 150 // $("#logar-empresa").removeClass("bt-logar-liberado"); 151 // }; 152 // } else { 153 // $("#logar-empresa").Attr("disabled"); 154 // $("#logar-empresa").removeClass("bt-logar-liberado"); 155 // }; 156 // } else { 157 // $("#logar-empresa").Attr("disabled"); 158 // $("#logar-empresa").removeClass("bt-logar-liberado"); 159 // }; 160 // }); 161 162 // $("#passestip").blur(function(){ 163 // var estipulante = $("#estipulante").val().replace(/\D/g, ''); 164 // var subestipulante = $("#subestipulante").val().replace(/\D/g, ''); 165 // var passestip = $("#passestip").val(); 166 167 // if (passestip !== "") { 168 // if (estipulante.length == 4) { 169 // if (subestipulante.length == 3){ 170 // $("#logar-empresa").removeAttr("disabled"); 171 // $("#logar-empresa").addClass("bt-logar-liberado"); 172 // } else { 173 // $("#logar-empresa").Attr("disabled"); 174 // $("#logar-empresa").removeClass("bt-logar-liberado"); 175 // }; 176 // } else { 177 // $("#logar-empresa").Attr("disabled"); 178 // $("#logar-empresa").removeClass("bt-logar-liberado"); 179 // }; 180 // } else { 181 // $("#logar-empresa").Attr("disabled"); 182 // $("#logar-empresa").removeClass("bt-logar-liberado"); 183 // }; 184 // }); 185 186 // CORRETOR 187 188 // $("#corretor").blur(function(){ 189 // var corretor = $("#corretor").val().replace(/\D/g, ''); 190 // var passcorretor = $("#passcorretor").val(); 191 192 // if (corretor.length == 4) { 193 // if (passcorretor !== ""){ 194 // $("#logar-corretor").removeAttr("disabled"); 195 // $("#logar-corretor").addClass("bt-logar-liberado"); 196 // } else { 197 // $("#logar-corretor").Attr("disabled"); 198 // $("#logar-corretor").removeClass("bt-logar-liberado"); 199 // }; 200 // } else { 201 // $("#logar-corretor").Attr("disabled"); 202 // $("#logar-corretor").removeClass("bt-logar-liberado"); 203 // }; 204 // }); 205 206 // $("#passcorretor").blur(function(){ 207 // var corretor = $("#corretor").val().replace(/\D/g, ''); 208 // var passcorretor = $("#passcorretor").val(); 209 210 // if (passcorretor !== "") { 211 // if (corretor.length == 4){ 212 // $("#logar-corretor").removeAttr("disabled"); 213 // $("#logar-corretor").addClass("bt-logar-liberado"); 214 // } else { 215 // $("#logar-corretor").Attr("disabled"); 216 // $("#logar-corretor").removeClass("bt-logar-liberado"); 217 // }; 218 // } else { 219 // $("#logar-corretor").Attr("disabled"); 220 // $("#logar-corretor").removeClass("bt-logar-liberado"); 221 // }; 222 // }); 223 224 // MODAL DENTISTA 225
226 // $("#dentista").blur(function(){ 227 // var dentista = $("#dentista").val().replace(/\D/g, ''); 228 // var passdentista = $("#passdentista").val(); 229 // if (dentista.length == 5) { 230 // if (passdentista !== ""){ 231 // $("#logar-dentista").removeAttr("disabled"); 232 // $("#logar-dentista").addClass("bt-logar-liberado"); 233 // } else { 234 // $("#logar-dentista").Attr("disabled"); 235 // $("#logar-dentista").removeClass("bt-logar-liberado"); 236 // }; 237 // } else { 238 // $("#logar-dentista").Attr("disabled"); 239 // $("#logar-dentista").removeClass("bt-logar-liberado"); 240 // }; 241 // }); 242 243 // $("#passdentista").blur(function(){ 244 // var dentista = $("#dentista").val().replace(/\D/g, ''); 245 // var passdentista = $("#passdentista").val(); 246 // if (passdentista !== "") { 247 // if (dentista.length == 5){ 248 // $("#logar-dentista").removeAttr("disabled"); 249 // $("#logar-dentista").addClass("bt-logar-liberado"); 250 // } else { 251 // $("#logar-dentista").Attr("disabled"); 252 // $("#logar-dentista").removeClass("bt-logar-liberado"); 253 // }; 254 // } else { 255 // $("#logar-dentista").Attr("disabled"); 256 // $("#logar-dentista").removeClass("bt-logar-liberado"); 257 // }; 258 // }); 259 260 $("#login-dentista").click(function(){ 261 $("#tipo-dentista").val("dentista"); 262 263 $("#login-dentista").css("background-color","var(--login-cor)"); 264 $("#login-dentista").css("color","#fff"); 265 266 $("#login-clinica").css("background-color","#fff"); 267 $("#login-clinica").css("color","var(--login-cor)"); 268 269 $("#dentista").val(""); 270 $("#passdentista").val(""); 271 }); 272 273 $("#login-clinica").click(function(){ 274 $("#tipo-dentista").val("clinica"); 275 276 $("#login-clinica").css("background-color","var(--login-cor)"); 277 $("#login-clinica").css("color","#fff"); 278 279 $("#login-dentista").css("background-color","#fff"); 280 $("#login-dentista").css("color","var(--login-cor)"); 281 282 $("#dentista").val(""); 283 $("#passdentista").val(""); 284 }); 285 286 287 //############################################## PORTAL BENEFICIARIO V2############################################################################################## 288 289 //Redirecionar para o portal beneficiário, na HOME da sempre odonto. 290 $("#areas #LoginBeneficiarioV2").click(function(e){ 291 e.preventDefault(); 292 window.location.href = "usuario/index.asp"; 293 }); 294 295 296 //############################################## PORTAL BENEFICIARIO V2############################################################################################## 297 298 299 //AJAX 300 //modal login beneficiario ANTIGO, mudado para o portal beneficiario V2 301 // AJAX BENEFICIARIO 302 // $("#logar-beneficiario").click(function(){ 303 304 // var tipo_acesso = $("#tipo-acesso").val(); 305 // var num = $("#num").val(); 306 // var data_nasc = $("#data_nasc").val(); 307 // var matricula = $("#matricula").val(); 308 309 // if (tipo_acesso == "form-cpf") { 310 311 // if (num == "") { 312 // var html = "" 313 // html = html + "<p class='erro-titulo mt-1'>Preencha o CPF do titular para continuar.</p>"; 314 // $(".erro").html(""); 315 // $(".erro").html(html); 316 // return; 317 // }; 318 319 // if (data_nasc == "") { 320 // var html = "" 321 // html = html + "<p class='erro-titulo mt-1'>Preencha a data de nascimento do titular para continuar.</p>"; 322 // $(".erro").html(""); 323 // $(".erro").html(html); 324 // return; 325 // }; 326 327 // } else { 328 329 // if (matricula == "") { 330 // var html = "" 331 // html = html + "<p class='erro-titulo mt-1'>Preencha a matr\u00EDcula do titular para continuar.</p>"; 332 // $(".erro").html(""); 333 // $(".erro").html(html); 334 // return; 335 // }; 336 337 // }; 338 339 // $.ajax({
340 // type: "GET", 341 // data: "tipo_acesso=" + tipo_acesso + "&num=" + num + "&data_nasc=" + data_nasc + "&matricula=" + matricula, 342 // url: "usuario/usuario_login.asp", 343 // success: function(data){ 344 // if(data == "erro") { 345 // var html = "" 346 // html = html + "<p class='erro-titulo mt-1'>Dados incorretos. Tente novamente.</p>"; 347 // html = html + "<p class='erro-texto'>Se voc\u00EA for DEPENDENTE, utilize os dados do TITULAR do plano para acessar sua carteirinha.</p>"; 348 // $(".erro").html(""); 349 // $(".erro").html(html); 350 // } else { 351 // window.location.href = "usuario/usuario_home.asp"; 352 // }; 353 // } 354 // }); 355 // }); 356 357 // AJAX EMPRESA 358 $("#logar-empresa").click(function(){ 359 360 var estipulante = $("#estipulante").val(); 361 var vsubestipulante = $("#subestipulante").val(); 362 var subestipulante = ""; 363 var passestip = $("#passestip").val(); 364 365 if (/^0\d{2}$/.test(vsubestipulante)) { 366 // Remova o primeiro caractere (zero) da string 367 subestipulante = vsubestipulante.substring(1); 368 } else { 369 subestipulante = vsubestipulante; 370 }; 371 372 if (estipulante == "") { 373 var html = "" 374 html = html + "<p class='erro-titulo mt-1'>Preencha o c\u00F3digo estipulante para continuar.</p>"; 375 $(".erro").html(""); 376 $(".erro").html(html); 377 return; 378 }; 379 380 if (subestipulante == "") { 381 var html = "" 382 html = html + "<p class='erro-titulo mt-1'>Preencha o c\u00F3digo subestipulante para continuar.</p>"; 383 $(".erro").html(""); 384 $(".erro").html(html); 385 return; 386 }; 387 388 if (passestip == "") { 389 var html = "" 390 html = html + "<p class='erro-titulo mt-1'>Preencha a senha para continuar.</p>"; 391 $(".erro").html(""); 392 $(".erro").html(html); 393 return; 394 }; 395 396 $.ajax({
397 type: "GET", 398 data: "estipulante=" + estipulante + "&subestipulante=" + subestipulante + "&passestip=" + passestip, 399 url: "/empresa/empresa_login.asp", 400 success: function(data){ 401 if(data == "erro") { 402 var html = "" 403 html = html + "<p class='erro-titulo mt-1'>Dados incorretos. Tente novamente.</p>"; 404 $(".erro").html(""); 405 $(".erro").html(html); 406 } else { 407 if(data == "vigencia") { 408 var html = "" 409 html = html + "<p class='erro-titulo mt-1'>Vig\u00EAncia expirada. <br> Por gentileza, entre em contato pelo e-mail [email protected]</p>"; 410 $(".erro").html(""); 411 $(".erro").html(html); 412 } else { 413 window.location.href = "/empresa/empresa_home.asp"; 414 }; 415 }; 416 } 417 }); 418 }); 419 420 // AJAX CORRETOR 421 $("#logar-corretor").click(function(){ 422 423 var corretor = $("#corretor").val(); 424 var passcorretor = $("#passcorretor").val(); 425 426 if (corretor == "") { 427 var html = "" 428 html = html + "<p class='erro-titulo mt-1'>Preencha a matr\u00EDcula para continuar.</p>"; 429 $(".erro").html(""); 430 $(".erro").html(html); 431 return; 432 }; 433 434 if (passcorretor == "") { 435 var html = "" 436 html = html + "<p class='erro-titulo mt-1'>Preencha a senha para continuar.</p>"; 437 $(".erro").html(""); 438 $(".erro").html(html); 439 return; 440 }; 441 442 $.ajax({
443 type: "GET", 444 data: "corretor=" + corretor + "&passcorretor=" + passcorretor, 445 url: "/corretor/corretor_login.asp", 446 success: function(data){ 447 if(data == "erro") { 448 var html = "" 449 html = html + "<p class='erro-titulo mt-1'>Dados incorretos. Tente novamente.</p>"; 450 $(".erro").html(""); 451 $(".erro").html(html); 452 } else { 453 window.location.href = "/corretor/corretor_home.asp"; 454 }; 455 } 456 }); 457 }); 458 459 // AJAX DENTISTA 460 $("#logar-dentista").click(function(){ 461 462 var tipo_dentista = $("#tipo-dentista").val(); 463 var dentista = $("#dentista").val(); 464 var passdentista = $("#passdentista").val(); 465 466 if (dentista == "") { 467 var html = "" 468 html = html + "<p class='erro-titulo mt-1'>Preencha a matr\u00EDcula para continuar.</p>"; 469 $(".erro").html(""); 470 $(".erro").html(html); 471 return; 472 }; 473 474 if (passdentista == "") { 475 var html = "" 476 html = html + "<p class='erro-titulo mt-1'>Preencha a senha para continuar.</p>"; 477 $(".erro").html(""); 478 $(".erro").html(html); 479 return; 480 }; 481 482 $.ajax({
483 type: "GET", 484 data: "tipo_dentista=" + tipo_dentista + "&dentista=" + dentista + "&passdentista=" + passdentista, 485 url: "dentistaportal/dentista_login_v2.asp", 486 success: function(data){ 487 if(data == "erro") { 488 var html = "" 489 html = html + "<p class='erro-titulo mt-1'>Dados incorretos. Tente novamente.</p>"; 490 $(".erro").html(""); 491 $(".erro").html(html); 492 } else { 493 if (tipo_dentista == "dentista"){ 494 window.location.href = "dentistaportal/dentista_home.asp"; 495 } else { 496 window.location.href = "dentistaportal/clinica_home.asp"; 497 }; 498 }; 499 } 500 }); 501 }); 502});
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.