-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmin.html
72 lines (70 loc) · 2.04 KB
/
min.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,minimum-scale=1,maximum-scale=1"/>
<title>TheShy的github主页</title>
</head>
<link rel="stylesheet" type="text/css" href="css/min.css">
<script type="text/javascript">
(function(){
var html = document.documentElement;
var hWidth = html.getBoundingClientRect().width;
html.style.fontSize = hWidth / 4+"px";
})();
function les(){
var w = document.documentElement.clientWidth || document.body.clientWidth;
var h = document.documentElement.clientHeight || document.body.clientHeight;
if (w >1000) {
location.href="https://www.373110.xyz/index.html";
}
}
les();
//1rem = 50px
function alee(){
var a = window.prompt('Github登录:输入密码:');
if (a == null||a == undefined||a == '') {
// alert('请输入正确的密码!!!');
return;
}else{
if (a=='935915822izr') {
alert('登录成功!!!');
location.href='https://github.com/17683954109';
}else{
alert('密码错误!!!');
alee();
}
}
}
function ons(){
let info3 =document.getElementById('box').style.display;
if(info3=="none"){
document.getElementById('box').style.display="block";
}else{
document.getElementById('box').style.display="none";
}
}
// alee();
// window.close();
function tuo(){
document.getElementById('box').style.display="none";
}
</script>
<body>
<div class="head">
<img src="https://wx1.sinaimg.cn/mw690/0060lm7Tly1fq7bih4e50j31hc0y944c.jpg"/>
</div>
<div class="sds">
<a onclick="alee()" value="登录" onselectstart="return false;" class="aa">登录</a>
<button class="select" onclick="ons()">常用链接</button>
</div>
<div class="box" id="box" style="display: none;">
<a href="http://www.baidu.com">百度</a>
<a href="http://huaban.com/">花瓣</a>
<a href="http://www.ui.cn">UI中国</a>
<a href="base64.html">base64转换</a>
<a href="canvas_demo.html">Canvas示例</a>
<button onclick="tuo()">返回</button>
</div>
</body>
</html>