centos搭建code-server配置HTTPS登录页自定义实现步骤(centos开启http服务)越早知道越好

随心笔谈2年前发布 编辑
162 0
🌐 经济型:买域名、轻量云服务器、用途:游戏 网站等 《腾讯云》特点:特价机便宜 适合初学者用 点我优惠购买
🚀 拓展型:买域名、轻量云服务器、用途:游戏 网站等 《阿里云》特点:中档服务器便宜 域名备案事多 点我优惠购买
🛡️ 稳定型:买域名、轻量云服务器、用途:游戏 网站等 《西部数码》 特点:比上两家略贵但是稳定性超好事也少 点我优惠购买

<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”utf-8″ />
<meta name=”viewport”
content=”width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no” />
<title>码坐标-IDE权限认证</title>
<link rel=”icon” href=”https://www.jb51.net/article/{{CS_STATIC_BASE}}/src/browser/media/favicon.ico” rel=”external nofollow” rel=”external nofollow” />
<link rel=”alternate icon” href=”https://www.jb51.net/article/{{CS_STATIC_BASE}}/src/browser/media/favicon.ico” rel=”external nofollow” rel=”external nofollow” />
<link rel=”apple-touch-icon” sizes=”192×192″ href=”https://www.jb51.net/article/{{CS_STATIC_BASE}}/src/browser/media/pwa-icon-192.png” rel=”external nofollow” />
<link rel=”apple-touch-icon” sizes=”512×512″ href=”https://www.jb51.net/article/{{CS_STATIC_BASE}}/src/browser/media/pwa-icon-512.png” rel=”external nofollow” />
<link rel=”stylesheet” href=”https://www.jb51.net/article/{{CS_STATIC_BASE}}/src/browser/pages/global.css” rel=”external nofollow” />
<link rel=”stylesheet” href=”https://www.jb51.net/article/{{CS_STATIC_BASE}}/src/browser/pages/login.css” rel=”external nofollow” />
<meta id=”coder-options” data-settings=”{{OPTIONS}}” />
</head>
<body>
<div class=”center-container login-container”>
<div>
<form id=”loginForm” method=”post”>
<input id=”base” type=”hidden” name=”base” value=”{{BASE}}” />
<input id=”href” type=”hidden” name=”href” value=”” />
<input required autofocus class=”password” id=”password” type=”password” placeholder=”请输入授权口令” name=”password”
onkeydown=”validPass()” autocomplete=”off” />
</form>
</div>
</div>
<script>
const el=document.getElementById(“href”)
if (el) {
el.value=location.href
}
function validPass() {
var event=arguments.callee.caller.arguments[0] || window.event;
if (event.keyCode==13) {
let loginForm=document.getElementById(“loginForm”)
let password=document.getElementById(“password”).value
if (!password) {
return
}
loginForm.submit()
}
}
</script>
</body>

© 版权声明

相关文章