<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?!=include('style'); ?>
<!-- <link rel="stylesheet" href="style.css"> -->
<title>Document</title>
</head>
<body>
<div>
<h1>Login - Page</h1>
<input type="text" placeholder="Enter userid" name="userid" id="uname">
<input type="password" placeholder="Enter password" name="pass" id="password">
<input type="button" value="Submit" onclick="getLoginInfo();">
<? let url = getUrl(); ?> <input type="hidden" value="<?= url ?>" id="urls">
</div>
</body>
<script>
function getLoginInfo(){
let uname =document.getElementById('uname').value
let pass =document.getElementById('password').value
let scriptUrl = document.getElementById("urls").value
let anachor= document.createElement('a')
anachor.href= scriptUrl+"?sheetname=index"
anachor.id="linkUrl"
document.body.appendChild(anachor);
document.getElementById("linkUrl").click();
// google.script.run.loginRecord(uname,pass);
}
</script>
</html>