<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Visdom Login</title>
<!-- Bootstrap core CSS -->
<link href={{ static_url("css/bootstrap.min.css") }} rel="stylesheet">
<!-- Custom styles for this template -->
<link href={{ static_url("css/login.css") }} rel="stylesheet">
<!-- jQuery -->
<script src={{ static_url("js/jquery.min.js") }}></script>
<!-- Hashing Password using Stanford Javascript Crypto Library-->
<script src={{ static_url("js/sjcl.js") }}></script>
<script>
$(document).ready(function () {
// initialize the viewer
$('#submitButton').click(function (event) {
var username = $("#inputUsername").val();
var password = $("#inputPassword").val();
password = sjcl.hash.sha256.hash(password)
var data =
{
username: username,
password: sjcl.codec.hex.fromBits(password)
};
var dataToSend = JSON.stringify(data);
$.ajax(
{
url: '/',
type: 'POST',
data: dataToSend,
success:function() {
window.location.replace("/")
},
error: function () {
$("#errorMessage").text("Invalid Login Information");
}
});
event.preventDefault();
});
});
</script>
</head>
<body class="text-center">
<form class="form-signin">
<h1 class="h3 mb-3 font-weight-normal">Visdom Login</h1>
<label for="inputUsername" class="sr-only">Email address</label>
<input name=username type="username" id="inputUsername" class="form-control" placeholder="Username" required autofocus>
<label for="inputPassword" class="sr-only">Password</label>
<input name=password type="password" id="inputPassword" class="form-control" placeholder="Password" required>
<button class="btn btn-lg btn-primary btn-block" type="submit" id="submitButton" >Login</button>
<p id="errorMessage"></p>
</form>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
visdom中static替换文件夹
共24个文件
js:9个
css:5个
html:2个
需积分: 15 1 下载量 70 浏览量
2022-07-11
23:34:31
上传
评论
收藏 1.23MB ZIP 举报
温馨提示
若visdom启动遇到错误,可尝试替换static文件夹。 (详见文章cycle_GAN代码在ubantu中运行过程与注意事项)
资源详情
资源评论
资源推荐
收起资源包目录
static.zip (24个子文件)
static
css
bootstrap.min.css 118KB
react-grid-layout-styles.css 1KB
style.css 4KB
login.css 792B
react-resizable-styles.css 1KB
fonts
glyphicons-halflings-regular.woff 23KB
glyphicons-halflings-regular.woff2 18KB
glyphicons-halflings-regular.ttf 44KB
glyphicons-halflings-regular.eot 20KB
classnames 1KB
glyphicons-halflings-regular.svg#glyphicons_halflingsregular 106KB
layout_bin_packer 12KB
login.html 2KB
index.html 2KB
js
jquery.min.js 85KB
plotly-plotly.min.js 2.68MB
react-react.min.js 6KB
react-modal.min.js 27KB
bootstrap.min.js 36KB
sjcl.js 25KB
react-dom.min.js 92KB
main.js 592KB
mathjax-MathJax.js 62KB
version.built 7B
共 24 条
- 1
朝-
- 粉丝: 422
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0