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

제출된 URL:
https://in.lgtvlink.com/
보고서 완료:

링크 · 0개 결과

페이지에서 식별된 외부 링크

JavaScript 변수 · 64개 결과

페이지의 창 개체에 로드된 전역 JavaScript 변수는 함수 외부에서 선언된 변수로, 현재 범위 내에서 코드의 어느 부분에서나 액세스할 수 있습니다

콘솔 로그 메시지 · 0개 결과

웹 콘솔에 기록된 메시지

HTML

페이지의 원시 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>