<!--
Copyright 2017-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
-->
<!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: '{{base_url}}',
type: 'POST',
data: dataToSend,
success:function() {
window.location.replace("{{base_url}}")
},
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>
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
在使用pytorch进行深度学习时用到了visdom可视化工具,在安装完visdom准备运行时发现终端一直停在了Downloading scripts这个界面下,下载过程很慢,甚至下载不了,我找了网上资源收集了一些未下载的脚本文件,发现网上提供的资源不全,我下载完后还缺layout_bin_packer.js文件,最后如愿解决。我这里提供了截至到2019年12月27日最新版的visdom所需的scripts压缩包,解压之后有一个static文件夹,其中包括css,fonts,js等脚本文件,希望能给大家提供帮助。
资源推荐
资源详情
资源评论
收起资源包目录
static.zip (24个子文件)
static
fonts
glyphicons-halflings-regular.woff2 18KB
layout_bin_packer 12KB
glyphicons-halflings-regular.ttf 44KB
classnames 1KB
glyphicons-halflings-regular.woff 23KB
glyphicons-halflings-regular.svg#glyphicons_halflingsregular 106KB
glyphicons-halflings-regular.eot 20KB
js
sjcl.js 25KB
main.js 1.45MB
react-react.min.js 6KB
mathjax-MathJax.js 62KB
jquery.min.js 85KB
plotly-plotly.min.js 3.13MB
react-dom.min.js 92KB
react-modal.min.js 27KB
layout_bin_packer.js 12KB
bootstrap.min.js 36KB
css
login.css 995B
bootstrap.min.css 118KB
style.css 4KB
react-grid-layout-styles.css 1KB
react-resizable-styles.css 1KB
login.html 3KB
index.html 2KB
共 24 条
- 1
资源评论
- Tchaiklove2020-02-07这个很好,非常方便
sq_damowang
- 粉丝: 48
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- AIS2024 valid
- 最入门的爬虫代码 python.docx
- 爬虫零基础入门-爬取天气预报.pdf
- 最通俗易懂的 MongoDB 非结构化文档存储数据库教程.zip
- 以mongodb为数据库的订单物流小项目.zip
- 腾讯云-mongodb数据库, 项目部署.zip
- 腾讯 APIJSON 的 MongoDB 数据库插件.zip
- 理解非关系型数据库和关系型数据库的区别.zip
- 操作简单的Mongodb网页web管理工具,基于Spring Boot2.0支持mongodb集群.zip
- tms-mongodb-web,提供访问mongodb数据的REST API和可灵活扩展的mongodb web 客户端.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功