https://in.lgtvlink.com/m/code.do

ID da verificação
761db8cf-03a4-4ccd-b1b9-9394ae951ac3Concluído
URL enviado:
https://in.lgtvlink.com/
Relatório concluído:

Variáveis JavaScript · 64 encontrada(s)

NomeTipo
onbeforetoggleobject
documentPictureInPictureobject
onscrollendobject
$function
jQueryfunction
termsUrlAjaxfunction
browserobject
Swiperfunction
todayobject
choiceDateobject

Mensagens de registro do console · 0 encontrada(s)

HTML

<!DOCTYPE html><html lang="ko"><head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>LG TV WEB Login</title>

<!-- CSS Start-->
<link rel="stylesheet" href="/public/css/index.css">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon.ico">
<!-- 공통 css -->

<script src="/public/js/jquery-3.7.0.min.js" type="text/javascript"></script>
<script src="/public/js/billing.common.js" type="text/javascript"></script>
<script src="/public/js/librurys.min.js" type="text/javascript"></script>
<script src="/public/js/ui.calendar.js" type="text/javascript"></script>
<script src="/public/js/ui.common.js" type="text/javascript"></script>
<script src="/public/js/common.js" type="text/javascript"></script>
</head>
<body>

<!-- wrapper -->
<main id="wrapper"> 
	<!-- wrapper_body -->
	<div id="wrapper_body">
		<!-- container -->
		<div id="container" class="role_wrap">
			<!-- contents -->
			<section id="contents">
				<div class="cont_body full_typ">
					<div class="login_wrap">
						<h1 class="h1_tit" tabindex="0" aria-label="LG Logo"><span aria-hidden="true">LG</span></h1>
						<h2 class="h2_tit">LG Account Sign In</h2>
						<p class="sub_tit" role="text" tabindex="0" aria-label="Enter the code shown on your device's screen.">
							Enter the code shown on your device's screen.
						</p>
					</div>
					<form class="code_insert" name="sendForm">
						<div class="code_wrap">
							<input type="text" name="usrCode" id="usrCode" placeholder="Enter Code" autocomplete="off" maxlength="6" style="text-align:center; ime-mode:disabled;">
						</div>
						<p class="error_msg" style="text-align:center;">This code is not valid.</p>
					</form>
				</div>
				<div class="btn_wrap">
					<button type="button" id="loginBtn" class="btn_default">Next</button>
				</div>
			</section>
			<!--// contents -->
		</div>
		<!--// container -->
	</div>
	<!--//  wrapper_body -->
</main>

<script>
$("document").ready(function() {
	

	$("#loginBtn").click(function() {
		ajaxLogin();
	});

	$('form[name="sendForm"] input[name="usrCode"]').keydown(function() {
			if (event.keyCode == 13) {
				event.preventDefault();
				ajaxLogin();
			}
			else {
				$('.error_msg').hide();
			}
		});
	
	$("#usrCode").focus()
});

function ajaxLogin() {
	var usrCode = $("#usrCode").val();
	if (usrCode.length != 6) {
		//$(".error_msg").text('This code is not valid.');
		$('.error_msg').show();
		$('form[name="sendForm"] input[name="usrCode"]').trigger('focus');
		return;
	}
	
	$.ajax({
		url : "deviceLoginValidation.ajax",
		type : "post",
		data : {
			"usrCode" : usrCode
		},
		dataType : "json",
		success : function(data) {
			console.log(data);
			if (data.status == 'N') {
				//$(".error_msg").text('This code is not valid.');
				$('.error_msg').show();
				$('form[name="sendForm"] input[name="usrCode"]').val('');
				$('form[name="sendForm"] input[name="usrCode"]').focus();
				return false;
			} else if (data.status == 'Y') {
				sendForm.method = 'post';
				sendForm.action = 'deviceLoginProcess.do';
				sendForm.submit();
			}
		},
		error : function() {
			//$(".error_msg").text('This code is not valid.');
			$('.error_msg').show();
			$('form[name="sendForm"] input[name="usrCode"]').val('');
			$('form[name="sendForm"] input[name="usrCode"]').focus();
		}
	});
}

function checkRTLCountry(){
	$('form[name="sendForm"] input[name="usrCode"]').attr("dir", "rtl");
}

</script>


</body></html>